Symbol: stream
arch/alpha/kernel/err_ev6.c
101
int source = -1, stream = -1, bits = -1;
arch/alpha/kernel/err_ev6.c
137
stream = EXTRACT(c_stat, EV6__C_STAT__ISTREAM);
arch/alpha/kernel/err_ev6.c
160
streamname[stream], bitsname[bits], sourcename[source]);
arch/arm/kernel/head-inflate-data.c
34
struct z_stream_s stream, *strm = &stream;
arch/powerpc/kernel/nvram_64.c
116
static struct z_stream_s stream;
arch/powerpc/kernel/nvram_64.c
324
err = zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS,
arch/powerpc/kernel/nvram_64.c
329
stream.next_in = in;
arch/powerpc/kernel/nvram_64.c
330
stream.avail_in = inlen;
arch/powerpc/kernel/nvram_64.c
331
stream.total_in = 0;
arch/powerpc/kernel/nvram_64.c
332
stream.next_out = out;
arch/powerpc/kernel/nvram_64.c
333
stream.avail_out = outlen;
arch/powerpc/kernel/nvram_64.c
334
stream.total_out = 0;
arch/powerpc/kernel/nvram_64.c
336
err = zlib_deflate(&stream, Z_FINISH);
arch/powerpc/kernel/nvram_64.c
340
err = zlib_deflateEnd(&stream);
arch/powerpc/kernel/nvram_64.c
344
if (stream.total_out >= stream.total_in)
arch/powerpc/kernel/nvram_64.c
347
ret = stream.total_out;
arch/powerpc/kernel/nvram_64.c
614
stream.workspace = kmalloc(zlib_deflate_workspacesize(
arch/powerpc/kernel/nvram_64.c
616
if (!stream.workspace) {
arch/powerpc/kernel/nvram_64.c
626
stream.workspace = NULL;
arch/powerpc/kernel/nvram_64.c
634
kfree(stream.workspace);
arch/um/include/shared/os.h
157
extern int os_pipe(int *fd, int stream, int close_on_exec);
arch/um/os-Linux/file.c
365
int os_pipe(int *fds, int stream, int close_on_exec)
arch/um/os-Linux/file.c
367
int err, type = stream ? SOCK_STREAM : SOCK_DGRAM;
crypto/deflate.c
101
scur -= stream->avail_in;
crypto/deflate.c
104
} while (ret == Z_OK && stream->avail_out);
crypto/deflate.c
112
req->dlen = stream->total_out;
crypto/deflate.c
125
err = zlib_deflateInit2(&ds->stream, DEFLATE_DEF_LEVEL, Z_DEFLATED,
crypto/deflate.c
144
struct z_stream_s *stream = &ds->stream;
crypto/deflate.c
156
stream->avail_in = 0;
crypto/deflate.c
157
stream->next_in = NULL;
crypto/deflate.c
161
stream->avail_in = scur;
crypto/deflate.c
162
stream->next_in = walk.src.virt.addr;
crypto/deflate.c
171
stream->avail_out = dcur;
crypto/deflate.c
172
stream->next_out = walk.dst.virt.addr;
crypto/deflate.c
173
avail_in = stream->avail_in;
crypto/deflate.c
175
ret = zlib_inflate(stream, Z_NO_FLUSH);
crypto/deflate.c
177
if (!dcur && avail_in == stream->avail_in) {
crypto/deflate.c
182
dcur -= stream->avail_out;
crypto/deflate.c
184
} while (ret == Z_OK && stream->avail_in);
crypto/deflate.c
196
req->dlen = stream->total_out;
crypto/deflate.c
209
err = zlib_inflateInit2(&ds->stream, -DEFLATE_DEF_WINBITS);
crypto/deflate.c
30
struct z_stream_s stream;
crypto/deflate.c
47
ctx->stream.workspace = ctx->workspace;
crypto/deflate.c
65
struct z_stream_s *stream = &ds->stream;
crypto/deflate.c
80
stream->avail_out = dcur;
crypto/deflate.c
81
stream->next_out = walk.dst.virt.addr;
crypto/deflate.c
87
stream->avail_in = 0;
crypto/deflate.c
88
stream->next_in = NULL;
crypto/deflate.c
94
stream->avail_in = scur;
crypto/deflate.c
95
stream->next_in = walk.src.virt.addr;
crypto/deflate.c
98
ret = zlib_deflate(stream, flush);
crypto/scompress.c
234
struct crypto_acomp_stream *stream = crypto_acomp_lock_stream_bh(&crypto_scomp_alg(scomp)->streams);
crypto/scompress.c
244
dst, &dlen, stream->ctx);
crypto/scompress.c
247
dst, &dlen, stream->ctx);
crypto/scompress.c
252
dst, &dlen, stream->ctx);
crypto/scompress.c
255
dst, &dlen, stream->ctx);
crypto/scompress.c
257
crypto_acomp_unlock_stream_bh(stream);
drivers/accel/habanalabs/gaudi/gaudi.c
1091
static void gaudi_collective_map_sobs(struct hl_device *hdev, u32 stream)
drivers/accel/habanalabs/gaudi/gaudi.c
1100
stream * HL_RSVD_SOBS + prop->curr_sob_group_idx[stream];
drivers/accel/habanalabs/gaudi/gaudi.c
1103
queue_id = GAUDI_QUEUE_ID_NIC_0_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
1112
queue_id = GAUDI_QUEUE_ID_DMA_5_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
1117
queue_id = GAUDI_QUEUE_ID_TPC_7_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
1209
struct hl_cs_job *job, u32 stream, u32 sob_group_offset)
drivers/accel/habanalabs/gaudi/gaudi.c
1231
cprop->next_sob_group_val[stream],
drivers/accel/habanalabs/gaudi/gaudi.c
1237
wait_prop.sob_val = cprop->next_sob_group_val[stream];
drivers/accel/habanalabs/gaudi/gaudi.c
1249
cprop->next_sob_group_val[stream],
drivers/accel/habanalabs/gaudi/gaudi.c
1315
u32 stream, queue_id, sob_group_offset;
drivers/accel/habanalabs/gaudi/gaudi.c
1366
stream = job->hw_queue_id % 4;
drivers/accel/habanalabs/gaudi/gaudi.c
1368
stream * HL_RSVD_SOBS + cprop->curr_sob_group_idx[stream];
drivers/accel/habanalabs/gaudi/gaudi.c
1375
gaudi_collective_master_init_job(hdev, job, stream,
drivers/accel/habanalabs/gaudi/gaudi.c
1385
cprop->next_sob_group_val[stream]++;
drivers/accel/habanalabs/gaudi/gaudi.c
1387
if (cprop->next_sob_group_val[stream] == HL_MAX_SOB_VAL) {
drivers/accel/habanalabs/gaudi/gaudi.c
1395
cprop->next_sob_group_val[stream] = 1;
drivers/accel/habanalabs/gaudi/gaudi.c
1397
cprop->curr_sob_group_idx[stream] =
drivers/accel/habanalabs/gaudi/gaudi.c
1398
(cprop->curr_sob_group_idx[stream] + 1) &
drivers/accel/habanalabs/gaudi/gaudi.c
1401
gaudi_collective_map_sobs(hdev, stream);
drivers/accel/habanalabs/gaudi/gaudi.c
1404
cprop->curr_sob_group_idx[stream], stream);
drivers/accel/habanalabs/gaudi/gaudi.c
1531
u32 stream, nic_queue, nic_idx = 0;
drivers/accel/habanalabs/gaudi/gaudi.c
1553
stream = wait_queue_id % 4;
drivers/accel/habanalabs/gaudi/gaudi.c
1556
collective_queue = GAUDI_QUEUE_ID_DMA_5_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
1558
collective_queue = GAUDI_QUEUE_ID_TPC_7_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
1561
nic_queue = GAUDI_QUEUE_ID_NIC_0_0 + stream;
drivers/accel/habanalabs/gaudi/gaudi.c
6812
static void gaudi_handle_sw_config_stream_data(struct hl_device *hdev, u32 stream,
drivers/accel/habanalabs/gaudi/gaudi.c
6821
stream * cq_ptr_lo_off;
drivers/accel/habanalabs/gaudi/gaudi.c
6830
stream, cq_ptr, size);
drivers/accel/habanalabs/gaudi/gaudi.c
6835
hdev->captured_err_info.undef_opcode.stream_id = stream;
drivers/accel/habanalabs/gaudi/gaudi.c
6850
u32 stream, u64 qman_base,
drivers/accel/habanalabs/gaudi/gaudi.c
6859
q = &hdev->kernel_queues[qid_base + stream];
drivers/accel/habanalabs/gaudi/gaudi.c
6863
stream * qm_ci_stream_off;
drivers/accel/habanalabs/gaudi/gaudi.c
6871
gaudi_handle_sw_config_stream_data(hdev, stream, qman_base, event_mask);
drivers/accel/habanalabs/gaudi/gaudi.c
6894
stream, ci, addr[i], len);
drivers/accel/habanalabs/gaudi/gaudi.c
6930
u32 stream, u64 qman_base, u64 event_mask)
drivers/accel/habanalabs/gaudi/gaudi.c
6934
if (stream != QMAN_STREAMS) {
drivers/accel/habanalabs/gaudi/gaudi.c
6935
gaudi_handle_last_pqes_on_err(hdev, qid_base, stream,
drivers/accel/habanalabs/gaudi/gaudi.c
6941
gaudi_handle_sw_config_stream_data(hdev, stream, qman_base, event_mask);
drivers/block/zram/zcomp.c
113
struct zcomp_strm *zstrm = raw_cpu_ptr(comp->stream);
drivers/block/zram/zcomp.c
172
struct zcomp_strm *zstrm = per_cpu_ptr(comp->stream, cpu);
drivers/block/zram/zcomp.c
184
struct zcomp_strm *zstrm = per_cpu_ptr(comp->stream, cpu);
drivers/block/zram/zcomp.c
196
comp->stream = alloc_percpu(struct zcomp_strm);
drivers/block/zram/zcomp.c
197
if (!comp->stream)
drivers/block/zram/zcomp.c
206
mutex_init(&per_cpu_ptr(comp->stream, cpu)->lock);
drivers/block/zram/zcomp.c
216
free_percpu(comp->stream);
drivers/block/zram/zcomp.c
224
free_percpu(comp->stream);
drivers/block/zram/zcomp.h
74
struct zcomp_strm __percpu *stream;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
17
static struct z_stream_s stream;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
25
stream.next_in = _gzdata_start + 10;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
26
stream.avail_in = _gzdata_end - stream.next_in;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
29
(unsigned long *)&stream.workspace,
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
34
rc = zlib_inflateInit2(&stream, -MAX_WBITS);
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
44
efi_free(zlib_inflate_workspacesize(), (unsigned long)stream.workspace);
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
52
stream.next_out = out;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
53
stream.avail_out = outlen;
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
55
rc = zlib_inflate(&stream, 0);
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
56
zlib_inflateEnd(&stream);
drivers/firmware/efi/libstub/zboot-decompress-gzip.c
58
efi_free(zlib_inflate_workspacesize(), (unsigned long)stream.workspace);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10054
if (acrtc_state->stream->link->psr_settings.psr_feature_enabled ||
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10055
acrtc_state->stream->link->replay_settings.replay_feature_enabled) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10059
acrtc_state->stream->link->psr_settings.psr_version ==
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10069
if (acrtc_state->stream->link->psr_settings.psr_version >= DC_PSR_VERSION_SU_1 &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10076
acrtc_state->stream->link->psr_settings.psr_dirty_rects_change_timestamp_ns =
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10078
if (acrtc_state->stream->link->psr_settings.psr_allow_active)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10079
amdgpu_dm_psr_disable(acrtc_state->stream, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10119
acrtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10192
if (acrtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10195
&acrtc_state->stream->vrr_infopacket;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10209
acrtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10217
bundle->stream_update.stream = acrtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10219
bundle->stream_update.src = acrtc_state->stream->src;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10220
bundle->stream_update.dst = acrtc_state->stream->dst;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10229
&acrtc_state->stream->gamut_remap_matrix;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10231
&acrtc_state->stream->csc_color_matrix;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10233
&acrtc_state->stream->out_transfer_func;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10235
(struct dc_3dlut *) acrtc_state->stream->lut3d_func;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10237
(struct dc_transfer_func *) acrtc_state->stream->func_shaper;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10240
acrtc_state->stream->abm_level = acrtc_state->abm_level;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10246
if (acrtc_state->stream->link->replay_settings.replay_allow_active)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10247
amdgpu_dm_replay_disable(acrtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10248
if (acrtc_state->stream->link->psr_settings.psr_allow_active)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10249
amdgpu_dm_psr_disable(acrtc_state->stream, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10261
dm->dc, acrtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10269
acrtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10369
if (!new_dm_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10372
status = dc_stream_get_status(new_dm_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10407
dc_stream_remove_writeback(dm->dc, crtc_state->stream, 0);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10463
dc_stream_release(dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10493
dc_stream_program_cursor_position(dm_old_crtc_state->stream, &position);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10498
if (dm_new_crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10500
dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10507
if (amdgpu_dm_crtc_modeset_required(new_crtc_state, dm_new_crtc_state->stream, dm_old_crtc_state->stream)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10513
if (!dm_new_crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10535
if (dm_old_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10536
remove_stream(adev, acrtc, dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10550
if (dm_old_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10551
remove_stream(adev, acrtc, dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10581
if (dm_new_crtc_state->stream != NULL) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10583
dc_stream_get_status(dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10587
dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10591
dm_new_crtc_state->stream, acrtc);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10645
if (dm->dc->current_state->res_ctx.pipe_ctx[i].stream == crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10703
dc_stream_add_writeback(dm->dc, crtc_state->stream, wb_info);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10775
if (dm_new_crtc_state && dm_new_crtc_state->stream == NULL &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10843
if (dm_new_crtc_state->base.active && dm_new_crtc_state->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10925
(dm_old_crtc_state->stream->output_color_space !=
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10926
get_output_color_space(&dm_new_crtc_state->stream->timing, new_con_state)))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10938
stream_update.stream = dm_new_crtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10941
dm_new_con_state, dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10943
stream_update.src = dm_new_crtc_state->stream->src;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10944
stream_update.dst = dm_new_crtc_state->stream->dst;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10948
dm_new_crtc_state->stream->output_color_space
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10949
= get_output_color_space(&dm_new_crtc_state->stream->timing, new_con_state);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10951
stream_update.output_color_space = &dm_new_crtc_state->stream->output_color_space;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10955
dm_new_crtc_state->stream->abm_level = dm_new_crtc_state->abm_level;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10965
status = dc_stream_get_status(dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
10993
dm_new_crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11031
dc_stream_retain(dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11032
acrtc->dm_irq_params.stream = dm_new_crtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11082
if (dm_new_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11253
if (!acrtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11261
if (acrtc_state->stream->sink != aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11336
new_crtc_state->stream->ignore_msa_timing_param = true;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11469
dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11509
dm_new_crtc_state->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11513
if (dm_new_crtc_state->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11514
dc_is_stream_unchanged(new_stream, dm_old_crtc_state->stream) &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11515
dc_is_stream_scaling_unchanged(new_stream, dm_old_crtc_state->stream)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11539
if (!dm_old_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11549
if (amdgpu_freesync_vid_mode && dm_new_crtc_state->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11550
dc_is_stream_unchanged(new_stream, dm_old_crtc_state->stream) &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11551
dc_is_stream_scaling_unchanged(new_stream, dm_old_crtc_state->stream) &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11583
dm_old_crtc_state->stream) != DC_OK) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11588
dc_stream_release(dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11589
dm_new_crtc_state->stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11608
dm_old_crtc_state->stream)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11610
WARN_ON(dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11616
dm_new_crtc_state->stream = new_stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11626
dm_new_crtc_state->stream) != DC_OK) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11654
BUG_ON(dm_new_crtc_state->stream == NULL);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11660
&new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12029
if (!dm_old_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12041
dm_old_crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12067
if (!dm_new_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
12113
dm_new_crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
268
if (!acrtc->dm_irq_params.stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
274
return dc_stream_get_vblank_counter(acrtc->dm_irq_params.stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
289
if (!acrtc->dm_irq_params.stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
302
dc_stream_get_scanoutpos(acrtc->dm_irq_params.stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3098
struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3100
del_streams[del_streams_count++] = stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3173
if (dm_new_crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3174
WARN_ON(kref_read(&dm_new_crtc_state->stream->refcount) > 1);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3175
dc_stream_release(dm_new_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3176
dm_new_crtc_state->stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
3372
bundle->stream_update.stream = dc_state->streams[k];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
361
if (new_state->stream->adjust.timing_adjust_pending)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
405
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
420
stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
472
!dc_stream_get_scanoutpos(amdgpu_crtc->dm_irq_params.stream, &v_blank_start,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
532
struct dc_stream_state *stream = work->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
536
dc_stream_adjust_vmin_vmax(adev->dm.dc, stream, adjust);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
539
dc_stream_release(stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
545
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
563
dc_stream_retain(stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
568
offload_work->stream = stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
611
if (vrr_active && acrtc->dm_irq_params.stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
612
bool replay_en = acrtc->dm_irq_params.stream->link->replay_settings.replay_feature_enabled;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
613
bool psr_en = acrtc->dm_irq_params.stream->link->psr_settings.psr_feature_enabled;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
624
acrtc->dm_irq_params.stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
629
acrtc->dm_irq_params.stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6455
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6469
dst.width = stream->timing.h_addressable;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6470
dst.height = stream->timing.v_addressable;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6489
dst.x = (stream->timing.h_addressable - dst.width) / 2;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6490
dst.y = (stream->timing.v_addressable - dst.height) / 2;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6500
stream->src = src;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6501
stream->dst = dst;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6692
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6699
struct dc_crtc_timing *timing_out = &stream->timing;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
670
struct dc_stream_state *stream = acrtc->dm_irq_params.stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6718
&& stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
672
v_total = stream->adjust.v_total_max ?
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6729
&& stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
673
stream->adjust.v_total_max : stream->timing.v_total;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
674
refresh_hz = div_u64((uint64_t) stream->timing.pix_clk_100hz *
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
675
100LL, (v_total * stream->timing.h_total));
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6754
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6795
stream->out_transfer_func.type = TF_TYPE_PREDEFINED;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6796
stream->out_transfer_func.tf = TRANSFER_FUNCTION_SRGB;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6797
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
680
acrtc->dm_irq_params.stream, 0);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6806
stream->output_color_space = get_output_color_space(timing_out, connector_state);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6807
stream->content_type = get_output_content_type(connector_state);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6911
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6915
if (stream->triggered_crtc_reset.enabled) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6916
master = stream->triggered_crtc_reset.event_source;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6917
stream->triggered_crtc_reset.event =
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6920
stream->triggered_crtc_reset.delay = TRIGGER_DELAY_NEXT_PIXEL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6950
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6967
stream = context->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6969
if (!stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
6972
set_multisync_trigger_params(stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7091
struct dc_sink *sink, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7094
stream->timing.flags.DSC = 0;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7109
struct dc_sink *sink, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7124
verified_link_cap = dc_link_get_link_cap(stream->link);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7125
link_bw_in_kbps = dc_link_bandwidth_kbps(stream->link, verified_link_cap);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
713
if (acrtc->dm_irq_params.stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7139
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7148
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
715
bool replay_en = acrtc->dm_irq_params.stream->link->replay_settings.replay_feature_enabled;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7151
stream->timing.dsc_cfg = dsc_cfg;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7152
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7153
stream->timing.dsc_cfg.bits_per_pixel = edp_max_bpp_x16;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
716
bool psr_en = acrtc->dm_irq_params.stream->link->psr_settings.psr_feature_enabled;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7163
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7166
stream->timing.dsc_cfg = dsc_cfg;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7167
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7172
struct dc_sink *sink, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7198
apply_dsc_policy_for_edp(aconnector, sink, stream, dsc_caps, max_dsc_target_bpp_limit_override);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
720
acrtc->dm_irq_params.stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7206
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7208
&stream->timing.dsc_cfg)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7209
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7214
timing_bw_in_kbps = dc_bandwidth_in_kbps_from_timing(&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7226
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7228
&stream->timing.dsc_cfg)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7229
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7238
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7240
if (stream->timing.flags.DSC && aconnector->dsc_settings.dsc_num_slices_h)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7241
stream->timing.dsc_cfg.num_slices_h = aconnector->dsc_settings.dsc_num_slices_h;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7243
if (stream->timing.flags.DSC && aconnector->dsc_settings.dsc_num_slices_v)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7244
stream->timing.dsc_cfg.num_slices_v = aconnector->dsc_settings.dsc_num_slices_v;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7246
if (stream->timing.flags.DSC && aconnector->dsc_settings.dsc_bits_per_pixel)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7247
stream->timing.dsc_cfg.bits_per_pixel = aconnector->dsc_settings.dsc_bits_per_pixel;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
725
schedule_dc_vmin_vmax(adev, acrtc->dm_irq_params.stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7262
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7297
return stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7304
stream = dc_create_stream_for_sink(sink);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7306
if (stream == NULL) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7312
stream->dm_stream_context = aconnector;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7314
stream->timing.flags.LTE_340MCSC_SCRAMBLE =
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7366
stream, &mode, connector, con_state, NULL,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7370
stream, &mode, connector, con_state, old_stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7380
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7382
stream->timing = *aconnector->timing_requested;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7387
update_dsc_caps(aconnector, sink, stream, &dsc_caps);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7389
apply_dsc_policy_for_stream(aconnector, sink, stream, &dsc_caps);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7392
update_stream_scaling_settings(dev, &mode, dm_state, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7395
&stream->audio_info,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7399
update_stream_signal(stream, sink);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7401
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7402
mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7404
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7405
stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7406
stream->signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7419
stream->use_vsc_sdp_for_colorimetry = stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7420
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7423
if (stream->out_transfer_func.tf == TRANSFER_FUNCTION_GAMMA22)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7425
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
7432
return stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8020
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8026
if (!stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8038
dc_plane_state->src_rect.height = stream->src.height;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8039
dc_plane_state->src_rect.width = stream->src.width;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8040
dc_plane_state->dst_rect.height = stream->src.height;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8041
dc_plane_state->dst_rect.width = stream->src.width;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8042
dc_plane_state->clip_rect.height = stream->src.height;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8043
dc_plane_state->clip_rect.width = stream->src.width;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8044
dc_plane_state->plane_size.surface_pitch = ((stream->src.width + 255) / 256) * 256;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8045
dc_plane_state->plane_size.surface_size.height = stream->src.height;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8046
dc_plane_state->plane_size.surface_size.width = stream->src.width;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8047
dc_plane_state->plane_size.chroma_size.height = stream->src.height;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8048
dc_plane_state->plane_size.chroma_size.width = stream->src.width;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8055
dc_result = dc_validate_stream(dc, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8060
dc_result = dc_state_add_stream(dc, dc_state, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8064
stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8090
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8109
stream = create_stream_for_sink(connector, drm_mode,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8112
if (stream == NULL) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8117
dc_result = dc_validate_stream(adev->dm.dc, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8120
return stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8122
if (dc_result == DC_OK && stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8123
dc_result = dm_dp_mst_is_port_support_mode(aconnector, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8126
dc_result = dm_validate_stream_and_context(adev->dm.dc, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8133
dc_pixel_encoding_to_str(stream->timing.pixel_encoding),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8134
dc_color_depth_to_str(stream->timing.display_color_depth),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8137
dc_stream_release(stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8138
stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8142
} while (stream == NULL && requested_bpc >= bpc_limit);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8168
stream = create_validate_stream_for_sink(connector, drm_mode,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8181
return stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8191
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8223
stream = create_validate_stream_for_sink(connector, test_mode,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8227
if (stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8228
dc_stream_release(stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8496
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8520
stream = dc_state->streams[j];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8521
if (!stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8524
if ((struct amdgpu_dm_connector *)stream->dm_stream_context == aconnector)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8527
stream = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8530
if (!stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8533
pbn_div = dm_mst_get_pbn_divider(stream->link);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
8547
if (stream->timing.flags.DSC != 1) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9327
timing = &acrtc_state->stream->timing;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9346
if (acrtc_state->stream->link->psr_settings.psr_version <
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9560
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9632
new_crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9686
struct dc_stream_state *new_stream = new_crtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9820
if (crtc_state && crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9821
dc_stream_set_cursor_position(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9823
update->cursor_position = &crtc_state->stream->cursor_position;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9850
if (crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9851
if (!dc_stream_set_cursor_attributes(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9855
update->cursor_attributes = &crtc_state->stream->cursor_attributes;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9857
if (!dc_stream_set_cursor_position(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9861
update->cursor_position = &crtc_state->stream->cursor_position;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9869
struct psr_settings *psr = &acrtc_state->stream->link->psr_settings;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9870
struct replay_settings *pr = &acrtc_state->stream->link->replay_settings;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9872
(struct amdgpu_dm_connector *)acrtc_state->stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9877
amdgpu_dm_link_setup_replay(acrtc_state->stream->link, aconn);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9881
amdgpu_dm_link_setup_psr(acrtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9907
amdgpu_dm_replay_enable(acrtc_state->stream, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9910
amdgpu_dm_psr_enable(acrtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9968
if (!dc_stream_set_cursor_position(acrtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
9973
&acrtc_state->stream->cursor_position;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
153
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
181
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
973
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1197
struct dc_stream_state *stream = crtc->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1234
out_tf = &stream->out_transfer_func;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1304
struct dc_stream_state *stream = crtc->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1325
__drm_ctm_to_dc_matrix(ctm, stream->gamut_remap_matrix.matrix);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1327
stream->gamut_remap_matrix.enable_remap = true;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1328
stream->csc_color_matrix.enable_adjustment = false;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1331
stream->gamut_remap_matrix.enable_remap = false;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
1332
stream->csc_color_matrix.enable_adjustment = false;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
298
static void amdgpu_dm_set_crc_window_default(struct drm_crtc *crtc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
328
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
332
dc_stream_forward_multiple_crc_window(stream, NULL, phy_id, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
334
dc_stream_forward_crc_window(stream, NULL, phy_id, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
347
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
371
stream = to_amdgpu_crtc(crtc)->dm_irq_params.stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
372
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
429
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
442
stream = to_amdgpu_crtc(crtc)->dm_irq_params.stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
443
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
462
dc_stream_forward_multiple_crc_window(stream, roi_cpy,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
465
dc_stream_forward_crc_window(stream, &roi_cpy[0].rect,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
505
struct dc_stream_state *stream_state = dm_crtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
696
amdgpu_dm_set_crc_window_default(crtc, crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
767
stream_state = crtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
825
stream_state = to_dm_crtc_state(crtc->state)->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
131
struct dc_link *link = vblank_work->stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
144
amdgpu_dm_replay_enable(vblank_work->stream, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
147
amdgpu_dm_psr_disable(vblank_work->stream, false);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
152
(struct amdgpu_dm_connector *) vblank_work->stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
157
amdgpu_dm_psr_enable(vblank_work->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
272
if (vblank_work->stream && vblank_work->stream->link && vblank_work->acrtc) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
285
dc_stream_release(vblank_work->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
312
struct psr_settings *psr = &acrtc_state->stream->link->psr_settings;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
313
struct replay_settings *pr = &acrtc_state->stream->link->replay_settings;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
404
if (acrtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
405
dc_stream_retain(acrtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
406
work->stream = acrtc_state->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
431
if (cur->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
432
dc_stream_release(cur->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
456
if (cur->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
457
state->stream = cur->stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
458
dc_stream_retain(state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
638
if (!dm_new_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
666
if (WARN_ON(unlikely(!dm_crtc_state->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
667
amdgpu_dm_crtc_modeset_required(crtc_state, NULL, dm_crtc_state->stream)))) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
705
if (!dm_crtc_state->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
708
if (dc_validate_stream(dc, dm_crtc_state->stream) == DC_OK)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1106
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1109
switch (dm_crtc_state->stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1157
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1160
switch (dm_crtc_state->stream->output_color_space) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1302
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1303
pipe_ctx->stream->link == link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1353
dc_stream_send_dp_sdp(acrtc_state->stream, data, write_size);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1578
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1579
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1580
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1581
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1680
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1681
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1682
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1683
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1687
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1706
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1764
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1765
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1766
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1767
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1864
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1865
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1866
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1867
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1871
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1890
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1895
pipe_ctx->stream->timing.h_addressable,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1948
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1949
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1950
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
1951
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2048
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2049
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2050
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2051
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2055
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2074
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2079
pipe_ctx->stream->timing.v_addressable,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2128
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2129
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2130
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2131
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2225
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2226
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2227
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2228
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2232
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2251
if (dm_crtc_state->stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2303
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2304
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2305
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2306
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2357
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2358
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2359
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2360
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2426
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2427
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2428
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2429
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2495
if (pipe_ctx->stream &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2496
pipe_ctx->stream->link == aconnector->dc_link &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2497
pipe_ctx->stream->sink &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
2498
pipe_ctx->stream->sink == aconnector->dc_sink)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
3815
amdgpu_dm_psr_disable(acrtc->dm_irq_params.stream, true);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1206
void dm_helpers_mst_enable_stream_features(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1209
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1223
(stream->ignore_msa_timing_param) ? 1 : 0;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1251
if (pipes[i].stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1254
if (pipes[i].stream->link == link && !pipes[i].top_pipe &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1322
&& pipe_ctx->stream->timing.display_color_depth != requestColorDepth)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1324
&& pipe_ctx->stream->timing.pixel_encoding != requestPixelEncoding)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1327
pipe_ctx->stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1328
pipe_ctx->stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1331
pipe_ctx->stream->timing.display_color_depth = requestColorDepth;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1332
pipe_ctx->stream->timing.pixel_encoding = requestPixelEncoding;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1339
*aconnector->timing_requested = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1345
pipe_ctx->stream->test_pattern.type = test_pattern;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1346
pipe_ctx->stream->test_pattern.color_space = test_pattern_color_space;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1428
bool dm_helpers_is_fullscreen(struct dc_context *ctx, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
1434
bool dm_helpers_is_hdr_on(struct dc_context *ctx, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
272
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
281
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
314
fill_dc_mst_payload_table_from_drm(stream->link, enable, target_payload, proposed_table);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
341
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
347
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
367
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
377
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
401
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
410
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
795
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
808
if (!stream->link->link_status.link_active &&
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
809
memcmp(stream->link->dpcd_caps.branch_dev_name,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
821
if (!stream->link->link_status.link_active) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
832
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
840
(struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
847
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
855
aconnector->dsc_aux, stream, enable_dsc);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
896
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT || stream->signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
897
if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_NONE) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
898
ret = dm_helpers_dp_write_dpcd(ctx, stream->link, DP_DSC_ENABLE, &enable_dsc, 1);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
902
} else if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_DP_HDMI_CONVERTER) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
903
ret = dm_helpers_dp_write_dpcd(ctx, stream->link, DP_DSC_ENABLE, &enable_dsc, 1);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
913
bool dm_helpers_dp_write_hblank_reduction(struct dc_context *ctx, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq_params.h
35
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1193
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1213
stream = dc_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1215
if (stream->link != dc_link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1218
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1229
__func__, __LINE__, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1233
stream->timing.flags.DSC = 0;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1235
params[count].timing = &stream->timing;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1236
params[count].sink = stream->sink;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1245
params[count].compression_possible = stream->sink->dsc_caps.dsc_dec_caps.is_dsc_supported;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1246
dc_dsc_get_policy_for_timing(params[count].timing, 0, &dsc_policy, dc_link_get_highest_encoding_format(stream->link));
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1248
stream->sink->ctx->dc->res_pool->dscs[0],
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1249
stream->sink->ctx->dc->debug.dsc_min_slice_height_override,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1252
&stream->sink->dsc_caps.dsc_dec_caps,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1253
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1256
params[count].bw_range.stream_kbps = dc_bandwidth_in_kbps_from_timing(&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1260
count, stream, params[count].bw_range.max_kbps, params[count].bw_range.min_kbps,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1360
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1383
stream = dc_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1384
if (!stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1387
DRM_DEBUG_DRIVER("%s:%d MST_DSC checking #%d stream 0x%p\n", __func__, __LINE__, i, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1390
if (stream->link != dc_link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1393
aconnector = (struct amdgpu_dm_connector *) stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1403
__func__, __LINE__, stream, aconnector);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1416
__func__, __LINE__, stream, aconnector);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1428
__func__, __LINE__, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1449
stream = dc->current_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1451
if (stream->link != dc_link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1454
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1469
__func__, __LINE__, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1487
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1499
stream = dc_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1500
res_pool = stream->ctx->dc->res_pool;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1502
if (stream->signal != SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1505
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1508
__func__, stream, aconnector);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1520
res_pool->funcs->remove_stream_from_ctx(stream->ctx->dc, dc_state, stream) != DC_OK)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1523
if (!is_dsc_need_re_compute(state, dc_state, stream->link))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1527
ret = compute_mst_dsc_configs_for_link(state, dc_state, stream->link, vars, mst_mgr,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1533
if (dc_state->streams[j]->link == stream->link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1539
stream = dc_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1541
if (stream->timing.flags.DSC == 1)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1542
if (dc_stream_add_dsc_to_resource(stream->ctx->dc, dc_state, stream) != DC_OK) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1544
__func__, __LINE__, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1557
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1568
stream = dc_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1570
if (stream->signal != SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1573
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1576
i, stream, aconnector);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1587
if (!is_dsc_need_re_compute(state, dc_state, stream->link))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1591
ret = compute_mst_dsc_configs_for_link(state, dc_state, stream->link, vars, mst_mgr,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1597
if (dc_state->streams[j]->link == stream->link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1606
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1615
if (dm_state->stream == stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1650
if (dm_crtc_state->stream && dm_crtc_state->stream->link)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1651
if (is_link_to_dschub(dm_crtc_state->stream->link))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1689
struct dc_stream_state *stream = dm_state->context->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1690
int ind = find_crtc_index_in_state_by_stream(state, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1714
dm_old_crtc_state->stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1738
struct dc_stream_state *stream = dm_state->context->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1741
dc_is_timing_changed(stream, local_dc_state->streams[i])) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1744
int ind = find_crtc_index_in_state_by_stream(state, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1750
__func__, __LINE__, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1757
struct dc_stream_state *stream = dm_state->context->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1759
if (local_dc_state->streams[i] != stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1780
static bool is_dsc_common_config_possible(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1786
dc_dsc_get_policy_for_timing(&stream->timing, 0, &dsc_policy, dc_link_get_highest_encoding_format(stream->link));
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1787
is_dsc_possible = dc_dsc_compute_bandwidth_range(stream->sink->ctx->dc->res_pool->dscs[0],
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1788
stream->sink->ctx->dc->debug.dsc_min_slice_height_override,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1791
&stream->sink->dsc_caps.dsc_dec_caps,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1792
&stream->timing, dc_link_get_highest_encoding_format(stream->link), bw_range);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1858
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1874
dc_bandwidth_in_kbps_from_timing(&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1875
dc_link_get_highest_encoding_format(stream->link));
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1876
cur_link_settings = stream->link->verified_link_cap;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1892
if (is_dsc_common_config_possible(stream, &bw_range)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1946
dc_dsc_get_default_config_option(stream->link->dc, &dsc_options);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1948
if (dc_dsc_compute_config(stream->sink->ctx->dc->res_pool->dscs[0],
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1949
&stream->sink->dsc_caps.dsc_dec_caps,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1952
&stream->timing,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1953
dc_link_get_highest_encoding_format(stream->link),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1954
&stream->timing.dsc_cfg)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1955
stream->timing.flags.DSC = 1;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1963
switch (stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
1979
((stream->timing.pix_clk_100hz / 10) > branch_max_throughput_mps * 1000)) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h
95
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1374
if (crtc_state && crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1376
dc_stream_program_cursor_position(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1405
if (crtc_state->stream) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1407
if (!dc_stream_program_cursor_attributes(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
1411
if (!dc_stream_program_cursor_position(crtc_state->stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
106
bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
114
if (stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
117
link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
121
mod_power_calc_psr_configs(&psr_config, link, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
126
mod_power_only_edp(dc->current_state, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
131
if (!psr_su_set_dsc_slice_height(dc, link, stream, &psr_config))
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
135
ret = dc_link_setup_psr(link, stream, &psr_config, &psr_context);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
148
void amdgpu_dm_psr_enable(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
150
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
164
stream->timing.pix_clk_100hz * (uint64_t)100),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
165
stream->timing.v_total),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
166
stream->timing.h_total);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
184
&stream, 1,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
207
bool amdgpu_dm_psr_disable(struct dc_stream_state *stream, bool wait)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
213
return dc_link_set_psr_allow_active(stream->link, &psr_enable, wait, false, NULL);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
242
struct dc_stream_state *stream = dm->dc->current_state->streams[i];
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
244
link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
265
bool amdgpu_dm_psr_wait_disable(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
268
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.h
36
void amdgpu_dm_psr_enable(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.h
37
bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.h
38
bool amdgpu_dm_psr_disable(struct dc_stream_state *stream, bool wait);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.h
41
bool amdgpu_dm_psr_wait_disable(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
153
bool amdgpu_dm_replay_enable(struct dc_stream_state *stream, bool wait)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
159
if (stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
163
aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
168
link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
171
link->dc->link_srv->dp_setup_replay(link, stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
172
link->dc->link_srv->edp_set_coasting_vtotal(link, stream->timing.v_total, 0);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
187
bool amdgpu_dm_replay_disable(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
192
if (stream == NULL)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
195
link = stream->link;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c
199
link->dc->link_srv->edp_set_replay_allow_active(stream->link, &replay_active, true, false, NULL);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.h
43
bool amdgpu_dm_replay_enable(struct dc_stream_state *stream, bool enable);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.h
46
bool amdgpu_dm_replay_disable(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
386
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
389
TP_ARGS(pipe_idx, plane_state, stream, plane_res, update_flags),
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
393
__field(const void *, stream)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
425
__entry->stream = stream;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
426
__entry->stream_w = stream->timing.h_addressable;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
427
__entry->stream_h = stream->timing.v_addressable;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h
459
__entry->stream,
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2803
if (!pipe[i].stream || !pipe[i].bottom_pipe)
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2822
data->h_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2823
data->v_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2824
data->pixel_rate[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->timing.pix_clk_100hz, 10000);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2915
if (!pipe[i].stream || pipe[i].bottom_pipe)
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2921
data->h_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2922
data->v_total[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2923
pixel_clock_100hz = pipe[i].stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2924
if (pipe[i].stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2976
} else if (pipe[i].stream->dst.width != 0 &&
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2977
pipe[i].stream->dst.height != 0 &&
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2978
pipe[i].stream->src.width != 0 &&
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2979
pipe[i].stream->src.height != 0) {
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2980
data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->src.width);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2982
data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->src.height);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2983
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);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2984
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);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2985
data->h_scale_ratio[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->src.width, pipe[i].stream->dst.width);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2986
data->v_scale_ratio[num_displays + 4] = bw_frc_to_fixed(pipe[i].stream->src.height, pipe[i].stream->dst.height);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2990
data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.h_addressable);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
2992
data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].stream->timing.v_addressable);
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c
3027
active_pipes[0]->stream, active_pipes[i]->stream)) {
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
61
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
67
if (dc_state_get_stream_subvp_type(context, stream) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
70
if (!stream->dpms_off || dc->is_switch_in_progress_dest || (stream_status && stream_status->plane_count))
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
173
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c
186
if (dc_is_dp_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
101
uint32_t vertical_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
102
struct dc_crtc_timing_adjust adjust = stream->adjust;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
106
vertical_blank_in_pixels = stream->timing.h_total *
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
108
- stream->timing.v_addressable);
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
110
* 10000 / stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
135
const struct dc_stream_state *stream = context->streams[j];
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
141
if (stream == context->res_ctx.pipe_ctx[k].stream) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
149
if (stream->dpms_off)
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
153
cfg->signal = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
155
cfg->src_height = stream->src.height;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
156
cfg->src_width = stream->src.width;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
158
stream->link->ddi_channel_mapping.raw;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
160
stream->link->link_enc->transmitter;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
162
stream->link->cur_link_settings.lane_count;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
164
stream->link->cur_link_settings.link_rate;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
166
stream->link->cur_link_settings.link_spread;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
167
cfg->pixel_clock = stream->phy_pix_clk;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
169
cfg->v_refresh = stream->timing.pix_clk_100hz * 100;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
170
cfg->v_refresh /= stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
171
cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2)
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
172
/ stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c
98
struct dc_stream_state *stream = context->streams[j];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
62
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
64
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
65
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
66
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
71
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
73
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
74
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/vg_clk_mgr.c
75
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
124
if (pipe->stream && (pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal))) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
85
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
87
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
88
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
89
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c
93
if (dc_is_dp_signal(stream->signal) && !stream->dpms_off)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
119
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
121
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
122
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
123
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
127
if (dc_is_dp_signal(stream->signal) && !stream->dpms_off)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c
161
if (pipe->stream && (pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal))) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
110
if (pipe->stream && (pipe->stream->dpms_off || pipe->plane_state == NULL ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
111
dc_is_virtual_signal(pipe->stream->signal))) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
66
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
68
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
69
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
70
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
94
if (pipe->stream->link->link_enc && pipe->stream->link->link_enc->funcs->is_dig_enabled &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c
95
pipe->stream->link->link_enc->funcs->is_dig_enabled(pipe->stream->link->link_enc))
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
115
if (pipe->stream && (pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal) ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
116
!pipe->stream->link_enc)) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
78
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
80
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
81
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c
82
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
496
if (pipe->stream->timing.h_addressable == width &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
497
pipe->stream->timing.v_addressable == height &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
520
if (pipe_ctx->stream && dc_state_get_pipe_subvp_type(context, pipe_ctx) != SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
575
pix_clk_list[i] = curr_pipe_ctx->stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
578
refresh_rate = (curr_pipe_ctx->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
579
curr_pipe_ctx->stream->timing.v_total * (uint64_t)curr_pipe_ctx->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
580
refresh_rate = div_u64(refresh_rate, curr_pipe_ctx->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
581
refresh_rate = div_u64(refresh_rate, curr_pipe_ctx->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
165
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
167
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
168
stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK ||
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
169
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
215
if (new_pipe->stream)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
216
new_pipe_link_enc = new_pipe->stream->link_enc;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
217
if (pipe->stream)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
218
pipe_link_enc = pipe->stream->link_enc;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
221
stream_changed_otg_dig_on = old_pipe->stream && new_pipe->stream &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
222
old_pipe->stream != new_pipe->stream &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
224
new_pipe_link_enc && !new_pipe->stream->dpms_off &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
232
if (old_pipe->stream && new_pipe->stream && old_pipe->stream == new_pipe->stream) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
238
if (!has_active_hpo && !stream_changed_otg_dig_on && pipe->stream &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
239
(pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal) || !pipe_link_enc) &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
349
const struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
350
const struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
365
&stream->timing, dc_link_get_highest_encoding_format(link));
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
401
if (pipe->stream->timing.h_addressable == width &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
402
pipe->stream->timing.v_addressable == height &&
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
424
if (pipe_ctx->stream && dc_state_get_pipe_subvp_type(context, pipe_ctx) != SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
477
pix_clk_list[i] = curr_pipe_ctx->stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
480
refresh_rate = (curr_pipe_ctx->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
481
curr_pipe_ctx->stream->timing.v_total
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
482
* (uint64_t) curr_pipe_ctx->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
483
refresh_rate = div_u64(refresh_rate, curr_pipe_ctx->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c
484
refresh_rate = div_u64(refresh_rate, curr_pipe_ctx->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/core/dc.c
1206
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
1211
for (i = 0; i < stream->num_wb_info; i++)
drivers/gpu/drm/amd/display/dc/core/dc.c
1212
stream->writeback_info[i].wb_enabled = false;
drivers/gpu/drm/amd/display/dc/core/dc.c
1217
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
1231
if (stream == pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
1264
dc, pipe_ctx->stream->output_color_space, &(pipe_ctx->visual_confirm_color));
drivers/gpu/drm/amd/display/dc/core/dc.c
1339
dc->current_state->res_ctx.pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/core/dc.c
1396
if (pipe->stream && pipe->plane_state) {
drivers/gpu/drm/amd/display/dc/core/dc.c
1442
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc.c
1447
stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/core/dc.c
1448
if (stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc.c
1451
if (stream->apply_seamless_boot_optimization)
drivers/gpu/drm/amd/display/dc/core/dc.c
1458
if (stream->link->local_sink &&
drivers/gpu/drm/amd/display/dc/core/dc.c
1459
stream->link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/dc/core/dc.c
1460
link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
1487
pipe->stream->dpms_off = false;
drivers/gpu/drm/amd/display/dc/core/dc.c
1610
if (!ctx->res_ctx.pipe_ctx[i].stream ||
drivers/gpu/drm/amd/display/dc/core/dc.c
1611
!ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.enabled)
drivers/gpu/drm/amd/display/dc/core/dc.c
1613
if (ctx->res_ctx.pipe_ctx[i].stream == ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.event_source)
drivers/gpu/drm/amd/display/dc/core/dc.c
1636
if (!ctx->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/core/dc.c
1665
unsynced_pipes[j]->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
1666
pipe_set[0]->stream)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
1674
unsynced_pipes[j]->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
1675
pipe_set[0]->stream)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
1703
struct dc_stream_status *status = dc_state_get_stream_status(ctx, pipe_set[k]->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
2003
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
2005
return (pipe_ctx->stream && pipe_ctx->stream == stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
2059
if (context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
2288
context->streams[l] == pipe->stream &&
drivers/gpu/drm/amd/display/dc/core/dc.c
2391
struct dc_stream_state *stream = params->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc.c
2392
struct dc_stream_status *status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
2393
struct dc_sink *sink = stream->sink;
drivers/gpu/drm/amd/display/dc/core/dc.c
2397
res = dc_validate_stream(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
2403
dc_stream_log(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
2405
set[i].stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc.c
2495
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
2510
if (res_ctx->pipe_ctx[pipe_idx].stream == stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
2593
if (context->res_ctx.pipe_ctx[i].stream == NULL ||
drivers/gpu/drm/amd/display/dc/core/dc.c
2984
union stream_update_flags *su_flags = &stream_update->stream->update_flags;
drivers/gpu/drm/amd/display/dc/core/dc.c
3014
if (stream_update->stream->freesync_on_desktop &&
drivers/gpu/drm/amd/display/dc/core/dc.c
3066
stream_update->stream->update_flags.raw = 0;
drivers/gpu/drm/amd/display/dc/core/dc.c
3075
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3080
if (stream == ctx->streams[i]) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3234
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3239
if (update == NULL || stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc.c
3243
stream->src = update->src;
drivers/gpu/drm/amd/display/dc/core/dc.c
3246
stream->dst = update->dst;
drivers/gpu/drm/amd/display/dc/core/dc.c
3249
stream->out_transfer_func.sdr_ref_white_level =
drivers/gpu/drm/amd/display/dc/core/dc.c
3251
stream->out_transfer_func.tf = update->out_transfer_func->tf;
drivers/gpu/drm/amd/display/dc/core/dc.c
3252
stream->out_transfer_func.type =
drivers/gpu/drm/amd/display/dc/core/dc.c
3254
memcpy(&stream->out_transfer_func.tf_pts,
drivers/gpu/drm/amd/display/dc/core/dc.c
3260
stream->hdr_static_metadata = *update->hdr_static_metadata;
drivers/gpu/drm/amd/display/dc/core/dc.c
3263
stream->abm_level = *update->abm_level;
drivers/gpu/drm/amd/display/dc/core/dc.c
3266
stream->periodic_interrupt = *update->periodic_interrupt;
drivers/gpu/drm/amd/display/dc/core/dc.c
3269
stream->gamut_remap_matrix = *update->gamut_remap;
drivers/gpu/drm/amd/display/dc/core/dc.c
3276
stream->output_color_space = *update->output_color_space;
drivers/gpu/drm/amd/display/dc/core/dc.c
3279
stream->csc_color_matrix = *update->output_csc_transform;
drivers/gpu/drm/amd/display/dc/core/dc.c
3282
stream->vrr_infopacket = *update->vrr_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3285
stream->hw_cursor_req = *update->hw_cursor_req;
drivers/gpu/drm/amd/display/dc/core/dc.c
3288
stream->allow_freesync = *update->allow_freesync;
drivers/gpu/drm/amd/display/dc/core/dc.c
3291
stream->vrr_active_variable = *update->vrr_active_variable;
drivers/gpu/drm/amd/display/dc/core/dc.c
3294
stream->vrr_active_fixed = *update->vrr_active_fixed;
drivers/gpu/drm/amd/display/dc/core/dc.c
3297
if (stream->adjust.v_total_min != update->crtc_timing_adjust->v_total_min ||
drivers/gpu/drm/amd/display/dc/core/dc.c
3298
stream->adjust.v_total_max != update->crtc_timing_adjust->v_total_max ||
drivers/gpu/drm/amd/display/dc/core/dc.c
3299
stream->adjust.timing_adjust_pending)
drivers/gpu/drm/amd/display/dc/core/dc.c
3301
stream->adjust = *update->crtc_timing_adjust;
drivers/gpu/drm/amd/display/dc/core/dc.c
3306
stream->dpms_off = *update->dpms_off;
drivers/gpu/drm/amd/display/dc/core/dc.c
3309
stream->hfvsif_infopacket = *update->hfvsif_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3312
stream->vtem_infopacket = *update->vtem_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3315
stream->vsc_infopacket = *update->vsc_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3318
stream->vsp_infopacket = *update->vsp_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3321
stream->adaptive_sync_infopacket = *update->adaptive_sync_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3324
stream->avi_infopacket = *update->avi_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc.c
3327
stream->dither_option = *update->dither_option;
drivers/gpu/drm/amd/display/dc/core/dc.c
3330
stream->test_pattern = *update->pending_test_pattern;
drivers/gpu/drm/amd/display/dc/core/dc.c
3335
stream->num_wb_info = update->wb_update->num_wb_info;
drivers/gpu/drm/amd/display/dc/core/dc.c
3336
ASSERT(stream->num_wb_info <= MAX_DWB_PIPES);
drivers/gpu/drm/amd/display/dc/core/dc.c
3337
for (i = 0; i < stream->num_wb_info; i++)
drivers/gpu/drm/amd/display/dc/core/dc.c
3338
stream->writeback_info[i] =
drivers/gpu/drm/amd/display/dc/core/dc.c
3342
struct dc_dsc_config old_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/core/dc.c
3343
uint32_t old_dsc_enabled = stream->timing.flags.DSC;
drivers/gpu/drm/amd/display/dc/core/dc.c
3351
stream->timing.dsc_cfg = *update->dsc_config;
drivers/gpu/drm/amd/display/dc/core/dc.c
3352
stream->timing.flags.DSC = enable_dsc;
drivers/gpu/drm/amd/display/dc/core/dc.c
3355
stream->timing.dsc_cfg = old_dsc_cfg;
drivers/gpu/drm/amd/display/dc/core/dc.c
3356
stream->timing.flags.DSC = old_dsc_enabled;
drivers/gpu/drm/amd/display/dc/core/dc.c
3367
stream->scaler_sharpener_update = *update->scaler_sharpener_update;
drivers/gpu/drm/amd/display/dc/core/dc.c
3369
stream->sharpening_required = *update->sharpening_required;
drivers/gpu/drm/amd/display/dc/core/dc.c
3372
stream->drr_trigger_mode = *update->drr_trigger_mode;
drivers/gpu/drm/amd/display/dc/core/dc.c
3378
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3381
struct dc_stream_status *status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3389
scratch->stream_state = *stream;
drivers/gpu/drm/amd/display/dc/core/dc.c
3394
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3397
struct dc_stream_status *status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3407
struct kref temp_refcount = stream->refcount;
drivers/gpu/drm/amd/display/dc/core/dc.c
3408
*stream = scratch->stream_state;
drivers/gpu/drm/amd/display/dc/core/dc.c
3409
stream->refcount = temp_refcount;
drivers/gpu/drm/amd/display/dc/core/dc.c
3429
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3431
if (get_seamless_boot_stream_count(context) > 0 && (surface_count > 0 || stream->dpms_off)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3438
if (stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3439
stream->apply_seamless_boot_optimization = false;
drivers/gpu/drm/amd/display/dc/core/dc.c
3452
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3521
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3532
stream_status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3544
if (full_update_required_weak(dc, srf_updates, surface_count, stream_update, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
3553
backup_planes_and_stream_state(&dc->scratch.current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3556
copy_stream_update_to_stream(dc, context, stream, stream_update);
drivers/gpu/drm/amd/display/dc/core/dc.c
3580
uint32_t dsc_changed = stream_update->stream->update_flags.bits.dsc_changed;
drivers/gpu/drm/amd/display/dc/core/dc.c
3581
stream_update->stream->update_flags.raw = 0xFFFFFFFF;
drivers/gpu/drm/amd/display/dc/core/dc.c
3582
stream_update->stream->update_flags.bits.dsc_changed = dsc_changed;
drivers/gpu/drm/amd/display/dc/core/dc.c
3614
if (!dc_state_rem_all_planes_for_stream(dc, stream, context)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3621
if (!dc_state_add_all_planes_for_stream(dc, stream, new_planes, surface_count, context)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3672
update_seamless_boot_flags(dc, context, surface_count, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3677
backup_planes_and_stream_state(&dc->scratch.new_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3689
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3700
if (resource_is_pipe_type(pipe_ctx, OTG_MASTER) && pipe_ctx->stream == stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3705
if ((stream_update->hdr_static_metadata && !stream->use_dynamic_meta) ||
drivers/gpu/drm/amd/display/dc/core/dc.c
3716
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/core/dc.c
3718
pipe_ctx->stream->link,
drivers/gpu/drm/amd/display/dc/core/dc.c
3723
stream->use_dynamic_meta &&
drivers/gpu/drm/amd/display/dc/core/dc.c
3725
pipe_ctx->stream->dmdata_address.quad_part != 0)
drivers/gpu/drm/amd/display/dc/core/dc.c
3729
dc_stream_set_gamut_remap(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3732
dc_stream_program_csc_matrix(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3736
resource_build_bit_depth_reduction_params(pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3737
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/core/dc.c
3739
&stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/core/dc.c
3740
&stream->clamping);
drivers/gpu/drm/amd/display/dc/core/dc.c
3743
&stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/core/dc.c
3744
&stream->clamping);
drivers/gpu/drm/amd/display/dc/core/dc.c
3750
program_cursor_attributes(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3753
program_cursor_position(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
3785
dc->link_srv->dp_set_test_pattern(stream->link,
drivers/gpu/drm/amd/display/dc/core/dc.c
3786
stream->test_pattern.type,
drivers/gpu/drm/amd/display/dc/core/dc.c
3787
stream->test_pattern.color_space,
drivers/gpu/drm/amd/display/dc/core/dc.c
3788
stream->test_pattern.p_link_settings,
drivers/gpu/drm/amd/display/dc/core/dc.c
3789
stream->test_pattern.p_custom_pattern,
drivers/gpu/drm/amd/display/dc/core/dc.c
3790
stream->test_pattern.cust_pattern_size);
drivers/gpu/drm/amd/display/dc/core/dc.c
3808
} else if (pipe_ctx->stream->link->wa_flags.blank_stream_on_ocs_change && stream_update->output_color_space
drivers/gpu/drm/amd/display/dc/core/dc.c
3809
&& !stream->dpms_off && dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
3830
pipe_ctx->stream_res.abm, stream->abm_level);
drivers/gpu/drm/amd/display/dc/core/dc.c
3838
static bool dc_dmub_should_send_dirty_rect_cmd(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3840
if ((stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1
drivers/gpu/drm/amd/display/dc/core/dc.c
3841
|| stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
drivers/gpu/drm/amd/display/dc/core/dc.c
3842
&& stream->ctx->dce_version >= DCN_VERSION_3_1)
drivers/gpu/drm/amd/display/dc/core/dc.c
3845
if (stream->link->replay_settings.config.replay_supported)
drivers/gpu/drm/amd/display/dc/core/dc.c
3848
if (stream->ctx->dce_version >= DCN_VERSION_3_5 && stream->abm_level)
drivers/gpu/drm/amd/display/dc/core/dc.c
3856
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3865
if (!dc_dmub_should_send_dirty_rect_cmd(dc, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
3868
if (!dc->config.frame_update_cmd_version2 && !dc_get_edp_link_panel_inst(dc, stream->link, &panel_inst))
drivers/gpu/drm/amd/display/dc/core/dc.c
3899
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
3915
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
3926
if (!dc_dmub_should_send_dirty_rect_cmd(dc, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
3929
if (!dc->config.frame_update_cmd_version2 && !dc_get_edp_link_panel_inst(dc, stream->link, &panel_inst))
drivers/gpu/drm/amd/display/dc/core/dc.c
3960
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
4004
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4011
build_dmub_update_dirty_rect(dc, surface_count, stream, srf_updates, context, dc_dmub_cmd, dmub_cmd_count);
drivers/gpu/drm/amd/display/dc/core/dc.c
4017
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4023
dc_dmub_update_dirty_rect(dc, surface_count, stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4033
if (!should_update_pipe_for_stream(context, pipe_ctx, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
4048
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4056
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4096
stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
4104
if (pipe->stream && pipe->plane_state) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4134
stream_status = dc_state_get_stream_status(context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
4140
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4146
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4168
if (top_pipe_to_program->stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
4169
top_pipe_to_program->stream->update_flags.raw = 0;
drivers/gpu/drm/amd/display/dc/core/dc.c
4175
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4205
if (pipe->stream && pipe->plane_state) {
drivers/gpu/drm/amd/display/dc/core/dc.c
421
static bool set_long_vtotal(struct dc *dc, struct dc_stream_state *stream, struct dc_crtc_timing_adjust *adjust)
drivers/gpu/drm/amd/display/dc/core/dc.c
423
if (!dc || !stream || !adjust)
drivers/gpu/drm/amd/display/dc/core/dc.c
4231
stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
4252
if (stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4261
if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
drivers/gpu/drm/amd/display/dc/core/dc.c
4264
if (should_use_dmub_inbox1_lock(dc, stream->link)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4309
dc_dmub_update_dirty_rect(dc, surface_count, stream, srf_updates, context);
drivers/gpu/drm/amd/display/dc/core/dc.c
4313
commit_planes_do_stream_update(dc, stream, stream_update, update_type, context);
drivers/gpu/drm/amd/display/dc/core/dc.c
4321
dc->hwss.apply_ctx_for_surface(dc, stream, 0, context);
drivers/gpu/drm/amd/display/dc/core/dc.c
434
if (pipe->stream == stream && pipe->stream_res.tg) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4354
pipe_ctx->stream && pipe_ctx->plane_state) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4396
should_update_pipe_for_stream(context, pipe_ctx, stream)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4407
stream_get_status(context, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
4411
dc, pipe_ctx->stream, stream_status->plane_count, context);
drivers/gpu/drm/amd/display/dc/core/dc.c
4448
if (cur_pipe->stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc.c
4469
if (!should_update_pipe_for_stream(context, pipe_ctx, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
4488
if (!should_update_pipe_for_stream(context, pipe_ctx, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
4520
if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
drivers/gpu/drm/amd/display/dc/core/dc.c
4533
if (should_use_dmub_inbox1_lock(dc, stream->link)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4598
!pipe_ctx->stream || !should_update_pipe_for_stream(context, pipe_ctx, stream) ||
drivers/gpu/drm/amd/display/dc/core/dc.c
460
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4637
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4643
struct dc_stream_status *cur_stream_status = stream_get_status(dc->current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
471
(stream->adjust.v_total_max != adjust->v_total_max ||
drivers/gpu/drm/amd/display/dc/core/dc.c
472
stream->adjust.v_total_min != adjust->v_total_min)) {
drivers/gpu/drm/amd/display/dc/core/dc.c
473
stream->adjust.timing_adjust_pending = true;
drivers/gpu/drm/amd/display/dc/core/dc.c
4773
struct dc_state *new_context, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
4794
if (pipe_ctx->plane_state && pipe_ctx->stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
480
stream->adjust.v_total_max = adjust->v_total_max;
drivers/gpu/drm/amd/display/dc/core/dc.c
4800
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4803
struct dc_stream_status *status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
481
stream->adjust.v_total_mid = adjust->v_total_mid;
drivers/gpu/drm/amd/display/dc/core/dc.c
4817
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
482
stream->adjust.v_total_mid_frame_num = adjust->v_total_mid_frame_num;
drivers/gpu/drm/amd/display/dc/core/dc.c
483
stream->adjust.v_total_min = adjust->v_total_min;
drivers/gpu/drm/amd/display/dc/core/dc.c
4836
surface_count, stream, stream_update,
drivers/gpu/drm/amd/display/dc/core/dc.c
4839
dc, intermediate_context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
484
stream->adjust.allow_otg_v_count_halt = adjust->allow_otg_v_count_halt;
drivers/gpu/drm/amd/display/dc/core/dc.c
4850
struct dc_state *new_context, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
4870
restore_planes_and_stream_state(&dc->scratch.current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
488
stream->adjust.timing_adjust_pending = false;
drivers/gpu/drm/amd/display/dc/core/dc.c
4883
stream, srf_updates);
drivers/gpu/drm/amd/display/dc/core/dc.c
4885
surface_count, stream, NULL,
drivers/gpu/drm/amd/display/dc/core/dc.c
4888
dc, intermediate_context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
490
return set_long_vtotal(dc, stream, adjust);
drivers/gpu/drm/amd/display/dc/core/dc.c
4900
restore_planes_and_stream_state(&dc->scratch.new_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
4925
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
4930
dc, new_context, stream, NULL,
drivers/gpu/drm/amd/display/dc/core/dc.c
4934
new_context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
498
if (pipe->stream == stream && pipe->stream_res.tg) {
drivers/gpu/drm/amd/display/dc/core/dc.c
4983
if (pipe->stream && dc_state_get_pipe_subvp_type(dc->current_state, pipe) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/core/dc.c
502
stream->adjust.timing_adjust_pending = false;
drivers/gpu/drm/amd/display/dc/core/dc.c
505
dc->hwss.notify_cursor_offload_drr_update(dc, dc->current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5115
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
5123
if (stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
5124
const struct dc_stream_status *stream_status = dc_stream_get_status_const(stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5142
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
5144
if (full_update_required_weak(dc, srf_updates, surface_count, stream_update, stream))
drivers/gpu/drm/amd/display/dc/core/dc.c
5208
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
5211
&& !full_update_required(dc, srf_updates, surface_count, stream_update, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5216
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5233
surface_count, stream_update, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5236
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5250
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5268
commit_minimal_transition_state_in_dc_update(dc, context, stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5275
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
528
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5291
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5297
swap_and_release_current_context(dc, context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5303
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5313
stream_update, stream) &&
drivers/gpu/drm/amd/display/dc/core/dc.c
5318
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5327
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5335
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5366
if (commit_minimal_transition_based_on_new_context(dc, new_context, stream, stream_update,
drivers/gpu/drm/amd/display/dc/core/dc.c
5379
commit_minimal_transition_based_on_current_context(dc, new_context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5382
commit_minimal_transition_state_in_dc_update(dc, new_context, stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5394
commit_planes_for_stream(dc, srf_updates, surface_count, stream, stream_update, update_type, new_context);
drivers/gpu/drm/amd/display/dc/core/dc.c
5395
swap_and_release_current_context(dc, new_context, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
540
if (pipe->stream == stream && pipe->stream_res.tg) {
drivers/gpu/drm/amd/display/dc/core/dc.c
5401
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5418
stream, stream_update, &update_type,
drivers/gpu/drm/amd/display/dc/core/dc.c
5424
srf_updates, surface_count, stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5431
srf_updates, surface_count, stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5439
int surface_count, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
5443
if (stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
5444
stream->update_flags.raw = 0;
drivers/gpu/drm/amd/display/dc/core/dc.c
5453
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5460
stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5478
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
5492
stream, stream_update);
drivers/gpu/drm/amd/display/dc/core/dc.c
5495
stream, stream_update);
drivers/gpu/drm/amd/display/dc/core/dc.c
5499
clear_update_flags(srf_updates, surface_count, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
5627
struct dc_stream_state *stream = dc->current_state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc.c
5629
link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
5657
struct dc_stream_state *stream = dc->current_state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc.c
5659
link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
5796
if (pipe->stream != NULL) {
drivers/gpu/drm/amd/display/dc/core/dc.c
5816
if (pipe->stream != NULL) {
drivers/gpu/drm/amd/display/dc/core/dc.c
593
dc_stream_forward_crc_window(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
601
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc.c
605
if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe)
drivers/gpu/drm/amd/display/dc/core/dc.c
6066
res_ctx->pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/core/dc.c
6067
res_ctx->pipe_ctx[i].stream->link &&
drivers/gpu/drm/amd/display/dc/core/dc.c
6068
res_ctx->pipe_ctx[i].stream->link == link &&
drivers/gpu/drm/amd/display/dc/core/dc.c
6069
res_ctx->pipe_ctx[i].stream->link->connector_signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6329
void dc_notify_vsync_int_state(struct dc *dc, struct dc_stream_state *stream, bool enable)
drivers/gpu/drm/amd/display/dc/core/dc.c
6334
struct dc_link *link = stream->sink->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
6348
if (pipe->stream == stream && pipe->stream_res.tg)
drivers/gpu/drm/amd/display/dc/core/dc.c
6383
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
6389
struct dc_link *link = stream->sink->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
6399
if (pipe->stream == stream && pipe->stream_res.tg)
drivers/gpu/drm/amd/display/dc/core/dc.c
660
dc_stream_forward_multiple_crc_window(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
6616
if (res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
6625
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
667
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc.c
671
if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe)
drivers/gpu/drm/amd/display/dc/core/dc.c
6770
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
6810
if (pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6813
state->dccg.pixclk_khz[i] = pipe_ctx->stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/core/dc.c
6817
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||
drivers/gpu/drm/amd/display/dc/core/dc.c
6818
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6837
if (pipe_ctx && pipe_ctx->stream && pipe_ctx->stream->timing.dsc_cfg.num_slices_h > 0) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6855
if (pipe_ctx->stream && pipe_ctx->stream->timing.dsc_cfg.num_slices_h > 0) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6860
struct dc_dsc_config *dsc_cfg = &pipe_ctx->stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/core/dc.c
6883
if (pipe_ctx->plane_state && pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
6951
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
6955
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/core/dc.c
6961
if (pipe_ctx->stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE) {
drivers/gpu/drm/amd/display/dc/core/dc.c
7069
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
7073
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/core/dc.c
711
bool dc_stream_configure_crc(struct dc *dc, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
7198
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/core/dc.c
720
&dc->current_state->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7227
scratch->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
7245
clear_update_flags(scratch->surface_updates, scratch->surface_count, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7289
scratch->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
731
param.windowa_x_end = pipe->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/core/dc.c
7315
scratch->stream
drivers/gpu/drm/amd/display/dc/core/dc.c
732
param.windowa_y_end = pipe->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/core/dc.c
735
param.windowb_x_end = pipe->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/core/dc.c
736
param.windowb_y_end = pipe->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/core/dc.c
7360
restore_planes_and_stream_state(&scratch->dc->scratch.current_state, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7371
scratch->stream, scratch->intermediate_updates
drivers/gpu/drm/amd/display/dc/core/dc.c
7381
restore_planes_and_stream_state(&scratch->dc->scratch.new_state, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7396
scratch->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
7414
scratch->stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
7459
swap_and_release_current_context(scratch->dc, scratch->intermediate_context, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7476
swap_and_release_current_context(scratch->dc, scratch->new_context, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7492
restore_planes_and_stream_state(&scratch->dc->scratch.new_state, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
750
param.dsc_mode = pipe->stream->timing.flags.DSC ? 1:0;
drivers/gpu/drm/amd/display/dc/core/dc.c
7502
clear_update_flags(scratch->surface_updates, scratch->surface_count, scratch->stream);
drivers/gpu/drm/amd/display/dc/core/dc.c
7511
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
7516
struct dc_update_scratch_space *scratch = stream->update_scratch;
drivers/gpu/drm/amd/display/dc/core/dc.c
7522
.stream = stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
785
bool dc_stream_get_crc(struct dc *dc, struct dc_stream_state *stream, uint8_t idx,
drivers/gpu/drm/amd/display/dc/core/dc.c
796
if (pipe->stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
811
void dc_stream_set_dyn_expansion(struct dc *dc, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
821
if (dc->current_state->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/core/dc.c
822
== stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
828
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/core/dc.c
829
stream->signal);
drivers/gpu/drm/amd/display/dc/core/dc.c
834
void dc_stream_set_dither_option(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc.c
838
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc.c
843
if (link->dc->current_state->res_ctx.pipe_ctx[i].stream ==
drivers/gpu/drm/amd/display/dc/core/dc.c
844
stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
855
dc_exit_ips_for_hw_access(stream->ctx->dc);
drivers/gpu/drm/amd/display/dc/core/dc.c
857
stream->dither_option = option;
drivers/gpu/drm/amd/display/dc/core/dc.c
860
resource_build_bit_depth_reduction_params(stream, &params);
drivers/gpu/drm/amd/display/dc/core/dc.c
861
stream->bit_depth_params = params;
drivers/gpu/drm/amd/display/dc/core/dc.c
868
&stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/core/dc.c
875
bool dc_stream_set_gamut_remap(struct dc *dc, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
884
if (dc->current_state->res_ctx.pipe_ctx[i].stream == stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
894
bool dc_stream_program_csc_matrix(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc.c
903
if (dc->current_state->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/core/dc.c
904
== stream) {
drivers/gpu/drm/amd/display/dc/core/dc.c
909
stream->output_color_space,
drivers/gpu/drm/amd/display/dc/core/dc.c
910
stream->csc_color_matrix.matrix,
drivers/gpu/drm/amd/display/dc/core/dc.c
931
struct dc_stream_state *stream = streams[i];
drivers/gpu/drm/amd/display/dc/core/dc.c
934
if (dc->current_state->res_ctx.pipe_ctx[j].stream
drivers/gpu/drm/amd/display/dc/core/dc.c
935
== stream) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
1451
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
1456
seq_state->steps[*seq_state->num_steps].params.set_output_transfer_func_params.stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2170
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2326
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2337
dsc_cfg.pic_width = (stream->timing.h_addressable + top_pipe->dsc_padding_params.dsc_hactive_padding +
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2338
stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2339
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2340
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2341
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2343
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
2465
resource_build_bit_depth_reduction_params(pipe_ctx->stream, &bit_depth_params);
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
404
if (top_pipe_ctx->stream->out_transfer_func.tf == TRANSFER_FUNCTION_PQ) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
407
} else if (top_pipe_ctx->stream->out_transfer_func.tf == TRANSFER_FUNCTION_GAMMA22) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
415
if (top_pipe_ctx->stream->out_transfer_func.tf == TRANSFER_FUNCTION_PQ) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
418
} else if (top_pipe_ctx->stream->out_transfer_func.tf == TRANSFER_FUNCTION_GAMMA22) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
471
if (pipe_ctx && pipe_ctx->stream && pipe_ctx->stream->link) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
472
if (pipe_ctx->stream->link->connector_signal == SIGNAL_TYPE_EDP)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
473
edp_link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
579
if (pipe_ctx->stream && pipe_ctx->stream->cursor_position.enable) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
671
if (pipe->stream && dc_state_get_paired_subvp_stream(context, pipe->stream) &&
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
677
if (pipe_ctx->stream == pipe->stream)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
684
if (pipe_ctx->stream->allow_freesync == 1) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
697
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
706
if (stream)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
707
stream->adjust.timing_adjust_pending = false;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
740
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
749
if (!plane || !stream)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
768
dmub_hw_lock_mgr_does_link_require_lock(dc, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
850
if (hws->funcs.set_output_transfer_func && current_mpc_pipe->stream->update_flags.bits.out_tf) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
853
block_sequence[*num_steps].params.set_output_transfer_func_params.stream = current_mpc_pipe->stream;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
865
if (current_mpc_pipe->stream->update_flags.bits.out_csc) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
872
if (current_mpc_pipe->stream->csc_color_matrix.enable_adjustment == true) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
875
block_sequence[*num_steps].params.set_output_csc_params.regval = current_mpc_pipe->stream->csc_color_matrix.matrix;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
882
block_sequence[*num_steps].params.set_ocsc_default_params.color_space = current_mpc_pipe->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
922
current_mpc_pipe->stream && current_mpc_pipe->plane_state &&
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
996
params->set_output_transfer_func_params.stream);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
104
if (assignment.valid && assignment.stream == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
112
stream->link_enc = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
114
state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
115
dc_stream_release(stream);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
124
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
137
if (stream == state->streams[i]) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
141
.link_id = stream->link->link_id,
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
142
.ep_type = stream->link->ep_type},
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
144
.stream = stream};
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
145
dc_stream_retain(stream);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
147
stream->link_enc = stream->ctx->dc->res_pool->link_encoders[eng_idx];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
187
static bool is_avail_link_enc(struct dc_state *state, enum engine_id eng_id, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
204
if (stream_assigned && stream != stream_assigned && stream->link == stream_assigned->link)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
256
if (state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].stream != NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
257
dc_stream_release(state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].stream);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
258
state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
308
struct dc_stream_state *stream = streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
311
if (stream->link->is_dig_mapping_flexible)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
315
if (!is_dig_link_enc_stream(stream))
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
319
eng_id = stream->link->eng_id;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
32
static bool is_dig_link_enc_stream(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
320
add_link_enc_assignment(state, stream, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
330
struct dc_stream_state *stream = state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
333
if (!stream->link->is_dig_mapping_flexible)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
337
if (!is_dig_link_enc_stream(stream))
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
343
if (stream == prev_stream && stream->link == prev_stream->link &&
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
347
if (is_avail_link_enc(state, eng_id, stream))
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
348
add_link_enc_assignment(state, stream, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
358
struct dc_stream_state *stream = streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
362
if (!stream->link->is_dig_mapping_flexible)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
366
if (stream->link_enc)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
370
if (!is_dig_link_enc_stream(stream)) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
371
ASSERT(stream->link->is_dig_mapping_flexible != true);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
381
link_enc = get_link_enc_used_by_link(state, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
384
if (stream->link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA &&
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
385
stream->link->dpia_preferred_eng_id != ENGINE_ID_UNKNOWN)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
386
eng_id_req = stream->link->dpia_preferred_eng_id;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
388
eng_id = find_first_avail_link_enc(stream->ctx, state, eng_id_req);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
39
if (stream) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
393
add_link_enc_assignment(state, stream, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
40
for (i = 0; i < stream->ctx->dc->res_pool->res_cap->num_dig_link_enc; i++) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
41
link_enc = stream->ctx->dc->res_pool->link_encoders[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
438
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
442
if (stream->link_enc)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
443
eng_id = stream->link_enc->preferred_engine;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
445
remove_link_enc_assignment(state, stream, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
454
struct dc_stream_state *stream = link_enc_cfg_get_stream_using_link_enc(dc, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
456
if (stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
457
is_mappable = stream->link->is_dig_mapping_flexible;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
46
if (link_enc && ((uint32_t)stream->link->connector_signal & link_enc->output_signals)) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
466
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
473
stream = assignment.stream;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
478
return stream;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
486
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
488
stream = link_enc_cfg_get_stream_using_link_enc(dc, eng_id);
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
490
if (stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
491
link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
572
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
579
.link_id = stream->link->link_id,
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
580
.ep_type = stream->link->ep_type};
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
590
link_enc = stream->link->dc->res_pool->link_encoders[assignment.eng_id - ENGINE_ID_DIGA];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
652
if (assignment.stream != state->streams[i])
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
706
struct dc_stream_state *stream = state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
708
if (is_dig_link_enc_stream(stream) && stream->link_enc == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
72
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
79
stream = state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
84
return stream;
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c
89
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c
149
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c
476
const struct dc_stream_state *stream, struct psr_config *psr_config,
drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c
479
return link->dc->link_srv->edp_setup_psr(link, stream, psr_config, psr_context);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1156
&pipe_ctx->stream->dst);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1183
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1185
const int in_w = stream->src.width;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1186
const int in_h = stream->src.height;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1187
const int out_w = stream->dst.width;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1188
const int out_h = stream->dst.height;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1202
if (stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1204
else if (stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1459
enum dc_color_depth color_depth = otg_master->stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1464
otg_master->stream->test_pattern.type);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1466
otg_master->stream->test_pattern.color_space);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1488
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1493
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1510
pipe_ctx->stream->dst.x += timing->h_border_left;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1511
pipe_ctx->stream->dst.y += timing->v_border_top;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1520
if ((pipe_ctx->stream->ctx->dc->config.use_spl) && (!pipe_ctx->stream->ctx->dc->debug.disable_spl)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1634
(pipe_ctx->stream->view_format != VIEW_3D_FORMAT_TOP_AND_BOTTOM &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1635
pipe_ctx->stream->view_format != VIEW_3D_FORMAT_SIDE_BY_SIDE));
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1636
if (pipe_ctx->stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1638
else if (pipe_ctx->stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1677
pipe_ctx->stream->dst.x -= timing->h_border_left;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1678
pipe_ctx->stream->dst.y -= timing->v_border_top;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1748
context->res_ctx.pipe_ctx[i].stream != NULL)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1794
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1806
if (res_ctx->pipe_ctx[i].stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1982
pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1984
return !pipe_ctx->top_pipe && pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1986
return pipe_ctx->plane_state && pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1988
return !pipe_ctx->plane_state && !pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
1996
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2001
if (res_ctx->pipe_ctx[i].stream == stream &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2013
struct dc *dc = otg_master->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2185
if (!otg_master || !otg_master->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2188
timing = &otg_master->stream->timing;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2216
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2226
odm_slice_dst.height = stream->timing.v_addressable +
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2227
stream->timing.v_border_bottom +
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2228
stream->timing.v_border_top;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2247
opp, pipe_ctx->stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2271
if (pipe_a->stream && !pipe_b->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2273
else if (!pipe_a->stream && pipe_b->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2458
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2463
if (state->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2564
if (pipe->stream == otg_master->stream && pipe->plane_state)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2596
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2621
split_pipe->stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2710
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2714
enc_index = find_acquired_hpo_dp_link_enc_for_link(res_ctx, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2721
acquire_hpo_dp_link_enc(res_ctx, stream->link->link_index, enc_index);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2732
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2736
enc_index = find_acquired_hpo_dp_link_enc_for_link(res_ctx, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2765
const struct dc_link *link, const struct resource_pool *pool, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2772
if (stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2774
if ((res_ctx->pipe_ctx[i].stream == stream) &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2856
struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2857
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2868
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2873
enc_index = find_acquired_dio_link_enc_for_link(res_ctx, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2878
if (stream->link->is_dig_mapping_flexible)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2879
enc_index = find_free_dio_link_enc(res_ctx, stream->link, pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2883
enc_index = find_fixed_dio_link_enc(stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2888
if (enc_index >= 0 && is_dio_enc_acquired_by_other_link(stream->link, enc_index, &link_index)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2889
int new_enc_index = find_free_dio_link_enc(res_ctx, dc->links[link_index], pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2899
acquire_dio_link_enc(res_ctx, stream->link->link_index, enc_index);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2910
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2914
if (stream->link)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2915
enc_index = find_acquired_dio_link_enc_for_link(res_ctx, stream->link);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2936
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2938
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2940
return dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2945
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2948
&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2962
if (stream->ctx->dc->link_srv->dp_is_128b_132b_signal(otg_master)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2968
&context->res_ctx, otg_master, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2971
if (stream->ctx->dc->config.unify_link_enc_assignment)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2972
remove_dio_link_enc_from_ctx(&context->res_ctx, otg_master, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
2987
stream->ctx->dc, context, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3438
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3443
&new_ctx->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3550
struct dc_stream_state *old_stream, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3552
if (!old_stream || !stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3555
if (!are_stream_backends_same(old_stream, stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3558
if (old_stream->ignore_msa_timing_param != stream->ignore_msa_timing_param)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3562
if (memcmp(&old_stream->audio_info, &stream->audio_info, sizeof(stream->audio_info)) != 0)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3572
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3574
if (old_stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3577
if (old_stream == NULL || stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3581
&stream->src,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3586
&stream->dst,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3610
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3715
static void calculate_phy_pix_clks(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3718
if (dc_is_hdmi_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3719
stream->phy_pix_clk = get_norm_pix_clk(
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3720
&stream->timing) / 10;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3722
stream->phy_pix_clk =
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3723
stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3725
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3726
stream->phy_pix_clk *= 2;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3732
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3734
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3763
if (!res_ctx->pipe_ctx[tg_inst].stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3822
pipe_ctx->stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3826
stream->apply_boot_odm_mode = dm_odm_combine_policy_2to1;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3832
stream->apply_boot_odm_mode = dm_odm_combine_mode_disabled;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3841
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3847
if (stream->apply_seamless_boot_optimization)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3853
if (dc_validate_boot_timing(dc, stream->sink, &stream->timing)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3854
stream->apply_seamless_boot_optimization = true;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3879
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3947
pipe_ctx->stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3949
pipe_idx = acquire_first_split_pipe(&new_ctx->res_ctx, pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3958
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3968
calculate_phy_pix_clks(stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3970
mark_seamless_boot_stream(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3972
if (stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3976
stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3979
stream->apply_seamless_boot_optimization = false;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3987
context, pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3989
pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
3996
&context->res_ctx, pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4009
if (dc_is_dp_signal(stream->signal) ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4010
dc_is_virtual_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4011
if (!dc->link_srv->dp_decide_link_settings(stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4015
dc->link_srv->dp_decide_tunnel_settings(stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4022
&context->res_ctx, pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4031
if (!add_hpo_dp_link_enc_to_ctx(&context->res_ctx, pool, pipe_ctx, stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4037
if (!add_dio_link_enc_to_ctx(dc, context, pool, pipe_ctx, stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4041
if (!stream->converter_disable_audio &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4042
dc_is_audio_capable_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4043
stream->audio_info.mode_count &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4044
(stream->audio_info.flags.all ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4045
(stream->sink && stream->sink->edid_caps.panel_patch.skip_audio_sab_check))) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4060
if (pipe_ctx->stream && dc_is_embedded_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4068
if (context->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4077
DC_ERROR("Stream %p not found in new ctx!\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4090
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4098
if (context->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4110
if (set[i].stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4128
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4136
if (set[i].stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4140
dm_error("Stream %p not found in set!\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4145
if (!dc_state_add_plane(dc, stream, set[i].plane_states[j], state))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4190
struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4193
if (stream == set[j].stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4200
del_streams[del_streams_count++] = stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4207
struct dc_stream_state *stream = set[i].stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4210
if (stream == context->streams[j]) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4217
add_streams[add_streams_count++] = stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4228
if (set[i].stream == del_streams[j]) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4237
if (set[i].stream == add_streams[j]) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4245
unchanged_streams[unchanged_streams_count++] = set[i].stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4379
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4384
stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4388
if (stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4389
pipe_ctx->dsc_padding_params.dsc_pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4423
struct dc_stream_state *stream = new_ctx->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4428
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4447
if (dc_is_dp_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4448
!find_pll_sharable_stream(stream, new_ctx)) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4495
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4503
unsigned int vic = pipe_ctx->stream->timing.vic;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4504
unsigned int rid = pipe_ctx->stream->timing.rid;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4505
unsigned int fr_ind = pipe_ctx->stream->timing.fr_index;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4508
if (stream->avi_infopacket.valid) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4509
*info_packet = stream->avi_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4516
color_space = pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4518
color_space = (stream->timing.pixel_encoding == PIXEL_ENCODING_RGB) ?
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4533
switch (stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4594
stream->out_transfer_func.tf == TRANSFER_FUNCTION_GAMMA22) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4600
aspect = stream->timing.aspect_ratio;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4618
switch (stream->content_type) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4641
if (stream->qs_bit == 1) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4658
if (pipe_ctx->stream->timing.hdmi_vic != 0)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4660
format = stream->timing.timing_3d_format;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4664
switch (pipe_ctx->stream->timing.hdmi_vic) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4713
hdmi_info.bits.bar_top = stream->timing.v_border_top;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4714
hdmi_info.bits.bar_bottom = (stream->timing.v_total
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4715
- stream->timing.v_border_bottom + 1);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4716
hdmi_info.bits.bar_left = stream->timing.h_border_left;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4717
hdmi_info.bits.bar_right = (stream->timing.h_total
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4718
- stream->timing.h_border_right + 1);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4751
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4758
if (!stream->vsp_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4761
*info_packet = stream->vsp_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4766
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4773
if (!stream->vrr_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4776
*info_packet = stream->vrr_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4781
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4785
if (!stream->hdr_static_metadata.valid ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4786
stream->use_dynamic_meta)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4789
*info_packet = stream->hdr_static_metadata;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4794
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4796
if (!stream->vsc_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4799
*info_packet = stream->vsc_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4803
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4805
if (!stream->hfvsif_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4808
*info_packet = stream->hfvsif_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4841
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4845
if (!stream->adaptive_sync_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4849
&stream->timing,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4853
*info_packet = stream->adaptive_sync_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4858
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4860
if (!stream->vtem_infopacket.valid)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4863
*info_packet = stream->vtem_infopacket;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4896
signal = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4898
if (pipe_ctx->stream->ctx->dc->res_pool->funcs->get_vstartup_for_pipe)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4899
vstartup_start = pipe_ctx->stream->ctx->dc->res_pool->funcs->get_vstartup_for_pipe(pipe_ctx);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4905
set_vendor_info_packet(&info->vendor, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4906
set_hfvs_info_packet(&info->hfvsif, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4907
set_vtem_info_packet(&info->vtem, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4909
set_spd_info_packet(&info->spd, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4911
set_hdr_static_info_packet(&info->hdrsmd, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4914
set_vsc_info_packet(&info->vsc, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4916
set_spd_info_packet(&info->spd, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4918
set_hdr_static_info_packet(&info->hdrsmd, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4920
pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4931
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4936
&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4941
if (dc_is_dp_signal(pipe_ctx->stream->signal)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4942
|| pipe_ctx->stream->signal == SIGNAL_TYPE_VIRTUAL)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4978
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4981
if (pipe_ctx_old->stream->sink != pipe_ctx->stream->sink)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4984
if (pipe_ctx_old->stream->signal != pipe_ctx->stream->signal)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4991
&& pipe_ctx_old->stream != pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
4997
if (dc_is_timing_changed(pipe_ctx_old->stream, pipe_ctx->stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5000
if (pipe_ctx_old->stream->dpms_off != pipe_ctx->stream->dpms_off)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5003
if (false == pipe_ctx_old->stream->link->link_state_valid &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5004
false == pipe_ctx_old->stream->dpms_off)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5016
if (pipe_ctx_old->stream->ctx->dc->config.unify_link_enc_assignment) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5019
} else if (pipe_ctx_old->stream->ctx->dc->res_pool->funcs->link_encs_assign) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5021
struct dc *dc = pipe_ctx_old->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5023
link_enc_cfg_get_link_enc_used_by_stream_current(dc, pipe_ctx_old->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5025
if (link_enc_prev != pipe_ctx->stream->link_enc)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5034
void resource_build_bit_depth_reduction_params(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5037
enum dc_dither_option option = stream->dither_option;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5039
stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5044
switch (stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5162
enum dc_status dc_validate_stream(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5164
if (dc == NULL || stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5167
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5171
calculate_phy_pix_clks(stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5173
if (!tg->funcs->validate_timing(tg, &stream->timing))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5179
link->link_enc, stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5186
res = dc->link_srv->validate_mode_timing(stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5188
&stream->timing);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5364
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5496
bool is_h_timing_divisible_by_2(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5502
if (stream) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5503
h_blank_start = stream->timing.h_total - stream->timing.h_front_porch;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5504
h_blank_end = h_blank_start - stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5510
divisible = (stream->timing.h_total % 2 == 0) &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5513
(stream->timing.h_sync_width % 2 == 0);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5567
if (sec_pipe->stream->timing.flags.DSC == 1) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5576
dcn20_build_mapped_resource(dc, state, sec_pipe->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5591
&context->res_ctx, dc->res_pool, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5603
if (!add_hpo_dp_link_enc_to_ctx(&context->res_ctx, dc->res_pool, pipe_ctx, pipe_ctx->stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5615
remove_hpo_dp_link_enc_from_ctx(&context->res_ctx, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5619
if (!add_dio_link_enc_to_ctx(dc, context, dc->res_pool, pipe_ctx, pipe_ctx->stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
5685
if (!otg_master->stream)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
707
if (pipe_with_clk_src->stream->signal == SIGNAL_TYPE_VIRTUAL)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
710
if (dc_is_dp_signal(pipe_with_clk_src->stream->signal) ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
711
(dc_is_dp_signal(pipe->stream->signal) &&
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
712
!is_dp_and_hdmi_sharable(pipe_with_clk_src->stream,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
713
pipe->stream)))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
716
if (dc_is_hdmi_signal(pipe_with_clk_src->stream->signal)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
717
&& dc_is_dual_link_signal(pipe->stream->signal))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
720
if (dc_is_hdmi_signal(pipe->stream->signal)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
721
&& dc_is_dual_link_signal(pipe_with_clk_src->stream->signal))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
725
pipe_with_clk_src->stream, pipe->stream))
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
916
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
920
temp = dc_fixpt_from_fraction(rec_in->x * (long long)stream->dst.width,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
921
stream->src.width);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
922
rec_out.x = stream->dst.x + dc_fixpt_round(temp);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
925
(rec_in->x + rec_in->width) * (long long)stream->dst.width,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
926
stream->src.width);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
927
rec_out.width = stream->dst.x + dc_fixpt_round(temp) - rec_out.x;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
929
temp = dc_fixpt_from_fraction(rec_in->y * (long long)stream->dst.height,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
930
stream->src.height);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
931
rec_out.y = stream->dst.y + dc_fixpt_round(temp);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
934
(rec_in->y + rec_in->height) * (long long)stream->dst.height,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
935
stream->src.height);
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
936
rec_out.height = stream->dst.y + dc_fixpt_round(temp) - rec_out.y;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
945
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
956
stream->view_format != VIEW_3D_FORMAT_SIDE_BY_SIDE ||
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
959
if (stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
970
if (stream->view_format == VIEW_3D_FORMAT_TOP_AND_BOTTOM) {
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
980
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
987
*dpp_offset = pipe_ctx->stream->timing.v_addressable / VISUAL_CONFIRM_DPP_OFFSET_DENO;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1000
bool dc_state_get_stream_subvp_cursor_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1007
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1016
void dc_state_set_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1022
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1029
bool dc_state_get_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1036
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1045
bool dc_state_can_clear_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1052
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1055
can_clear_limit = dc_state_get_stream_cursor_subvp_limit(stream, state) &&
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1057
stream->hw_cursor_req ||
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1059
!stream->cursor_position.enable ||
drivers/gpu/drm/amd/display/dc/core/dc_state.c
1060
dc_stream_check_cursor_attributes(stream, state, &stream->cursor_attributes));
drivers/gpu/drm/amd/display/dc/core/dc_state.c
375
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
382
DC_LOG_WARNING("Max streams reached, can't add stream %p !\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
386
state->streams[state->stream_count] = stream;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
387
dc_stream_retain(stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
391
state, dc->res_pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
393
DC_LOG_WARNING("Adding stream %p to context failed with err %d!\n", stream, res);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
404
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
408
&state->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
411
dm_error("Pipe not found for stream %p !\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
416
dc->current_state, dc->res_pool, stream, 1);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
418
state, dc->res_pool, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
421
if (state->streams[i] == stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
424
if (state->streams[i] != stream) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
425
dm_error("Context doesn't have stream %p !\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
429
dc_stream_release_3dlut_for_stream(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
464
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
475
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
477
&state->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
508
dc->current_state, dc->res_pool, stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
532
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
544
if (state->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
593
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
601
if (state->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
607
dm_error("Existing stream %p not found!\n", stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
617
if (!dc_state_remove_plane(dc, stream, del_planes[i], state))
drivers/gpu/drm/amd/display/dc/core/dc_state.c
625
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
634
if (!dc_state_add_plane(dc, stream, plane_states[i], state)) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
654
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
662
if (stream == state->streams[i])
drivers/gpu/drm/amd/display/dc/core/dc_state.c
672
return dc_state_get_stream_subvp_type(state, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/core/dc_state.c
676
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
683
if (state->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
693
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_state.c
700
if (state->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
926
if (pipe->plane_state && pipe->stream && dc_state_get_pipe_subvp_type(state, pipe) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/core/dc_state.c
927
phantom_stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
959
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
964
stream = state->streams[i];
drivers/gpu/drm/amd/display/dc/core/dc_state.c
969
return stream;
drivers/gpu/drm/amd/display/dc/core/dc_state.c
987
void dc_state_set_stream_subvp_cursor_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_state.c
993
stream_status = dc_state_get_stream_status(state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1006
static int dc_stream_get_nearest_smallest_index(struct dc_stream_state *stream, int refresh)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1009
if ((stream->lumin_data.refresh_rate_hz[i] <= refresh) && (refresh < stream->lumin_data.refresh_rate_hz[i + 1])) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1019
static int dc_stream_get_brightness_millinits_linear_interpolation (struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
102
stream->audio_info.port_id[0] = dc_container_id->portId[0];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1025
if (stream->lumin_data.refresh_rate_hz[index2] != stream->lumin_data.refresh_rate_hz[index1]) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1026
slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[index1]) /
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1027
(stream->lumin_data.refresh_rate_hz[index2] - stream->lumin_data.refresh_rate_hz[index1]);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
103
stream->audio_info.port_id[1] = dc_container_id->portId[1];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1030
int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refresh_rate_hz[index2];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1038
static int dc_stream_get_refresh_hz_linear_interpolation (struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1044
if (stream->lumin_data.refresh_rate_hz[index2] != stream->lumin_data.refresh_rate_hz[index1]) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1045
slope = (stream->lumin_data.luminance_millinits[index2] - stream->lumin_data.luminance_millinits[index1]) /
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1046
(stream->lumin_data.refresh_rate_hz[index2] - stream->lumin_data.refresh_rate_hz[index1]);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1049
int y_intercept = stream->lumin_data.luminance_millinits[index2] - slope * stream->lumin_data.refresh_rate_hz[index2];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1057
static int dc_stream_get_brightness_millinits_from_refresh (struct dc_stream_state *stream, int refresh_hz)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1059
int nearest_smallest_index = dc_stream_get_nearest_smallest_index(stream, refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1060
int nearest_smallest_value = stream->lumin_data.refresh_rate_hz[nearest_smallest_index];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1063
return stream->lumin_data.luminance_millinits[nearest_smallest_index];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1066
return dc_stream_get_brightness_millinits_linear_interpolation(stream, nearest_smallest_index - 1, nearest_smallest_index, refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1068
if (nearest_smallest_value == stream->lumin_data.refresh_rate_hz[nearest_smallest_index + 1])
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1069
return stream->lumin_data.luminance_millinits[nearest_smallest_index];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
107
stream->audio_info.port_id[0] = 0x5558859e;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1071
return dc_stream_get_brightness_millinits_linear_interpolation(stream, nearest_smallest_index, nearest_smallest_index + 1, refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1079
static int dc_stream_calculate_flickerless_refresh_rate(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
108
stream->audio_info.port_id[1] = 0xd989449;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1085
int nearest_smallest_index = dc_stream_get_nearest_smallest_index(stream, starting_refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1088
stream->lumin_data.flicker_criteria_milli_nits_GAMING :
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1089
stream->lumin_data.flicker_criteria_milli_nits_STATIC;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1105
lumin_millinits_temp = stream->lumin_data.luminance_millinits[i + offset];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1109
if (stream->lumin_data.refresh_rate_hz[i + offset] == stream->lumin_data.refresh_rate_hz[i])
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1110
return stream->lumin_data.refresh_rate_hz[i];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1112
int target_brightness = (stream->lumin_data.luminance_millinits[i + offset] >= (current_brightness + flicker_criteria_millinits)) ?
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
112
stream->timing.flags.LTE_340MCSC_SCRAMBLE = dc_sink_data->edid_caps.lte_340mcsc_scramble;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1122
refresh = dc_stream_get_refresh_hz_linear_interpolation(stream, i, i + offset, target_brightness);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1124
refresh = dc_stream_get_refresh_hz_linear_interpolation(stream, i + offset, i, target_brightness);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1126
if (refresh == stream->lumin_data.refresh_rate_hz[i + offset])
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1127
return stream->lumin_data.refresh_rate_hz[i + offset];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1134
return (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1136
return stream->lumin_data.refresh_rate_hz[0];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
114
memset(&stream->timing.dsc_cfg, 0, sizeof(stream->timing.dsc_cfg));
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1142
static int dc_stream_get_max_delta_lumin_millinits(struct dc_stream_state *stream, int hz1, int hz2, bool isGaming)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1144
int lower_refresh_brightness = dc_stream_get_brightness_millinits_from_refresh (stream, hz1);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1145
int higher_refresh_brightness = dc_stream_get_brightness_millinits_from_refresh (stream, hz2);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
115
stream->timing.dsc_cfg.num_slices_h = 0;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
116
stream->timing.dsc_cfg.num_slices_v = 0;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1163
int nearest_smallest_index = dc_stream_get_nearest_smallest_index(stream, hz1);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1166
stream->lumin_data.refresh_rate_hz[nearest_smallest_index + 1] <= hz2 ; nearest_smallest_index++) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1167
min = MIN(min, stream->lumin_data.luminance_millinits[nearest_smallest_index + 1]);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1168
max = MAX(max, stream->lumin_data.luminance_millinits[nearest_smallest_index + 1]);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
117
stream->timing.dsc_cfg.bits_per_pixel = 128;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1178
static unsigned int dc_stream_get_max_flickerless_instant_vtotal_delta(struct dc_stream_state *stream, bool is_gaming, bool increase)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
118
stream->timing.dsc_cfg.block_pred_enable = 1;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1180
if (stream->timing.v_total * stream->timing.h_total == 0)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1183
int current_refresh_hz = (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1185
int safe_refresh_hz = dc_stream_calculate_flickerless_refresh_rate(stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1186
dc_stream_get_brightness_millinits_from_refresh(stream, current_refresh_hz),
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
119
stream->timing.dsc_cfg.linebuf_depth = 9;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1191
int safe_refresh_v_total = (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, safe_refresh_hz*(long long)stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1194
return (((int) stream->timing.v_total - safe_refresh_v_total) >= 0) ? (stream->timing.v_total - safe_refresh_v_total) : 0;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1196
return ((safe_refresh_v_total - (int) stream->timing.v_total) >= 0) ? (safe_refresh_v_total - stream->timing.v_total) : 0;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
120
stream->timing.dsc_cfg.version_minor = 2;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1203
int dc_stream_calculate_max_flickerless_refresh_rate(struct dc_stream_state *stream, int starting_refresh_hz, bool is_gaming)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1205
if (!stream->lumin_data.is_valid)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1208
int current_brightness = dc_stream_get_brightness_millinits_from_refresh(stream, starting_refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
121
stream->timing.dsc_cfg.ycbcr422_simple = 0;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1210
return dc_stream_calculate_flickerless_refresh_rate(stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1221
int dc_stream_calculate_min_flickerless_refresh_rate(struct dc_stream_state *stream, int starting_refresh_hz, bool is_gaming)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1223
if (!stream->lumin_data.is_valid)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1226
int current_brightness = dc_stream_get_brightness_millinits_from_refresh(stream, starting_refresh_hz);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1228
return dc_stream_calculate_flickerless_refresh_rate(stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
123
update_stream_signal(stream, dc_sink_data);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1238
bool dc_stream_is_refresh_rate_range_flickerless(struct dc_stream_state *stream, int hz1, int hz2, bool is_gaming)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1244
if (!stream->lumin_data.is_valid)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1247
int dl = dc_stream_get_max_delta_lumin_millinits(stream, hz1, hz2, is_gaming);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
125
stream->out_transfer_func.type = TF_TYPE_BYPASS;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1250
stream->lumin_data.flicker_criteria_milli_nits_GAMING :
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1251
stream->lumin_data.flicker_criteria_milli_nits_STATIC;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1260
unsigned int dc_stream_get_max_flickerless_instant_vtotal_decrease(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1263
if (!stream->lumin_data.is_valid)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1266
return dc_stream_get_max_flickerless_instant_vtotal_delta(stream, is_gaming, true);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
127
dc_stream_assign_stream_id(stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1273
unsigned int dc_stream_get_max_flickerless_instant_vtotal_increase(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1276
if (!stream->lumin_data.is_valid)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1279
return dc_stream_get_max_flickerless_instant_vtotal_delta(stream, is_gaming, false);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1282
bool dc_stream_is_cursor_limit_pending(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1287
is_limit_pending = dc_state_get_stream_cursor_subvp_limit(stream, dc->current_state);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1292
bool dc_stream_can_clear_cursor_limit(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1297
can_clear_limit = dc_state_get_stream_cursor_subvp_limit(stream, dc->current_state) &&
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1298
(stream->hw_cursor_req ||
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1299
!stream->cursor_position.enable ||
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
1300
dc_stream_check_cursor_attributes(stream, dc->current_state, &stream->cursor_attributes));
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
132
void dc_stream_destruct(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
134
dc_sink_release(stream->sink);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
137
void dc_stream_assign_stream_id(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
140
stream->stream_id = stream->ctx->dc_stream_id_count;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
141
stream->ctx->dc_stream_id_count++;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
144
void dc_stream_retain(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
146
kref_get(&stream->refcount);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
151
struct dc_stream_state *stream = container_of(kref, struct dc_stream_state, refcount);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
153
dc_stream_destruct(stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
154
kfree(stream->update_scratch);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
155
kfree(stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
158
void dc_stream_release(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
160
if (stream != NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
161
kref_put(&stream->refcount, dc_stream_free);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
168
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
173
stream = kzalloc_obj(struct dc_stream_state, GFP_ATOMIC);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
174
if (stream == NULL)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
177
stream->update_scratch = kzalloc((int32_t) dc_update_scratch_space_size(), GFP_ATOMIC);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
178
if (stream->update_scratch == NULL)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
181
if (dc_stream_construct(stream, sink) == false)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
184
kref_init(&stream->refcount);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
186
return stream;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
189
if (stream) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
190
kfree(stream->update_scratch);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
191
kfree(stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
197
struct dc_stream_state *dc_copy_stream(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
201
new_stream = kmemdup(stream, sizeof(struct dc_stream_state), GFP_KERNEL);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
238
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
240
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
241
return dc_state_get_stream_status(dc->current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
245
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
247
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
249
return dc_state_get_stream_status(dc->current_state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
254
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
261
if (!stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
269
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
308
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
316
if (NULL == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
330
dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
336
max_cursor_size = dc->res_pool->funcs->get_max_hw_cursor_size(dc, state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
351
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
356
if (!stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
359
if (dc_stream_check_cursor_attributes(stream, stream->ctx->dc->current_state, attributes)) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
360
stream->cursor_attributes = *attributes;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
368
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
374
if (!stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
377
dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
379
if (dc_stream_set_cursor_attributes(stream, attributes)) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
387
program_cursor_attributes(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
401
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
408
if (!stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
416
if (pipe_ctx->stream != stream ||
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
449
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
452
if (NULL == stream) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
462
stream->cursor_position = *position;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
469
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
476
if (!stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
479
old_position = &stream->cursor_position;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
48
void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
480
dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
482
if (dc_stream_set_cursor_position(stream, position)) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
493
program_cursor_position(dc, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
507
if (stream == pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
51
stream->signal = stream->link->connector_signal;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
518
if (stream->drr_trigger_mode == DRR_TRIGGER_ON_FLIP_AND_CURSOR) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
526
if (stream == pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
53
stream->signal = sink->sink_signal;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
540
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
547
if (stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
55
if (dc_is_dvi_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
56
if (stream->ctx->dc->caps.dual_link_dvi &&
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
564
wb_info->dwb_params.out_transfer_func = &stream->out_transfer_func;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
57
(stream->timing.pix_clk_100hz / 10) > TMDS_MAX_PIXEL_CLOCK &&
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
571
for (i = 0; i < stream->num_wb_info; i++) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
573
if (stream->writeback_info[i].wb_enabled &&
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
574
stream->writeback_info[i].dwb_pipe_inst == wb_info->dwb_pipe_inst) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
575
stream->writeback_info[i] = *wb_info;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
581
ASSERT(stream->num_wb_info + 1 <= MAX_DWB_PIPES);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
582
stream->writeback_info[stream->num_wb_info++] = *wb_info;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
586
struct dc_stream_status *stream_status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
59
stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
61
stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
614
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
619
if (stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
629
if (stream->num_wb_info > MAX_DWB_PIPES) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
65
bool dc_stream_construct(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
651
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
655
if (stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
665
if (stream->num_wb_info > MAX_DWB_PIPES) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
671
for (i = 0, j = 0; i < stream->num_wb_info; i++) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
672
if (stream->writeback_info[i].wb_enabled) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
674
if (stream->writeback_info[i].dwb_pipe_inst == dwb_pipe_inst)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
675
stream->writeback_info[i].wb_enabled = false;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
679
memcpy(&stream->writeback_info[j], &stream->writeback_info[i],
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
685
stream->num_wb_info = j;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
70
stream->sink = dc_sink_data;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
706
uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
709
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
718
if (res_ctx->pipe_ctx[i].stream != stream || !tg)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
727
bool dc_stream_send_dp_sdp(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
73
stream->ctx = dc_sink_data->ctx;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
735
if (stream == NULL) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
74
stream->link = dc_sink_data->link;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
740
dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
748
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
75
stream->sink_patches = dc_sink_data->edid_caps.panel_patch;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
76
stream->converter_disable_audio = dc_sink_data->converter_disable_audio;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
764
bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
77
stream->qs_bit = dc_sink_data->edid_caps.qs_bit;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
775
if (!stream->ctx)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
778
dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
78
stream->qy_bit = dc_sink_data->edid_caps.qy_bit;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
786
if (res_ctx->pipe_ctx[i].stream != stream || !tg)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
802
bool dc_stream_dmdata_status_done(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
812
if (pipe->stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
825
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
83
stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
833
if (!dc_is_hdmi_signal(stream->signal) && !dc_is_dp_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
84
stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
842
if (pipe_ctx->stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
85
stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
853
pipe_ctx->stream->dmdata_address = attr->address;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
86
stream->audio_info.modes[i].sample_size = dc_sink_data->edid_caps.audio_modes[i].sample_size;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
860
pipe_ctx->stream->dmdata_address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
869
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
872
return dc->res_pool->funcs->add_dsc_to_stream_resource(dc, state, stream);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
878
struct pipe_ctx *dc_stream_get_pipe_ctx(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
88
stream->audio_info.mode_count = dc_sink_data->edid_caps.audio_mode_count;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
883
struct pipe_ctx *pipe = &stream->ctx->dc->current_state->res_ctx.pipe_ctx[i];
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
885
if (pipe->stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
89
stream->audio_info.audio_latency = dc_sink_data->edid_caps.audio_latency;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
892
void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
896
stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
897
stream->src.x,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
898
stream->src.y,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
899
stream->src.width,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
90
stream->audio_info.video_latency = dc_sink_data->edid_caps.video_latency;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
900
stream->src.height,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
901
stream->dst.x,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
902
stream->dst.y,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
903
stream->dst.width,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
904
stream->dst.height,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
905
stream->output_color_space);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
908
stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
909
stream->timing.h_total,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
910
stream->timing.v_total,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
911
dc_pixel_encoding_to_str(stream->timing.pixel_encoding),
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
912
dc_color_depth_to_str(stream->timing.display_color_depth));
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
915
stream->link->link_index);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
919
stream->timing.flags.DSC,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
92
stream->audio_info.display_name,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
920
stream->timing.dsc_cfg.mst_pbn);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
922
if (stream->sink) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
923
if (stream->sink->sink_signal != SIGNAL_TYPE_VIRTUAL &&
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
924
stream->sink->sink_signal != SIGNAL_TYPE_NONE) {
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
928
stream->signal,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
929
stream->sink->edid_caps.display_name,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
930
stream->sink->edid_caps.manufacturer_id,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
931
stream->sink->edid_caps.product_id);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
947
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
95
stream->audio_info.manufacture_id = dc_sink_data->edid_caps.manufacturer_id;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
955
dc->res_pool->rmcm_3dlut[i].stream == stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
96
stream->audio_info.product_id = dc_sink_data->edid_caps.product_id;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
967
dc->res_pool->rmcm_3dlut[i].stream = stream;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
97
stream->audio_info.flags.all = dc_sink_data->edid_caps.speaker_flags;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
979
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
982
dc_stream_get_3dlut_for_stream(dc, stream, false);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
986
rmcm_3dlut->stream = NULL;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
998
dc->res_pool->rmcm_3dlut[i].stream = NULL;
drivers/gpu/drm/amd/display/dc/dc.h
1402
const struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dc.h
1928
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dc.h
1963
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc.h
1988
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc.h
2462
const struct dc_stream_state *stream, struct psr_config *psr_config,
drivers/gpu/drm/amd/display/dc/dc.h
2713
void dc_notify_vsync_int_state(struct dc *dc, struct dc_stream_state *stream, bool enable);
drivers/gpu/drm/amd/display/dc/dc.h
2778
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1022
if ((pipe_ctx->stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1 ||
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1023
pipe_ctx->stream->link->psr_settings.psr_version == DC_PSR_VERSION_1) &&
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1024
pipe_ctx->stream->ctx->dce_version >= DCN_VERSION_3_1)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1027
if (pipe_ctx->stream->link->replay_settings.config.replay_supported)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1037
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1046
pipe_ctx->stream->link, &panel_inst))
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1151
dc_wake_and_execute_dmub_cmd_list(pCtx->stream->ctx, 2, cmd, DM_DMUB_WAIT_TYPE_WAIT);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1227
const struct dc_stream_state *stream, bool enable)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1236
if (!stream)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1239
pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1240
if (!pipe_ctx || !pipe_ctx->stream_res.tg || pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1252
cntl->data.line_time_in_ns = 1u + (uint32_t)(div64_u64(stream->timing.h_total * 1000000ull,
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1253
stream->timing.pix_clk_100hz / 10));
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1255
cntl->data.v_total_max = stream->adjust.v_total_max > stream->timing.v_total ?
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1256
stream->adjust.v_total_max :
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1257
stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1271
if (!pipe || !pipe->stream || !pipe->stream_res.tg)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1321
struct dc_stream_state *stream = dc->current_state->streams[i];
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1323
if (stream && (!stream->dpms_off || dc->config.disable_ips_in_dpms_off))
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1952
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
1961
struct dc_stream_status *stream_status = dc_stream_get_status(stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
415
static uint8_t dc_dmub_srv_get_pipes_for_stream(struct dc *dc, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
423
if (pipe->stream == stream && pipe->stream_res.tg)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
440
if (split_pipe->stream == head_pipe->stream && (split_pipe->top_pipe || split_pipe->prev_odm_pipe)) {
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
471
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
478
stream_status = dc_state_get_stream_status(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
492
stream_status = dc_state_get_stream_status(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
495
uint8_t min_refresh_in_hz = (pipe->stream->timing.min_refresh_in_uhz + 999999) / 1000000;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
497
config_data->pipe_data[k].pix_clk_100hz = pipe->stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
500
config_data->pipe_data[k].pipes = dc_dmub_srv_get_pipes_for_stream(dc, pipe->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
543
if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst) &&
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
588
struct dc_stream_state *phantom_stream = dc_state_get_paired_subvp_stream(context, subvp_pipe->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
589
struct dc_crtc_timing *main_timing = &subvp_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
591
struct dc_crtc_timing *drr_timing = &vblank_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
688
pipe_data->pipe_config.vblank_data.pix_clk_100hz = vblank_pipe->stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
689
pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total -
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
690
vblank_pipe->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
691
pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
692
pipe_data->pipe_config.vblank_data.htotal = vblank_pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
696
vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
698
if (vblank_pipe->stream->ignore_msa_timing_param &&
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
699
(vblank_pipe->stream->allow_freesync || vblank_pipe->stream->vrr_active_variable || vblank_pipe->stream->vrr_active_fixed))
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
731
phantom_stream0 = dc_state_get_paired_subvp_stream(context, subvp_pipes[0]->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
735
phantom_stream1 = dc_state_get_paired_subvp_stream(context, subvp_pipes[1]->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
791
struct dc_stream_state *phantom_stream = dc_state_get_paired_subvp_stream(context, subvp_pipe->stream);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
792
struct dc_crtc_timing *main_timing = &subvp_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
802
pipe_data->pipe_config.subvp_data.pix_clk_100hz = subvp_pipe->stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
803
pipe_data->pipe_config.subvp_data.htotal = subvp_pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
804
pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
811
pipe_data->pipe_config.subvp_data.is_drr = subvp_pipe->stream->ignore_msa_timing_param &&
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
812
(subvp_pipe->stream->allow_freesync || subvp_pipe->stream->vrr_active_variable || subvp_pipe->stream->vrr_active_fixed);
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
820
reduce_fraction(subvp_pipe->stream->src.height, subvp_pipe->stream->dst.height,
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
853
phantom_pipe->stream == dc_state_get_paired_subvp_stream(context, subvp_pipe->stream)) {
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
913
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h
210
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h
345
const struct dc_stream_state *stream, bool enable);
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
511
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
100
spl_in->basic_out.view_format = (enum spl_view_3d)stream->view_format;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
104
populate_splrect_from_rect(&spl_in->basic_out.src_rect, &stream->src);
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
106
populate_splrect_from_rect(&spl_in->basic_out.dst_rect, &stream->dst);
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
121
if (stream->view_format == VIEW_3D_FORMAT_SIDE_BY_SIDE)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
131
stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right + pipe_ctx->dsc_padding_params.dsc_hactive_padding;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
134
stream->timing.v_addressable + stream->timing.v_border_bottom + stream->timing.v_border_top;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
136
pipe_ctx->stream->ctx->dc->debug.max_downscale_src_width;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
137
spl_in->basic_out.always_scale = pipe_ctx->stream->ctx->dc->debug.always_scale;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
140
spl_in->basic_out.use_two_pixels_per_container = pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing);
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
144
spl_in->prefer_easf = pipe_ctx->stream->ctx->dc->config.prefer_easf;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
146
if (pipe_ctx->stream->ctx->dc->debug.force_easf == 1)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
148
else if (pipe_ctx->stream->ctx->dc->debug.force_easf == 2)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
150
else if (pipe_ctx->stream->ctx->dc->debug.force_easf == 3)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
153
unsigned int sharpness_setting = pipe_ctx->stream->ctx->dc->debug.force_sharpness;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
154
unsigned int force_sharpness_level = pipe_ctx->stream->ctx->dc->debug.force_sharpness_level;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
186
if (pipe_ctx->stream->ctx->dc->debug.force_lls > 0)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
187
spl_in->lls_pref = pipe_ctx->stream->ctx->dc->debug.force_lls;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
191
if (pipe_ctx->stream->ctx->dc->debug.force_cositing)
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
192
spl_in->basic_in.cositing = pipe_ctx->stream->ctx->dc->debug.force_cositing - 1;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
204
(enum scale_to_sharpness_policy)pipe_ctx->stream->ctx->dc->debug.scale_to_sharpness_policy;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
209
spl_in->is_fullscreen = pipe_ctx->stream->sharpening_required;
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
210
spl_in->is_hdr_on = dm_helpers_is_hdr_on(pipe_ctx->stream->ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
79
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/dc_state.h
43
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_state.h
48
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_state.h
52
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state.h
58
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state.h
64
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state.h
69
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state.h
76
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
109
void dc_state_set_stream_subvp_cursor_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
113
bool dc_state_get_stream_subvp_cursor_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
116
void dc_state_set_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
120
bool dc_state_get_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
123
bool dc_state_can_clear_stream_cursor_subvp_limit(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
40
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_state_priv.h
44
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
332
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dc_stream.h
381
struct dc_stream_state *old_stream, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
383
struct dc_stream_state *old_stream, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
444
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
450
void dc_stream_log(const struct dc *dc, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
458
uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
463
bool dc_stream_send_dp_sdp(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
471
bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
478
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
482
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
486
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
491
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
493
bool dc_stream_dmdata_status_done(struct dc *dc, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
496
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
499
enum dc_status dc_validate_stream(struct dc *dc, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
525
struct dc_stream_state *dc_copy_stream(const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
527
void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink);
drivers/gpu/drm/amd/display/dc/dc_stream.h
542
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
546
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
549
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
554
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
558
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
562
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
566
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
571
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
575
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
579
bool dc_stream_forward_crc_window(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
584
bool dc_stream_forward_multiple_crc_window(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
591
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
600
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
607
struct dc_stream_state **stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
611
void dc_stream_set_dyn_expansion(struct dc *dc, struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
614
void dc_stream_set_dither_option(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
618
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
621
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
625
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
630
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
634
struct pipe_ctx *dc_stream_get_pipe_ctx(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
638
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream.h
642
bool dc_stream_is_cursor_limit_pending(struct dc *dc, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream.h
643
bool dc_stream_can_clear_cursor_limit(struct dc *dc, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
31
bool dc_stream_construct(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
33
void dc_stream_destruct(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
35
void dc_stream_assign_stream_id(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
41
int dc_stream_calculate_max_flickerless_refresh_rate(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
49
int dc_stream_calculate_min_flickerless_refresh_rate(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
56
bool dc_stream_is_refresh_rate_range_flickerless(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
65
unsigned int dc_stream_get_max_flickerless_instant_vtotal_decrease(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
72
unsigned int dc_stream_get_max_flickerless_instant_vtotal_increase(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dc_trace.h
31
pipe_ctx->stream, &pipe_ctx->plane_res, \
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
192
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
205
if (dc_is_dp_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
505
const struct dc_stream_state *stream = context->streams[j];
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
511
if (stream == context->res_ctx.pipe_ctx[k].stream) {
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
519
if (stream->dpms_off)
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
523
cfg->signal = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
525
cfg->src_height = stream->src.height;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
526
cfg->src_width = stream->src.width;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
528
stream->link->ddi_channel_mapping.raw;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
530
stream->link->link_enc->transmitter;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
532
stream->link->cur_link_settings.lane_count;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
534
stream->link->cur_link_settings.link_rate;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
536
stream->link->cur_link_settings.link_spread;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
537
cfg->sym_clock = stream->phy_pix_clk;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
539
cfg->v_refresh = stream->timing.pix_clk_100hz * 100;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
540
cfg->v_refresh /= stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
541
cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2)
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
542
/ stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
554
struct dc_stream_state *stream = context->streams[j];
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
558
vertical_blank_in_pixels = stream->timing.h_total *
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
559
(stream->timing.v_total
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
560
- stream->timing.v_addressable);
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
563
* 10000 / stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
1004
enc110, &stream->timing);
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
1008
enc110, &stream->timing);
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
1012
is_valid = stream->timing.pixel_encoding == PIXEL_ENCODING_RGB;
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
981
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
986
switch (stream->signal) {
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
991
stream->link->connector_signal,
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
992
stream->signal,
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
993
&stream->timing);
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
998
&stream->timing,
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
999
stream->phy_pix_clk);
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.h
228
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
140
static bool dmub_psr_set_version(struct dmub_psr *dmub, struct dc_stream_state *stream, uint8_t panel_inst)
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
145
if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED)
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
151
switch (stream->link->psr_settings.psr_version) {
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
306
if (res_ctx->pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
307
res_ctx->pipe_ctx[i].stream->link == link &&
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
308
res_ctx->pipe_ctx[i].stream->link->connector_signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
319
if (!dmub_psr_set_version(dmub, pipe_ctx->stream, panel_inst))
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
382
copy_settings_data->dsc_enable_status = (pipe_ctx->stream->timing.flags.DSC == 1);
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
130
res_ctx->pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
131
res_ctx->pipe_ctx[i].stream->link &&
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
132
res_ctx->pipe_ctx[i].stream->link == link &&
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
133
res_ctx->pipe_ctx[i].stream->link->connector_signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c
178
copy_settings_data->flags.bitfields.dsc_enable_status = (pipe_ctx->stream->timing.flags.DSC == 1);
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
787
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
793
if (stream->sink->edid_caps.panel_patch.skip_scdc_overwrite &&
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
797
switch (stream->signal) {
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
802
stream->link->connector_signal,
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
803
stream->signal,
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
804
&stream->timing);
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
809
&stream->timing,
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
810
&stream->sink->edid_caps,
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
811
stream->phy_pix_clk * 10);
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
816
enc10, &stream->timing);
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.c
819
is_valid = stream->timing.pixel_encoding == PIXEL_ENCODING_RGB;
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_link_encoder.h
567
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dio/dcn30/dcn30_dio_link_encoder.c
53
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dio/dcn30/dcn30_dio_link_encoder.c
55
return dcn10_link_encoder_validate_output_with_stream(enc, stream);
drivers/gpu/drm/amd/display/dc/dio/dcn30/dcn30_dio_link_encoder.h
84
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dio/virtual/virtual_link_encoder.c
33
const struct dc_stream_state *stream) { return true; }
drivers/gpu/drm/amd/display/dc/dm_helpers.h
103
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
109
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
116
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
166
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dm_helpers.h
172
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
177
void dm_helpers_mst_enable_stream_features(const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
227
bool dm_helpers_is_fullscreen(struct dc_context *ctx, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
228
bool dm_helpers_is_hdr_on(struct dc_context *ctx, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dm_helpers.h
80
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1030
v->output_format[input_idx] = pipe->stream->timing.pixel_encoding ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1032
v->output[input_idx] = pipe->stream->signal ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1036
switch (pipe->stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1203
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1214
pipe->pipe_dlg_param.htotal = pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1215
pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1216
vesa_sync_start = pipe->stream->timing.v_addressable +
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1217
pipe->stream->timing.v_border_bottom +
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1218
pipe->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1220
asic_blank_end = (pipe->stream->timing.v_total -
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1222
pipe->stream->timing.v_border_top)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1223
* (pipe->stream->timing.flags.INTERLACE ? 1 : 0);
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1226
(pipe->stream->timing.v_border_top +
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1227
pipe->stream->timing.v_addressable +
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1228
pipe->stream->timing.v_border_bottom)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1229
* (pipe->stream->timing.flags.INTERLACE ? 1 : 0);
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1240
((pipe->stream->view_format ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1242
pipe->stream->view_format ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1244
(pipe->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1246
pipe->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1255
hsplit_pipe->pipe_dlg_param.htotal = pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1256
hsplit_pipe->pipe_dlg_param.vtotal = pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
1273
hsplit_pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
422
input->dest.vactive = pipe->stream->timing.v_addressable + pipe->stream->timing.v_border_top
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
423
+ pipe->stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
431
input->dest.htotal = pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
432
input->dest.hblank_start = input->dest.htotal - pipe->stream->timing.h_front_porch;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
434
- pipe->stream->timing.h_addressable
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
435
- pipe->stream->timing.h_border_left
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
436
- pipe->stream->timing.h_border_right;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
438
input->dest.vtotal = pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
439
input->dest.vblank_start = input->dest.vtotal - pipe->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
441
- pipe->stream->timing.v_addressable
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
442
- pipe->stream->timing.v_border_bottom
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
443
- pipe->stream->timing.v_border_top;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
444
input->dest.pixel_rate_mhz = pipe->stream->timing.pix_clk_100hz/10000.0;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
896
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
905
v->htotal[input_idx] = pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
906
v->vtotal[input_idx] = pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
907
v->vactive[input_idx] = pipe->stream->timing.v_addressable +
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
908
pipe->stream->timing.v_border_top + pipe->stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
909
v->v_sync_plus_back_porch[input_idx] = pipe->stream->timing.v_total
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
911
- pipe->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
912
v->pixel_clock[input_idx] = pipe->stream->timing.pix_clk_100hz/10000.0;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
913
if (pipe->stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
920
v->viewport_width[input_idx] = pipe->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
921
v->viewport_height[input_idx] = pipe->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1000
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1042
wb_arb_params->time_per_pixel = 16.0 * 1000 / (context->res_ctx.pipe_ctx[i].stream->phy_pix_clk / 1000); /* 4 bit fraction, ms */
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1049
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1180
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1204
context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1206
&context->res_ctx.pipe_ctx[i].stream->timing,
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1227
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1326
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1334
if (res_ctx->pipe_ctx[pipe_cnt].stream == res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1339
res_ctx->pipe_ctx[pipe_cnt].stream,
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1340
res_ctx->pipe_ctx[i].stream) &&
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1342
res_ctx->pipe_ctx[pipe_cnt].stream,
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1343
res_ctx->pipe_ctx[i].stream))) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1350
struct dc_crtc_timing *timing = &res_ctx->pipe_ctx[i].stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1356
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1371
pipes[pipe_cnt].dout.dsc_enable = res_ctx->pipe_ctx[i].stream->timing.flags.DSC;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1373
pipes[pipe_cnt].dout.dsc_slices = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.num_slices_h;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1374
if (res_ctx->pipe_ctx[i].stream->use_dynamic_meta) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1382
dc_is_dp_signal(res_ctx->pipe_ctx[i].stream->signal) ? 36 : 32;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1412
pipes[pipe_cnt].pipe.dest.vtotal_min = res_ctx->pipe_ctx[i].stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1413
pipes[pipe_cnt].pipe.dest.vtotal_max = res_ctx->pipe_ctx[i].stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1450
switch (res_ctx->pipe_ctx[i].stream->signal) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1472
switch (res_ctx->pipe_ctx[i].stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1502
switch (res_ctx->pipe_ctx[i].stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1513
if (res_ctx->pipe_ctx[i].stream->timing.flags.DSC &&
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1514
!res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.ycbcr422_simple)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1525
if (res_ctx->pipe_ctx[i].stream->timing.flags.DSC)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1526
pipes[pipe_cnt].dout.output_bpp = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.bits_per_pixel / 16.0;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1531
get_audio_check(&res_ctx->pipe_ctx[i].stream->audio_info, &aud_check);
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
1742
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2252
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2486
struct dc_stream_state *stream = res_ctx->pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2488
if (!stream)
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2495
for (j = 0; j < stream->num_wb_info; j++) {
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
2496
struct dc_writeback_info *wb_info = &stream->writeback_info[j];
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c
998
struct dc_writeback_info *wb_info = &res_ctx->pipe_ctx[i].stream->writeback_info[0];
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
192
struct dc_stream_state *stream = res_ctx->pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
194
if (!stream)
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
201
for (j = 0; j < stream->num_wb_info; j++) {
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
202
struct dc_writeback_info *wb_info = &stream->writeback_info[j];
drivers/gpu/drm/amd/display/dc/dml/dcn30/dcn30_fpu.c
479
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c
468
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
538
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
573
if (context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
577
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
326
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
329
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
333
if (pipe->stream->adjust.v_total_min != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
334
pipes[pipe_cnt].pipe.dest.vtotal = pipe->stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
418
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
421
if (pipe->stream->signal == SIGNAL_TYPE_EDP && dc->debug.seamless_boot_odm_combine &&
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
422
pipe->stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
424
if (pipe->stream->apply_boot_odm_mode == dm_odm_combine_policy_2to1) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1002
refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1003
pipe->stream->timing.v_total * (uint64_t)pipe->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1004
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1005
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1052
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1112
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1127
struct dc_stream_state *stream, int diff)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1132
if (table->odm_combines[i].stream == stream) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1140
table->odm_combines[i].stream = stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1174
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1180
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1182
&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1187
update_slice_table_for_stream(table, stream, count);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1241
update_slice_table_for_stream(table, pipe->stream, -1);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1256
table, pipe->stream, split[dc_pipe_idx] - 1);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1275
table->odm_combines[i].stream,
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1304
struct dc_stream_state *stream = context->streams[0];
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1330
if (dc_is_hdmi_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1337
if (!is_h_timing_divisible_by_2(stream))
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1344
if (stream->timing.pix_clk_100hz * 100 <= DCN3_2_VMIN_DISPCLK_HZ)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1383
&stream->src, sizeof(struct rect)) != 0)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1386
if (stream->src.width >= 5120 &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1387
stream->src.width > stream->dst.width)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1605
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1701
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1741
if (context->res_ctx.pipe_ctx[i].stream && context->res_ctx.pipe_ctx[i].plane_state &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1749
if (context->res_ctx.pipe_ctx[i].stream->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1759
if (context->res_ctx.pipe_ctx[i].stream->adaptive_sync_infopacket.valid)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1761
&context->res_ctx.pipe_ctx[i].stream->timing,
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1790
if (context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1796
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1817
if (old_index >= 0 && context->res_ctx.pipe_ctx[old_index].stream == NULL) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1826
if (context->res_ctx.pipe_ctx[i].stream == NULL) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1841
if (context->res_ctx.pipe_ctx[i].stream == NULL) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1866
pri_pipe->stream->src.x + pri_pipe->stream->src.width/2) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1875
if (pri_pipe->plane_state->clip_rect.x >= pri_pipe->stream->src.x + pri_pipe->stream->src.width/2) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
1916
if (sec_pipe->stream->timing.flags.DSC == 1) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2002
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2022
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2039
if (!pipe->stream || newly_split[i])
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2115
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2223
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2230
&pipe->stream->src,
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
2596
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3403
refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3404
(uint64_t)pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3405
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3406
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3449
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
345
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3451
refresh_rate = (pipe_ctx->stream->timing.pix_clk_100hz * 100 +
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3452
pipe_ctx->stream->timing.v_total * pipe_ctx->stream->timing.h_total - 1)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3453
/ (double)(pipe_ctx->stream->timing.v_total * pipe_ctx->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3459
if (!dc->debug.disable_subvp_high_refresh && min_refresh >= subvp_min_refresh && pipe->stream &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3460
pipe->plane_state && !(pipe->stream->vrr_active_variable || pipe->stream->vrr_active_fixed)) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3461
refresh_rate = (pipe->stream->timing.pix_clk_100hz * 100 +
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3462
pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3463
/ (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3470
if ((context->stream_count == 1 && !pipe->stream->allow_freesync) || context->stream_count > 1) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3539
if (!pipe->stream || !pipe->plane_state)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3543
*fpo_candidate_stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3570
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3574
if (fpo_candidate_stream && pipe->stream == fpo_candidate_stream) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3582
blank_us = ((pipe->stream->timing.v_total - pipe->stream->timing.v_addressable) * pipe->stream->timing.h_total /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3583
(double)(pipe->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
3585
pipe->stream->vrr_active_variable || pipe->stream->vrr_active_fixed || blank_us >= dc->debug.fpo_vactive_max_blank_us) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
482
struct dc_stream_state *main_stream = ref_pipe->stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
490
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
502
(ref_pipe->stream->timing.pix_clk_100hz * 100) /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
503
(double)ref_pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
567
if (pipe->stream && !pipe->top_pipe) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
614
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
618
refresh_rate = (pipe->stream->timing.pix_clk_100hz * 100 +
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
619
pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
620
/ (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
629
!pipe->stream->hw_cursor_req &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
630
!dc_state_get_stream_cursor_subvp_limit(pipe->stream, context) &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
631
!(pipe->stream->timing.pix_clk_100hz / 10000 > DCN3_2_MAX_SUBVP_PIXEL_RATE_MHZ) &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
646
struct dc_stream_state *stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
647
unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
648
(double)(stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
743
phantom = dc_state_get_paired_subvp_stream(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
744
if (phantom && pipe->stream && pipe->plane_state && !pipe->top_pipe &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
765
vactive1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
766
(double)(subvp_pipes[0]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
767
vactive2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
768
(double)(subvp_pipes[1]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
769
vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressable) *
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
770
subvp_pipes[0]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
771
(double)(subvp_pipes[0]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
772
vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressable) *
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
773
subvp_pipes[1]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
774
(double)(subvp_pipes[1]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
843
if (dc_state_get_pipe_subvp_type(context, drr_pipe) == SUBVP_NONE && drr_pipe->stream->ignore_msa_timing_param &&
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
844
(drr_pipe->stream->allow_freesync || drr_pipe->stream->vrr_active_variable || drr_pipe->stream->vrr_active_fixed)) {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
850
phantom_stream = dc_state_get_paired_subvp_stream(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
852
main_timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
854
drr_timing = &drr_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
944
phantom_stream = dc_state_get_paired_subvp_stream(context, subvp_pipe->stream);
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
945
main_timing = &subvp_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
947
vblank_timing = &context->res_ctx.pipe_ctx[vblank_index].stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
997
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
458
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
462
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
467
if (pipe->stream->adjust.v_total_max ==
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
468
pipe->stream->adjust.v_total_min &&
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
469
pipe->stream->adjust.v_total_min > timing->v_total) {
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
471
pipe->stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
559
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
562
if (pipe->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
564
pipe->stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
566
if (pipe->stream->apply_boot_odm_mode ==
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
491
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
495
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
500
if (pipe->stream->adjust.v_total_max ==
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
501
pipe->stream->adjust.v_total_min &&
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
502
pipe->stream->adjust.v_total_min > timing->v_total) {
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
504
pipe->stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
592
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
595
if (pipe->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
597
pipe->stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/dml/dcn351/dcn351_fpu.c
599
if (pipe->stream->apply_boot_odm_mode ==
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
100
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
102
timing->h_total = stream->timing.h_total + pipe_ctx->dsc_padding_params.dsc_htotal_padding;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
103
timing->v_total = stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
104
timing->h_sync_width = stream->timing.h_sync_width;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
105
timing->interlaced = stream->timing.flags.INTERLACE;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
107
hblank_start = stream->timing.h_total - stream->timing.h_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
109
timing->h_blank_end = hblank_start - stream->timing.h_addressable - pipe_ctx->dsc_padding_params.dsc_hactive_padding
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
110
- stream->timing.h_border_left - stream->timing.h_border_right;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
112
if (hblank_start < stream->timing.h_addressable)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
115
vblank_start = stream->timing.v_total - stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
117
timing->v_blank_end = vblank_start - stream->timing.v_addressable
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
118
- stream->timing.v_border_top - stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
120
timing->drr_config.enabled = stream->ignore_msa_timing_param;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
121
timing->drr_config.drr_active_variable = stream->vrr_active_variable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
122
timing->drr_config.drr_active_fixed = stream->vrr_active_fixed;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
123
timing->drr_config.disallowed = !stream->allow_freesync;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
126
min_hardware_refresh_in_uhz = stream->timing.min_refresh_in_uhz;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
127
if (stream->ctx->dc->caps.max_v_total != 0) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
131
pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
134
(timing->h_total * (long long)calc_max_hardware_v_total(stream)));
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
137
timing->drr_config.min_refresh_uhz = max(stream->timing.min_refresh_in_uhz, min_hardware_refresh_in_uhz);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
140
stream->ctx->dc->config.enable_fpo_flicker_detection == 1)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
141
timing->drr_config.max_instant_vtotal_delta = dml_ctx->config.callbacks.get_max_flickerless_instant_vtotal_increase(stream, false);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
145
if (stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
147
timing->dsc.overrides.num_slices = stream->timing.dsc_cfg.num_slices_h;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
148
timing->dsc.dsc_compressed_bpp_x16 = stream->timing.dsc_cfg.bits_per_pixel;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
152
switch (stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
186
struct dc_stream_state *stream, const struct pipe_ctx *pipe)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
190
switch (stream->signal) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
209
switch (stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
218
if (stream->timing.flags.DSC && !stream->timing.dsc_cfg.ycbcr422_simple)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
228
switch (stream->signal) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
244
output->audio_sample_layout = stream->audio_info.modes->sample_size;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
245
output->audio_sample_rate = stream->audio_info.modes->max_bit_rate;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
254
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
257
switch (stream->debug.force_odm_combine_segments) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
277
if (!stream->ctx->dc->debug.enable_single_display_2to1_odm_policy ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
278
stream->debug.force_odm_combine_segments > 0)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
280
stream_desc->overrides.disable_subvp = stream->ctx->dc->debug.force_disable_subvp ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
281
stream->hw_cursor_req ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
368
static void populate_dml21_dummy_surface_cfg(struct dml2_surface_cfg *surface, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
370
surface->plane0.width = stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
371
surface->plane0.height = stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
372
surface->plane1.width = stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
373
surface->plane1.height = stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
384
static void populate_dml21_dummy_plane_cfg(struct dml2_plane_parameters *plane, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
388
if (stream->timing.h_addressable > 3840)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
391
width = stream->timing.h_addressable; // 4K max
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
393
if (stream->timing.v_addressable > 2160)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
396
height = stream->timing.v_addressable; // 4K max
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
480
temp_pipe->stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
501
struct dc_stream_state *stream = context->streams[stream_index];
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
639
plane_state->dst_rect.height >= stream->src.height &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
640
stream->dst.height >= stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
665
static unsigned int map_stream_to_dml21_display_cfg(const struct dml2_context *dml_ctx, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
671
if (dml_ctx->v21.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id_valid[i] && dml_ctx->v21.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id[i] == stream->stream_id) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
74
static unsigned int calc_max_hardware_v_total(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
76
unsigned int max_hw_v_total = stream->ctx->dc->caps.max_v_total;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
78
if (stream->ctx->dc->caps.vtotal_limited_by_fp2) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
79
max_hw_v_total -= stream->timing.v_front_porch + 1;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
86
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
93
timing->h_active = stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right + pipe_ctx->dsc_padding_params.dsc_hactive_padding;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
94
timing->v_active = stream->timing.v_addressable + stream->timing.v_border_bottom + stream->timing.v_border_top;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
95
timing->h_front_porch = stream->timing.h_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
96
timing->v_front_porch = stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_translation_helper.c
97
timing->pixel_clock_khz = stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
170
if (dc_pipe->stream && dc_pipe->plane_state &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
192
dc_is_dp_signal(pipe_ctx->stream->signal));
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
203
if (pipe_ctx->stream && dc_state_get_paired_subvp_stream(context, pipe_ctx->stream) &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
236
bool sub_vp_enabled = is_sub_vp_enabled(pipe_ctx->stream->ctx->dc, context);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
401
struct dc_stream_state *stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
404
dml_ctx->config.svp_pstate.callbacks.get_stream_subvp_type(context, stream) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
409
dml_stream_idx = dml21_helper_find_dml_pipe_idx_by_stream_id(dml_ctx, stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
442
if (context->res_ctx.pipe_ctx[k].stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
443
context->res_ctx.pipe_ctx[k].stream->stream_id == stream->stream_id &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
460
phantom_stream = dml_ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(context, stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
479
if (context->res_ctx.pipe_ctx[k].stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c
480
context->res_ctx.pipe_ctx[k].stream->stream_id == phantom_stream->stream_id &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.c
344
if (num_pipes <= 0 || dc_main_pipes[0]->stream == NULL ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.c
357
dc_main_pipes[0]->stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.c
384
if (num_pipes <= 0 || dc_main_pipes[0]->stream == NULL ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.c
401
dc_main_pipes[0]->stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
525
const struct dml2_stream_parameters *stream;
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
536
stream = &params->display_cfg->stream_descriptors[plane->stream_index];
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
547
temp = (unsigned int)math_ceil(plane->composition.scaler_info.plane0.h_ratio * stream->timing.h_active / odm_combine_factor);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
553
temp = (unsigned int)math_ceil(plane->composition.scaler_info.plane1.h_ratio * stream->timing.h_active / odm_combine_factor);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
593
stream->timing.h_active, num_dpps, scaling_transform,
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c
604
stream->timing.h_active, num_dpps, scaling_transform,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
1007
stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
114
if (state->res_ctx.pipe_ctx[i].stream && state->res_ctx.pipe_ctx[i].stream->stream_id == stream_id) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
1167
pipe->stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
131
state->res_ctx.pipe_ctx[i].stream->stream_id,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
151
if (!pipe->plane_state || !pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
154
get_plane_id(ctx, state, pipe->plane_state, pipe->stream->stream_id,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
237
if (!pipe->plane_state && !pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
267
if (existing_state->res_ctx.pipe_ctx[i].stream && existing_state->res_ctx.pipe_ctx[i].stream->stream_id == stream_id) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
515
static void calculate_odm_slices(const struct dc_stream_state *stream, unsigned int odm_factor, unsigned int *odm_slice_end_x)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
525
slice_size = stream->src.width / odm_factor;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
530
odm_slice_end_x[odm_factor - 1] = stream->src.width - 1;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
591
if (pipe->stream && pipe->stream->stream_id == stream_id && !pipe->top_pipe && !pipe->prev_odm_pipe) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
604
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
618
master_pipe = find_master_pipe_of_stream(ctx, state, stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
621
pipes_assigned = find_pipes_assigned_to_stream(ctx, state, stream->stream_id, pipes);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
623
find_more_free_pipes(ctx, state, stream->stream_id, pipes, &pipes_assigned, pipes_needed - pipes_assigned, existing_state);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
638
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
654
if (!get_plane_id(ctx, state, plane, stream->stream_id, plane_index, &plane_id)) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
666
find_more_pipes_for_stream(ctx, state, stream->stream_id, pipes, &pipes_assigned, pipes_needed - pipes_assigned, existing_state);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
708
state->res_ctx.pipe_ctx[i].stream->stream_id == stream_id &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
734
static void map_pipes_for_stream(struct dml2_context *ctx, struct dc_state *state, const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
741
master_pipe = assign_pipes_to_stream(ctx, state, stream, scratch->odm_info.odm_factor, &scratch->pipe_pool, existing_state);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
754
static void map_pipes_for_plane(struct dml2_context *ctx, struct dc_state *state, const struct dc_stream_state *stream, const struct dc_plane_state *plane,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
762
if (!get_plane_id(ctx, state, plane, stream->stream_id, plane_index, &plane_id)) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
767
master_pipe = assign_pipes_to_plane(ctx, state, stream, plane, scratch->odm_info.odm_factor,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
788
free_unused_pipes_for_plane(ctx, state, plane, &scratch->pipe_pool, stream->stream_id, plane_index);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
796
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
805
stream->stream_id, plane_idx, &plane_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
809
if (ctx->config.svp_pstate.callbacks.get_stream_subvp_type(state, stream) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
814
main_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(state, stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
831
stream->stream_id, plane_idx, &plane_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
842
if (dml2_is_stereo_timing(stream))
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
853
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
859
mapping, stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
871
if (ctx->config.svp_pstate.callbacks.get_stream_subvp_type(state, stream) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
875
main_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(state, stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
884
mapping, stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
897
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
899
struct pipe_ctx *otg_master = ctx->config.callbacks.get_otg_master_for_stream(&state->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
957
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
978
stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c
986
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
122
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
140
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
154
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
195
if (pipe->stream && !pipe->top_pipe) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
243
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
247
refresh_rate = (pipe->stream->timing.pix_clk_100hz * 100 +
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
248
pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
249
/ (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
266
struct dc_stream_state *stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
267
unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
268
(double)(stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
269
if (frame_us > max_frame_time && !stream->ignore_msa_timing_param) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
277
} else if (stream->ignore_msa_timing_param && (!valid_assignment_found ||
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
320
if (pipe->stream && !pipe->top_pipe &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
375
if (pipe->stream && pipe->plane_state && !pipe->top_pipe &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
377
phantom = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
397
vactive1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
398
(double)(subvp_pipes[0]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
399
vactive2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
400
(double)(subvp_pipes[1]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
401
vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressable) *
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
402
subvp_pipes[0]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
403
(double)(subvp_pipes[0]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
404
vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressable) *
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
405
subvp_pipes[1]->stream->timing.h_total) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
406
(double)(subvp_pipes[1]->stream->timing.pix_clk_100hz * 100)) * 1000000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
454
if (!pipe->stream || !pipe->plane_state || pipe->top_pipe || pipe->prev_odm_pipe)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
462
phantom_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
463
main_timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
54
if (pipe->stream && pipe->plane_state && !pipe->top_pipe && !pipe->prev_odm_pipe &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
540
if (!pipe->stream || !pipe->plane_state || pipe->top_pipe || pipe->prev_odm_pipe)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
553
if (found && context->res_ctx.pipe_ctx[vblank_index].stream->ignore_msa_timing_param) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
555
schedulable = dml2_svp_drr_schedulable(ctx, context, &context->res_ctx.pipe_ctx[vblank_index].stream->timing);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
557
phantom_stream = ctx->config.svp_pstate.callbacks.get_paired_subvp_stream(context, subvp_pipe->stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
558
main_timing = &subvp_pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
560
vblank_timing = &context->res_ctx.pipe_ctx[vblank_index].stream->timing;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
614
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
668
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
678
(ref_pipe->stream->timing.pix_clk_100hz * 100) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
679
(double)ref_pipe->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
71
mall_alloc_height_blk_aligned = (pipe->stream->timing.v_addressable - 1 + mblk_height - 1) /
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
720
ref_pipe->stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
723
memcpy(&phantom_stream->timing, &ref_pipe->stream->timing, sizeof(phantom_stream->timing));
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
724
memcpy(&phantom_stream->src, &ref_pipe->stream->src, sizeof(phantom_stream->src));
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
725
memcpy(&phantom_stream->dst, &ref_pipe->stream->dst, sizeof(phantom_stream->dst));
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
731
ref_pipe->stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
800
if (pipe->plane_state && pipe->stream && pipe->stream == phantom_stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
802
pipe->stream->use_dynamic_meta = false;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
811
static bool remove_all_phantom_planes_for_stream(struct dml2_context *ctx, struct dc_stream_state *stream, struct dc_state *context)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
818
if (context->streams[i] == stream) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
833
if (!ctx->config.svp_pstate.callbacks.remove_phantom_plane(ctx->config.svp_pstate.callbacks.dc, stream, del_planes[i], context))
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
850
if (pipe->plane_state && pipe->stream && ctx->config.svp_pstate.callbacks.get_pipe_subvp_type(state, pipe) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
851
phantom_stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
894
if (!pipe_ctx->plane_state || !pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_mall_phantom.c
901
dml_pipe_idx = dml2_helper_find_dml_pipe_idx_by_stream_id(ctx, state->res_ctx.pipe_ctx[dc_pipe_idx].stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1134
const struct dc_stream_state *stream, const struct dml_display_cfg_st *dml_dispcfg)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1140
if (dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id_valid[i] && dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id[i] == stream->stream_id) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1210
if (!pipe || !pipe->stream || !pipe->plane_state)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1216
if (pipe->stream && dml_to_dc_pipe_mapping->dml_pipe_idx_to_plane_index_valid[pipe_index] == false) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1283
if (current_pipe_context->stream &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1286
dc_is_dp_signal(current_pipe_context->stream->signal)) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
1323
if (context->streams[i] == context->res_ctx.pipe_ctx[k].stream) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_translation_helper.c
993
temp_pipe->stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
158
if (pipe_ctx == NULL || pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
166
dc_is_dp_signal(pipe_ctx->stream->signal));
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
174
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
243
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
247
hblank_start = pipe_ctx->stream->timing.h_total - pipe_ctx->stream->timing.h_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
248
vblank_start = pipe_ctx->stream->timing.v_total - pipe_ctx->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
262
pipe_ctx->pipe_dlg_param.htotal = pipe_ctx->stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
263
pipe_ctx->pipe_dlg_param.vtotal = pipe_ctx->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
268
pipe_ctx->pipe_dlg_param.vfront_porch = pipe_ctx->stream->timing.v_front_porch;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
269
pipe_ctx->pipe_dlg_param.pixel_rate_mhz = pipe_ctx->stream->timing.pix_clk_100hz / 10000.00;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
271
pipe_ctx->pipe_dlg_param.vtotal_max = pipe_ctx->stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
272
pipe_ctx->pipe_dlg_param.vtotal_min = pipe_ctx->stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
299
if (!context->res_ctx.pipe_ctx[dc_pipe_ctx_index].stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
306
context->res_ctx.pipe_ctx[dc_pipe_ctx_index].stream->stream_id,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
310
dml_pipe_idx = dml2_helper_find_dml_pipe_idx_by_stream_id(in_ctx, context->res_ctx.pipe_ctx[dc_pipe_ctx_index].stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
316
ASSERT(in_ctx->v20.scratch.dml_to_dc_pipe_mapping.dml_pipe_idx_to_stream_id[dml_pipe_idx] == context->res_ctx.pipe_ctx[dc_pipe_ctx_index].stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
347
if (context->res_ctx.pipe_ctx[dc_pipe_ctx_index].stream && context->res_ctx.pipe_ctx[dc_pipe_ctx_index].plane_state &&
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
440
if (context->res_ctx.pipe_ctx[i].stream->phy_pix_clk != 0) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
443
(1000000 << 6) / context->res_ctx.pipe_ctx[i].stream->phy_pix_clk;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
520
if (!display_state->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
523
display_state->res_ctx.pipe_ctx[i].stream->stream_id,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
527
dml_pipe_idx = dml2_helper_find_dml_pipe_idx_by_stream_id(in_ctx, display_state->res_ctx.pipe_ctx[i].stream->stream_id);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
545
bool dml2_is_stereo_timing(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
549
if ((stream->view_format ==
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
551
stream->view_format ==
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
553
(stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
555
stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.h
46
bool dml2_is_stereo_timing(const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.h
96
enum dc_status dml2_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
106
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
109
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
127
bool (*add_phantom_plane)(const struct dc *dc, struct dc_stream_state *stream, struct dc_plane_state *plane_state, struct dc_state *context);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
129
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
134
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
140
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
143
enum mall_stream_type (*get_stream_subvp_type)(const struct dc_state *state, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
144
struct dc_stream_state *(*get_paired_subvp_stream)(const struct dc_state *state, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
82
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.h
97
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
1104
if (param->stream->link->psr_settings.psr_version >= DC_PSR_VERSION_SU_1 &&
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
1108
hubp->cur_rect.w = param->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/hubp/dcn20/dcn20_hubp.c
1109
hubp->cur_rect.h = param->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1067
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1070
if (dc_is_rgb_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1073
dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1075
link_hwss = get_link_hwss(pipe_ctx->stream->link, &pipe_ctx->link_res);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1106
if (!pipe_ctx || !pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1109
if (dc_is_rgb_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1112
dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1114
link_hwss = get_link_hwss(pipe_ctx->stream->link, &pipe_ctx->link_res);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1138
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1139
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1140
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1152
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1162
} else if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1172
dto_params.timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1192
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1193
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1197
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1200
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1210
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1211
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1227
} else if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1230
if (!dc_is_embedded_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1239
if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1284
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1285
const struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1290
dp_link_info->is_mst = (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1316
struct dc_crtc_timing *crtc_timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1377
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1380
audio_output->signal = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1385
stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1392
stream->timing.h_addressable
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1393
+ stream->timing.h_border_left
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1394
+ stream->timing.h_border_right;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1397
stream->timing.v_addressable
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1398
+ stream->timing.v_border_top
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1399
+ stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1404
stream->timing.flags.INTERLACE;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1407
(stream->timing.pix_clk_100hz*100)/
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1408
(stream->timing.h_total*stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1411
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1420
stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1423
stream->timing.dsc_cfg.bits_per_pixel;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1426
stream->timing.dsc_cfg.num_slices_h;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1429
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1431
(stream->timing.pix_clk_100hz)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1442
(pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1443
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1459
if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1477
pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1483
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1491
if (pipe_ctx->stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1508
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1513
if (!pipe_ctx_old->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1517
stream->output_color_space, &black_color);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1537
if (dc_is_hdmi_tmds_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1538
stream->link->phy_state.symclk_ref_cnts.otg = 1;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1539
if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1540
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1542
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1547
&stream->timing,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1553
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1557
if (!pipe_ctx_old->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1573
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1574
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1597
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1599
&pipe_ctx->stream->audio_info,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1609
if (!pipe_ctx->stream->apply_seamless_boot_optimization && dc->config.use_pipe_ctx_sync_logic)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1614
&stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1615
&stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1620
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1621
stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1627
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1628
stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1632
&stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1633
&stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1645
if (!pipe_ctx->stream->apply_seamless_boot_optimization)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1651
params.vertical_total_min = stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1652
params.vertical_total_max = stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1653
set_drr_and_clear_adjust_pending(pipe_ctx, stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1656
if (stream->adjust.v_total_min != 0 && stream->adjust.v_total_max != 0)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1666
if (!dc_is_virtual_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1671
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1678
if (pipe_ctx->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1679
if ((pipe_ctx->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1682
(dc_is_dp_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1683
dc_is_virtual_signal(pipe_ctx->stream->signal)))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1687
if (!stream->dpms_off)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1696
if (!pipe_ctx->stream->apply_seamless_boot_optimization)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1707
pipe_ctx->stream->link->psr_settings.psr_feature_enabled = false;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
1708
pipe_ctx->stream->link->replay_settings.replay_feature_enabled = false;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2026
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2034
(stream->timing.h_total * 10) /
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2035
stream->timing.pix_clk_100hz +
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2052
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2056
dc->bw_vbios->blackout_duration, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2090
if (res_ctx->pipe_ctx[i].stream == NULL || res_ctx->pipe_ctx[i].plane_res.mi == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2141
set_drr_and_clear_adjust_pending(pipe_ctx[i], pipe_ctx[i]->stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2178
struct dc *dc = pipe_ctx[0]->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2214
if (res_ctx->pipe_ctx[i].stream) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2229
if (!pipe_ctx->stream->link)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2233
if (pipe_ctx->stream->link->connector_signal != SIGNAL_TYPE_EDP)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2237
if (pipe_ctx->stream->link->psr_settings.psr_feature_enabled)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2241
if (pipe_ctx->stream->link->replay_settings.replay_feature_enabled)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2270
params.source_view_width = pipe_ctx->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2271
params.source_view_height = pipe_ctx->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2301
if (!pipe_ctx_old->stream || pipe_ctx_old->top_pipe)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2304
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2311
if (!pipe_ctx->stream || !pipe_ctx->stream->dpms_off) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2337
if (dc_is_hdmi_tmds_signal(pipe_ctx_old->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2338
pipe_ctx_old->stream->link->phy_state.symclk_ref_cnts.otg = 0;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2349
pipe_ctx_old->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2382
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2387
if (pipe_ctx->stream->signal != SIGNAL_TYPE_HDMI_TYPE_A)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2402
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2408
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2420
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2426
if (!dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2436
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2477
if (pipe_ctx->stream == NULL || pipe_ctx->top_pipe)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2480
if (pipe_ctx->stream == pipe_ctx_old->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2506
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2509
if (pipe_ctx->stream == pipe_ctx_old->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2510
pipe_ctx->stream->link->link_state_valid) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2514
if (pipe_ctx_old->stream && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2551
default_adjust.out_color_space = pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2557
pipe_ctx->stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2622
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2627
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2786
&grouped_pipes[i]->stream->triggered_crtc_reset);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2928
if (pipe_ctx->stream->csc_color_matrix.enable_adjustment
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2931
pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2935
pipe_ctx->stream->csc_color_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2941
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2946
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
2980
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3022
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3037
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3043
pipe_ctx->stream->timing.h_total,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3044
pipe_ctx->stream->timing.v_total,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3045
pipe_ctx->stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3073
if (dc->current_state->res_ctx.pipe_ctx[fe_idx].stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3100
if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3101
enum dc_color_space color_space = pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3104
tbl_entry.regval[i] = pipe_ctx->stream->csc_color_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3115
struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3119
.pixel_clk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3120
.ref_clk_khz = pipe_ctx->stream->ctx->dc->res_pool->ref_clocks.xtalin_clock_inKhz,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3160
struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3183
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3216
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3220
pipe_ctx->stream->link->panel_cntl->inst);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3229
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3304
if (pipes[i].stream != NULL &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3305
pipes[i].stream->link == link) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
3310
pipes[i].stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
608
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
615
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED &&
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
616
stream->out_transfer_func.tf == TRANSFER_FUNCTION_SRGB) {
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
618
} else if (dce110_translate_regamma_to_hw_format(&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
636
ASSERT(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
641
is_hdmi_tmds = dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
642
is_dp = dc_is_dp_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
666
pipe_ctx->stream->link->cur_link_settings.lane_count;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
667
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
668
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
126
params.source_view_width = pipe_ctx->stream->timing.h_addressable;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
127
params.source_view_height = pipe_ctx->stream->timing.v_addressable;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
149
default_adjust.out_color_space = pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
155
pipe_ctx->stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
243
pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
249
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
257
if (pipe_ctx->stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
289
if (pipe_ctx->stream->csc_color_matrix.enable_adjustment
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
292
pipe_ctx->stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
296
pipe_ctx->stream->csc_color_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
302
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
307
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
341
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
383
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
398
if (pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
404
pipe_ctx->stream->timing.h_total,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
405
pipe_ctx->stream->timing.v_total,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
406
pipe_ctx->stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
71
if (res_ctx->pipe_ctx[i].stream) {
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
89
if (!pipe_ctx->stream->link)
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
93
if (pipe_ctx->stream->link->connector_signal != SIGNAL_TYPE_EDP)
drivers/gpu/drm/amd/display/dc/hwss/dce60/dce60_hwseq.c
97
if (pipe_ctx->stream->link->psr_settings.psr_feature_enabled)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
105
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
111
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1126
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1140
if (old_pipe_ctx->stream != stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
117
pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1184
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1211
if (dc_is_hdmi_tmds_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1212
stream->link->phy_state.symclk_ref_cnts.otg = 1;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1213
if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1214
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1216
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1221
&stream->timing,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1227
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1238
&stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1239
&stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1242
color_space = stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1250
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1262
false_optc_underflow_wa(dc, pipe_ctx->stream, pipe_ctx->stream_res.tg);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1291
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1295
link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1302
if (!pipe_ctx->stream->dpms_off || link->link_status.link_active)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1333
set_drr_and_clear_adjust_pending(pipe_ctx, pipe_ctx->stream, NULL);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1334
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1335
pipe_ctx->stream->link->phy_state.symclk_ref_cnts.otg = 0;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1345
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
142
lines_to_vupdate = stream->timing.v_total - vpos + vupdate_start;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
147
stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
151
vupdate_end += stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
153
if (lines_to_vupdate > stream->timing.v_total - vupdate_end + vupdate_start)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1546
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1593
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1617
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1633
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1651
pipe_ctx->stream != NULL &&
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
184
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1960
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1966
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1986
(pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1988
pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
1995
if (pipe_ctx->stream->view_format != VIEW_3D_FORMAT_NONE &&
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2111
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2115
if (!stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2123
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED &&
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2124
stream->out_transfer_func.tf == TRANSFER_FUNCTION_SRGB)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2131
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2139
if (stream->ctx) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2140
log_tf(stream->ctx,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2141
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2193
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2215
lines_to_vupdate = stream->timing.v_total - vpos + vupdate_start;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2220
stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2225
vupdate_end += stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2228
if (lines_to_vupdate > stream->timing.v_total - vupdate_end + vupdate_start)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2249
if (pipe->stream && should_use_dmub_inbox1_lock(dc, pipe->stream->link)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2357
pipe->stream->timing.pix_clk_100hz * 100 /
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2358
pipe->stream->timing.h_total /
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2359
pipe->stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
239
!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2425
grouped_pipes[i]->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2447
grouped_pipes[i]->stream->has_non_synchronizable_pclk = true;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2453
if (i != embedded && !grouped_pipes[i]->stream->has_non_synchronizable_pclk) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2461
grouped_pipes[i]->stream->timing.pix_clk_100hz =
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2502
if (grouped_pipes[i]->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2504
grouped_pipes[i]->stream->vblank_synchronized = false;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2505
grouped_pipes[i]->stream->has_non_synchronizable_pclk = false;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2516
if (i != master && !grouped_pipes[i]->stream->has_non_synchronizable_pclk)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2520
grouped_pipes[master]->stream->timing.pix_clk_100hz,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2521
grouped_pipes[i]->stream->timing.pix_clk_100hz,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2524
grouped_pipes[i]->stream->vblank_synchronized = true;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2526
grouped_pipes[master]->stream->vblank_synchronized = true;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2556
if (grouped_pipes[i]->stream && dc_state_get_pipe_subvp_type(state, grouped_pipes[i]) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2573
if (grouped_pipes[i]->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2576
if (grouped_pipes[i]->stream && dc_state_get_pipe_subvp_type(state, grouped_pipes[i]) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2579
grouped_pipes[i]->stream->vblank_synchronized = false;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2583
if (grouped_pipes[i]->stream && dc_state_get_pipe_subvp_type(state, grouped_pipes[i]) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2597
if (grouped_pipes[1]->stream && dc_state_get_pipe_subvp_type(state, grouped_pipes[1]) != SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2601
if (grouped_pipes[i]->stream && dc_state_get_pipe_subvp_type(state, grouped_pipes[i]) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2638
&grouped_pipes[i]->stream->triggered_crtc_reset);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2777
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2781
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2832
if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
2905
pipe_ctx->stream->output_color_space)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3092
if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3109
pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3110
pipe_ctx->stream->csc_color_matrix.matrix,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3150
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3153
color_space = stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3161
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3175
stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3223
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, true);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3250
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3269
!pipe_ctx->stream || !pipe_ctx->plane_state ||
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3296
pipe_ctx->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3300
false_optc_underflow_wa(dc, pipe_ctx->stream, tg);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3437
set_drr_and_clear_adjust_pending(pipe_ctx[i], pipe_ctx[i]->stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3478
struct dc_stream_state *stream, struct crtc_stereo_flags *flags)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3480
enum view_3d_format view_format = stream->view_format;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3482
stream->timing.timing_3d_format;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3500
if (stream->link && stream->link->ddc) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3502
stream->link->ddc->dongle_type;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3511
stream->timing.flags.RIGHT_EYE_3D_POLARITY;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3522
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3524
dcn10_config_stereo_parameters(stream, &flags);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3526
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_SIDEBAND_FA) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3536
&stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3540
&stream->timing,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3605
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3648
struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3652
.pixel_clk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3653
.ref_clk_khz = pipe_ctx->stream->ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3659
.stream = pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3872
struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3882
uint32_t sdr_white_level = pipe_ctx->stream->cursor_attributes.sdr_white_level;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3927
const struct dc_crtc_timing *dc_crtc_timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3957
const struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3973
const struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3974
int vline_pos = pipe_ctx->stream->periodic_interrupt.lines_offset;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3976
if (pipe_ctx->stream->periodic_interrupt.ref_point == START_V_UPDATE) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
3988
} else if (pipe_ctx->stream->periodic_interrupt.ref_point == START_V_SYNC) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
4027
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
4028
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
4032
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
4036
if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c
4051
if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h
221
struct dc_stream_state *stream, struct crtc_stereo_flags *flags);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.h
77
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1015
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1031
if (stream->out_transfer_func.type == TF_TYPE_HWPWL)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1032
params = &stream->out_transfer_func.pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1033
else if (pipe_ctx->stream->out_transfer_func.type ==
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1036
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1042
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1196
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1206
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1207
enum dc_color_space color_space = stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1213
if (stream->link->test_pattern_enabled)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1238
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1251
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1260
stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1445
if (pipe->stream && should_use_dmub_inbox1_lock(dc, pipe->stream->link)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1519
if (new_pipe->stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE &&
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1535
if (new_pipe->stream && dc_state_get_pipe_subvp_type(new_state, new_pipe) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1696
&pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1762
pipe_ctx->stream->update_flags.bits.scaling) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1773
(context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1788
pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1803
|| pipe_ctx->stream->update_flags.bits.gamut_remap
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1805
|| pipe_ctx->stream->update_flags.bits.out_csc) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1812
pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1813
pipe_ctx->stream->csc_color_matrix.matrix,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1909
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, true);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1926
pipe_ctx->stream->update_flags.bits.abm_level)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1962
pipe_ctx->stream->update_flags.raw))
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1982
pipe_ctx->stream->update_flags.bits.out_tf)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1983
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1996
pipe_ctx->stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
1997
pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2001
&pipe_ctx->stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2002
&pipe_ctx->stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2010
pipe_ctx->stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2083
struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2087
if (context->res_ctx.pipe_ctx[i].update_flags.bits.disable && stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2104
&& context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2165
if (pipe->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2177
&& pipe->stream && pipe->stream->num_wb_info > 0
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2179
|| pipe->stream->update_flags.raw)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2181
hws->funcs.program_all_writeback_pipes_in_tree(dc, pipe->stream, context);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2186
pipe->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2308
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2380
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) != SUBVP_NONE) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2424
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) != SUBVP_NONE) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2463
if (pipe_ctx->stream && pipe_ctx->plane_res.hubp->funcs->program_extended_blank
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2464
&& pipe_ctx->stream->adjust.v_total_min == pipe_ctx->stream->adjust.v_total_max
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2465
&& pipe_ctx->stream->adjust.v_total_max > pipe_ctx->stream->timing.v_total)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2505
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, false);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2636
dc_is_hdmi_signal(pipe_ctx->stream->signal) ? 32 : 36;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2638
pipe_ctx->stream->dmdata_address.quad_part;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2696
(pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2698
pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2706
if (pipe_ctx->stream->view_format != VIEW_3D_FORMAT_NONE &&
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2749
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2750
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2754
pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2762
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2771
} else if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2802
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2809
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2819
if (!pipe_ctx->stream->dpms_off || link->link_status.link_active)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2852
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2854
set_drr_and_clear_adjust_pending(pipe_ctx, pipe_ctx->stream, NULL);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2859
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2863
&pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2869
dto_params.timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2880
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2902
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
2908
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3008
pipe_ctx->stream->link->cur_link_settings.lane_count;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3010
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3011
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3017
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3031
dto_params.pixclk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3033
dto_params.timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3075
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3095
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3099
enum dynamic_metadata_mode mode = dc_is_dp_signal(stream->signal)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
3104
if (pipe_ctx->stream->dmdata_address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
724
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
762
static int calc_mpc_flow_ctrl_cnt(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
771
flow_ctrl_cnt = stream->timing.h_total - stream->timing.h_addressable -
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
772
stream->timing.h_border_left -
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
773
stream->timing.h_border_right;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
822
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
827
bool interlace = stream->timing.flags.INTERLACE;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
832
pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
889
dto_params.pixclk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
891
dto_params.timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
896
if (dc_is_hdmi_tmds_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
897
stream->link->phy_state.symclk_ref_cnts.otg = 1;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
898
if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
899
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
901
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
904
if (dc->hwseq->funcs.PLAT_58856_wa && (!dc_is_dp_signal(stream->signal)))
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
909
&stream->timing,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
915
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
921
flow_control.flow_ctrl_cnt1 = calc_mpc_flow_ctrl_cnt(stream, opp_cnt,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
939
stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
951
udelay(stream->timing.v_total * (stream->timing.h_total * 10000u / stream->timing.pix_clk_100hz));
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
953
params.vertical_total_min = stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
954
params.vertical_total_max = stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
955
params.vertical_total_mid = stream->adjust.v_total_mid;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
956
params.vertical_total_mid_frame_num = stream->adjust.v_total_mid_frame_num;
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
957
set_drr_and_clear_adjust_pending(pipe_ctx, stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
960
if (stream->adjust.v_total_min != 0 && stream->adjust.v_total_max != 0)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c
999
if (pipe_ctx->stream->csc_color_matrix.enable_adjustment == true) {
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.h
48
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
444
dc, pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
561
struct dc_cursor_attributes *attributes = &pipe_ctx->stream->cursor_attributes;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
563
gpu_addr_to_uma(pipe_ctx->stream->ctx->dc->hwseq, &attributes->address);
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
576
gpu_addr_to_uma(pipe_ctx->stream->ctx->dc->hwseq,
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
577
&pipe_ctx->stream->dmdata_address);
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
581
dc_is_hdmi_signal(pipe_ctx->stream->signal) ? 32 : 36;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
583
pipe_ctx->stream->dmdata_address.quad_part;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
598
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
599
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
603
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
607
if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
609
if (pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing))
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
67
(pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
69
pipe_ctx->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c
76
if (pipe_ctx->stream->view_format != VIEW_3D_FORMAT_NONE &&
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
130
if (!pipe_ctx->stream->dpms_off)
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
133
pipe_ctx->stream->dpms_off = false;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
134
pipe_ctx->stream->ctx->dc->link_srv->set_dpms_on(context, pipe_ctx);
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
135
pipe_ctx->stream->ctx->dc->link_srv->set_dpms_off(pipe_ctx);
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
136
pipe_ctx->stream->dpms_off = true;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
182
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
183
struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
187
if (pipe_ctx->stream->abm_level == 0 || pipe_ctx->stream->abm_level == ABM_LEVEL_IMMEDIATE_DISABLE) {
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
215
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
216
struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
246
struct dc_context *dc = pipe_ctx->stream->ctx;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
249
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
288
struct dc_state *context, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c
295
if (pipe_ctx->stream == stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.h
57
struct dc_state *context, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
1072
dc_stream_program_cursor_attributes(stream, &cursor_attr);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
1159
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
257
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
261
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
269
if (stream->func_shaper) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
270
if (stream->func_shaper->type == TF_TYPE_HWPWL) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
271
shaper_lut = &stream->func_shaper->pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
272
} else if (stream->func_shaper->type == TF_TYPE_DISTRIBUTED_POINTS) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
273
cm_helper_translate_curve_to_hw_format(stream->ctx, stream->func_shaper,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
279
if (stream->lut3d_func &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
280
stream->lut3d_func->state.bits.initialized == 1 &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
281
stream->lut3d_func->state.bits.rmu_idx_valid == 1) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
282
if (stream->lut3d_func->state.bits.rmu_mux_num == 0)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
283
mpcc_id_projected = stream->lut3d_func->state.bits.mpc_rmu0_mux;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
284
else if (stream->lut3d_func->state.bits.rmu_mux_num == 1)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
285
mpcc_id_projected = stream->lut3d_func->state.bits.mpc_rmu1_mux;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
286
else if (stream->lut3d_func->state.bits.rmu_mux_num == 2)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
287
mpcc_id_projected = stream->lut3d_func->state.bits.mpc_rmu2_mux;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
294
stream->lut3d_func->state.bits.rmu_mux_num);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
295
if (acquired_rmu != stream->lut3d_func->state.bits.rmu_mux_num)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
298
result = mpc->funcs->program_3dlut(mpc, &stream->lut3d_func->lut_3d,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
299
stream->lut3d_func->state.bits.rmu_mux_num);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
304
stream->lut3d_func->state.bits.rmu_mux_num);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
383
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
387
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
396
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
406
ret = dcn30_set_mpc_shaper_3dlut(pipe_ctx, stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
408
if (stream->out_transfer_func.type == TF_TYPE_HWPWL)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
409
params = &stream->out_transfer_func.pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
410
else if (pipe_ctx->stream->out_transfer_func.type ==
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
412
cm3_helper_translate_curve_to_hw_format(stream->ctx,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
413
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
417
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
577
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
586
ASSERT(stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
588
if (context->streams[i_stream] == stream) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
595
ASSERT(stream->num_wb_info <= dc->res_pool->res_cap->num_dwb);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
597
for (i_wb = 0; i_wb < stream->num_wb_info; i_wb++) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
600
wb_info = stream->writeback_info[i_wb];
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
838
if (dc_is_hdmi_signal(pipe_ctx->stream->signal) && pipe_ctx->stream_res.stream_enc != NULL) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
859
ASSERT(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
864
is_hdmi_tmds = dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
865
is_dp = dc_is_dp_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
888
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
892
enum dynamic_metadata_mode mode = dc_is_dp_signal(stream->signal)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
897
if (pipe_ctx->stream->dmdata_address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
918
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
947
stream = dc->current_state->streams[0];
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
948
plane = (stream ? dc->current_state->stream_status[0].plane_states[0] : NULL);
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
950
if (!stream || !plane)
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
953
if (stream && plane) {
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
954
cursor_cache_enable = stream->cursor_position.enable &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
956
cursor_attr = stream->cursor_attributes;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
969
stream->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED &&
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
978
unsigned int v_total = stream->adjust.v_total_max ?
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
979
stream->adjust.v_total_max : stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
980
unsigned int refresh_hz = div_u64((unsigned long long) stream->timing.pix_clk_100hz *
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
981
100LL, (v_total * stream->timing.h_total));
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
37
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.h
70
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
381
ASSERT(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
386
is_hdmi_tmds = dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
387
is_dp = dc_is_dp_signal(pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
396
else if (pipe_ctx->stream->ctx->dc->link_srv->dp_is_128b_132b_signal(pipe_ctx)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
518
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
525
link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
530
if ((!pipe_ctx->stream->dpms_off || link->link_status.link_active) &&
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
546
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
552
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
559
link_hwss->disable_link_output(link, &pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
564
set_drr_and_clear_adjust_pending(pipe_ctx, pipe_ctx->stream, NULL);
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
572
if (!pipe_ctx->stream->dpms_off || link->link_status.link_active)
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
581
if (pipe_ctx->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
582
if ((pipe_ctx->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
585
(dc_is_dp_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
586
dc_is_virtual_signal(pipe_ctx->stream->signal)))
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
606
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
624
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
630
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
708
struct dc_context *dc = pipe_ctx->stream->ctx;
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
711
struct panel_cntl *panel_cntl = pipe_ctx->stream->link->panel_cntl;
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.h
57
struct dc_state *context, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
103
dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
104
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
105
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
106
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
108
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
192
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
213
update_dsc_on_stream(pipe_ctx, pipe_ctx->stream->timing.flags.DSC);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
330
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
334
two_pix_per_container = pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
337
if (stream->ctx->dc->link_srv->dp_is_128b_132b_signal(pipe_ctx)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
340
} else if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal) || dc_is_dvi_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
342
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
346
} else if (dc_is_dp_signal(pipe_ctx->stream->signal) || dc_is_virtual_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
367
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
374
pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
387
return pipe && pipe->stream
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
392
&& pipe->stream->link && pipe->stream->link->link_enc
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
393
&& pipe->stream->link->link_enc->funcs->is_dig_enabled
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
394
&& pipe->stream->link->link_enc->funcs->is_dig_enabled(pipe->stream->link->link_enc)
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
415
if (pipe->stream && (pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal)) &&
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
416
!pipe->stream->apply_seamless_boot_optimization &&
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
417
!pipe->stream->apply_edp_fast_boot_optimization) {
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
490
if (pipe_ctx->stream && pipe_ctx->stream->link == link && pipe_ctx->top_pipe == NULL) {
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
65
stream->ctx->logger
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c
75
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.h
42
void dcn314_calculate_pix_rate_divider(struct dc *dc, struct dc_state *context, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1023
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1024
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1038
stream->timing.pix_clk_100hz > 480000;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1064
dsc_cfg.pic_width = (stream->timing.h_addressable + pipe_ctx->dsc_padding_params.dsc_hactive_padding +
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1065
stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1066
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1067
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1068
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1070
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1156
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1164
pipe_ctx->stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1171
dcn32_update_dsc_on_stream(pipe_ctx, pipe_ctx->stream->timing.flags.DSC);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1193
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1196
struct dce_hwseq *hws = stream->ctx->dc->hwseq;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1198
two_pix_per_container = pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1201
if (stream->ctx->dc->link_srv->dp_is_128b_132b_signal(pipe_ctx)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1204
} else if (dc_is_hdmi_tmds_signal(stream->signal) || dc_is_dvi_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1206
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1210
} else if (dc_is_dp_signal(stream->signal) || dc_is_virtual_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1232
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1239
pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1270
if ((pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1314
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1315
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1326
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1335
} else if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1336
if (pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing) ||
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1353
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1355
if (!is_h_timing_divisible_by_2(pipe_ctx->stream))
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1358
if (dc_is_dp_signal(pipe_ctx->stream->signal) && !dc->link_srv->dp_is_128b_132b_signal(pipe_ctx) &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1388
if (resource_is_pipe_type(pipe_ctx, OPP_HEAD) && pipe_ctx->stream->link == link) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1446
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_MAIN &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1447
dc_state_get_paired_subvp_stream(context, pipe->stream) == phantom_pipe->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1554
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1563
if (!pipe_ctx->stream || pipe_need_reprogram(pipe_ctx_old, pipe_ctx) ||
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1564
(pipe_ctx->stream && dc_state_get_pipe_subvp_type(context, pipe_ctx) != SUBVP_PHANTOM)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1591
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_PHANTOM &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1592
old_pipe->stream && dc_state_get_pipe_subvp_type(dc->current_state, old_pipe) != SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1606
if (pipe_ctx->stream == NULL)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1612
if (pipe_ctx->stream == pipe_ctx_old->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1613
pipe_ctx->stream->link->link_state_valid) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1617
if (pipe_ctx_old->stream && !pipe_need_reprogram(pipe_ctx_old, pipe_ctx))
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1734
const struct dc_stream_state *cur_paired_stream = dc_state_get_paired_subvp_stream(cur_ctx, cur_pipe->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1735
const struct dc_stream_state *new_paired_stream = dc_state_get_paired_subvp_stream(new_ctx, new_pipe->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
1761
if (cur_pipe->stream->stream_id == new_pipe->stream->stream_id ||
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
241
if (!pipe->stream || !pipe->plane_state)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
363
if (pipe_ctx->stream && dc_state_get_pipe_subvp_type(context, pipe_ctx) == SUBVP_MAIN) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
395
if (pipe->stream && pipe->plane_state && pipe_mall_type == SUBVP_MAIN) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
401
if (top_pipe_to_program && top_pipe_to_program->stream && top_pipe_to_program->plane_state) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
414
if (pipe->stream && pipe->plane_state && pipe_mall_type == SUBVP_MAIN &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
447
struct pipe_ctx *pipe_ctx, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
451
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
457
if (stream->func_shaper) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
458
if (stream->func_shaper->type == TF_TYPE_HWPWL)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
459
shaper_lut = &stream->func_shaper->pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
460
else if (stream->func_shaper->type == TF_TYPE_DISTRIBUTED_POINTS) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
461
cm_helper_translate_curve_to_hw_format(stream->ctx,
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
462
stream->func_shaper,
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
468
if (stream->lut3d_func &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
469
stream->lut3d_func->state.bits.initialized == 1) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
471
result = mpc->funcs->program_3dlut(mpc, &stream->lut3d_func->lut_3d, mpcc_id);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
571
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
581
ret = dcn32_set_mpc_shaper_3dlut(pipe_ctx, stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
583
if (stream->out_transfer_func.type == TF_TYPE_HWPWL)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
584
params = &stream->out_transfer_func.pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
585
else if (pipe_ctx->stream->out_transfer_func.type ==
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
587
cm3_helper_translate_curve_to_hw_format(stream->ctx,
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
588
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
592
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
620
if (pipe->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
621
stream_status = dc_state_get_stream_status(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
623
if (!pipe->stream || !(dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_MAIN ||
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
653
if (pipe->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
654
stream_status = dc_state_get_stream_status(context, pipe->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
655
if (old_pipe->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
656
old_stream_status = dc_state_get_stream_status(dc->current_state, old_pipe->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
658
if (pipe->stream && (dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_MAIN ||
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
660
(!old_pipe->stream || (dc_state_get_pipe_subvp_type(dc->current_state, old_pipe) != SUBVP_MAIN &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
684
if (pipe->stream && pipe->plane_state && hubp && hubp->funcs->hubp_update_mall_sel) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
713
pipe->stream->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED &&
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
744
if (pipe->stream && hubp && hubp->funcs->hubp_prepare_subvp_buffering) {
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
58
struct pipe_ctx *pipe_ctx, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
62
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.h
94
void dcn32_calculate_pix_rate_divider(struct dc *dc, struct dc_state *context, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1039
(!cur_pipe->stream && new_pipe->stream) ||
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1040
(cur_pipe->stream != new_pipe->stream && new_pipe->stream)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1421
if (pipe_ctx[i]->stream && pipe_ctx[i]->stream->ctx->dc->debug.static_screen_wait_frames) {
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1422
struct dc_crtc_timing *timing = &pipe_ctx[i]->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1423
struct dc *dc = pipe_ctx[i]->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1432
set_drr_and_clear_adjust_pending(pipe_ctx[i], pipe_ctx[i]->stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1471
if (pipe_ctx[i]->stream) {
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1472
struct dc_crtc_timing *timing = &pipe_ctx[i]->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1498
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1500
const struct dc *dc = pipe_ctx->stream->link->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1506
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1543
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1545
if (!is_h_timing_divisible_by_2(pipe_ctx->stream))
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1551
if (dc_is_dp_signal(pipe_ctx->stream->signal) && !dc->link_srv->dp_is_128b_132b_signal(pipe_ctx) &&
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1721
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1723
dc_dmub_srv_control_cursor_offload(dc, context, stream, true);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
1739
if (pipe_ctx->stream && pipe_ctx->stream->link == link && pipe_ctx->top_pipe == NULL) {
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
330
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
334
DC_LOGGER_INIT(stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
359
dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
360
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
361
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
362
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
364
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
448
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
469
update_dsc_on_stream(pipe_ctx, pipe_ctx->stream->timing.flags.DSC);
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
574
struct dc_stream_state *stream = dc->current_state->streams[i];
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
575
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
582
if (stream->dpms_off)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
586
if (!dc_is_embedded_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
645
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
669
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
685
if (pipe_ctx->stream != NULL && can_apply_seamless_boot)
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
703
pipe_ctx->stream != NULL &&
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
884
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.h
109
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1007
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1037
if (pipe_ctx->stream && pipe_ctx->stream->link == link && pipe_ctx->top_pipe == NULL) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1083
struct dc_cursor_position pos_cpy = pipe_ctx->stream->cursor_position;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1087
.pixel_clk_khz = pipe_ctx->stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1088
.ref_clk_khz = pipe_ctx->stream->ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1095
.stream = pipe_ctx->stream
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1137
x_pos = pipe_ctx->stream->dst.x + x_pos * pipe_ctx->stream->dst.width /
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1138
pipe_ctx->stream->src.width;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1139
y_pos = pipe_ctx->stream->dst.y + y_pos * pipe_ctx->stream->dst.height /
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1140
pipe_ctx->stream->src.height;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1265
if (!pipe->stream || !pipe->plane_state)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
129
if (pipe_ctx->stream->gamut_remap_matrix.enable_remap == true) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
133
pipe_ctx->stream->gamut_remap_matrix.matrix[i];
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1480
if (pipe_ctx->stream && pipe_ctx->plane_res.hubp->funcs->program_extended_blank
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1481
&& pipe_ctx->stream->adjust.v_total_min == pipe_ctx->stream->adjust.v_total_max
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1482
&& pipe_ctx->stream->adjust.v_total_max > pipe_ctx->stream->timing.v_total)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1565
otg_master->stream->timing.flags.DSC);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1600
&otg_master->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1608
opp_heads[i]->stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1643
if (otg_master->stream_res.dsc && otg_master->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1644
struct dc_stream_state *stream = otg_master->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1649
stream->timing.pix_clk_100hz > 480000;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1655
int num_slices_h = stream->timing.dsc_cfg.num_slices_h / opp_cnt;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1692
} else if (otg_master->stream_res.dsc && !otg_master->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1735
hwss_add_optc_set_odm_bypass(seq_state, otg_master->stream_res.tg, &otg_master->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1745
opp_heads[i]->stream->timing.pixel_encoding, resource_is_pipe_type(opp_heads[i], OTG_MASTER));
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1763
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1764
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1770
params.timing = pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1778
} else if (dc_is_dp_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1823
if (!otg_master->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1968
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1973
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
1983
if (!pipe_ctx->stream->dpms_off || link->link_status.link_active)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2016
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2018
set_drr_and_clear_adjust_pending(pipe_ctx, pipe_ctx->stream, NULL);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2024
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2028
&pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2042
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2064
if (!pipe_ctx_old->stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2070
if (!pipe_ctx->stream ||
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2128
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, true);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2145
pipe_ctx->stream->update_flags.bits.abm_level)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2180
pipe_ctx->stream->update_flags.raw))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2200
pipe_ctx->stream->update_flags.bits.out_tf)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2201
hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2214
pipe_ctx->stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2215
pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2219
&pipe_ctx->stream->bit_depth_params,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2220
&pipe_ctx->stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2228
pipe_ctx->stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2271
pipe_ctx->stream->update_flags.bits.abm_level) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2296
hwss_add_tg_set_vtg_params(seq_state, pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, true);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2327
pipe_ctx->stream->update_flags.raw)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2354
pipe_ctx->stream->update_flags.bits.out_tf) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2355
hwss_add_dpp_set_output_transfer_func(seq_state, dc, pipe_ctx, pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2367
pipe_ctx->stream->timing.display_color_depth, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2370
&pipe_ctx->stream->bit_depth_params, &pipe_ctx->stream->clamping);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2378
hwss_add_abm_set_level(seq_state, pipe_ctx->stream_res.abm, pipe_ctx->stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2454
struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2458
if (context->res_ctx.pipe_ctx[i].update_flags.bits.disable && stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2475
&& context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2536
if (pipe->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2548
&& pipe->stream && pipe->stream->num_wb_info > 0
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2550
|| pipe->stream->update_flags.raw)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2552
hws->funcs.program_all_writeback_pipes_in_tree(dc, pipe->stream, context);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2557
pipe->stream &&
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2645
if (pipe->stream && dc_state_get_pipe_subvp_type(context, pipe) == SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2733
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, false);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2747
&pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2805
if (new_pipe->stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE &&
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
2821
if (new_pipe->stream && dc_state_get_pipe_subvp_type(new_state, new_pipe) == SUBVP_PHANTOM)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3131
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3132
enum dc_color_space color_space = stream->output_color_space;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3138
if (stream->link->test_pattern_enabled)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3166
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3183
stream->timing.display_color_depth,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3197
hwss_add_abm_set_level(seq_state, stream_res->abm, stream->abm_level);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3204
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3211
if (!stream || stream->num_wb_info > dc->res_pool->res_cap->num_dwb)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3215
for (i_wb = 0; i_wb < stream->num_wb_info; i_wb++) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3217
struct dc_writeback_info *wb_info = (struct dc_writeback_info *)&stream->writeback_info[i_wb];
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3465
pipe_ctx->stream = NULL;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3616
&pipe_ctx->global_sync, &pipe_ctx->stream->timing);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3671
pipe_ctx->stream->update_flags.bits.scaling) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3681
(context == dc->current_state && pipe_ctx->stream->update_flags.bits.scaling)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3694
pipe_ctx->stream->cursor_attributes.address.quad_part != 0) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3711
pipe_ctx->stream->update_flags.bits.gamut_remap ||
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3713
pipe_ctx->stream->update_flags.bits.out_csc) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3719
hwss_add_program_output_csc(seq_state, dc, pipe_ctx, pipe_ctx->stream->output_color_space,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3720
pipe_ctx->stream->csc_color_matrix.matrix, hubp->opp_id);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3943
if (pipe->stream && pipe->plane_state && hubp && hubp->funcs->hubp_update_mall_sel) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3971
pipe->stream->link->psr_settings.psr_version == DC_PSR_VERSION_UNSUPPORTED &&
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
3984
if (pipe->stream && hubp && hubp->funcs->hubp_prepare_subvp_buffering) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
674
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
684
ret = dcn32_set_mpc_shaper_3dlut(pipe_ctx, stream);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
686
if (stream->out_transfer_func.type == TF_TYPE_HWPWL)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
687
params = &stream->out_transfer_func.pwl;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
688
else if (pipe_ctx->stream->out_transfer_func.type ==
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
690
cm3_helper_translate_curve_to_hw_format(stream->ctx,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
691
&stream->out_transfer_func,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
695
if (stream->out_transfer_func.type == TF_TYPE_PREDEFINED)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
709
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
711
if (dc_is_tmds_signal(stream->signal) || dc_is_virtual_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
712
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
737
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
740
if (dc_is_tmds_signal(stream->signal) || dc_is_virtual_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
747
if (dc_is_tmds_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
748
stream->link->phy_state.symclk_ref_cnts.otg = 1;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
749
if (stream->link->phy_state.symclk_state == SYMCLK_OFF_TX_OFF)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
750
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_OFF;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
752
stream->link->phy_state.symclk_state = SYMCLK_ON_TX_ON;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
755
params->vertical_total_min = stream->adjust.v_total_min;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
756
params->vertical_total_max = stream->adjust.v_total_max;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
757
params->vertical_total_mid = stream->adjust.v_total_mid;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
758
params->vertical_total_mid_frame_num = stream->adjust.v_total_mid_frame_num;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
761
if (stream->adjust.v_total_min != 0 && stream->adjust.v_total_max != 0)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
771
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
777
struct dc_crtc_timing patched_crtc_timing = stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
810
if (dc_is_dp_signal(stream->signal) || dc_is_virtual_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
829
if (dc->hwseq->funcs.PLAT_58856_wa && (!dc_is_dp_signal(stream->signal)))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
847
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
856
stream->timing.pixel_encoding,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
873
set_drr_and_clear_adjust_pending(pipe_ctx, stream, &params);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
925
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
926
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
928
pipe_ctx->stream->link->cur_link_settings.lane_count;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
933
*phyd32clk = get_phyd32clk_src(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
936
if (dc_is_tmds_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
959
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
961
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
976
if (dc_is_dp_signal(pipe_ctx->stream->signal) || dc_is_virtual_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
138
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h
43
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1012
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1107
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1148
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
115
const struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1217
struct dc_state *context, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1365
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h
1629
struct dc *dc, struct pipe_ctx *pipe_ctx, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
163
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
167
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer_private.h
96
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
134
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
168
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
176
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
207
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
226
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/core_types.h
450
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/inc/hw/link_encoder.h
117
struct link_encoder *enc, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/hw/link_encoder.h
202
struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/inc/link_enc_cfg.h
105
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/link_enc_cfg.h
71
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/link_service.h
138
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/link_service.h
205
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/link_service.h
208
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/link_service.h
271
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/link_service.h
305
bool (*dp_setup_replay)(struct dc_link *link, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
112
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
295
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
304
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
347
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/resource.h
381
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
581
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
586
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/inc/resource.h
592
void resource_build_bit_depth_reduction_params(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/inc/resource.h
623
bool is_h_timing_divisible_by_2(struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
123
pipes[i]->stream->signal,
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
125
&pipes[i]->stream->audio_info,
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
153
stream_update.stream = streams_on_link[i];
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
269
for (modes = 0; modes < pipe_ctx->stream->audio_info.mode_count; modes++) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
488
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
508
pipe_ctx->stream->bit_depth_params = params;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
546
resource_build_bit_depth_reduction_params(pipe_ctx->stream, &params);
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
547
pipe_ctx->stream->bit_depth_params = params;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
667
if (pipes[i].stream == NULL)
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
671
pipes[i].stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
877
if (!pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
881
if (should_use_dmub_inbox1_lock(pipe_ctx->stream->link->dc, pipe_ctx->stream->link)) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
900
pipe_ctx->stream->output_color_space = color_space;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
903
if (pipe_ctx->stream->use_vsc_sdp_for_colorimetry) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
905
pipe_ctx->stream->vsc_infopacket.sb[17] |= (1 << 7); // sb17 bit 7 Dynamic Range: 0 = VESA range, 1 = CTA range
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
907
pipe_ctx->stream->vsc_infopacket.sb[17] &= ~(1 << 7);
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
910
pipe_ctx->stream->vsc_infopacket.sb[16] &= 0xf0;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
912
pipe_ctx->stream->vsc_infopacket.sb[16] |= 1;
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
929
if (should_use_dmub_inbox1_lock(pipe_ctx->stream->link->dc, pipe_ctx->stream->link)) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
975
if (pipe->stream && pipe->stream->link) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
976
if (pipe->stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
977
link_stream = pipe->stream;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
101
pipe_ctx->stream->signal, false);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
103
if (!dc_is_rgb_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
109
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
110
pipe_ctx->stream->ctx->dc->link_srv->dp_trace_source_sequence(
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
111
pipe_ctx->stream->link,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
119
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
120
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
122
if (!dc_is_virtual_signal(stream->signal) &&
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
123
!dc_is_rgb_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
127
stream->timing.timing_3d_format != TIMING_3D_FORMAT_NONE);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
129
if (dc_is_dp_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
132
&stream->timing,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
133
stream->output_color_space,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
134
stream->use_vsc_sdp_for_colorimetry,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
136
else if (dc_is_hdmi_tmds_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
139
&stream->timing,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
140
stream->phy_pix_clk,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
142
else if (dc_is_dvi_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
145
&stream->timing,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
146
stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
147
else if (dc_is_lvds_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
150
&stream->timing);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
152
if (dc_is_dp_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
257
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
261
&pipe_ctx->stream->audio_info);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
266
&pipe_ctx->stream->audio_info,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
272
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
279
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
280
pipe_ctx->stream->ctx->dc->link_srv->dp_trace_source_sequence(
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
281
pipe_ctx->stream->link,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
291
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
299
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
300
pipe_ctx->stream->ctx->dc->link_srv->dp_trace_source_sequence(
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
301
pipe_ctx->stream->link,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
54
if (!pipe_ctx->stream->ctx->dc->config.unify_link_enc_assignment)
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
55
link_enc = link_enc_cfg_get_link_enc(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
61
if (!dc_is_rgb_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
64
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
65
pipe_ctx->stream->ctx->dc->link_srv->dp_trace_source_sequence(pipe_ctx->stream->link,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
69
pipe_ctx->stream->signal, true);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
85
if (!pipe_ctx->stream->ctx->dc->config.unify_link_enc_assignment)
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_dio.c
86
link_enc = link_enc_cfg_get_link_enc(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
100
stream->use_vsc_sdp_for_colorimetry,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
101
stream->timing.flags.DSC,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
184
&pipe_ctx->stream->audio_info);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
52
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
56
pipe_ctx->stream->link, link_settings);
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
93
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
94
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
98
&stream->timing,
drivers/gpu/drm/amd/display/dc/link/hwss/link_hwss_hpo_dp.c
99
stream->output_color_space,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1019
if (!pipe_ctx->stream->timing.flags.DSC)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1042
if (!pipe_ctx->stream->timing.flags.DSC)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1054
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1056
if (pipe_ctx->stream->signal != SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1057
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1069
(stream->ignore_msa_timing_param) ? 1 : 0;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1077
dm_helpers_mst_enable_stream_features(stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1121
static struct fixed31_32 get_pbn_per_slot(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1124
uint32_t link_rate_in_mbytes_per_sec = dp_link_bandwidth_kbps(stream->link,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1125
&stream->link->cur_link_settings);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1171
kbps = dc_bandwidth_in_kbps_from_timing(&pipe_ctx->stream->timing, link_encoding);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1358
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1359
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1387
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1388
stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1421
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1422
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1425
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1426
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1436
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1437
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1453
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1454
stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1483
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1484
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1488
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1489
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1492
pbn_per_slot = get_pbn_per_slot(stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1513
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1523
dc_bandwidth_in_kbps_from_timing(&stream->timing,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1533
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1550
avg_time_slots_per_mtp = link_calculate_sst_avg_time_slots_per_mtp(stream, link);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1643
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1644
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1668
stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1704
avg_time_slots_per_mtp = link_calculate_sst_avg_time_slots_per_mtp(stream, link);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
172
streams[i] = pipes[i]->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1725
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1726
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1735
pbn_per_slot = get_pbn_per_slot(stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1748
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1749
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
175
stream_update.stream = streams[i];
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1753
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1754
stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1784
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1785
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1792
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1793
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1804
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1805
stream,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1832
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1833
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1838
stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1839
stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1844
pbn_per_slot = get_pbn_per_slot(stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1909
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1910
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1915
bool is_vga_mode = (stream->timing.h_addressable == 640)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1916
&& (stream->timing.v_addressable == 480);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1917
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1920
if (stream->phy_pix_clk == 0)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1921
stream->phy_pix_clk = stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1922
if (stream->phy_pix_clk > 340000)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1924
if (dc_is_tmds_signal(stream->signal) && stream->phy_pix_clk > 6000000UL) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1929
if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1930
unsigned short masked_chip_caps = pipe_ctx->stream->link->chip_caps &
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1949
if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1951
stream->link->ddc,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1952
stream->phy_pix_clk,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1953
stream->timing.flags.LTE_340MCSC_SCRAMBLE);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1955
memset(&stream->link->cur_link_settings, 0,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1958
display_color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1959
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1965
if (dc_is_hdmi_tmds_signal(pipe_ctx->stream->signal) || dc_is_dvi_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1971
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1974
stream->phy_pix_clk);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1976
if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1983
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
1986
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
200
pipe->stream->link == link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2023
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2027
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2032
if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2064
if (stream->sink_patches.oled_optimize_display_on)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2071
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2090
if (!stream->sink_patches.oled_optimize_display_on) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2112
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2113
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2114
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2116
if (stream->phy_pix_clk == 0)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2117
stream->phy_pix_clk = stream->timing.pix_clk_100hz / 10;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2119
memset(&stream->link->cur_link_settings, 0,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2125
stream->phy_pix_clk);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2133
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2162
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2165
link, pipe_ctx->stream->timing.pix_clk_100hz);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2172
struct dc_link *link = pipe_ctx->stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2187
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2190
if (stream == NULL)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2192
link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
220
pipe->stream->dpms_off == false) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2201
disable_link(link, &pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2203
switch (pipe_ctx->stream->signal) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2235
pipe_ctx->stream->link->link_status.link_active = true;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2241
static bool allocate_usb4_bandwidth_for_stream(struct dc_stream_state *stream, int bw)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2243
struct dc_link *link = stream->sink->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2251
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2259
if (stream->sink->sink_id != link->remote_sinks[i]->sink_id)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2273
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2288
static bool allocate_usb4_bandwidth(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2292
int bw = dc_bandwidth_in_kbps_from_timing(&stream->timing,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2293
dc_link_get_highest_encoding_format(stream->sink->link));
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2295
ret = allocate_usb4_bandwidth_for_stream(stream, bw);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2300
static bool deallocate_usb4_bandwidth(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2304
ret = allocate_usb4_bandwidth_for_stream(stream, 0);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2311
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2312
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2313
struct dc_link *link = stream->sink->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2317
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2323
if (dc_is_virtual_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2326
if (pipe_ctx->stream->sink) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2327
if (pipe_ctx->stream->sink->sink_signal != SIGNAL_TYPE_VIRTUAL &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2328
pipe_ctx->stream->sink->sink_signal != SIGNAL_TYPE_NONE) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
233
pipe_ctx->stream->ctx->dc_bios->integrated_info;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2330
pipe_ctx->stream->sink->edid_caps.display_name,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2331
pipe_ctx->stream->signal, link->link_index, link->sink_count);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2335
if (!pipe_ctx->stream->sink->edid_caps.panel_patch.skip_avmute) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2336
if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2346
deallocate_usb4_bandwidth(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2348
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2350
else if (dc_is_dp_sst_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2354
if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2379
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2389
disable_link(pipe_ctx->stream->link, &pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2393
disable_link(pipe_ctx->stream->link, &pipe_ctx->link_res, pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2397
if (pipe_ctx->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2398
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2412
enum dp_panel_mode panel_mode = dp_get_panel_mode(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2422
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2423
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2424
struct dc_link *link = stream->sink->link;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2431
pipe_ctx->stream->apply_edp_fast_boot_optimization;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2433
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2439
if (dc_is_virtual_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2442
if (pipe_ctx->stream->sink) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2443
if (pipe_ctx->stream->sink->sink_signal != SIGNAL_TYPE_VIRTUAL &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2444
pipe_ctx->stream->sink->sink_signal != SIGNAL_TYPE_NONE) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2446
pipe_ctx->stream->sink->edid_caps.display_name,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2447
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2457
if (!dc_is_virtual_signal(pipe_ctx->stream->signal)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2462
pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2465
pipe_ctx->stream->link->link_state_valid = true;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2477
pipe_ctx->stream->apply_edp_fast_boot_optimization = false;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2486
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2490
if (pipe_ctx->stream->apply_seamless_boot_optimization) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2491
pipe_ctx->stream->dpms_off = false;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2494
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2504
if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2506
!pipe_ctx->stream->timing.flags.DSC &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2508
pipe_ctx->stream->dpms_off = false;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2521
if (pipe_ctx->stream->dpms_off)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2539
if (pipe_ctx->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2540
if (dc_is_dp_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2541
dc_is_virtual_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2546
dp_setup_replay(link, stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2552
pipe_ctx->stream->link->link_index,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2561
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2562
if (false == stream->link->link_status.link_active)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2563
disable_link(stream->link, &pipe_ctx->link_res,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2564
pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2580
if (!(dc_is_virtual_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2586
pipe_ctx->stream->signal);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2593
if (pipe_ctx->stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2594
if (dc_is_dp_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2595
dc_is_virtual_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2601
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2605
allocate_usb4_bandwidth(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2607
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2609
else if (dc_is_dp_sst_signal(pipe_ctx->stream->signal) &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2618
if (pipe_ctx->stream->signal == SIGNAL_TYPE_EDP &&
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2623
&pipe_ctx->stream->link->cur_link_settings);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2625
if (stream->sink_patches.delay_ignore_msa > 0)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2626
msleep(stream->sink_patches.delay_ignore_msa);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2628
if (dc_is_dp_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
2634
if (dc_is_hdmi_signal(pipe_ctx->stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
334
cmd.speed = pipe_ctx->stream->ctx->dc->caps.i2c_speed_in_khz;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
342
if (dm_helpers_submit_i2c(pipe_ctx->stream->ctx,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
343
pipe_ctx->stream->link, &cmd))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
362
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
396
pipe_ctx->stream->link->ddc,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
446
pipe_ctx->stream->link->ddc,
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
519
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
641
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
665
struct cp_psp *cp_psp = &pipe_ctx->stream->ctx->cp_psp;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
669
dp_get_panel_mode(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
673
if (!pipe_ctx->stream->ctx->dc->config.unify_link_enc_assignment)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
674
link_enc = link_enc_cfg_get_link_enc(pipe_ctx->stream->link);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
692
config.dig_be = pipe_ctx->stream->link->link_enc_hw_inst;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
700
if (pipe_ctx->stream->link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
701
config.dio_output_idx = pipe_ctx->stream->link->link_id.enum_id - ENUM_ID_1;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
708
pipe_ctx->stream->link->dc, link_enc->transmitter);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
709
if (pipe_ctx->stream->link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
715
config.mst_enabled = (pipe_ctx->stream->signal ==
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
718
config.usb4_enabled = (pipe_ctx->stream->link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA) ?
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
723
config.dm_stream_ctx = pipe_ctx->stream->dm_stream_context;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
730
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
732
if (!dc_is_hdmi_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
775
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
776
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
779
if (dc_is_virtual_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
782
result = dm_helpers_dp_write_dsc_enable(dc->ctx, stream, enable);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
788
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
789
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
792
if (dc_is_virtual_signal(stream->signal))
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
795
result = dm_helpers_dp_write_hblank_reduction(dc->ctx, stream);
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
809
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
810
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
824
stream->timing.pix_clk_100hz > 480000;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
836
dsc_cfg.pic_width = (stream->timing.h_addressable + pipe_ctx->dsc_padding_params.dsc_hactive_padding +
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
837
stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
838
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
839
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
840
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
842
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
866
if (dc_is_dp_signal(stream->signal) && !dp_is_128b_132b_signal(pipe_ctx)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
892
if (dc_is_dp_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
952
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
954
if (!pipe_ctx->stream->timing.flags.DSC)
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
970
dsc_cfg.pic_width = stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
971
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
972
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
973
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
975
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
979
memcpy(&stream->dsc_packed_pps[0], &dsc_packed_pps[0], sizeof(stream->dsc_packed_pps));
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
980
if (dc_is_dp_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
997
memset(&stream->dsc_packed_pps[0], 0, sizeof(stream->dsc_packed_pps));
drivers/gpu/drm/amd/display/dc/link/link_dpms.c
998
if (dc_is_dp_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/link/link_dpms.h
48
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/link_hwss_hpo_frl.c
32
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/link_hwss_hpo_frl.c
42
&stream->timing,
drivers/gpu/drm/amd/display/dc/link/link_hwss_hpo_frl.c
43
&stream->link->frl_link_settings.borrow_params,
drivers/gpu/drm/amd/display/dc/link/link_resource.c
42
if (pipe->stream && pipe->stream->link && pipe->top_pipe == NULL) {
drivers/gpu/drm/amd/display/dc/link/link_resource.c
43
if (pipe->stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/link_validation.c
333
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/link_validation.c
337
uint32_t max_pix_clk = stream->link->dongle_max_pix_clk * 10;
drivers/gpu/drm/amd/display/dc/link/link_validation.c
354
switch (stream->signal) {
drivers/gpu/drm/amd/display/dc/link/link_validation.c
371
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/link_validation.c
377
if (context->res_ctx.pipe_ctx[i].stream && (context->res_ctx.pipe_ctx[i].stream == stream)) {
drivers/gpu/drm/amd/display/dc/link/link_validation.c
400
const struct dc_stream_state *stream = new_ctx->streams[i];
drivers/gpu/drm/amd/display/dc/link/link_validation.c
405
if (stream == NULL)
drivers/gpu/drm/amd/display/dc/link/link_validation.c
408
link = stream->link;
drivers/gpu/drm/amd/display/dc/link/link_validation.c
410
if (!(link && (stream->signal == SIGNAL_TYPE_DISPLAY_PORT
drivers/gpu/drm/amd/display/dc/link/link_validation.c
411
|| stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)))
drivers/gpu/drm/amd/display/dc/link/link_validation.c
417
dp_tunnel_settings = get_dp_tunnel_settings(new_ctx, stream);
drivers/gpu/drm/amd/display/dc/link/link_validation.c
422
timing_bw = dp_get_timing_bandwidth_kbps(&stream->timing, link);
drivers/gpu/drm/amd/display/dc/link/link_validation.h
30
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
1000
struct dc_crtc_timing tmp_timing = stream->timing;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
384
dc_is_dp_signal(pipe_ctx->stream->signal));
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
969
bool link_decide_link_settings(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
972
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
973
uint32_t req_bw = dc_bandwidth_in_kbps_from_timing(&stream->timing, dc_link_get_highest_encoding_format(link));
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
977
if (dc_is_dp_signal(stream->signal) &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
984
} else if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
989
} else if (stream->signal == SIGNAL_TYPE_VIRTUAL) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
994
if (stream->timing.flags.DSC) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.h
78
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.c
149
void link_decide_dp_tunnel_settings(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.c
152
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.c
156
if ((stream->signal == SIGNAL_TYPE_DISPLAY_PORT) || (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.h
44
void link_decide_dp_tunnel_settings(struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
128
if (dc->current_state->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
129
== stream) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
140
((stream->timing.h_total * 1000000) /
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
141
(stream->timing.pix_clk_100hz / 10)) + 1;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
219
if (dc->current_state->res_ctx.pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
220
dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
234
bool dp_setup_replay(struct dc_link *link, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
239
return dp_setup_panel_replay(link, stream);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
241
return edp_setup_freesync_replay(link, stream);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
286
if (dc->current_state->res_ctx.pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
287
dc->current_state->res_ctx.pipe_ctx[i].stream->link &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
288
dc->current_state->res_ctx.pipe_ctx[i].stream->link == link &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
289
dc_is_dp_sst_signal(dc->current_state->res_ctx.pipe_ctx[i].stream->link->connector_signal)) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
321
cmd.pr_copy_settings.data.flags.bitfields.dsc_enable_status = (pipe_ctx->stream->timing.flags.DSC == 1);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
330
if (pipe_ctx->stream->timing.dsc_cfg.num_slices_v > 0)
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
331
cmd.pr_copy_settings.data.dsc_slice_height = (pipe_ctx->stream->timing.v_addressable +
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
332
pipe_ctx->stream->timing.v_border_top + pipe_ctx->stream->timing.v_border_bottom) /
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
333
pipe_ctx->stream->timing.dsc_cfg.num_slices_v;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
60
if (dc->current_state->res_ctx.pipe_ctx[i].stream &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
61
dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
62
struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
64
(stream->timing.pix_clk_100hz * (u64)100),
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
65
stream->timing.v_total),
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
66
stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
73
dc_stream_set_static_screen_params(dc, &stream, 1, &params);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
79
static bool dp_setup_panel_replay(struct dc_link *link, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.h
30
bool dp_setup_replay(struct dc_link *link, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1628
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1629
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1666
if (stream->sink_patches.dppowerup_delay > 0) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1667
int delay_dp_power_up_in_ms = stream->sink_patches.dppowerup_delay;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1692
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1713
stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1733
stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST &&
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
1799
req_bw = dc_bandwidth_in_kbps_from_timing(&stream->timing, link_encoding);
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1032
if (dc->current_state->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1033
== stream) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1044
((stream->timing.h_total * 1000000) /
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1045
(stream->timing.pix_clk_100hz / 10)) + 1;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1197
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1199
if (stream && stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1287
struct cp_psp *cp_psp = &pipe_ctx->stream->ctx->cp_psp;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
538
if (dc->current_state->res_ctx.pipe_ctx[i].stream) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
539
if (dc->current_state->res_ctx.pipe_ctx[i].stream->link == link) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
689
const struct dc_stream_state *stream, struct psr_config *psr_config,
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
800
if (dc->current_state->res_ctx.pipe_ctx[i].stream
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
801
== stream) {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
817
psr_context->crtcTimingVerticalTotal = stream->timing.v_total;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
818
psr_context->vsync_rate_hz = div64_u64(div64_u64((stream->
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
820
stream->timing.v_total),
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
821
stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
843
psr_context->hyst_lines = stream->timing.v_total / 2 / 100;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
988
bool edp_setup_freesync_replay(struct dc_link *link, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.h
50
const struct dc_stream_state *stream, struct psr_config *psr_config,
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.h
76
bool edp_setup_freesync_replay(struct dc_link *link, const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/pg/dcn35/dcn35_pg_cntl.c
406
if (pipe_ctx->stream)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
850
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
852
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
871
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
875
stream = context->res_ctx.pipe_ctx[i].stream;
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
876
if (stream) {
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
879
if (stream->timing.pix_clk_100hz >= max_pix_clk_khz * 10)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
974
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
978
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c
984
if (dc_is_rgb_signal(stream->signal) && link->link_enc->analog_engine != ENGINE_ID_UNKNOWN)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.h
61
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1133
struct dc_stream_state *stream = opp_head_pipe->stream;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1134
struct dc *dc = stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1140
if (res_ctx->pipe_ctx[underlay_idx].stream)
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1150
pipe_ctx->stream = stream;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1152
if (!dc->current_state->res_ctx.pipe_ctx[underlay_idx].stream) {
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1167
&stream->timing,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1173
pipe_ctx->stream->signal,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1179
&stream->timing);
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1182
stream->timing.h_total,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1183
stream->timing.v_total,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1184
stream->timing.pix_clk_100hz / 10,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1209
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
1213
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
890
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
896
pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
897
pixel_clk_params->encoder_object_id = stream->link->link_enc->id;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
898
if (dc_is_rgb_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
899
pixel_clk_params->encoder_object_id = stream->link->link_enc->analog_id;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
900
pixel_clk_params->signal_type = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
907
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
909
pixel_clk_params->flags.SUPPORT_YCBCR420 = (stream->timing.pixel_encoding ==
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
911
pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
912
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) {
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
915
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) {
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
918
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
930
resource_build_bit_depth_reduction_params(pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
931
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
932
pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
949
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.c
951
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dce110/dce110_resource.h
51
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
853
const struct dc_stream_state *const stream)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
855
switch (stream->link->link_enc->transmitter) {
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
876
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
878
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
965
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
970
&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
975
if (dc_is_dp_signal(pipe_ctx->stream->signal)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
976
|| dc_is_virtual_signal(pipe_ctx->stream->signal))
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
980
if (stream && stream->link && stream->link->link_enc)
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
983
stream);
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1032
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1033
pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1034
pixel_clk_params->encoder_object_id = stream->link->link_enc->id;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1035
pixel_clk_params->signal_type = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1042
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1044
pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1046
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1049
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1051
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1056
static void build_clamping_params(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1058
stream->clamping.clamping_level = CLAMPING_FULL_RANGE;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1059
stream->clamping.c_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1060
stream->clamping.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1073
pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1075
resource_build_bit_depth_reduction_params(pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1076
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1077
build_clamping_params(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1083
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1085
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1120
struct pipe_ctx *head_pipe = resource_get_otg_master_for_stream(res_ctx, opp_head_pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1131
idle_pipe->stream = head_pipe->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1264
struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.c
1268
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/resource/dcn10/dcn10_resource.h
52
struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1254
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1257
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1259
struct dc *dc = pipe_ctx->stream->ctx->dc;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1265
pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1272
pixel_clk_params->signal_type = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1280
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1282
pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1284
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1289
else if (pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&stream->timing) || opp_cnt == 2)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1296
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1300
pipe_ctx->stream_res.tg->funcs->is_two_pixels_per_container(&pipe_ctx->stream->timing)) ||
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1310
static void build_clamping_params(struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1312
stream->clamping.clamping_level = CLAMPING_FULL_RANGE;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1313
stream->clamping.c_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1314
stream->clamping.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1328
struct resource_pool *pool = pipe_ctx->stream->ctx->dc->res_pool;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1336
pipe_ctx->stream->clamping.pixel_encoding = pipe_ctx->stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1338
resource_build_bit_depth_reduction_params(pipe_ctx->stream,
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1339
&pipe_ctx->stream->bit_depth_params);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1340
build_clamping_params(pipe_ctx->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1345
enum dc_status dcn20_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1348
struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1425
if (pipe_ctx->stream != dc_stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1453
if (new_ctx->res_ctx.pipe_ctx[i].stream == dc_stream && !new_ctx->res_ctx.pipe_ctx[i].top_pipe) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1558
if (next_odm_pipe->stream->timing.flags.DSC == 1 && !next_odm_pipe->top_pipe) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1642
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1646
if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].wb_enabled == false)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1652
if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.out_format == dwb_scaler_mode_yuv420) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1653
if (context->res_ctx.pipe_ctx[i].stream->writeback_info[j].dwb_params.output_depth == DWB_OUTPUT_PIXEL_DEPTH_8BPC)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1685
struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1694
if (pipe_ctx->top_pipe || pipe_ctx->prev_odm_pipe || !stream || !stream->timing.flags.DSC)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1697
dsc_cfg.pic_width = (stream->timing.h_addressable + pipe_ctx->dsc_padding_params.dsc_hactive_padding
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1698
+ stream->timing.h_border_left + stream->timing.h_border_right) / opp_cnt;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1699
dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1700
+ stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1701
dsc_cfg.pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1702
dsc_cfg.color_depth = stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1704
dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1733
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1741
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1759
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1780
if (res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1811
odm_pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1839
hsplit_pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1887
if (pipe->stream && !pipe->prev_odm_pipe &&
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1899
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1902
timing = pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1914
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1938
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1946
if ((pipe->stream->view_format ==
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1948
pipe->stream->view_format ==
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1950
(pipe->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1952
pipe->stream->timing.timing_3d_format ==
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1964
if (pipe->stream->timing.h_addressable > 7680 &&
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
1965
pipe->stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2083
if (!pipe->stream || pipe_split_from[i] >= 0)
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2096
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2126
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2187
struct pipe_ctx *otg_master = resource_get_otg_master_for_stream(res_ctx, opp_head->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c
2195
sec_dpp_pipe->stream = opp_head->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.h
163
enum dc_status dcn20_build_mapped_resource(const struct dc *dc, struct dc_state *context, struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c
1040
struct pipe_ctx *head_pipe = resource_get_otg_master_for_stream(res_ctx, opp_head_pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c
1051
idle_pipe->stream = head_pipe->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
853
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
860
&pipe->stream->src,
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
876
if (!pipe->stream || pipe_split_from[i] >= 0)
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
889
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c
914
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1365
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1421
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1425
struct dc_writeback_info *writeback_info = &context->res_ctx.pipe_ctx[i].stream->writeback_info[j];
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1442
wb_arb_params->time_per_pixel = (1000000 << 6) / context->res_ctx.pipe_ctx[i].stream->phy_pix_clk; /* time_per_pixel should be in u6.6 format */
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1594
if (sec_pipe->stream->timing.flags.DSC == 1) {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1623
if (old_index >= 0 && context->res_ctx.pipe_ctx[old_index].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1632
if (context->res_ctx.pipe_ctx[i].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1647
if (context->res_ctx.pipe_ctx[i].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1737
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1744
&pipe->stream->src,
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1771
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1790
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1806
if (!pipe->stream || newly_split[i])
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c
1882
dcn20_build_mapped_resource(dc, context, pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1689
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c
1692
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1678
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1682
if (res_ctx->pipe_ctx[i].stream->src.width != res_ctx->pipe_ctx[i].stream->dst.width ||
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1683
res_ctx->pipe_ctx[i].stream->src.height != res_ctx->pipe_ctx[i].stream->dst.height ||
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1715
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1718
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1780
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1790
bool split_required = pipe->stream->timing.pix_clk_100hz >= dcn_get_max_non_odm_pix_rate_100hz(&dc->dml.soc)
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
1829
&& pipe->stream->timing.pix_clk_100hz < dcn_get_max_non_odm_pix_rate_100hz(&dc->dml.soc)) {
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1658
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c
1661
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1727
phantom_stream = dc_state_create_phantom_stream(dc, context, ref_pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1732
memcpy(&phantom_stream->timing, &ref_pipe->stream->timing, sizeof(phantom_stream->timing));
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1733
memcpy(&phantom_stream->src, &ref_pipe->stream->src, sizeof(phantom_stream->src));
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1734
memcpy(&phantom_stream->dst, &ref_pipe->stream->dst, sizeof(phantom_stream->dst));
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1739
dc_state_add_phantom_stream(dc, context, phantom_stream, ref_pipe->stream);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1769
if (pipe->plane_state && pipe->stream && pipe->stream == phantom_stream &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1771
pipe->stream->use_dynamic_meta = false;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1854
const struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1858
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1860
if (dc_state_can_clear_stream_cursor_subvp_limit(stream, context)) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1861
dc_state_set_stream_cursor_subvp_limit(stream, context, false);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1875
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1877
if (dc_state_get_stream_subvp_type(context, stream) != SUBVP_PHANTOM &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1878
stream->cursor_position.enable &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1879
!dc_stream_check_cursor_attributes(stream, context, &stream->cursor_attributes)) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1881
dc_state_set_stream_cursor_subvp_limit(stream, context, true);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1913
struct dc_stream_state *stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1925
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1926
mall_type = dc_state_get_stream_subvp_type(context, stream);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1940
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1954
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
1957
timing = &pipe->stream->timing;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2117
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2121
limit_cur_to_buf = dc_state_get_stream_subvp_cursor_limit(stream, state) &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2122
!stream->hw_cursor_req;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2740
old_primary_pipe = &primary_pipe->stream->ctx->dc->current_state->res_ctx.pipe_ctx[primary_index];
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2746
if ((res_ctx->pipe_ctx[preferred_pipe_idx].stream == NULL) &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2759
if ((res_ctx->pipe_ctx[i].stream == NULL) &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2773
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2778
struct resource_context *old_ctx = &stream->ctx->dc->current_state->res_ctx;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2794
if (pipe->bottom_pipe && res_ctx->pipe_ctx[pipe->bottom_pipe->pipe_idx].stream == NULL) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2803
idle_pipe->stream = head_pipe->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2852
if (!opp_head_pipe->stream->ctx->dc->config.enable_windowed_mpo_odm)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2854
new_ctx, pool, opp_head_pipe->stream, opp_head_pipe);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2862
free_pipe->stream = opp_head_pipe->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2893
free_pipe->stream = otg_master->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2904
if (free_pipe->stream->timing.flags.DSC == 1) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c
2905
dcn20_acquire_dsc(free_pipe->stream->ctx->dc,
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.h
193
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
128
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
146
pipe->stream = NULL;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
161
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
203
if (!pipe->stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
216
if (pipe->stream) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
217
if (pipe->stream->timing.v_addressable != pipe->stream->dst.height ||
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
218
pipe->stream->timing.v_addressable != pipe->stream->src.height) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
223
if (pipe->stream->timing.v_addressable != pipe->plane_state->dst_rect.height &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
224
pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
237
if (pipe->stream && pipe->stream->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
262
if (pipe_ctx->stream && pipe_ctx->plane_state && dc_state_get_pipe_subvp_type(context, pipe_ctx) != SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
265
if (pipe_ctx->stream->timing.v_addressable == 1080 && pipe_ctx->stream->timing.h_addressable == 1920) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
277
if (pipe_ctx->stream && pipe_ctx->plane_state && dc_state_get_pipe_subvp_type(context, pipe_ctx) != SUBVP_PHANTOM) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
278
if (pipe_ctx->stream->timing.v_addressable == 1080 && pipe_ctx->stream->timing.h_addressable == 1920) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
340
if (context->res_ctx.pipe_ctx[j].stream == context->streams[i] &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
350
if (k != j && context->res_ctx.pipe_ctx[k].stream == context->streams[i] &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
359
if (k != j && context->res_ctx.pipe_ctx[k].stream == context->streams[i] &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
370
if (!context->res_ctx.pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
391
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
48
switch (pipe_ctx->stream->cursor_attributes.color_format) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
595
if (pipe->stream->timing.h_addressable == width &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
596
pipe->stream->timing.v_addressable == height &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
624
if (pipe->stream->timing.v_addressable == 1080 && pipe->stream->timing.h_addressable == 1920)
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
665
refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
666
pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
667
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
668
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
67
if (pipe_ctx->stream->cursor_position.enable && (ignore_cursor_buf ||
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
673
if (pipe->stream->ignore_msa_timing_param &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
674
(pipe->stream->allow_freesync || pipe->stream->vrr_active_variable || pipe->stream->vrr_active_fixed)) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
726
refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 +
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
727
pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
728
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
729
refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
734
if (pipe->stream->ignore_msa_timing_param &&
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
735
(pipe->stream->allow_freesync || pipe->stream->vrr_active_variable || pipe->stream->vrr_active_fixed)) {
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource_helpers.c
760
if (!res_ctx->pipe_ctx[i].stream)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1680
const struct dc_stream_state *stream;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1684
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1686
if (dc_state_can_clear_stream_cursor_subvp_limit(stream, context)) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1687
dc_state_set_stream_cursor_subvp_limit(stream, context, false);
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1699
stream = context->streams[i];
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1701
if (dc_state_get_stream_subvp_type(context, stream) != SUBVP_PHANTOM &&
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1702
stream->cursor_position.enable &&
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1703
!dc_stream_check_cursor_attributes(stream, context, &stream->cursor_attributes)) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1705
dc_state_set_stream_cursor_subvp_limit(stream, context, true);
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1732
const struct dc_stream_state *stream = pipe_ctx->stream;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1733
struct dc_link *link = stream->link;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1737
pixel_clk_params->requested_pix_clk_100hz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1742
if (!pipe_ctx->stream->ctx->dc->config.unify_link_enc_assignment)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1747
pixel_clk_params->signal_type = pipe_ctx->stream->signal;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1757
stream->timing.display_color_depth;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1759
pixel_clk_params->pixel_encoding = stream->timing.pixel_encoding;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1761
if (stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR422)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1764
if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1766
if (dc_is_tmds_signal(stream->signal) &&
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1767
stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420)
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1776
if (dc_is_tmds_signal(stream->signal) &&
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1777
stream->timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1779
} else if (dc_is_dp_signal(stream->signal)) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1781
if (pixel_clk_params->requested_pix_clk_100hz > 4 * stream->ctx->dc->clk_mgr->dprefclk_khz * 10) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1783
} else if (pixel_clk_params->requested_pix_clk_100hz > 2 * stream->ctx->dc->clk_mgr->dprefclk_khz * 10) {
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
1785
} else if (pixel_clk_params->requested_pix_clk_100hz > stream->ctx->dc->clk_mgr->dprefclk_khz * 10) {
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
2703
struct dmub_fams2_stream_static_state stream; //v0
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1000
min_hardware_refresh_in_uhz = div64_u64((stream->timing.pix_clk_100hz * 100000000ULL),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1001
(stream->timing.h_total * (long long)calc_max_hardware_v_total(stream)));
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1034
in_out_vrr->adjust.v_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1035
in_out_vrr->adjust.v_total_max = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1086
in_out_vrr->adjust.v_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1087
in_out_vrr->adjust.v_total_max = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1089
in_out_vrr->adjust.v_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1090
in_out_vrr->adjust.v_total_max = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1092
in_out_vrr->adjust.v_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1093
in_out_vrr->adjust.v_total_max = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1098
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1101
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1115
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1122
in_out_vrr->adjust.v_total_min = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1123
in_out_vrr->adjust.v_total_max = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
113
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1131
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1151
stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1156
stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1168
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1175
if ((mod_freesync == NULL) || (stream == NULL) || (in_out_vrr == NULL))
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
119
* 10000) * stream->timing.h_total,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1197
stream, in_out_vrr->max_refresh_in_uhz);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
120
stream->timing.pix_clk_100hz));
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1228
calc_v_total_from_duration(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1241
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1244
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
125
static unsigned int calc_max_hardware_v_total(const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1261
core_freesync, stream, in_out_vrr);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1269
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
127
unsigned int max_hw_v_total = stream->ctx->dc->caps.max_v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1277
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1280
unsigned int total = stream->timing.h_total * stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
1283
nominal_field_rate_in_uhz = stream->timing.pix_clk_100hz;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
129
if (stream->ctx->dc->caps.vtotal_limited_by_fp2) {
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
130
max_hw_v_total -= stream->timing.v_front_porch + 1;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
137
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
144
return stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
150
if (refresh_in_uhz <= stream->timing.min_refresh_in_uhz) {
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
156
frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
157
stream->timing.h_total), 1000000);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
158
} else if (refresh_in_uhz >= stream->timing.max_refresh_in_uhz) {
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
164
frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
165
stream->timing.h_total) + (1000000 - 1), 1000000);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
168
frame_duration_in_ns) * (stream->timing.pix_clk_100hz / 10)),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
169
stream->timing.h_total) + 500000, 1000000);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
173
if (v_total < stream->timing.v_total) {
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
174
ASSERT(v_total < stream->timing.v_total);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
175
v_total = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
182
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
194
if (dc_is_hdmi_signal(stream->signal)) { // change for HDMI to comply with spec
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
197
h_total_up_scaled = stream->timing.h_total * 10000;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
199
* stream->timing.pix_clk_100hz + (h_total_up_scaled - 1),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
203
duration_in_us) * (stream->timing.pix_clk_100hz / 10)),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
204
stream->timing.h_total), 1000);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
208
if (v_total < stream->timing.v_total) {
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
209
ASSERT(v_total < stream->timing.v_total);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
210
v_total = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
218
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
224
stream, in_out_vrr,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
279
current_duration_in_us) * (stream->timing.pix_clk_100hz / 10)),
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
280
stream->timing.h_total), 1000);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
283
if (v_total < stream->timing.v_total)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
284
v_total = stream->timing.v_total;
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
291
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
327
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
330
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
446
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
493
stream, in_out_vrr->max_refresh_in_uhz);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
498
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
501
mod_freesync_calc_v_total_from_refresh(stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
942
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
959
build_vrr_infopacket_v3(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
962
build_vrr_infopacket_v2(stream->signal, vrr, app_tf, infopacket, stream->freesync_on_desktop);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
967
build_vrr_infopacket_v1(stream->signal, vrr, infopacket, stream->freesync_on_desktop);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
971
true == dc_is_dp_signal(stream->signal) &&
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
978
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
997
mod_freesync_calc_nominal_field_rate(stream);
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
999
if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) {
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
114
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
122
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
128
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
133
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
137
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h
140
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
37
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
42
void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
47
void mod_build_hf_vsif_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
77
void mod_build_adaptive_sync_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
81
void mod_build_adaptive_sync_infopacket_v2(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
139
const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
194
switch (stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
213
switch (stream->timing.pixel_encoding) {
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
252
switch (stream->timing.display_color_depth) {
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
294
void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
303
if (stream->timing.timing_3d_format != TIMING_3D_FORMAT_NONE && stream->view_format != VIEW_3D_FORMAT_NONE) {
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
309
if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
311
else if (stream->link->replay_settings.config.replay_supported)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
313
else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
317
if (stream->use_vsc_sdp_for_colorimetry)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
321
if (stream->link->replay_settings.config.replay_version == DC_VESA_PANEL_REPLAY)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
322
vsc_packet_revision = stream->use_vsc_sdp_for_colorimetry ? vsc_packet_rev7 : vsc_packet_rev6;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
435
switch (stream->timing.timing_3d_format) {
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
480
set_vsc_packet_colorimetry_data(stream, info_packet, cs, tf);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
495
set_vsc_packet_colorimetry_data(stream, info_packet, cs, tf);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
506
void mod_build_hf_vsif_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
516
format = stream->timing.timing_3d_format;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
517
if (stream->view_format == VIEW_3D_FORMAT_NONE)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
520
if (stream->timing.hdmi_vic != 0
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
521
&& stream->timing.h_total >= 3840
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
522
&& stream->timing.v_total >= 2160
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
561
info_packet->sb[5] = stream->timing.hdmi_vic;
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
579
void mod_build_adaptive_sync_infopacket(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
590
if (stream != NULL)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
591
mod_build_adaptive_sync_infopacket_v2(stream, param, info_packet);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
595
if (stream && stream->link->replay_settings.config.replay_supported &&
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
596
stream->link->replay_settings.config.replay_version == DC_VESA_PANEL_REPLAY)
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
597
mod_build_adaptive_sync_infopacket_v2(stream, param, info_packet);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
618
void mod_build_adaptive_sync_infopacket_v2(const struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
632
info_packet->sb[1] = (stream->timing.v_total & 0x00FF);
drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c
633
info_packet->sb[2] = (stream->timing.v_total & 0xFF00) >> 8;
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
879
const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
889
num_vblank_lines = stream->timing.v_total -
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
890
stream->timing.v_addressable -
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
891
stream->timing.v_border_top -
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
892
stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
894
vblank_time_in_us = (stream->timing.h_total * num_vblank_lines * 1000) / (stream->timing.pix_clk_100hz / 10);
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
896
line_time_in_us = ((stream->timing.h_total * 1000) / (stream->timing.pix_clk_100hz / 10)) + 1;
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
938
bool mod_power_only_edp(const struct dc_state *context, const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
940
return context && context->stream_count == 1 && dc_is_embedded_signal(stream->signal);
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
944
struct dc_stream_state *stream,
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
955
!stream->timing.dsc_cfg.num_slices_v)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
958
pic_height = stream->timing.v_addressable +
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
959
stream->timing.v_border_top + stream->timing.v_border_bottom;
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
961
if (stream->timing.dsc_cfg.num_slices_v == 0)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
964
slice_height = pic_height / stream->timing.dsc_cfg.num_slices_v;
drivers/gpu/drm/amd/display/modules/power/power_helpers.h
77
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/modules/power/power_helpers.h
79
const struct dc_stream_state *stream);
drivers/gpu/drm/amd/display/modules/power/power_helpers.h
81
struct dc_stream_state *stream,
drivers/gpu/drm/drm_panic.c
631
static struct z_stream_s stream;
drivers/gpu/drm/drm_panic.c
637
stream.workspace = kmalloc(zlib_deflate_workspacesize(WINDOW_BITS, MEM_LEVEL),
drivers/gpu/drm/drm_panic.c
647
kfree(stream.workspace);
drivers/gpu/drm/drm_panic.c
648
stream.workspace = NULL;
drivers/gpu/drm/drm_panic.c
674
if (zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS,
drivers/gpu/drm/drm_panic.c
678
stream.next_in = kmsg;
drivers/gpu/drm/drm_panic.c
679
stream.avail_in = kmsg_len;
drivers/gpu/drm/drm_panic.c
680
stream.total_in = 0;
drivers/gpu/drm/drm_panic.c
681
stream.next_out = qrbuf2;
drivers/gpu/drm/drm_panic.c
682
stream.avail_out = QR_BUFFER2_SIZE;
drivers/gpu/drm/drm_panic.c
683
stream.total_out = 0;
drivers/gpu/drm/drm_panic.c
685
if (zlib_deflate(&stream, Z_FINISH) != Z_STREAM_END)
drivers/gpu/drm/drm_panic.c
688
if (zlib_deflateEnd(&stream) != Z_OK)
drivers/gpu/drm/drm_panic.c
691
if (stream.total_out > max_qr_data_size) {
drivers/gpu/drm/drm_panic.c
704
return drm_panic_qr_generate(url, qrbuf2, stream.total_out, QR_BUFFER2_SIZE,
drivers/gpu/drm/drm_panic.c
749
if (!font || !qrbuf1 || !qrbuf2 || !stream.workspace)
drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
148
bool etnaviv_cmd_validate_one(struct etnaviv_gpu *gpu, u32 *stream,
drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
154
u32 *buf = stream;
drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c
160
state.start = stream;
drivers/gpu/drm/etnaviv/etnaviv_drv.h
85
u32 *stream, unsigned int size,
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
258
static int submit_reloc(struct etnaviv_gem_submit *submit, void *stream,
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
263
u32 *ptr = stream;
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
426
void *stream;
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
473
stream = kvmalloc_array(1, args->stream_size, GFP_KERNEL);
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
474
if (!bos || !relocs || !pmrs || !stream) {
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
500
ret = copy_from_user(stream, u64_to_user_ptr(args->stream),
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
546
!etnaviv_cmd_validate_one(gpu, stream, args->stream_size / 4,
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
569
ret = submit_reloc(submit, stream, args->stream_size / 4,
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
578
memcpy(submit->cmdbuf.vaddr, stream, args->stream_size);
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
629
kvfree(stream);
drivers/gpu/drm/i915/i915_perf.c
1001
ret = append_oa_status(stream, buf, count, offset,
drivers/gpu/drm/i915/i915_perf.c
1014
return gen8_append_oa_reports(stream, buf, count, offset);
drivers/gpu/drm/i915/i915_perf.c
1038
static int gen7_append_oa_reports(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
1043
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
1044
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
1045
u8 *oa_buf_base = stream->oa_buffer.vaddr;
drivers/gpu/drm/i915/i915_perf.c
1046
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
1053
if (drm_WARN_ON(&uncore->i915->drm, !stream->enabled))
drivers/gpu/drm/i915/i915_perf.c
1056
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1058
head = stream->oa_buffer.head;
drivers/gpu/drm/i915/i915_perf.c
1059
tail = stream->oa_buffer.tail;
drivers/gpu/drm/i915/i915_perf.c
1061
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1105
if (__ratelimit(&stream->perf->spurious_report_rs))
drivers/gpu/drm/i915/i915_perf.c
1111
ret = append_oa_sample(stream, buf, count, offset, report);
drivers/gpu/drm/i915/i915_perf.c
1123
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1128
stream->oa_buffer.head = head;
drivers/gpu/drm/i915/i915_perf.c
1130
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1152
static int gen7_oa_read(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
1157
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
1161
if (drm_WARN_ON(&uncore->i915->drm, !stream->oa_buffer.vaddr))
drivers/gpu/drm/i915/i915_perf.c
1171
oastatus1 &= ~stream->perf->gen7_latched_oastatus1;
drivers/gpu/drm/i915/i915_perf.c
1194
ret = append_oa_status(stream, buf, count, offset,
drivers/gpu/drm/i915/i915_perf.c
1199
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
1201
stream->period_exponent);
drivers/gpu/drm/i915/i915_perf.c
1203
stream->perf->ops.oa_disable(stream);
drivers/gpu/drm/i915/i915_perf.c
1204
stream->perf->ops.oa_enable(stream);
drivers/gpu/drm/i915/i915_perf.c
1210
ret = append_oa_status(stream, buf, count, offset,
drivers/gpu/drm/i915/i915_perf.c
1214
stream->perf->gen7_latched_oastatus1 |=
drivers/gpu/drm/i915/i915_perf.c
1218
return gen7_append_oa_reports(stream, buf, count, offset);
drivers/gpu/drm/i915/i915_perf.c
1235
static int i915_oa_wait_unlocked(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1238
if (!stream->periodic)
drivers/gpu/drm/i915/i915_perf.c
1241
return wait_event_interruptible(stream->poll_wq,
drivers/gpu/drm/i915/i915_perf.c
1242
oa_buffer_check_unlocked(stream));
drivers/gpu/drm/i915/i915_perf.c
1255
static void i915_oa_poll_wait(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
1259
poll_wait(file, &stream->poll_wq, wait);
drivers/gpu/drm/i915/i915_perf.c
1274
static int i915_oa_read(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
1279
return stream->perf->ops.read(stream, buf, count, offset);
drivers/gpu/drm/i915/i915_perf.c
1282
static struct intel_context *oa_pin_context(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1285
struct i915_gem_context *ctx = stream->ctx;
drivers/gpu/drm/i915/i915_perf.c
1291
if (ce->engine != stream->engine) /* first match! */
drivers/gpu/drm/i915/i915_perf.c
1319
stream->pinned_ctx = ce;
drivers/gpu/drm/i915/i915_perf.c
1320
return stream->pinned_ctx;
drivers/gpu/drm/i915/i915_perf.c
1414
static int gen12_get_render_context_id(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1419
if (intel_engine_uses_guc(stream->engine)) {
drivers/gpu/drm/i915/i915_perf.c
1420
ret = gen12_guc_sw_ctx_id(stream->pinned_ctx, &ctx_id);
drivers/gpu/drm/i915/i915_perf.c
1426
} else if (GRAPHICS_VER_FULL(stream->engine->i915) >= IP_VER(12, 55)) {
drivers/gpu/drm/i915/i915_perf.c
1439
stream->specific_ctx_id = ctx_id & mask;
drivers/gpu/drm/i915/i915_perf.c
1440
stream->specific_ctx_id_mask = mask;
drivers/gpu/drm/i915/i915_perf.c
1526
static int oa_get_render_ctx_id(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1531
ce = oa_pin_context(stream);
drivers/gpu/drm/i915/i915_perf.c
1535
if (engine_supports_mi_query(stream->engine) &&
drivers/gpu/drm/i915/i915_perf.c
1536
HAS_LOGICAL_RING_CONTEXTS(stream->perf->i915)) {
drivers/gpu/drm/i915/i915_perf.c
1544
drm_err(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
1546
stream->engine->name);
drivers/gpu/drm/i915/i915_perf.c
1557
stream->specific_ctx_id = i915_ggtt_offset(ce->state);
drivers/gpu/drm/i915/i915_perf.c
1558
stream->specific_ctx_id_mask = 0;
drivers/gpu/drm/i915/i915_perf.c
1575
stream->specific_ctx_id = ce->lrc.lrca >> 12;
drivers/gpu/drm/i915/i915_perf.c
1581
stream->specific_ctx_id_mask =
drivers/gpu/drm/i915/i915_perf.c
1584
stream->specific_ctx_id_mask =
drivers/gpu/drm/i915/i915_perf.c
1586
stream->specific_ctx_id = stream->specific_ctx_id_mask;
drivers/gpu/drm/i915/i915_perf.c
1592
ret = gen12_get_render_context_id(stream);
drivers/gpu/drm/i915/i915_perf.c
1599
ce->tag = stream->specific_ctx_id;
drivers/gpu/drm/i915/i915_perf.c
1601
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
1603
stream->specific_ctx_id,
drivers/gpu/drm/i915/i915_perf.c
1604
stream->specific_ctx_id_mask);
drivers/gpu/drm/i915/i915_perf.c
1616
static void oa_put_render_ctx_id(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1620
ce = fetch_and_zero(&stream->pinned_ctx);
drivers/gpu/drm/i915/i915_perf.c
1626
stream->specific_ctx_id = INVALID_CTX_ID;
drivers/gpu/drm/i915/i915_perf.c
1627
stream->specific_ctx_id_mask = 0;
drivers/gpu/drm/i915/i915_perf.c
1631
free_oa_buffer(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1633
i915_vma_unpin_and_release(&stream->oa_buffer.vma,
drivers/gpu/drm/i915/i915_perf.c
1636
stream->oa_buffer.vaddr = NULL;
drivers/gpu/drm/i915/i915_perf.c
1640
free_oa_configs(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1644
i915_oa_config_put(stream->oa_config);
drivers/gpu/drm/i915/i915_perf.c
1645
llist_for_each_entry_safe(oa_bo, tmp, stream->oa_config_bos.first, node)
drivers/gpu/drm/i915/i915_perf.c
1650
free_noa_wait(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1652
i915_vma_unpin_and_release(&stream->noa_wait, 0);
drivers/gpu/drm/i915/i915_perf.c
1665
static void i915_oa_stream_destroy(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1667
struct i915_perf *perf = stream->perf;
drivers/gpu/drm/i915/i915_perf.c
1668
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/i915_perf.c
1669
struct i915_perf_group *g = stream->engine->oa_group;
drivers/gpu/drm/i915/i915_perf.c
1672
if (WARN_ON(stream != g->exclusive_stream))
drivers/gpu/drm/i915/i915_perf.c
1682
perf->ops.disable_metric_set(stream);
drivers/gpu/drm/i915/i915_perf.c
1684
free_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
1686
intel_uncore_forcewake_put(stream->uncore, FORCEWAKE_ALL);
drivers/gpu/drm/i915/i915_perf.c
1687
intel_engine_pm_put(stream->engine);
drivers/gpu/drm/i915/i915_perf.c
1689
if (stream->ctx)
drivers/gpu/drm/i915/i915_perf.c
1690
oa_put_render_ctx_id(stream);
drivers/gpu/drm/i915/i915_perf.c
1692
free_oa_configs(stream);
drivers/gpu/drm/i915/i915_perf.c
1693
free_noa_wait(stream);
drivers/gpu/drm/i915/i915_perf.c
1700
static void gen7_init_oa_buffer(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1702
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
1703
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
1706
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1713
stream->oa_buffer.head = 0;
drivers/gpu/drm/i915/i915_perf.c
1721
stream->oa_buffer.tail = 0;
drivers/gpu/drm/i915/i915_perf.c
1723
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1729
stream->perf->gen7_latched_oastatus1 = 0;
drivers/gpu/drm/i915/i915_perf.c
1742
memset(stream->oa_buffer.vaddr, 0, OA_BUFFER_SIZE);
drivers/gpu/drm/i915/i915_perf.c
1745
static void gen8_init_oa_buffer(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1747
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
1748
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
1751
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1755
stream->oa_buffer.head = 0;
drivers/gpu/drm/i915/i915_perf.c
1772
stream->oa_buffer.tail = 0;
drivers/gpu/drm/i915/i915_perf.c
1779
stream->oa_buffer.last_ctx_id = INVALID_CTX_ID;
drivers/gpu/drm/i915/i915_perf.c
1781
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1795
memset(stream->oa_buffer.vaddr, 0, OA_BUFFER_SIZE);
drivers/gpu/drm/i915/i915_perf.c
1798
static void gen12_init_oa_buffer(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1800
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
1801
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
1804
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1806
intel_uncore_write(uncore, __oa_regs(stream)->oa_status, 0);
drivers/gpu/drm/i915/i915_perf.c
1807
intel_uncore_write(uncore, __oa_regs(stream)->oa_head_ptr,
drivers/gpu/drm/i915/i915_perf.c
1809
stream->oa_buffer.head = 0;
drivers/gpu/drm/i915/i915_perf.c
1819
intel_uncore_write(uncore, __oa_regs(stream)->oa_buffer, gtt_offset |
drivers/gpu/drm/i915/i915_perf.c
1821
intel_uncore_write(uncore, __oa_regs(stream)->oa_tail_ptr,
drivers/gpu/drm/i915/i915_perf.c
1825
stream->oa_buffer.tail = 0;
drivers/gpu/drm/i915/i915_perf.c
1832
stream->oa_buffer.last_ctx_id = INVALID_CTX_ID;
drivers/gpu/drm/i915/i915_perf.c
1834
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
1848
memset(stream->oa_buffer.vaddr, 0,
drivers/gpu/drm/i915/i915_perf.c
1849
stream->oa_buffer.vma->size);
drivers/gpu/drm/i915/i915_perf.c
1852
static int alloc_oa_buffer(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1854
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
1855
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/i915_perf.c
1860
if (drm_WARN_ON(&i915->drm, stream->oa_buffer.vma))
drivers/gpu/drm/i915/i915_perf.c
1866
bo = i915_gem_object_create_shmem(stream->perf->i915, OA_BUFFER_SIZE);
drivers/gpu/drm/i915/i915_perf.c
1891
stream->oa_buffer.vma = vma;
drivers/gpu/drm/i915/i915_perf.c
1893
stream->oa_buffer.vaddr =
drivers/gpu/drm/i915/i915_perf.c
1895
if (IS_ERR(stream->oa_buffer.vaddr)) {
drivers/gpu/drm/i915/i915_perf.c
1896
ret = PTR_ERR(stream->oa_buffer.vaddr);
drivers/gpu/drm/i915/i915_perf.c
1908
stream->oa_buffer.vaddr = NULL;
drivers/gpu/drm/i915/i915_perf.c
1909
stream->oa_buffer.vma = NULL;
drivers/gpu/drm/i915/i915_perf.c
1914
static u32 *save_restore_register(struct i915_perf_stream *stream, u32 *cs,
drivers/gpu/drm/i915/i915_perf.c
1923
if (GRAPHICS_VER(stream->perf->i915) >= 8)
drivers/gpu/drm/i915/i915_perf.c
1929
*cs++ = i915_ggtt_offset(stream->noa_wait) + offset + 4 * d;
drivers/gpu/drm/i915/i915_perf.c
1936
static int alloc_noa_wait(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
1938
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
1939
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/i915_perf.c
1943
intel_gt_ns_to_clock_interval(to_gt(stream->perf->i915),
drivers/gpu/drm/i915/i915_perf.c
1944
atomic64_read(&stream->perf->noa_programming_delay));
drivers/gpu/drm/i915/i915_perf.c
1945
const u32 base = stream->engine->mmio_base;
drivers/gpu/drm/i915/i915_perf.c
2002
stream->noa_wait = vma;
drivers/gpu/drm/i915/i915_perf.c
2010
stream, cs, true /* save */, CS_GPR(i),
drivers/gpu/drm/i915/i915_perf.c
2013
stream, cs, true /* save */, mi_predicate_result,
drivers/gpu/drm/i915/i915_perf.c
2129
stream, cs, false /* restore */, CS_GPR(i),
drivers/gpu/drm/i915/i915_perf.c
2132
stream, cs, false /* restore */, mi_predicate_result,
drivers/gpu/drm/i915/i915_perf.c
2193
alloc_oa_config_buffer(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2213
obj = i915_gem_object_create_shmem(stream->perf->i915, config_length);
drivers/gpu/drm/i915/i915_perf.c
2242
*cs++ = (GRAPHICS_VER(stream->perf->i915) < 8 ?
drivers/gpu/drm/i915/i915_perf.c
2245
*cs++ = i915_ggtt_offset(stream->noa_wait);
drivers/gpu/drm/i915/i915_perf.c
2252
&stream->engine->gt->ggtt->vm,
drivers/gpu/drm/i915/i915_perf.c
2260
llist_add(&oa_bo->node, &stream->oa_config_bos);
drivers/gpu/drm/i915/i915_perf.c
2281
get_oa_vma(struct i915_perf_stream *stream, struct i915_oa_config *oa_config)
drivers/gpu/drm/i915/i915_perf.c
2289
llist_for_each_entry(oa_bo, stream->oa_config_bos.first, node) {
drivers/gpu/drm/i915/i915_perf.c
2297
oa_bo = alloc_oa_config_buffer(stream, oa_config);
drivers/gpu/drm/i915/i915_perf.c
2306
emit_oa_config(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2316
vma = get_oa_vma(stream, oa_config);
drivers/gpu/drm/i915/i915_perf.c
2376
static struct intel_context *oa_context(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2378
return stream->pinned_ctx ?: stream->engine->kernel_context;
drivers/gpu/drm/i915/i915_perf.c
2382
hsw_enable_metric_set(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2385
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2402
return emit_oa_config(stream,
drivers/gpu/drm/i915/i915_perf.c
2403
stream->oa_config, oa_context(stream),
drivers/gpu/drm/i915/i915_perf.c
2407
static void hsw_disable_metric_set(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2409
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2449
const struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2451
u32 ctx_oactxctrl = stream->perf->ctx_oactxctrl_offset;
drivers/gpu/drm/i915/i915_perf.c
2452
u32 ctx_flexeu0 = stream->perf->ctx_flexeu0_offset;
drivers/gpu/drm/i915/i915_perf.c
2467
(stream->period_exponent << GEN8_OA_TIMER_PERIOD_SHIFT) |
drivers/gpu/drm/i915/i915_perf.c
2468
(stream->periodic ? GEN8_OA_TIMER_ENABLE : 0) |
drivers/gpu/drm/i915/i915_perf.c
2473
oa_config_flex_reg(stream->oa_config, flex_regs[i]);
drivers/gpu/drm/i915/i915_perf.c
2580
static int gen8_configure_context(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2610
static int gen12_configure_oar_context(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2614
struct intel_context *ce = stream->pinned_ctx;
drivers/gpu/drm/i915/i915_perf.c
2615
u32 format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
2616
u32 offset = stream->perf->ctx_oactxctrl_offset;
drivers/gpu/drm/i915/i915_perf.c
2686
oa_configure_all_contexts(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2691
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
2693
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/i915_perf.c
2722
err = gen8_configure_context(stream, ctx, regs, num_regs);
drivers/gpu/drm/i915/i915_perf.c
2756
lrc_configure_all_contexts(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2760
u32 ctx_oactxctrl = stream->perf->ctx_oactxctrl_offset;
drivers/gpu/drm/i915/i915_perf.c
2762
const u32 ctx_flexeu0 = stream->perf->ctx_flexeu0_offset;
drivers/gpu/drm/i915/i915_perf.c
2785
(stream->period_exponent << GEN8_OA_TIMER_PERIOD_SHIFT) |
drivers/gpu/drm/i915/i915_perf.c
2786
(stream->periodic ? GEN8_OA_TIMER_ENABLE : 0) |
drivers/gpu/drm/i915/i915_perf.c
2792
return oa_configure_all_contexts(stream,
drivers/gpu/drm/i915/i915_perf.c
2798
gen8_enable_metric_set(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2801
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2802
struct i915_oa_config *oa_config = stream->oa_config;
drivers/gpu/drm/i915/i915_perf.c
2828
if (IS_GRAPHICS_VER(stream->perf->i915, 9, 11)) {
drivers/gpu/drm/i915/i915_perf.c
2839
ret = lrc_configure_all_contexts(stream, oa_config, active);
drivers/gpu/drm/i915/i915_perf.c
2843
return emit_oa_config(stream,
drivers/gpu/drm/i915/i915_perf.c
2844
stream->oa_config, oa_context(stream),
drivers/gpu/drm/i915/i915_perf.c
2848
static u32 oag_report_ctx_switches(const struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2851
(stream->sample_flags & SAMPLE_OA_REPORT) ?
drivers/gpu/drm/i915/i915_perf.c
2856
gen12_enable_metric_set(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
2859
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
2860
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2861
bool periodic = stream->periodic;
drivers/gpu/drm/i915/i915_perf.c
2862
u32 period_exponent = stream->period_exponent;
drivers/gpu/drm/i915/i915_perf.c
2878
intel_uncore_write(uncore, __oa_regs(stream)->oa_debug,
drivers/gpu/drm/i915/i915_perf.c
2886
oag_report_ctx_switches(stream));
drivers/gpu/drm/i915/i915_perf.c
2888
intel_uncore_write(uncore, __oa_regs(stream)->oa_ctx_ctrl, periodic ?
drivers/gpu/drm/i915/i915_perf.c
2909
if (stream->ctx) {
drivers/gpu/drm/i915/i915_perf.c
2910
ret = gen12_configure_oar_context(stream, active);
drivers/gpu/drm/i915/i915_perf.c
2915
return emit_oa_config(stream,
drivers/gpu/drm/i915/i915_perf.c
2916
stream->oa_config, oa_context(stream),
drivers/gpu/drm/i915/i915_perf.c
2920
static void gen8_disable_metric_set(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2922
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2925
lrc_configure_all_contexts(stream, NULL, NULL);
drivers/gpu/drm/i915/i915_perf.c
2930
static void gen11_disable_metric_set(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2932
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2935
lrc_configure_all_contexts(stream, NULL, NULL);
drivers/gpu/drm/i915/i915_perf.c
2941
static void gen12_disable_metric_set(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2943
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2944
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
2958
if (stream->ctx)
drivers/gpu/drm/i915/i915_perf.c
2959
gen12_configure_oar_context(stream, NULL);
drivers/gpu/drm/i915/i915_perf.c
2971
static void gen7_oa_enable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
2973
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
2974
struct i915_gem_context *ctx = stream->ctx;
drivers/gpu/drm/i915/i915_perf.c
2975
u32 ctx_id = stream->specific_ctx_id;
drivers/gpu/drm/i915/i915_perf.c
2976
bool periodic = stream->periodic;
drivers/gpu/drm/i915/i915_perf.c
2977
u32 period_exponent = stream->period_exponent;
drivers/gpu/drm/i915/i915_perf.c
2978
u32 report_format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
2989
gen7_init_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
3001
static void gen8_oa_enable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3003
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
3004
u32 report_format = stream->oa_buffer.format->format;
drivers/gpu/drm/i915/i915_perf.c
3015
gen8_init_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
3027
static void gen12_oa_enable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3036
if (!(stream->sample_flags & SAMPLE_OA_REPORT))
drivers/gpu/drm/i915/i915_perf.c
3039
gen12_init_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
3041
regs = __oa_regs(stream);
drivers/gpu/drm/i915/i915_perf.c
3042
val = (stream->oa_buffer.format->format << regs->oa_ctrl_counter_format_shift) |
drivers/gpu/drm/i915/i915_perf.c
3045
intel_uncore_write(stream->uncore, regs->oa_ctrl, val);
drivers/gpu/drm/i915/i915_perf.c
3057
static void i915_oa_stream_enable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3059
stream->pollin = false;
drivers/gpu/drm/i915/i915_perf.c
3061
stream->perf->ops.oa_enable(stream);
drivers/gpu/drm/i915/i915_perf.c
3063
if (stream->sample_flags & SAMPLE_OA_REPORT)
drivers/gpu/drm/i915/i915_perf.c
3064
hrtimer_start(&stream->poll_check_timer,
drivers/gpu/drm/i915/i915_perf.c
3065
ns_to_ktime(stream->poll_oa_period),
drivers/gpu/drm/i915/i915_perf.c
3069
static void gen7_oa_disable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3071
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
3077
drm_err(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3081
static void gen8_oa_disable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3083
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
3089
drm_err(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3093
static void gen12_oa_disable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3095
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
3097
intel_uncore_write(uncore, __oa_regs(stream)->oa_ctrl, 0);
drivers/gpu/drm/i915/i915_perf.c
3099
__oa_regs(stream)->oa_ctrl,
drivers/gpu/drm/i915/i915_perf.c
3102
drm_err(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3110
drm_err(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3122
static void i915_oa_stream_disable(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3124
stream->perf->ops.oa_disable(stream);
drivers/gpu/drm/i915/i915_perf.c
3126
if (stream->sample_flags & SAMPLE_OA_REPORT)
drivers/gpu/drm/i915/i915_perf.c
3127
hrtimer_cancel(&stream->poll_check_timer);
drivers/gpu/drm/i915/i915_perf.c
3139
static int i915_perf_stream_enable_sync(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3148
err = stream->perf->ops.enable_metric_set(stream, active);
drivers/gpu/drm/i915/i915_perf.c
3232
static int i915_oa_stream_init(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
3236
struct drm_i915_private *i915 = stream->perf->i915;
drivers/gpu/drm/i915/i915_perf.c
3237
struct i915_perf *perf = stream->perf;
drivers/gpu/drm/i915/i915_perf.c
3242
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3254
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3260
(GRAPHICS_VER(perf->i915) < 12 || !stream->ctx)) {
drivers/gpu/drm/i915/i915_perf.c
3261
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3267
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3278
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3284
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3289
stream->engine = props->engine;
drivers/gpu/drm/i915/i915_perf.c
3290
stream->uncore = stream->engine->gt->uncore;
drivers/gpu/drm/i915/i915_perf.c
3292
stream->sample_size = sizeof(struct drm_i915_perf_record_header);
drivers/gpu/drm/i915/i915_perf.c
3294
stream->oa_buffer.format = &perf->oa_formats[props->oa_format];
drivers/gpu/drm/i915/i915_perf.c
3295
if (drm_WARN_ON(&i915->drm, stream->oa_buffer.format->size == 0))
drivers/gpu/drm/i915/i915_perf.c
3298
stream->sample_flags = props->sample_flags;
drivers/gpu/drm/i915/i915_perf.c
3299
stream->sample_size += stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
3301
stream->hold_preemption = props->hold_preemption;
drivers/gpu/drm/i915/i915_perf.c
3303
stream->periodic = props->oa_periodic;
drivers/gpu/drm/i915/i915_perf.c
3304
if (stream->periodic)
drivers/gpu/drm/i915/i915_perf.c
3305
stream->period_exponent = props->oa_period_exponent;
drivers/gpu/drm/i915/i915_perf.c
3307
if (stream->ctx) {
drivers/gpu/drm/i915/i915_perf.c
3308
ret = oa_get_render_ctx_id(stream);
drivers/gpu/drm/i915/i915_perf.c
3310
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3316
ret = alloc_noa_wait(stream);
drivers/gpu/drm/i915/i915_perf.c
3318
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3323
stream->oa_config = i915_perf_get_oa_config(perf, props->metrics_set);
drivers/gpu/drm/i915/i915_perf.c
3324
if (!stream->oa_config) {
drivers/gpu/drm/i915/i915_perf.c
3325
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3343
intel_engine_pm_get(stream->engine);
drivers/gpu/drm/i915/i915_perf.c
3344
intel_uncore_forcewake_get(stream->uncore, FORCEWAKE_ALL);
drivers/gpu/drm/i915/i915_perf.c
3346
ret = alloc_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
3350
stream->ops = &i915_oa_stream_ops;
drivers/gpu/drm/i915/i915_perf.c
3352
stream->engine->gt->perf.sseu = props->sseu;
drivers/gpu/drm/i915/i915_perf.c
3353
WRITE_ONCE(g->exclusive_stream, stream);
drivers/gpu/drm/i915/i915_perf.c
3355
ret = i915_perf_stream_enable_sync(stream);
drivers/gpu/drm/i915/i915_perf.c
3357
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3362
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
3364
stream->oa_config->uuid);
drivers/gpu/drm/i915/i915_perf.c
3366
hrtimer_setup(&stream->poll_check_timer, oa_poll_check_timer_cb, CLOCK_MONOTONIC,
drivers/gpu/drm/i915/i915_perf.c
3368
init_waitqueue_head(&stream->poll_wq);
drivers/gpu/drm/i915/i915_perf.c
3369
spin_lock_init(&stream->oa_buffer.ptr_lock);
drivers/gpu/drm/i915/i915_perf.c
3370
mutex_init(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3376
perf->ops.disable_metric_set(stream);
drivers/gpu/drm/i915/i915_perf.c
3378
free_oa_buffer(stream);
drivers/gpu/drm/i915/i915_perf.c
3381
intel_uncore_forcewake_put(stream->uncore, FORCEWAKE_ALL);
drivers/gpu/drm/i915/i915_perf.c
3382
intel_engine_pm_put(stream->engine);
drivers/gpu/drm/i915/i915_perf.c
3384
free_oa_configs(stream);
drivers/gpu/drm/i915/i915_perf.c
3387
free_noa_wait(stream);
drivers/gpu/drm/i915/i915_perf.c
3390
if (stream->ctx)
drivers/gpu/drm/i915/i915_perf.c
3391
oa_put_render_ctx_id(stream);
drivers/gpu/drm/i915/i915_perf.c
3399
struct i915_perf_stream *stream;
drivers/gpu/drm/i915/i915_perf.c
3405
stream = READ_ONCE(engine->oa_group->exclusive_stream);
drivers/gpu/drm/i915/i915_perf.c
3406
if (stream && GRAPHICS_VER(stream->perf->i915) < 12)
drivers/gpu/drm/i915/i915_perf.c
3407
gen8_update_reg_state_unlocked(ce, stream);
drivers/gpu/drm/i915/i915_perf.c
3433
struct i915_perf_stream *stream = file->private_data;
drivers/gpu/drm/i915/i915_perf.c
3441
if (!stream->enabled || !(stream->sample_flags & SAMPLE_OA_REPORT))
drivers/gpu/drm/i915/i915_perf.c
3453
ret = stream->ops->wait_unlocked(stream);
drivers/gpu/drm/i915/i915_perf.c
3457
mutex_lock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3458
ret = stream->ops->read(stream, buf, count, &offset);
drivers/gpu/drm/i915/i915_perf.c
3459
mutex_unlock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3462
mutex_lock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3463
ret = stream->ops->read(stream, buf, count, &offset);
drivers/gpu/drm/i915/i915_perf.c
3464
mutex_unlock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3479
stream->pollin = false;
drivers/gpu/drm/i915/i915_perf.c
3487
struct i915_perf_stream *stream =
drivers/gpu/drm/i915/i915_perf.c
3488
container_of(hrtimer, typeof(*stream), poll_check_timer);
drivers/gpu/drm/i915/i915_perf.c
3490
if (oa_buffer_check_unlocked(stream)) {
drivers/gpu/drm/i915/i915_perf.c
3491
stream->pollin = true;
drivers/gpu/drm/i915/i915_perf.c
3492
wake_up(&stream->poll_wq);
drivers/gpu/drm/i915/i915_perf.c
3496
ns_to_ktime(stream->poll_oa_period));
drivers/gpu/drm/i915/i915_perf.c
3513
static __poll_t i915_perf_poll_locked(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
3519
stream->ops->poll_wait(stream, file, wait);
drivers/gpu/drm/i915/i915_perf.c
3527
if (stream->pollin)
drivers/gpu/drm/i915/i915_perf.c
3548
struct i915_perf_stream *stream = file->private_data;
drivers/gpu/drm/i915/i915_perf.c
3551
mutex_lock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3552
ret = i915_perf_poll_locked(stream, file, wait);
drivers/gpu/drm/i915/i915_perf.c
3553
mutex_unlock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3568
static void i915_perf_enable_locked(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3570
if (stream->enabled)
drivers/gpu/drm/i915/i915_perf.c
3574
stream->enabled = true;
drivers/gpu/drm/i915/i915_perf.c
3576
if (stream->ops->enable)
drivers/gpu/drm/i915/i915_perf.c
3577
stream->ops->enable(stream);
drivers/gpu/drm/i915/i915_perf.c
3579
if (stream->hold_preemption)
drivers/gpu/drm/i915/i915_perf.c
3580
intel_context_set_nopreempt(stream->pinned_ctx);
drivers/gpu/drm/i915/i915_perf.c
3597
static void i915_perf_disable_locked(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3599
if (!stream->enabled)
drivers/gpu/drm/i915/i915_perf.c
3603
stream->enabled = false;
drivers/gpu/drm/i915/i915_perf.c
3605
if (stream->hold_preemption)
drivers/gpu/drm/i915/i915_perf.c
3606
intel_context_clear_nopreempt(stream->pinned_ctx);
drivers/gpu/drm/i915/i915_perf.c
3608
if (stream->ops->disable)
drivers/gpu/drm/i915/i915_perf.c
3609
stream->ops->disable(stream);
drivers/gpu/drm/i915/i915_perf.c
3612
static long i915_perf_config_locked(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
3616
long ret = stream->oa_config->id;
drivers/gpu/drm/i915/i915_perf.c
3618
config = i915_perf_get_oa_config(stream->perf, metrics_set);
drivers/gpu/drm/i915/i915_perf.c
3622
if (config != stream->oa_config) {
drivers/gpu/drm/i915/i915_perf.c
3634
err = emit_oa_config(stream, config, oa_context(stream), NULL);
drivers/gpu/drm/i915/i915_perf.c
3636
config = xchg(&stream->oa_config, config);
drivers/gpu/drm/i915/i915_perf.c
3655
static long i915_perf_ioctl_locked(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
3661
i915_perf_enable_locked(stream);
drivers/gpu/drm/i915/i915_perf.c
3664
i915_perf_disable_locked(stream);
drivers/gpu/drm/i915/i915_perf.c
3667
return i915_perf_config_locked(stream, arg);
drivers/gpu/drm/i915/i915_perf.c
3688
struct i915_perf_stream *stream = file->private_data;
drivers/gpu/drm/i915/i915_perf.c
3691
mutex_lock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3692
ret = i915_perf_ioctl_locked(stream, cmd, arg);
drivers/gpu/drm/i915/i915_perf.c
3693
mutex_unlock(&stream->lock);
drivers/gpu/drm/i915/i915_perf.c
3708
static void i915_perf_destroy_locked(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
3710
if (stream->enabled)
drivers/gpu/drm/i915/i915_perf.c
3711
i915_perf_disable_locked(stream);
drivers/gpu/drm/i915/i915_perf.c
3713
if (stream->ops->destroy)
drivers/gpu/drm/i915/i915_perf.c
3714
stream->ops->destroy(stream);
drivers/gpu/drm/i915/i915_perf.c
3716
if (stream->ctx)
drivers/gpu/drm/i915/i915_perf.c
3717
i915_gem_context_put(stream->ctx);
drivers/gpu/drm/i915/i915_perf.c
3719
kfree(stream);
drivers/gpu/drm/i915/i915_perf.c
3735
struct i915_perf_stream *stream = file->private_data;
drivers/gpu/drm/i915/i915_perf.c
3736
struct i915_perf *perf = stream->perf;
drivers/gpu/drm/i915/i915_perf.c
3737
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/i915_perf.c
3745
i915_perf_destroy_locked(stream);
drivers/gpu/drm/i915/i915_perf.c
3799
struct i915_perf_stream *stream = NULL;
drivers/gpu/drm/i915/i915_perf.c
3875
stream = kzalloc_obj(*stream);
drivers/gpu/drm/i915/i915_perf.c
3876
if (!stream) {
drivers/gpu/drm/i915/i915_perf.c
3881
stream->perf = perf;
drivers/gpu/drm/i915/i915_perf.c
3882
stream->ctx = specific_ctx;
drivers/gpu/drm/i915/i915_perf.c
3883
stream->poll_oa_period = props->poll_oa_period;
drivers/gpu/drm/i915/i915_perf.c
3885
ret = i915_oa_stream_init(stream, param, props);
drivers/gpu/drm/i915/i915_perf.c
3893
if (WARN_ON(stream->sample_flags != props->sample_flags)) {
drivers/gpu/drm/i915/i915_perf.c
3903
stream_fd = anon_inode_getfd("[i915_perf]", &fops, stream, f_flags);
drivers/gpu/drm/i915/i915_perf.c
3910
i915_perf_enable_locked(stream);
drivers/gpu/drm/i915/i915_perf.c
3920
if (stream->ops->destroy)
drivers/gpu/drm/i915/i915_perf.c
3921
stream->ops->destroy(stream);
drivers/gpu/drm/i915/i915_perf.c
3923
kfree(stream);
drivers/gpu/drm/i915/i915_perf.c
432
struct i915_perf_regs *__oa_regs(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
434
return &stream->engine->oa_group->regs;
drivers/gpu/drm/i915/i915_perf.c
437
static u32 gen12_oa_hw_tail_read(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
439
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
441
return intel_uncore_read(uncore, __oa_regs(stream)->oa_tail_ptr) &
drivers/gpu/drm/i915/i915_perf.c
445
static u32 gen8_oa_hw_tail_read(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
447
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
452
static u32 gen7_oa_hw_tail_read(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
454
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
463
static u64 oa_report_id(struct i915_perf_stream *stream, void *report)
drivers/gpu/drm/i915/i915_perf.c
465
return oa_report_header_64bit(stream) ? *(u64 *)report : *(u32 *)report;
drivers/gpu/drm/i915/i915_perf.c
468
static u64 oa_report_reason(struct i915_perf_stream *stream, void *report)
drivers/gpu/drm/i915/i915_perf.c
470
return (oa_report_id(stream, report) >> OAREPORT_REASON_SHIFT) &
drivers/gpu/drm/i915/i915_perf.c
471
(GRAPHICS_VER(stream->perf->i915) == 12 ?
drivers/gpu/drm/i915/i915_perf.c
476
static void oa_report_id_clear(struct i915_perf_stream *stream, u32 *report)
drivers/gpu/drm/i915/i915_perf.c
478
if (oa_report_header_64bit(stream))
drivers/gpu/drm/i915/i915_perf.c
484
static bool oa_report_ctx_invalid(struct i915_perf_stream *stream, void *report)
drivers/gpu/drm/i915/i915_perf.c
486
return !(oa_report_id(stream, report) &
drivers/gpu/drm/i915/i915_perf.c
487
stream->perf->gen8_valid_ctx_bit);
drivers/gpu/drm/i915/i915_perf.c
490
static u64 oa_timestamp(struct i915_perf_stream *stream, void *report)
drivers/gpu/drm/i915/i915_perf.c
492
return oa_report_header_64bit(stream) ?
drivers/gpu/drm/i915/i915_perf.c
497
static void oa_timestamp_clear(struct i915_perf_stream *stream, u32 *report)
drivers/gpu/drm/i915/i915_perf.c
499
if (oa_report_header_64bit(stream))
drivers/gpu/drm/i915/i915_perf.c
505
static u32 oa_context_id(struct i915_perf_stream *stream, u32 *report)
drivers/gpu/drm/i915/i915_perf.c
507
u32 ctx_id = oa_report_header_64bit(stream) ? report[4] : report[2];
drivers/gpu/drm/i915/i915_perf.c
509
return ctx_id & stream->specific_ctx_id_mask;
drivers/gpu/drm/i915/i915_perf.c
512
static void oa_context_id_squash(struct i915_perf_stream *stream, u32 *report)
drivers/gpu/drm/i915/i915_perf.c
514
if (oa_report_header_64bit(stream))
drivers/gpu/drm/i915/i915_perf.c
543
static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/i915_perf.c
545
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
546
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
557
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
559
hw_tail = stream->perf->ops.oa_hw_tail_read(stream);
drivers/gpu/drm/i915/i915_perf.c
567
partial_report_size = OA_TAKEN(hw_tail, stream->oa_buffer.tail);
drivers/gpu/drm/i915/i915_perf.c
587
while (OA_TAKEN(tail, stream->oa_buffer.tail) >= report_size) {
drivers/gpu/drm/i915/i915_perf.c
588
void *report = stream->oa_buffer.vaddr + tail;
drivers/gpu/drm/i915/i915_perf.c
590
if (oa_report_id(stream, report) ||
drivers/gpu/drm/i915/i915_perf.c
591
oa_timestamp(stream, report))
drivers/gpu/drm/i915/i915_perf.c
598
__ratelimit(&stream->perf->tail_pointer_race))
drivers/gpu/drm/i915/i915_perf.c
599
drm_notice(&stream->uncore->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
601
stream->oa_buffer.head, tail, hw_tail);
drivers/gpu/drm/i915/i915_perf.c
603
stream->oa_buffer.tail = tail;
drivers/gpu/drm/i915/i915_perf.c
605
pollin = OA_TAKEN(stream->oa_buffer.tail,
drivers/gpu/drm/i915/i915_perf.c
606
stream->oa_buffer.head) >= report_size;
drivers/gpu/drm/i915/i915_perf.c
608
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
628
static int append_oa_status(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
664
static int append_oa_sample(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
670
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
677
header.size = stream->sample_size;
drivers/gpu/drm/i915/i915_perf.c
687
oa_buf_end = stream->oa_buffer.vaddr + OA_BUFFER_SIZE;
drivers/gpu/drm/i915/i915_perf.c
695
if (copy_to_user(buf, stream->oa_buffer.vaddr,
drivers/gpu/drm/i915/i915_perf.c
728
static int gen8_append_oa_reports(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
733
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
734
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/i915/i915_perf.c
735
u8 *oa_buf_base = stream->oa_buffer.vaddr;
drivers/gpu/drm/i915/i915_perf.c
736
u32 gtt_offset = i915_ggtt_offset(stream->oa_buffer.vma);
drivers/gpu/drm/i915/i915_perf.c
743
if (drm_WARN_ON(&uncore->i915->drm, !stream->enabled))
drivers/gpu/drm/i915/i915_perf.c
746
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
748
head = stream->oa_buffer.head;
drivers/gpu/drm/i915/i915_perf.c
749
tail = stream->oa_buffer.tail;
drivers/gpu/drm/i915/i915_perf.c
751
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
780
reason = oa_report_reason(stream, report);
drivers/gpu/drm/i915/i915_perf.c
781
ctx_id = oa_context_id(stream, report32);
drivers/gpu/drm/i915/i915_perf.c
823
if (oa_report_ctx_invalid(stream, report) &&
drivers/gpu/drm/i915/i915_perf.c
824
GRAPHICS_VER_FULL(stream->engine->i915) < IP_VER(12, 55)) {
drivers/gpu/drm/i915/i915_perf.c
826
oa_context_id_squash(stream, report32);
drivers/gpu/drm/i915/i915_perf.c
860
if (!stream->ctx ||
drivers/gpu/drm/i915/i915_perf.c
861
stream->specific_ctx_id == ctx_id ||
drivers/gpu/drm/i915/i915_perf.c
862
stream->oa_buffer.last_ctx_id == stream->specific_ctx_id ||
drivers/gpu/drm/i915/i915_perf.c
869
if (stream->ctx &&
drivers/gpu/drm/i915/i915_perf.c
870
stream->specific_ctx_id != ctx_id) {
drivers/gpu/drm/i915/i915_perf.c
871
oa_context_id_squash(stream, report32);
drivers/gpu/drm/i915/i915_perf.c
874
ret = append_oa_sample(stream, buf, count, offset,
drivers/gpu/drm/i915/i915_perf.c
879
stream->oa_buffer.last_ctx_id = ctx_id;
drivers/gpu/drm/i915/i915_perf.c
887
oa_report_id_clear(stream, report32);
drivers/gpu/drm/i915/i915_perf.c
888
oa_timestamp_clear(stream, report32);
drivers/gpu/drm/i915/i915_perf.c
890
u8 *oa_buf_end = stream->oa_buffer.vaddr +
drivers/gpu/drm/i915/i915_perf.c
907
oaheadptr = GRAPHICS_VER(stream->perf->i915) == 12 ?
drivers/gpu/drm/i915/i915_perf.c
908
__oa_regs(stream)->oa_head_ptr :
drivers/gpu/drm/i915/i915_perf.c
911
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
919
stream->oa_buffer.head = head;
drivers/gpu/drm/i915/i915_perf.c
921
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/i915/i915_perf.c
947
static int gen8_oa_read(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf.c
952
struct intel_uncore *uncore = stream->uncore;
drivers/gpu/drm/i915/i915_perf.c
957
if (drm_WARN_ON(&uncore->i915->drm, !stream->oa_buffer.vaddr))
drivers/gpu/drm/i915/i915_perf.c
960
oastatus_reg = GRAPHICS_VER(stream->perf->i915) == 12 ?
drivers/gpu/drm/i915/i915_perf.c
961
__oa_regs(stream)->oa_status :
drivers/gpu/drm/i915/i915_perf.c
981
ret = append_oa_status(stream, buf, count, offset,
drivers/gpu/drm/i915/i915_perf.c
986
drm_dbg(&stream->perf->i915->drm,
drivers/gpu/drm/i915/i915_perf.c
988
stream->period_exponent);
drivers/gpu/drm/i915/i915_perf.c
990
stream->perf->ops.oa_disable(stream);
drivers/gpu/drm/i915/i915_perf.c
991
stream->perf->ops.oa_enable(stream);
drivers/gpu/drm/i915/i915_perf_types.h
109
void (*enable)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
116
void (*disable)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
122
void (*poll_wait)(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf_types.h
131
int (*wait_unlocked)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
151
int (*read)(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf_types.h
161
void (*destroy)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
373
int (*enable_metric_set)(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf_types.h
380
void (*disable_metric_set)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
385
void (*oa_enable)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
390
void (*oa_disable)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/i915_perf_types.h
396
int (*read)(struct i915_perf_stream *stream,
drivers/gpu/drm/i915/i915_perf_types.h
408
u32 (*oa_hw_tail_read)(struct i915_perf_stream *stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
104
struct i915_perf_stream *stream;
drivers/gpu/drm/i915/selftests/i915_perf.c
117
stream = kzalloc_obj(*stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
118
if (!stream) {
drivers/gpu/drm/i915/selftests/i915_perf.c
123
stream->perf = perf;
drivers/gpu/drm/i915/selftests/i915_perf.c
126
if (i915_oa_stream_init(stream, &param, &props)) {
drivers/gpu/drm/i915/selftests/i915_perf.c
127
kfree(stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
128
stream = NULL;
drivers/gpu/drm/i915/selftests/i915_perf.c
134
return stream;
drivers/gpu/drm/i915/selftests/i915_perf.c
137
static void stream_destroy(struct i915_perf_stream *stream)
drivers/gpu/drm/i915/selftests/i915_perf.c
139
struct intel_gt *gt = stream->engine->gt;
drivers/gpu/drm/i915/selftests/i915_perf.c
142
i915_perf_destroy_locked(stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
149
struct i915_perf_stream *stream;
drivers/gpu/drm/i915/selftests/i915_perf.c
153
stream = test_stream(&i915->perf);
drivers/gpu/drm/i915/selftests/i915_perf.c
154
if (!stream)
drivers/gpu/drm/i915/selftests/i915_perf.c
157
stream_destroy(stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
200
struct i915_perf_stream *stream;
drivers/gpu/drm/i915/selftests/i915_perf.c
210
stream = test_stream(&i915->perf);
drivers/gpu/drm/i915/selftests/i915_perf.c
211
if (!stream)
drivers/gpu/drm/i915/selftests/i915_perf.c
214
expected = atomic64_read(&stream->perf->noa_programming_delay);
drivers/gpu/drm/i915/selftests/i915_perf.c
216
if (stream->engine->class != RENDER_CLASS) {
drivers/gpu/drm/i915/selftests/i915_perf.c
222
intel_write_status_page(stream->engine, 0x100 + i, 0);
drivers/gpu/drm/i915/selftests/i915_perf.c
224
rq = intel_engine_create_kernel_request(stream->engine);
drivers/gpu/drm/i915/selftests/i915_perf.c
245
i915_ggtt_offset(stream->noa_wait), 0,
drivers/gpu/drm/i915/selftests/i915_perf.c
269
delay = intel_read_status_page(stream->engine, 0x102);
drivers/gpu/drm/i915/selftests/i915_perf.c
270
delay -= intel_read_status_page(stream->engine, 0x100);
drivers/gpu/drm/i915/selftests/i915_perf.c
271
delay = intel_gt_clock_interval_to_ns(stream->engine->gt, delay);
drivers/gpu/drm/i915/selftests/i915_perf.c
285
stream_destroy(stream);
drivers/gpu/drm/i915/selftests/i915_perf.c
292
struct i915_perf_stream *stream;
drivers/gpu/drm/i915/selftests/i915_perf.c
303
stream = test_stream(&i915->perf);
drivers/gpu/drm/i915/selftests/i915_perf.c
304
if (!stream)
drivers/gpu/drm/i915/selftests/i915_perf.c
307
gpr0 = i915_mmio_reg_offset(GEN8_RING_CS_GPR(stream->engine->mmio_base, 0));
drivers/gpu/drm/i915/selftests/i915_perf.c
309
ce = intel_context_create(stream->engine);
drivers/gpu/drm/i915/selftests/i915_perf.c
352
i915_ggtt_offset(stream->noa_wait), 0,
drivers/gpu/drm/i915/selftests/i915_perf.c
389
intel_gt_set_wedged(stream->engine->gt);
drivers/gpu/drm/i915/selftests/i915_perf.c
416
stream_destroy(stream);
drivers/gpu/drm/imagination/pvr_context.c
73
void *stream;
drivers/gpu/drm/imagination/pvr_context.c
76
stream = memdup_user(u64_to_user_ptr(stream_user_ptr), stream_size);
drivers/gpu/drm/imagination/pvr_context.c
77
if (IS_ERR(stream))
drivers/gpu/drm/imagination/pvr_context.c
78
return PTR_ERR(stream);
drivers/gpu/drm/imagination/pvr_context.c
80
err = pvr_stream_process(pvr_dev, cmd_defs, stream, stream_size, dest);
drivers/gpu/drm/imagination/pvr_context.c
82
kfree(stream);
drivers/gpu/drm/imagination/pvr_job.c
69
void *stream, u32 stream_size, struct pvr_job *job)
drivers/gpu/drm/imagination/pvr_job.c
79
err = pvr_stream_process(pvr_dev, cmd_defs, stream, stream_size, job->cmd);
drivers/gpu/drm/imagination/pvr_job.c
90
void *stream;
drivers/gpu/drm/imagination/pvr_job.c
93
stream = memdup_user(u64_to_user_ptr(stream_userptr), stream_len);
drivers/gpu/drm/imagination/pvr_job.c
94
if (IS_ERR(stream))
drivers/gpu/drm/imagination/pvr_job.c
95
return PTR_ERR(stream);
drivers/gpu/drm/imagination/pvr_job.c
97
err = pvr_job_process_stream(pvr_dev, stream_def, stream, stream_len, job);
drivers/gpu/drm/imagination/pvr_job.c
99
kfree(stream);
drivers/gpu/drm/imagination/pvr_stream.c
103
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u64),
drivers/gpu/drm/imagination/pvr_stream.c
110
err = pvr_stream_get_data(stream, &stream_offset, stream_size,
drivers/gpu/drm/imagination/pvr_stream.c
169
err = pvr_stream_process_1(pvr_dev, ext_def->stream, ext_def->stream_len,
drivers/gpu/drm/imagination/pvr_stream.c
207
void *stream, u32 stream_size, void *dest_out)
drivers/gpu/drm/imagination/pvr_stream.c
214
if (!stream || !stream_size)
drivers/gpu/drm/imagination/pvr_stream.c
217
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u32),
drivers/gpu/drm/imagination/pvr_stream.c
226
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u32),
drivers/gpu/drm/imagination/pvr_stream.c
235
stream, stream_offset, main_stream_len, dest_out,
drivers/gpu/drm/imagination/pvr_stream.c
241
err = pvr_stream_process_ext_stream(pvr_dev, cmd_defs, stream, stream_offset,
drivers/gpu/drm/imagination/pvr_stream.c
33
pvr_stream_get_data(u8 *stream, u32 *stream_offset, u32 stream_size, u32 data_size, u32 align_size,
drivers/gpu/drm/imagination/pvr_stream.c
41
memcpy(dest, stream + *stream_offset, data_size);
drivers/gpu/drm/imagination/pvr_stream.c
66
u32 nr_entries, u8 *stream, u32 stream_offset, u32 stream_size,
drivers/gpu/drm/imagination/pvr_stream.c
82
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u8),
drivers/gpu/drm/imagination/pvr_stream.c
89
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u16),
drivers/gpu/drm/imagination/pvr_stream.c
96
err = pvr_stream_get_data(stream, &stream_offset, stream_size, sizeof(u32),
drivers/gpu/drm/imagination/pvr_stream.h
45
const struct pvr_stream_def *stream;
drivers/gpu/drm/imagination/pvr_stream.h
71
void *stream, u32 stream_size, void *dest_out);
drivers/gpu/drm/imagination/pvr_stream_defs.c
144
.stream = rogue_fwif_cmd_frag_stream_brn47217,
drivers/gpu/drm/imagination/pvr_stream_defs.c
150
.stream = rogue_fwif_cmd_frag_stream_brn49927,
drivers/gpu/drm/imagination/pvr_stream_defs.c
207
.stream = rogue_fwif_cmd_compute_stream_brn49927,
drivers/gpu/drm/imagination/pvr_stream_defs.c
69
.stream = rogue_fwif_cmd_geom_stream_brn49927,
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
1021
uint8 stream;
drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h
609
uint8 stream;
drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h
1476
uint32 stream;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
249
struct vmw_stream *stream = &overlay->stream[stream_id];
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
253
if (!stream->buf)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
257
if (!stream->paused) {
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
264
ret = vmw_overlay_move_buffer(dev_priv, stream->buf, false,
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
273
vmw_bo_unreference(&stream->buf);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
274
stream->paused = false;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
276
stream->paused = true;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
297
struct vmw_stream *stream = &overlay->stream[arg->stream_id];
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
304
stream->buf, buf, stream->paused ? "" : "not ");
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
306
if (stream->buf != buf) {
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
311
} else if (!stream->paused) {
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
317
stream->saved = *arg;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
341
if (stream->buf != buf)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
342
stream->buf = vmw_bo_reference(buf);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
343
stream->saved = *arg;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
345
stream->paused = false;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
368
struct vmw_stream *stream = &overlay->stream[i];
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
369
if (!stream->paused)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
372
ret = vmw_overlay_update_stream(dev_priv, stream->buf,
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
373
&stream->saved, false);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
402
if (overlay->stream[i].paused)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
482
if (!overlay->stream[i].claimed)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
502
if (overlay->stream[i].claimed)
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
505
overlay->stream[i].claimed = true;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
526
WARN_ON(!overlay->stream[stream_id].claimed);
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
528
overlay->stream[stream_id].claimed = false;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
53
struct vmw_stream stream[VMW_MAX_NUM_STREAMS];
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
548
overlay->stream[i].buf = NULL;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
549
overlay->stream[i].paused = false;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
550
overlay->stream[i].claimed = false;
drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c
568
if (overlay->stream[i].buf) {
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
158
struct vmw_stream *stream;
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
165
stream = vmw_stream(res);
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
166
*inout_id = stream->stream_id;
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
60
struct vmw_stream *stream = vmw_stream(res);
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
63
ret = vmw_overlay_unref(dev_priv, stream->stream_id);
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
69
struct vmw_stream *stream = vmw_stream(res);
drivers/gpu/drm/vmwgfx/vmwgfx_va.c
71
return vmw_overlay_claim(res->dev_priv, &stream->stream_id);
drivers/gpu/drm/xe/abi/guc_lfd_abi.h
167
u32 stream[];
drivers/gpu/drm/xe/xe_eu_stall.c
403
static bool eu_stall_data_buf_poll(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
406
u32 buf_size = stream->per_xecore_buf_size;
drivers/gpu/drm/xe/xe_eu_stall.c
408
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
413
mutex_lock(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
415
xecore_buf = &stream->xecore_buf[xecore];
drivers/gpu/drm/xe/xe_eu_stall.c
424
if (num_data_rows(total_data) >= stream->wait_num_reports)
drivers/gpu/drm/xe/xe_eu_stall.c
428
set_bit(xecore, stream->data_drop.mask);
drivers/gpu/drm/xe/xe_eu_stall.c
431
mutex_unlock(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
452
static int xe_eu_stall_data_buf_read(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
470
xecore_buf = &stream->xecore_buf[xecore];
drivers/gpu/drm/xe/xe_eu_stall.c
474
buf_size = stream->per_xecore_buf_size;
drivers/gpu/drm/xe/xe_eu_stall.c
517
if (test_bit(xecore, stream->data_drop.mask)) {
drivers/gpu/drm/xe/xe_eu_stall.c
519
clear_bit(xecore, stream->data_drop.mask);
drivers/gpu/drm/xe/xe_eu_stall.c
536
static ssize_t xe_eu_stall_stream_read_locked(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
540
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
546
mutex_lock(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
547
if (bitmap_weight(stream->data_drop.mask, XE_MAX_DSS_FUSE_BITS)) {
drivers/gpu/drm/xe/xe_eu_stall.c
548
if (!stream->data_drop.reported_to_user) {
drivers/gpu/drm/xe/xe_eu_stall.c
549
stream->data_drop.reported_to_user = true;
drivers/gpu/drm/xe/xe_eu_stall.c
551
XE_MAX_DSS_FUSE_BITS, stream->data_drop.mask);
drivers/gpu/drm/xe/xe_eu_stall.c
552
mutex_unlock(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
555
stream->data_drop.reported_to_user = false;
drivers/gpu/drm/xe/xe_eu_stall.c
559
ret = xe_eu_stall_data_buf_read(stream, buf, count, &total_size,
drivers/gpu/drm/xe/xe_eu_stall.c
564
mutex_unlock(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
578
struct xe_eu_stall_data_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_eu_stall.c
579
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
582
aligned_count = ALIGN_DOWN(count, stream->data_record_size);
drivers/gpu/drm/xe/xe_eu_stall.c
586
if (!stream->enabled) {
drivers/gpu/drm/xe/xe_eu_stall.c
593
ret = wait_event_interruptible(stream->poll_wq, stream->pollin);
drivers/gpu/drm/xe/xe_eu_stall.c
598
ret = xe_eu_stall_stream_read_locked(stream, file, buf, aligned_count);
drivers/gpu/drm/xe/xe_eu_stall.c
603
ret = xe_eu_stall_stream_read_locked(stream, file, buf, aligned_count);
drivers/gpu/drm/xe/xe_eu_stall.c
612
stream->pollin = false;
drivers/gpu/drm/xe/xe_eu_stall.c
617
static void xe_eu_stall_stream_free(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
619
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
621
mutex_destroy(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
622
gt->eu_stall->stream = NULL;
drivers/gpu/drm/xe/xe_eu_stall.c
623
kfree(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
626
static void xe_eu_stall_data_buf_destroy(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
628
xe_bo_unpin_map_no_vm(stream->bo);
drivers/gpu/drm/xe/xe_eu_stall.c
629
kfree(stream->xecore_buf);
drivers/gpu/drm/xe/xe_eu_stall.c
632
static int xe_eu_stall_data_buf_alloc(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
635
struct xe_tile *tile = stream->gt->tile;
drivers/gpu/drm/xe/xe_eu_stall.c
639
stream->xecore_buf = kzalloc_objs(*stream->xecore_buf, last_xecore);
drivers/gpu/drm/xe/xe_eu_stall.c
640
if (!stream->xecore_buf)
drivers/gpu/drm/xe/xe_eu_stall.c
643
size = stream->per_xecore_buf_size * last_xecore;
drivers/gpu/drm/xe/xe_eu_stall.c
648
kfree(stream->xecore_buf);
drivers/gpu/drm/xe/xe_eu_stall.c
653
stream->bo = bo;
drivers/gpu/drm/xe/xe_eu_stall.c
658
static int xe_eu_stall_stream_enable(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
662
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
668
stream->fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_RENDER);
drivers/gpu/drm/xe/xe_eu_stall.c
669
if (!xe_force_wake_ref_has_domain(stream->fw_ref, XE_FW_RENDER)) {
drivers/gpu/drm/xe/xe_eu_stall.c
690
write_ptr &= (stream->per_xecore_buf_size << 1) - 1;
drivers/gpu/drm/xe/xe_eu_stall.c
691
xecore_buf = &stream->xecore_buf[xecore];
drivers/gpu/drm/xe/xe_eu_stall.c
695
stream->data_drop.reported_to_user = false;
drivers/gpu/drm/xe/xe_eu_stall.c
696
bitmap_zero(stream->data_drop.mask, XE_MAX_DSS_FUSE_BITS);
drivers/gpu/drm/xe/xe_eu_stall.c
70
struct xe_eu_stall_data_stream *stream;
drivers/gpu/drm/xe/xe_eu_stall.c
701
stream->sampling_rate_mult));
drivers/gpu/drm/xe/xe_eu_stall.c
705
reg_value = xe_bo_ggtt_addr(stream->bo);
drivers/gpu/drm/xe/xe_eu_stall.c
707
stream->per_xecore_buf_size / SZ_256K);
drivers/gpu/drm/xe/xe_eu_stall.c
716
struct xe_eu_stall_data_stream *stream =
drivers/gpu/drm/xe/xe_eu_stall.c
717
container_of(work, typeof(*stream), buf_poll_work.work);
drivers/gpu/drm/xe/xe_eu_stall.c
718
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
720
if (eu_stall_data_buf_poll(stream)) {
drivers/gpu/drm/xe/xe_eu_stall.c
721
stream->pollin = true;
drivers/gpu/drm/xe/xe_eu_stall.c
722
wake_up(&stream->poll_wq);
drivers/gpu/drm/xe/xe_eu_stall.c
725
&stream->buf_poll_work,
drivers/gpu/drm/xe/xe_eu_stall.c
729
static int xe_eu_stall_stream_init(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
734
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
754
init_waitqueue_head(&stream->poll_wq);
drivers/gpu/drm/xe/xe_eu_stall.c
755
mutex_init(&stream->xecore_buf_lock);
drivers/gpu/drm/xe/xe_eu_stall.c
756
INIT_DELAYED_WORK(&stream->buf_poll_work, eu_stall_data_buf_poll_work_fn);
drivers/gpu/drm/xe/xe_eu_stall.c
757
stream->per_xecore_buf_size = per_xecore_buf_size;
drivers/gpu/drm/xe/xe_eu_stall.c
758
stream->sampling_rate_mult = props->sampling_rate_mult;
drivers/gpu/drm/xe/xe_eu_stall.c
759
stream->wait_num_reports = props->wait_num_reports;
drivers/gpu/drm/xe/xe_eu_stall.c
760
stream->data_record_size = xe_eu_stall_data_record_size(gt_to_xe(gt));
drivers/gpu/drm/xe/xe_eu_stall.c
762
ret = xe_eu_stall_data_buf_alloc(stream, last_xecore);
drivers/gpu/drm/xe/xe_eu_stall.c
767
xecore_buf = &stream->xecore_buf[xecore];
drivers/gpu/drm/xe/xe_eu_stall.c
768
vaddr_offset = xecore * stream->per_xecore_buf_size;
drivers/gpu/drm/xe/xe_eu_stall.c
769
xecore_buf->vaddr = stream->bo->vmap.vaddr + vaddr_offset;
drivers/gpu/drm/xe/xe_eu_stall.c
774
static __poll_t xe_eu_stall_stream_poll_locked(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
779
poll_wait(file, &stream->poll_wq, wait);
drivers/gpu/drm/xe/xe_eu_stall.c
781
if (stream->pollin)
drivers/gpu/drm/xe/xe_eu_stall.c
789
struct xe_eu_stall_data_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_eu_stall.c
790
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
794
ret = xe_eu_stall_stream_poll_locked(stream, file, wait);
drivers/gpu/drm/xe/xe_eu_stall.c
800
static int xe_eu_stall_enable_locked(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
802
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
805
if (stream->enabled)
drivers/gpu/drm/xe/xe_eu_stall.c
808
stream->enabled = true;
drivers/gpu/drm/xe/xe_eu_stall.c
810
ret = xe_eu_stall_stream_enable(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
813
&stream->buf_poll_work,
drivers/gpu/drm/xe/xe_eu_stall.c
818
static int xe_eu_stall_disable_locked(struct xe_eu_stall_data_stream *stream)
drivers/gpu/drm/xe/xe_eu_stall.c
820
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
822
if (!stream->enabled)
drivers/gpu/drm/xe/xe_eu_stall.c
825
stream->enabled = false;
drivers/gpu/drm/xe/xe_eu_stall.c
829
cancel_delayed_work_sync(&stream->buf_poll_work);
drivers/gpu/drm/xe/xe_eu_stall.c
835
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
drivers/gpu/drm/xe/xe_eu_stall.c
841
static long xe_eu_stall_stream_ioctl_locked(struct xe_eu_stall_data_stream *stream,
drivers/gpu/drm/xe/xe_eu_stall.c
846
return xe_eu_stall_enable_locked(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
848
return xe_eu_stall_disable_locked(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
856
struct xe_eu_stall_data_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_eu_stall.c
857
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
861
ret = xe_eu_stall_stream_ioctl_locked(stream, cmd, arg);
drivers/gpu/drm/xe/xe_eu_stall.c
869
struct xe_eu_stall_data_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_eu_stall.c
870
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_eu_stall.c
875
xe_eu_stall_disable_locked(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
876
xe_eu_stall_data_buf_destroy(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
877
xe_eu_stall_stream_free(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
897
struct xe_eu_stall_data_stream *stream;
drivers/gpu/drm/xe/xe_eu_stall.c
903
if (gt->eu_stall->stream) {
drivers/gpu/drm/xe/xe_eu_stall.c
908
stream = kzalloc_obj(*stream);
drivers/gpu/drm/xe/xe_eu_stall.c
909
if (!stream)
drivers/gpu/drm/xe/xe_eu_stall.c
912
gt->eu_stall->stream = stream;
drivers/gpu/drm/xe/xe_eu_stall.c
913
stream->gt = gt;
drivers/gpu/drm/xe/xe_eu_stall.c
915
ret = xe_eu_stall_stream_init(stream, props);
drivers/gpu/drm/xe/xe_eu_stall.c
921
stream_fd = anon_inode_getfd("[xe_eu_stall]", &fops_eu_stall, stream, f_flags);
drivers/gpu/drm/xe/xe_eu_stall.c
936
xe_eu_stall_data_buf_destroy(stream);
drivers/gpu/drm/xe/xe_eu_stall.c
938
xe_eu_stall_stream_free(stream);
drivers/gpu/drm/xe/xe_guc_log.c
563
offsetof(struct guc_lfd_file_header, stream));
drivers/gpu/drm/xe/xe_oa.c
1005
oa_bo = xe_oa_alloc_config_buffer(stream, config);
drivers/gpu/drm/xe/xe_oa.c
1012
fence = xe_oa_submit_bb(stream, XE_OA_SUBMIT_ADD_DEPS, oa_bo->bb);
drivers/gpu/drm/xe/xe_oa.c
1022
for (i = 0; i < stream->num_syncs; i++) {
drivers/gpu/drm/xe/xe_oa.c
1023
if (stream->syncs[i].flags & DRM_XE_SYNC_FLAG_SIGNAL)
drivers/gpu/drm/xe/xe_oa.c
1025
xe_sync_entry_signal(&stream->syncs[i], &ofence->base);
drivers/gpu/drm/xe/xe_oa.c
1033
xe_oa_update_last_fence(stream, fence);
drivers/gpu/drm/xe/xe_oa.c
1037
xe_gt_assert(stream->gt, !err || err == -ENOENT);
drivers/gpu/drm/xe/xe_oa.c
1048
for (i = 0; i < stream->num_syncs; i++)
drivers/gpu/drm/xe/xe_oa.c
1049
xe_sync_entry_cleanup(&stream->syncs[i]);
drivers/gpu/drm/xe/xe_oa.c
1050
kfree(stream->syncs);
drivers/gpu/drm/xe/xe_oa.c
1058
static u32 oag_report_ctx_switches(const struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1062
stream->sample ?
drivers/gpu/drm/xe/xe_oa.c
1066
static u32 oag_buf_size_select(const struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1069
xe_bo_size(stream->oa_buffer.bo) > SZ_16M ?
drivers/gpu/drm/xe/xe_oa.c
1073
static int xe_oa_enable_metric_set(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1075
struct xe_mmio *mmio = &stream->gt->mmio;
drivers/gpu/drm/xe/xe_oa.c
1083
if (XE_GT_WA(stream->gt, 1508761755)) {
drivers/gpu/drm/xe/xe_oa.c
1084
xe_gt_mcr_multicast_write(stream->gt, ROW_CHICKEN,
drivers/gpu/drm/xe/xe_oa.c
1086
xe_gt_mcr_multicast_write(stream->gt, ROW_CHICKEN2,
drivers/gpu/drm/xe/xe_oa.c
1094
if (GRAPHICS_VER(stream->oa->xe) >= 20)
drivers/gpu/drm/xe/xe_oa.c
1101
xe_mmio_write32(mmio, __oa_regs(stream)->oa_debug,
drivers/gpu/drm/xe/xe_oa.c
1103
oag_report_ctx_switches(stream) |
drivers/gpu/drm/xe/xe_oa.c
1104
oag_buf_size_select(stream) |
drivers/gpu/drm/xe/xe_oa.c
1105
oag_configure_mmio_trigger(stream, true));
drivers/gpu/drm/xe/xe_oa.c
1107
xe_mmio_write32(mmio, __oa_regs(stream)->oa_ctx_ctrl,
drivers/gpu/drm/xe/xe_oa.c
1109
(stream->periodic ?
drivers/gpu/drm/xe/xe_oa.c
1112
stream->period_exponent) : 0));
drivers/gpu/drm/xe/xe_oa.c
1120
(HAS_OA_BPC_REPORTING(stream->oa->xe) ? SQCNT1_OABPC : 0);
drivers/gpu/drm/xe/xe_oa.c
1123
if ((stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAM ||
drivers/gpu/drm/xe/xe_oa.c
1124
stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAM_SAG) &&
drivers/gpu/drm/xe/xe_oa.c
1125
GRAPHICS_VER(stream->oa->xe) >= 30)
drivers/gpu/drm/xe/xe_oa.c
1129
if (stream->exec_q) {
drivers/gpu/drm/xe/xe_oa.c
1130
ret = xe_oa_configure_oa_context(stream, true);
drivers/gpu/drm/xe/xe_oa.c
1135
return xe_oa_emit_oa_config(stream, stream->oa_config);
drivers/gpu/drm/xe/xe_oa.c
1398
struct xe_oa_stream *stream,
drivers/gpu/drm/xe/xe_oa.c
1420
stream->ufence_syncobj,
drivers/gpu/drm/xe/xe_oa.c
1421
++stream->ufence_timeline_value, 0);
drivers/gpu/drm/xe/xe_oa.c
1444
static void xe_oa_stream_enable(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1446
stream->pollin = false;
drivers/gpu/drm/xe/xe_oa.c
1448
xe_oa_enable(stream);
drivers/gpu/drm/xe/xe_oa.c
1450
if (stream->sample)
drivers/gpu/drm/xe/xe_oa.c
1451
hrtimer_start(&stream->poll_check_timer,
drivers/gpu/drm/xe/xe_oa.c
1452
ns_to_ktime(stream->poll_period_ns),
drivers/gpu/drm/xe/xe_oa.c
1456
static void xe_oa_stream_disable(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1458
xe_oa_disable(stream);
drivers/gpu/drm/xe/xe_oa.c
1460
if (stream->sample)
drivers/gpu/drm/xe/xe_oa.c
1461
hrtimer_cancel(&stream->poll_check_timer);
drivers/gpu/drm/xe/xe_oa.c
1464
if (xe_oa_buffer_check_unlocked(stream))
drivers/gpu/drm/xe/xe_oa.c
1465
wake_up(&stream->poll_wq);
drivers/gpu/drm/xe/xe_oa.c
1468
static int xe_oa_enable_preempt_timeslice(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
147
static u32 xe_oa_circ_diff(struct xe_oa_stream *stream, u32 tail, u32 head)
drivers/gpu/drm/xe/xe_oa.c
1470
struct xe_exec_queue *q = stream->exec_q;
drivers/gpu/drm/xe/xe_oa.c
1474
ret1 = q->ops->set_timeslice(q, stream->hwe->eclass->sched_props.timeslice_us);
drivers/gpu/drm/xe/xe_oa.c
1475
ret2 = q->ops->set_preempt_timeout(q, stream->hwe->eclass->sched_props.preempt_timeout_us);
drivers/gpu/drm/xe/xe_oa.c
1480
drm_dbg(&stream->oa->xe->drm, "%s failed ret1 %d ret2 %d\n", __func__, ret1, ret2);
drivers/gpu/drm/xe/xe_oa.c
1484
static int xe_oa_disable_preempt_timeslice(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1486
struct xe_exec_queue *q = stream->exec_q;
drivers/gpu/drm/xe/xe_oa.c
150
tail + stream->oa_buffer.circ_size - head;
drivers/gpu/drm/xe/xe_oa.c
1500
xe_oa_enable_preempt_timeslice(stream);
drivers/gpu/drm/xe/xe_oa.c
1501
drm_dbg(&stream->oa->xe->drm, "%s failed %d\n", __func__, ret);
drivers/gpu/drm/xe/xe_oa.c
1505
static int xe_oa_enable_locked(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1507
if (stream->enabled)
drivers/gpu/drm/xe/xe_oa.c
1510
if (stream->no_preempt) {
drivers/gpu/drm/xe/xe_oa.c
1511
int ret = xe_oa_disable_preempt_timeslice(stream);
drivers/gpu/drm/xe/xe_oa.c
1517
xe_oa_stream_enable(stream);
drivers/gpu/drm/xe/xe_oa.c
1519
stream->enabled = true;
drivers/gpu/drm/xe/xe_oa.c
1523
static int xe_oa_disable_locked(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1527
if (!stream->enabled)
drivers/gpu/drm/xe/xe_oa.c
153
static u32 xe_oa_circ_incr(struct xe_oa_stream *stream, u32 ptr, u32 n)
drivers/gpu/drm/xe/xe_oa.c
1530
xe_oa_stream_disable(stream);
drivers/gpu/drm/xe/xe_oa.c
1532
if (stream->no_preempt)
drivers/gpu/drm/xe/xe_oa.c
1533
ret = xe_oa_enable_preempt_timeslice(stream);
drivers/gpu/drm/xe/xe_oa.c
1535
stream->enabled = false;
drivers/gpu/drm/xe/xe_oa.c
1539
static long xe_oa_config_locked(struct xe_oa_stream *stream, u64 arg)
drivers/gpu/drm/xe/xe_oa.c
1542
long ret = stream->oa_config->id;
drivers/gpu/drm/xe/xe_oa.c
1546
err = xe_oa_user_extensions(stream->oa, XE_OA_USER_EXTN_FROM_CONFIG, arg, 0, &param);
drivers/gpu/drm/xe/xe_oa.c
155
return ptr + n >= stream->oa_buffer.circ_size ?
drivers/gpu/drm/xe/xe_oa.c
1550
config = xe_oa_get_oa_config(stream->oa, param.metric_set);
drivers/gpu/drm/xe/xe_oa.c
1554
param.xef = stream->xef;
drivers/gpu/drm/xe/xe_oa.c
1555
err = xe_oa_parse_syncs(stream->oa, stream, &param);
drivers/gpu/drm/xe/xe_oa.c
1559
stream->num_syncs = param.num_syncs;
drivers/gpu/drm/xe/xe_oa.c
156
ptr + n - stream->oa_buffer.circ_size : ptr + n;
drivers/gpu/drm/xe/xe_oa.c
1560
stream->syncs = param.syncs;
drivers/gpu/drm/xe/xe_oa.c
1562
err = xe_oa_emit_oa_config(stream, config);
drivers/gpu/drm/xe/xe_oa.c
1564
config = xchg(&stream->oa_config, config);
drivers/gpu/drm/xe/xe_oa.c
1565
drm_dbg(&stream->oa->xe->drm, "changed to oa config uuid=%s\n",
drivers/gpu/drm/xe/xe_oa.c
1566
stream->oa_config->uuid);
drivers/gpu/drm/xe/xe_oa.c
1575
static long xe_oa_status_locked(struct xe_oa_stream *stream, unsigned long arg)
drivers/gpu/drm/xe/xe_oa.c
1581
if (stream->oa_status & OASTATUS_REPORT_LOST)
drivers/gpu/drm/xe/xe_oa.c
1583
if (stream->oa_status & OASTATUS_BUFFER_OVERFLOW)
drivers/gpu/drm/xe/xe_oa.c
1585
if (stream->oa_status & OASTATUS_COUNTER_OVERFLOW)
drivers/gpu/drm/xe/xe_oa.c
1587
if (stream->oa_status & OASTATUS_MMIO_TRG_Q_FULL)
drivers/gpu/drm/xe/xe_oa.c
1596
static long xe_oa_info_locked(struct xe_oa_stream *stream, unsigned long arg)
drivers/gpu/drm/xe/xe_oa.c
1598
struct drm_xe_oa_stream_info info = { .oa_buf_size = xe_bo_size(stream->oa_buffer.bo), };
drivers/gpu/drm/xe/xe_oa.c
1607
static long xe_oa_ioctl_locked(struct xe_oa_stream *stream,
drivers/gpu/drm/xe/xe_oa.c
1613
return xe_oa_enable_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1615
return xe_oa_disable_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1617
return xe_oa_config_locked(stream, arg);
drivers/gpu/drm/xe/xe_oa.c
1619
return xe_oa_status_locked(stream, arg);
drivers/gpu/drm/xe/xe_oa.c
1621
return xe_oa_info_locked(stream, arg);
drivers/gpu/drm/xe/xe_oa.c
1631
struct xe_oa_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_oa.c
1634
mutex_lock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
1635
ret = xe_oa_ioctl_locked(stream, cmd, arg);
drivers/gpu/drm/xe/xe_oa.c
1636
mutex_unlock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
1641
static void xe_oa_destroy_locked(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
1643
if (stream->enabled)
drivers/gpu/drm/xe/xe_oa.c
1644
xe_oa_disable_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1646
xe_oa_stream_destroy(stream);
drivers/gpu/drm/xe/xe_oa.c
1648
if (stream->exec_q)
drivers/gpu/drm/xe/xe_oa.c
1649
xe_exec_queue_put(stream->exec_q);
drivers/gpu/drm/xe/xe_oa.c
1651
drm_syncobj_put(stream->ufence_syncobj);
drivers/gpu/drm/xe/xe_oa.c
1652
kfree(stream);
drivers/gpu/drm/xe/xe_oa.c
1657
struct xe_oa_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_oa.c
1658
struct xe_gt *gt = stream->gt;
drivers/gpu/drm/xe/xe_oa.c
1662
xe_oa_destroy_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1674
struct xe_oa_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_oa.c
1675
struct xe_bo *bo = stream->oa_buffer.bo;
drivers/gpu/drm/xe/xe_oa.c
1680
drm_dbg(&stream->oa->xe->drm, "Insufficient privilege to map OA buffer\n");
drivers/gpu/drm/xe/xe_oa.c
1685
if (vma->vm_end - vma->vm_start != xe_bo_size(stream->oa_buffer.bo)) {
drivers/gpu/drm/xe/xe_oa.c
1686
drm_dbg(&stream->oa->xe->drm, "Wrong mmap size, must be OA buffer size\n");
drivers/gpu/drm/xe/xe_oa.c
1695
drm_dbg(&stream->oa->xe->drm, "mmap must be read only\n");
drivers/gpu/drm/xe/xe_oa.c
1701
xe_assert(stream->oa->xe, bo->ttm.ttm->num_pages == vma_pages(vma));
drivers/gpu/drm/xe/xe_oa.c
1723
static int xe_oa_stream_init(struct xe_oa_stream *stream,
drivers/gpu/drm/xe/xe_oa.c
1729
stream->exec_q = param->exec_q;
drivers/gpu/drm/xe/xe_oa.c
1730
stream->poll_period_ns = DEFAULT_POLL_PERIOD_NS;
drivers/gpu/drm/xe/xe_oa.c
1731
stream->oa_unit = param->oa_unit;
drivers/gpu/drm/xe/xe_oa.c
1732
stream->hwe = param->hwe;
drivers/gpu/drm/xe/xe_oa.c
1733
stream->gt = stream->hwe->gt;
drivers/gpu/drm/xe/xe_oa.c
1734
stream->oa_buffer.format = &stream->oa->oa_formats[param->oa_format];
drivers/gpu/drm/xe/xe_oa.c
1736
stream->sample = param->sample;
drivers/gpu/drm/xe/xe_oa.c
1737
stream->periodic = param->period_exponent >= 0;
drivers/gpu/drm/xe/xe_oa.c
1738
stream->period_exponent = param->period_exponent;
drivers/gpu/drm/xe/xe_oa.c
1739
stream->no_preempt = param->no_preempt;
drivers/gpu/drm/xe/xe_oa.c
1740
stream->wait_num_reports = param->wait_num_reports;
drivers/gpu/drm/xe/xe_oa.c
1742
stream->xef = xe_file_get(param->xef);
drivers/gpu/drm/xe/xe_oa.c
1743
stream->num_syncs = param->num_syncs;
drivers/gpu/drm/xe/xe_oa.c
1744
stream->syncs = param->syncs;
drivers/gpu/drm/xe/xe_oa.c
1751
if (GRAPHICS_VER(stream->oa->xe) >= 20 &&
drivers/gpu/drm/xe/xe_oa.c
1752
stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAG && stream->sample)
drivers/gpu/drm/xe/xe_oa.c
1753
stream->oa_buffer.circ_size =
drivers/gpu/drm/xe/xe_oa.c
1755
param->oa_buffer_size % stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
1757
stream->oa_buffer.circ_size = param->oa_buffer_size;
drivers/gpu/drm/xe/xe_oa.c
1759
stream->oa_config = xe_oa_get_oa_config(stream->oa, param->metric_set);
drivers/gpu/drm/xe/xe_oa.c
1760
if (!stream->oa_config) {
drivers/gpu/drm/xe/xe_oa.c
1761
drm_dbg(&stream->oa->xe->drm, "Invalid OA config id=%i\n", param->metric_set);
drivers/gpu/drm/xe/xe_oa.c
1770
if (XE_GT_WA(stream->gt, 1509372804)) {
drivers/gpu/drm/xe/xe_oa.c
1776
stream->override_gucrc = true;
drivers/gpu/drm/xe/xe_oa.c
1780
xe_pm_runtime_get(stream->oa->xe);
drivers/gpu/drm/xe/xe_oa.c
1781
stream->fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL);
drivers/gpu/drm/xe/xe_oa.c
1782
if (!xe_force_wake_ref_has_domain(stream->fw_ref, XE_FORCEWAKE_ALL)) {
drivers/gpu/drm/xe/xe_oa.c
1787
ret = xe_oa_alloc_oa_buffer(stream, param->oa_buffer_size);
drivers/gpu/drm/xe/xe_oa.c
1791
stream->k_exec_q = xe_exec_queue_create(stream->oa->xe, NULL,
drivers/gpu/drm/xe/xe_oa.c
1792
BIT(stream->hwe->logical_instance), 1,
drivers/gpu/drm/xe/xe_oa.c
1793
stream->hwe, EXEC_QUEUE_FLAG_KERNEL, 0);
drivers/gpu/drm/xe/xe_oa.c
1794
if (IS_ERR(stream->k_exec_q)) {
drivers/gpu/drm/xe/xe_oa.c
1795
ret = PTR_ERR(stream->k_exec_q);
drivers/gpu/drm/xe/xe_oa.c
1796
drm_err(&stream->oa->xe->drm, "gt%d, hwe %s, xe_exec_queue_create failed=%d",
drivers/gpu/drm/xe/xe_oa.c
1797
stream->gt->info.id, stream->hwe->name, ret);
drivers/gpu/drm/xe/xe_oa.c
1801
ret = xe_oa_enable_metric_set(stream);
drivers/gpu/drm/xe/xe_oa.c
1803
drm_dbg(&stream->oa->xe->drm, "Unable to enable metric set\n");
drivers/gpu/drm/xe/xe_oa.c
1807
drm_dbg(&stream->oa->xe->drm, "opening stream oa config uuid=%s\n",
drivers/gpu/drm/xe/xe_oa.c
1808
stream->oa_config->uuid);
drivers/gpu/drm/xe/xe_oa.c
1810
WRITE_ONCE(stream->oa_unit->exclusive_stream, stream);
drivers/gpu/drm/xe/xe_oa.c
1812
hrtimer_setup(&stream->poll_check_timer, xe_oa_poll_check_timer_cb, CLOCK_MONOTONIC,
drivers/gpu/drm/xe/xe_oa.c
1814
init_waitqueue_head(&stream->poll_wq);
drivers/gpu/drm/xe/xe_oa.c
1816
spin_lock_init(&stream->oa_buffer.ptr_lock);
drivers/gpu/drm/xe/xe_oa.c
1817
mutex_init(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
1822
xe_oa_disable_metric_set(stream);
drivers/gpu/drm/xe/xe_oa.c
1823
xe_exec_queue_put(stream->k_exec_q);
drivers/gpu/drm/xe/xe_oa.c
1825
xe_oa_free_oa_buffer(stream);
drivers/gpu/drm/xe/xe_oa.c
1827
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
drivers/gpu/drm/xe/xe_oa.c
1828
xe_pm_runtime_put(stream->oa->xe);
drivers/gpu/drm/xe/xe_oa.c
1829
if (stream->override_gucrc)
drivers/gpu/drm/xe/xe_oa.c
1832
xe_oa_free_configs(stream);
drivers/gpu/drm/xe/xe_oa.c
1834
xe_file_put(stream->xef);
drivers/gpu/drm/xe/xe_oa.c
1841
struct xe_oa_stream *stream;
drivers/gpu/drm/xe/xe_oa.c
1858
stream = kzalloc_obj(*stream);
drivers/gpu/drm/xe/xe_oa.c
1859
if (!stream) {
drivers/gpu/drm/xe/xe_oa.c
1863
stream->ufence_syncobj = ufence_syncobj;
drivers/gpu/drm/xe/xe_oa.c
1864
stream->oa = oa;
drivers/gpu/drm/xe/xe_oa.c
1866
ret = xe_oa_parse_syncs(oa, stream, param);
drivers/gpu/drm/xe/xe_oa.c
1870
ret = xe_oa_stream_init(stream, param);
drivers/gpu/drm/xe/xe_oa.c
1879
ret = xe_oa_enable_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1884
stream_fd = anon_inode_getfd("[xe_oa]", &xe_oa_fops, stream, 0);
drivers/gpu/drm/xe/xe_oa.c
1891
drm_dev_get(&stream->oa->xe->drm);
drivers/gpu/drm/xe/xe_oa.c
1896
xe_oa_disable_locked(stream);
drivers/gpu/drm/xe/xe_oa.c
1898
xe_oa_stream_destroy(stream);
drivers/gpu/drm/xe/xe_oa.c
1900
kfree(stream);
drivers/gpu/drm/xe/xe_oa.c
202
static const struct xe_oa_regs *__oa_regs(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
204
return &stream->oa_unit->regs;
drivers/gpu/drm/xe/xe_oa.c
207
static u32 xe_oa_hw_tail_read(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
209
return xe_mmio_read32(&stream->gt->mmio, __oa_regs(stream)->oa_tail_ptr) &
drivers/gpu/drm/xe/xe_oa.c
216
static u64 oa_report_id(struct xe_oa_stream *stream, void *report)
drivers/gpu/drm/xe/xe_oa.c
218
return oa_report_header_64bit(stream) ? *(u64 *)report : *(u32 *)report;
drivers/gpu/drm/xe/xe_oa.c
221
static void oa_report_id_clear(struct xe_oa_stream *stream, u32 *report)
drivers/gpu/drm/xe/xe_oa.c
223
if (oa_report_header_64bit(stream))
drivers/gpu/drm/xe/xe_oa.c
229
static u64 oa_timestamp(struct xe_oa_stream *stream, void *report)
drivers/gpu/drm/xe/xe_oa.c
231
return oa_report_header_64bit(stream) ?
drivers/gpu/drm/xe/xe_oa.c
236
static void oa_timestamp_clear(struct xe_oa_stream *stream, u32 *report)
drivers/gpu/drm/xe/xe_oa.c
238
if (oa_report_header_64bit(stream))
drivers/gpu/drm/xe/xe_oa.c
244
static bool xe_oa_buffer_check_unlocked(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
246
u32 gtt_offset = xe_bo_ggtt_addr(stream->oa_buffer.bo);
drivers/gpu/drm/xe/xe_oa.c
248
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
251
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
253
hw_tail = xe_oa_hw_tail_read(stream);
drivers/gpu/drm/xe/xe_oa.c
261
partial_report_size = xe_oa_circ_diff(stream, hw_tail, stream->oa_buffer.tail);
drivers/gpu/drm/xe/xe_oa.c
265
hw_tail = xe_oa_circ_diff(stream, hw_tail, partial_report_size);
drivers/gpu/drm/xe/xe_oa.c
277
while (xe_oa_circ_diff(stream, tail, stream->oa_buffer.tail) >= report_size) {
drivers/gpu/drm/xe/xe_oa.c
278
void *report = stream->oa_buffer.vaddr + tail;
drivers/gpu/drm/xe/xe_oa.c
280
if (oa_report_id(stream, report) || oa_timestamp(stream, report))
drivers/gpu/drm/xe/xe_oa.c
283
tail = xe_oa_circ_diff(stream, tail, report_size);
drivers/gpu/drm/xe/xe_oa.c
286
if (xe_oa_circ_diff(stream, hw_tail, tail) > report_size)
drivers/gpu/drm/xe/xe_oa.c
287
drm_dbg(&stream->oa->xe->drm,
drivers/gpu/drm/xe/xe_oa.c
289
stream->oa_buffer.head, tail, hw_tail);
drivers/gpu/drm/xe/xe_oa.c
291
stream->oa_buffer.tail = tail;
drivers/gpu/drm/xe/xe_oa.c
293
available = xe_oa_circ_diff(stream, stream->oa_buffer.tail, stream->oa_buffer.head);
drivers/gpu/drm/xe/xe_oa.c
294
stream->pollin = available >= stream->wait_num_reports * report_size;
drivers/gpu/drm/xe/xe_oa.c
296
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
298
return stream->pollin;
drivers/gpu/drm/xe/xe_oa.c
303
struct xe_oa_stream *stream =
drivers/gpu/drm/xe/xe_oa.c
304
container_of(hrtimer, typeof(*stream), poll_check_timer);
drivers/gpu/drm/xe/xe_oa.c
306
if (xe_oa_buffer_check_unlocked(stream))
drivers/gpu/drm/xe/xe_oa.c
307
wake_up(&stream->poll_wq);
drivers/gpu/drm/xe/xe_oa.c
309
hrtimer_forward_now(hrtimer, ns_to_ktime(stream->poll_period_ns));
drivers/gpu/drm/xe/xe_oa.c
314
static int xe_oa_append_report(struct xe_oa_stream *stream, char __user *buf,
drivers/gpu/drm/xe/xe_oa.c
317
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
326
oa_buf_end = stream->oa_buffer.vaddr + stream->oa_buffer.circ_size;
drivers/gpu/drm/xe/xe_oa.c
334
if (copy_to_user(buf, stream->oa_buffer.vaddr,
drivers/gpu/drm/xe/xe_oa.c
346
static int xe_oa_append_reports(struct xe_oa_stream *stream, char __user *buf,
drivers/gpu/drm/xe/xe_oa.c
349
int report_size = stream->oa_buffer.format->size;
drivers/gpu/drm/xe/xe_oa.c
350
u8 *oa_buf_base = stream->oa_buffer.vaddr;
drivers/gpu/drm/xe/xe_oa.c
351
u32 gtt_offset = xe_bo_ggtt_addr(stream->oa_buffer.bo);
drivers/gpu/drm/xe/xe_oa.c
357
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
358
head = stream->oa_buffer.head;
drivers/gpu/drm/xe/xe_oa.c
359
tail = stream->oa_buffer.tail;
drivers/gpu/drm/xe/xe_oa.c
360
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
362
xe_assert(stream->oa->xe,
drivers/gpu/drm/xe/xe_oa.c
363
head < stream->oa_buffer.circ_size && tail < stream->oa_buffer.circ_size);
drivers/gpu/drm/xe/xe_oa.c
365
for (; xe_oa_circ_diff(stream, tail, head);
drivers/gpu/drm/xe/xe_oa.c
366
head = xe_oa_circ_incr(stream, head, report_size)) {
drivers/gpu/drm/xe/xe_oa.c
369
ret = xe_oa_append_report(stream, buf, count, offset, report);
drivers/gpu/drm/xe/xe_oa.c
373
if (!(stream->oa_buffer.circ_size % report_size)) {
drivers/gpu/drm/xe/xe_oa.c
375
oa_report_id_clear(stream, (void *)report);
drivers/gpu/drm/xe/xe_oa.c
376
oa_timestamp_clear(stream, (void *)report);
drivers/gpu/drm/xe/xe_oa.c
378
u8 *oa_buf_end = stream->oa_buffer.vaddr + stream->oa_buffer.circ_size;
drivers/gpu/drm/xe/xe_oa.c
392
struct xe_reg oaheadptr = __oa_regs(stream)->oa_head_ptr;
drivers/gpu/drm/xe/xe_oa.c
394
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
395
xe_mmio_write32(&stream->gt->mmio, oaheadptr,
drivers/gpu/drm/xe/xe_oa.c
397
stream->oa_buffer.head = head;
drivers/gpu/drm/xe/xe_oa.c
398
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
404
static void xe_oa_init_oa_buffer(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
406
u32 gtt_offset = xe_bo_ggtt_addr(stream->oa_buffer.bo);
drivers/gpu/drm/xe/xe_oa.c
407
int size_exponent = __ffs(xe_bo_size(stream->oa_buffer.bo));
drivers/gpu/drm/xe/xe_oa.c
409
struct xe_mmio *mmio = &stream->gt->mmio;
drivers/gpu/drm/xe/xe_oa.c
419
spin_lock_irqsave(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
421
xe_mmio_write32(mmio, __oa_regs(stream)->oa_status, 0);
drivers/gpu/drm/xe/xe_oa.c
422
xe_mmio_write32(mmio, __oa_regs(stream)->oa_head_ptr,
drivers/gpu/drm/xe/xe_oa.c
424
stream->oa_buffer.head = 0;
drivers/gpu/drm/xe/xe_oa.c
429
xe_mmio_write32(mmio, __oa_regs(stream)->oa_buffer, oa_buf);
drivers/gpu/drm/xe/xe_oa.c
430
xe_mmio_write32(mmio, __oa_regs(stream)->oa_tail_ptr,
drivers/gpu/drm/xe/xe_oa.c
434
stream->oa_buffer.tail = 0;
drivers/gpu/drm/xe/xe_oa.c
436
spin_unlock_irqrestore(&stream->oa_buffer.ptr_lock, flags);
drivers/gpu/drm/xe/xe_oa.c
439
memset(stream->oa_buffer.vaddr, 0, xe_bo_size(stream->oa_buffer.bo));
drivers/gpu/drm/xe/xe_oa.c
449
static u32 __oa_ccs_select(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
453
if (stream->hwe->class != XE_ENGINE_CLASS_COMPUTE)
drivers/gpu/drm/xe/xe_oa.c
456
val = REG_FIELD_PREP(OAG_OACONTROL_OA_CCS_SELECT_MASK, stream->hwe->instance);
drivers/gpu/drm/xe/xe_oa.c
457
xe_assert(stream->oa->xe,
drivers/gpu/drm/xe/xe_oa.c
458
REG_FIELD_GET(OAG_OACONTROL_OA_CCS_SELECT_MASK, val) == stream->hwe->instance);
drivers/gpu/drm/xe/xe_oa.c
462
static u32 __oactrl_used_bits(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
464
return stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAG ?
drivers/gpu/drm/xe/xe_oa.c
468
static void xe_oa_enable(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
470
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
478
xe_oa_init_oa_buffer(stream);
drivers/gpu/drm/xe/xe_oa.c
480
regs = __oa_regs(stream);
drivers/gpu/drm/xe/xe_oa.c
482
__oa_ccs_select(stream) | OAG_OACONTROL_OA_COUNTER_ENABLE;
drivers/gpu/drm/xe/xe_oa.c
484
if (GRAPHICS_VER(stream->oa->xe) >= 20 &&
drivers/gpu/drm/xe/xe_oa.c
485
stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAG)
drivers/gpu/drm/xe/xe_oa.c
488
xe_mmio_rmw32(&stream->gt->mmio, regs->oa_ctrl, __oactrl_used_bits(stream), val);
drivers/gpu/drm/xe/xe_oa.c
491
static void xe_oa_disable(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
493
struct xe_mmio *mmio = &stream->gt->mmio;
drivers/gpu/drm/xe/xe_oa.c
495
xe_mmio_rmw32(mmio, __oa_regs(stream)->oa_ctrl, __oactrl_used_bits(stream), 0);
drivers/gpu/drm/xe/xe_oa.c
496
if (xe_mmio_wait32(mmio, __oa_regs(stream)->oa_ctrl,
drivers/gpu/drm/xe/xe_oa.c
498
drm_err(&stream->oa->xe->drm,
drivers/gpu/drm/xe/xe_oa.c
501
if (GRAPHICS_VERx100(stream->oa->xe) <= 1270 && GRAPHICS_VERx100(stream->oa->xe) != 1260) {
drivers/gpu/drm/xe/xe_oa.c
505
drm_err(&stream->oa->xe->drm,
drivers/gpu/drm/xe/xe_oa.c
510
static int xe_oa_wait_unlocked(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
513
if (!stream->periodic)
drivers/gpu/drm/xe/xe_oa.c
516
return wait_event_interruptible(stream->poll_wq,
drivers/gpu/drm/xe/xe_oa.c
517
xe_oa_buffer_check_unlocked(stream));
drivers/gpu/drm/xe/xe_oa.c
523
static int __xe_oa_read(struct xe_oa_stream *stream, char __user *buf,
drivers/gpu/drm/xe/xe_oa.c
527
stream->oa_status = xe_mmio_rmw32(&stream->gt->mmio, __oa_regs(stream)->oa_status,
drivers/gpu/drm/xe/xe_oa.c
533
if (stream->oa_status & OASTATUS_RELEVANT_BITS)
drivers/gpu/drm/xe/xe_oa.c
536
return xe_oa_append_reports(stream, buf, count, offset);
drivers/gpu/drm/xe/xe_oa.c
542
struct xe_oa_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_oa.c
546
if (!stream->sample)
drivers/gpu/drm/xe/xe_oa.c
551
ret = xe_oa_wait_unlocked(stream);
drivers/gpu/drm/xe/xe_oa.c
555
mutex_lock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
556
ret = __xe_oa_read(stream, buf, count, &offset);
drivers/gpu/drm/xe/xe_oa.c
557
mutex_unlock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
560
xe_oa_buffer_check_unlocked(stream);
drivers/gpu/drm/xe/xe_oa.c
561
mutex_lock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
562
ret = __xe_oa_read(stream, buf, count, &offset);
drivers/gpu/drm/xe/xe_oa.c
563
mutex_unlock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
576
stream->pollin = false;
drivers/gpu/drm/xe/xe_oa.c
582
static __poll_t xe_oa_poll_locked(struct xe_oa_stream *stream,
drivers/gpu/drm/xe/xe_oa.c
587
poll_wait(file, &stream->poll_wq, wait);
drivers/gpu/drm/xe/xe_oa.c
595
if (stream->pollin)
drivers/gpu/drm/xe/xe_oa.c
603
struct xe_oa_stream *stream = file->private_data;
drivers/gpu/drm/xe/xe_oa.c
606
mutex_lock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
607
ret = xe_oa_poll_locked(stream, file, wait);
drivers/gpu/drm/xe/xe_oa.c
608
mutex_unlock(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
629
static struct dma_fence *xe_oa_submit_bb(struct xe_oa_stream *stream, enum xe_oa_submit_deps deps,
drivers/gpu/drm/xe/xe_oa.c
632
struct xe_exec_queue *q = stream->exec_q ?: stream->k_exec_q;
drivers/gpu/drm/xe/xe_oa.c
647
for (int i = 0; i < stream->num_syncs && !err; i++)
drivers/gpu/drm/xe/xe_oa.c
648
err = xe_sync_entry_add_deps(&stream->syncs[i], job);
drivers/gpu/drm/xe/xe_oa.c
650
drm_dbg(&stream->oa->xe->drm, "xe_sync_entry_add_deps err %d\n", err);
drivers/gpu/drm/xe/xe_oa.c
699
static void xe_oa_free_oa_buffer(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
701
xe_bo_unpin_map_no_vm(stream->oa_buffer.bo);
drivers/gpu/drm/xe/xe_oa.c
704
static void xe_oa_free_configs(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
708
xe_oa_config_put(stream->oa_config);
drivers/gpu/drm/xe/xe_oa.c
709
llist_for_each_entry_safe(oa_bo, tmp, stream->oa_config_bos.first, node)
drivers/gpu/drm/xe/xe_oa.c
710
free_oa_config_bo(oa_bo, stream->last_fence);
drivers/gpu/drm/xe/xe_oa.c
711
dma_fence_put(stream->last_fence);
drivers/gpu/drm/xe/xe_oa.c
714
static int xe_oa_load_with_lri(struct xe_oa_stream *stream, struct xe_oa_reg *reg_lri, u32 count)
drivers/gpu/drm/xe/xe_oa.c
720
bb = xe_bb_new(stream->gt, 2 * count + 1, false);
drivers/gpu/drm/xe/xe_oa.c
728
fence = xe_oa_submit_bb(stream, XE_OA_SUBMIT_NO_DEPS, bb);
drivers/gpu/drm/xe/xe_oa.c
743
static int xe_oa_configure_oar_context(struct xe_oa_stream *stream, bool enable)
drivers/gpu/drm/xe/xe_oa.c
745
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
751
OACTXCONTROL(stream->hwe->mmio_base),
drivers/gpu/drm/xe/xe_oa.c
759
RING_CONTEXT_CONTROL(stream->hwe->mmio_base),
drivers/gpu/drm/xe/xe_oa.c
765
return xe_oa_load_with_lri(stream, reg_lri, ARRAY_SIZE(reg_lri));
drivers/gpu/drm/xe/xe_oa.c
768
static int xe_oa_configure_oac_context(struct xe_oa_stream *stream, bool enable)
drivers/gpu/drm/xe/xe_oa.c
770
const struct xe_oa_format *format = stream->oa_buffer.format;
drivers/gpu/drm/xe/xe_oa.c
775
OACTXCONTROL(stream->hwe->mmio_base),
drivers/gpu/drm/xe/xe_oa.c
783
RING_CONTEXT_CONTROL(stream->hwe->mmio_base),
drivers/gpu/drm/xe/xe_oa.c
791
xe_mmio_write32(&stream->gt->mmio, __oa_regs(stream)->oa_ctrl,
drivers/gpu/drm/xe/xe_oa.c
792
__oa_ccs_select(stream));
drivers/gpu/drm/xe/xe_oa.c
794
return xe_oa_load_with_lri(stream, reg_lri, ARRAY_SIZE(reg_lri));
drivers/gpu/drm/xe/xe_oa.c
797
static int xe_oa_configure_oa_context(struct xe_oa_stream *stream, bool enable)
drivers/gpu/drm/xe/xe_oa.c
799
switch (stream->hwe->class) {
drivers/gpu/drm/xe/xe_oa.c
801
return xe_oa_configure_oar_context(stream, enable);
drivers/gpu/drm/xe/xe_oa.c
803
return xe_oa_configure_oac_context(stream, enable);
drivers/gpu/drm/xe/xe_oa.c
812
static u32 oag_configure_mmio_trigger(const struct xe_oa_stream *stream, bool enable)
drivers/gpu/drm/xe/xe_oa.c
815
enable && stream && stream->sample ?
drivers/gpu/drm/xe/xe_oa.c
819
static void xe_oa_disable_metric_set(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
821
struct xe_mmio *mmio = &stream->gt->mmio;
drivers/gpu/drm/xe/xe_oa.c
825
if (XE_GT_WA(stream->gt, 1508761755)) {
drivers/gpu/drm/xe/xe_oa.c
826
xe_gt_mcr_multicast_write(stream->gt, ROW_CHICKEN,
drivers/gpu/drm/xe/xe_oa.c
828
xe_gt_mcr_multicast_write(stream->gt, ROW_CHICKEN2,
drivers/gpu/drm/xe/xe_oa.c
832
xe_mmio_write32(mmio, __oa_regs(stream)->oa_debug,
drivers/gpu/drm/xe/xe_oa.c
833
oag_configure_mmio_trigger(stream, false));
drivers/gpu/drm/xe/xe_oa.c
836
if (stream->exec_q)
drivers/gpu/drm/xe/xe_oa.c
837
xe_oa_configure_oa_context(stream, false);
drivers/gpu/drm/xe/xe_oa.c
840
if (GT_VER(stream->gt) < 35)
drivers/gpu/drm/xe/xe_oa.c
844
(HAS_OA_BPC_REPORTING(stream->oa->xe) ? SQCNT1_OABPC : 0);
drivers/gpu/drm/xe/xe_oa.c
849
if ((stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAM ||
drivers/gpu/drm/xe/xe_oa.c
850
stream->oa_unit->type == DRM_XE_OA_UNIT_TYPE_OAM_SAG) &&
drivers/gpu/drm/xe/xe_oa.c
851
GRAPHICS_VER(stream->oa->xe) >= 30)
drivers/gpu/drm/xe/xe_oa.c
855
static void xe_oa_stream_destroy(struct xe_oa_stream *stream)
drivers/gpu/drm/xe/xe_oa.c
857
struct xe_oa_unit *u = stream->oa_unit;
drivers/gpu/drm/xe/xe_oa.c
858
struct xe_gt *gt = stream->hwe->gt;
drivers/gpu/drm/xe/xe_oa.c
860
if (WARN_ON(stream != u->exclusive_stream))
drivers/gpu/drm/xe/xe_oa.c
865
mutex_destroy(&stream->stream_lock);
drivers/gpu/drm/xe/xe_oa.c
867
xe_oa_disable_metric_set(stream);
drivers/gpu/drm/xe/xe_oa.c
868
xe_exec_queue_put(stream->k_exec_q);
drivers/gpu/drm/xe/xe_oa.c
870
xe_oa_free_oa_buffer(stream);
drivers/gpu/drm/xe/xe_oa.c
872
xe_force_wake_put(gt_to_fw(gt), stream->fw_ref);
drivers/gpu/drm/xe/xe_oa.c
873
xe_pm_runtime_put(stream->oa->xe);
drivers/gpu/drm/xe/xe_oa.c
876
if (stream->override_gucrc)
drivers/gpu/drm/xe/xe_oa.c
879
xe_oa_free_configs(stream);
drivers/gpu/drm/xe/xe_oa.c
880
xe_file_put(stream->xef);
drivers/gpu/drm/xe/xe_oa.c
883
static int xe_oa_alloc_oa_buffer(struct xe_oa_stream *stream, size_t size)
drivers/gpu/drm/xe/xe_oa.c
887
bo = xe_bo_create_pin_map_novm(stream->oa->xe, stream->gt->tile,
drivers/gpu/drm/xe/xe_oa.c
893
stream->oa_buffer.bo = bo;
drivers/gpu/drm/xe/xe_oa.c
895
xe_assert(stream->oa->xe, bo->vmap.is_iomem == 0);
drivers/gpu/drm/xe/xe_oa.c
896
stream->oa_buffer.vaddr = bo->vmap.vaddr;
drivers/gpu/drm/xe/xe_oa.c
901
__xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config)
drivers/gpu/drm/xe/xe_oa.c
914
bb = xe_bb_new(stream->gt, config_length, false);
drivers/gpu/drm/xe/xe_oa.c
922
llist_add(&oa_bo->node, &stream->oa_config_bos);
drivers/gpu/drm/xe/xe_oa.c
931
xe_oa_alloc_config_buffer(struct xe_oa_stream *stream, struct xe_oa_config *oa_config)
drivers/gpu/drm/xe/xe_oa.c
936
llist_for_each_entry(oa_bo, stream->oa_config_bos.first, node) {
drivers/gpu/drm/xe/xe_oa.c
943
oa_bo = __xe_oa_alloc_config_buffer(stream, oa_config);
drivers/gpu/drm/xe/xe_oa.c
948
static void xe_oa_update_last_fence(struct xe_oa_stream *stream, struct dma_fence *fence)
drivers/gpu/drm/xe/xe_oa.c
950
dma_fence_put(stream->last_fence);
drivers/gpu/drm/xe/xe_oa.c
951
stream->last_fence = dma_fence_get(fence);
drivers/gpu/drm/xe/xe_oa.c
991
static int xe_oa_emit_oa_config(struct xe_oa_stream *stream, struct xe_oa_config *config)
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
1176
struct arm_smmu_stream *stream = &master->streams[0];
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
1191
writel(stream->id, REG_VINTF(vintf, SID_REPLACE(sidx)));
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
1195
vintf->idx, sidx, stream->id, (u32)virt_sid);
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
1199
vsid->sid = stream->id;
drivers/media/i2c/ccs/ccs-core.c
2692
entry->stream = CCS_STREAM_PIXEL;
drivers/media/i2c/ds90ub913.c
406
if (source_fd.entry[i].stream == route->sink_stream)
drivers/media/i2c/ds90ub913.c
417
fd->entry[fd->num_entries].stream = route->source_stream;
drivers/media/i2c/ds90ub913.c
455
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub913.c
463
format->stream);
drivers/media/i2c/ds90ub953.c
456
if (source_fd.entry[i].stream == route->sink_stream) {
drivers/media/i2c/ds90ub953.c
469
fd->entry[fd->num_entries].stream = route->source_stream;
drivers/media/i2c/ds90ub953.c
503
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub953.c
511
format->stream);
drivers/media/i2c/ds90ub960.c
3932
if (source_fd.entry[i].stream == route->sink_stream) {
drivers/media/i2c/ds90ub960.c
3945
fd->entry[fd->num_entries].stream = route->source_stream;
drivers/media/i2c/ds90ub960.c
4008
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/ds90ub960.c
4015
format->stream);
drivers/media/i2c/max96714.c
344
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/max96714.c
351
format->stream);
drivers/media/i2c/max96717.c
433
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/i2c/max96717.c
441
format->stream);
drivers/media/i2c/max96717.c
446
stream_source_mask = BIT(format->stream);
drivers/media/i2c/vd56g3.c
896
fd->entry[0].stream = 0;
drivers/media/i2c/vgxy61.c
1192
fd->entry[0].stream = 0;
drivers/media/pci/cx18/cx18-driver.h
315
struct cx18_stream *stream;
drivers/media/pci/cx18/cx18-dvb.c
122
static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream,
drivers/media/pci/cx18/cx18-dvb.c
125
struct cx18 *cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.c
154
struct cx18_stream *stream = dvb->stream;
drivers/media/pci/cx18/cx18-dvb.c
160
ret = yuan_mpc718_mt352_reqfw(stream, &fw);
drivers/media/pci/cx18/cx18-dvb.c
228
static int dvb_register(struct cx18_stream *stream);
drivers/media/pci/cx18/cx18-dvb.c
237
struct cx18_stream *stream = demux->priv;
drivers/media/pci/cx18/cx18-dvb.c
242
if (!stream)
drivers/media/pci/cx18/cx18-dvb.c
245
cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.c
284
mutex_lock(&stream->dvb->feedlock);
drivers/media/pci/cx18/cx18-dvb.c
285
if (stream->dvb->feeding++ == 0) {
drivers/media/pci/cx18/cx18-dvb.c
288
set_bit(CX18_F_S_STREAMING, &stream->s_flags);
drivers/media/pci/cx18/cx18-dvb.c
289
ret = cx18_start_v4l2_encode_stream(stream);
drivers/media/pci/cx18/cx18-dvb.c
292
stream->dvb->feeding--;
drivers/media/pci/cx18/cx18-dvb.c
293
if (stream->dvb->feeding == 0)
drivers/media/pci/cx18/cx18-dvb.c
294
clear_bit(CX18_F_S_STREAMING, &stream->s_flags);
drivers/media/pci/cx18/cx18-dvb.c
299
mutex_unlock(&stream->dvb->feedlock);
drivers/media/pci/cx18/cx18-dvb.c
308
struct cx18_stream *stream = demux->priv;
drivers/media/pci/cx18/cx18-dvb.c
312
if (stream) {
drivers/media/pci/cx18/cx18-dvb.c
313
cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.c
317
mutex_lock(&stream->dvb->feedlock);
drivers/media/pci/cx18/cx18-dvb.c
318
if (--stream->dvb->feeding == 0) {
drivers/media/pci/cx18/cx18-dvb.c
321
ret = cx18_stop_v4l2_encode_stream(stream, 0);
drivers/media/pci/cx18/cx18-dvb.c
325
mutex_unlock(&stream->dvb->feedlock);
drivers/media/pci/cx18/cx18-dvb.c
331
int cx18_dvb_register(struct cx18_stream *stream)
drivers/media/pci/cx18/cx18-dvb.c
333
struct cx18 *cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.c
334
struct cx18_dvb *dvb = stream->dvb;
drivers/media/pci/cx18/cx18-dvb.c
344
dvb->stream = stream;
drivers/media/pci/cx18/cx18-dvb.c
356
dvbdemux->priv = (void *)stream;
drivers/media/pci/cx18/cx18-dvb.c
391
ret = dvb_register(stream);
drivers/media/pci/cx18/cx18-dvb.c
399
stream->dvb->dvb_adapter.num, stream->name,
drivers/media/pci/cx18/cx18-dvb.c
400
stream->buffers, stream->buf_size/1024,
drivers/media/pci/cx18/cx18-dvb.c
401
(stream->buf_size * 100 / 1024) % 100);
drivers/media/pci/cx18/cx18-dvb.c
423
void cx18_dvb_unregister(struct cx18_stream *stream)
drivers/media/pci/cx18/cx18-dvb.c
425
struct cx18 *cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.c
426
struct cx18_dvb *dvb = stream->dvb;
drivers/media/pci/cx18/cx18-dvb.c
454
static int dvb_register(struct cx18_stream *stream)
drivers/media/pci/cx18/cx18-dvb.c
456
struct cx18_dvb *dvb = stream->dvb;
drivers/media/pci/cx18/cx18-dvb.c
457
struct cx18 *cx = stream->cx;
drivers/media/pci/cx18/cx18-dvb.h
10
int cx18_dvb_register(struct cx18_stream *stream);
drivers/media/pci/cx18/cx18-dvb.h
11
void cx18_dvb_unregister(struct cx18_stream *stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
420
sel->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
424
src_ffmt = v4l2_subdev_state_get_format(state, sel->pad, sel->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
428
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
469
sel->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
473
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
570
void ipu6_isys_csi2_sof_event_by_stream(struct ipu6_isys_stream *stream)
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
572
struct video_device *vdev = stream->asd->sd.devnode;
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
573
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
574
struct ipu6_isys_csi2 *csi2 = ipu6_isys_subdev_to_csi2(stream->asd);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
579
ev.u.frame_sync.frame_sequence = atomic_fetch_inc(&stream->sequence);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
583
csi2->port, ev.u.frame_sync.frame_sequence, stream->vc);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
586
void ipu6_isys_csi2_eof_event_by_stream(struct ipu6_isys_stream *stream)
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
588
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
589
struct ipu6_isys_csi2 *csi2 = ipu6_isys_subdev_to_csi2(stream->asd);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
590
u32 frame_sequence = atomic_read(&stream->sequence);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
627
if (source_stream == desc.entry[i].stream) {
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.h
69
void ipu6_isys_csi2_sof_event_by_stream(struct ipu6_isys_stream *stream);
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.h
70
void ipu6_isys_csi2_eof_event_by_stream(struct ipu6_isys_stream *stream);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
153
static void flush_firmware_streamon_fail(struct ipu6_isys_stream *stream)
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
155
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
159
lockdep_assert_held(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
161
list_for_each_entry(aq, &stream->queues, node) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
194
static int buffer_list_get(struct ipu6_isys_stream *stream,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
197
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
202
lockdep_assert_held(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
207
list_for_each_entry(aq, &stream->queues, node) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
256
struct ipu6_isys_stream *stream,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
268
if (stream->streaming)
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
276
if (atomic_read(&stream->sequence) >= IPU6_ISYS_FRAME_NUM_THRESHOLD) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
292
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
293
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
297
guard(mutex)(&stream->isys->stream_mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
302
stream->streaming = 1;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
311
ret = buffer_list_get(stream, bl);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
315
msg = ipu6_get_fw_msg_buf(stream);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
320
ipu6_isys_buf_to_fw_frame_buf(buf, stream, bl);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
322
stream->nr_output_pins);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
325
ret = ipu6_fw_isys_complex_cmd(stream->isys,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
326
stream->stream_handle, buf,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
338
flush_firmware_streamon_fail(stream);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
353
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
375
mutex_lock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
377
if (stream->nr_streaming != stream->nr_queues) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
387
ret = buffer_list_get(stream, &bl);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
393
msg = ipu6_get_fw_msg_buf(stream);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
400
ipu6_isys_buf_to_fw_frame_buf(buf, stream, &bl);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
401
ipu6_fw_isys_dump_frame_buff_set(dev, buf, stream->nr_output_pins);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
411
ret = ipu6_fw_isys_complex_cmd(stream->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
418
mutex_unlock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
528
ipu6_isys_put_stream(av->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
529
av->stream = NULL;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
540
struct ipu6_isys_stream *stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
580
stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
581
mutex_lock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
582
if (!stream->nr_streaming) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
589
stream->nr_streaming++;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
590
dev_dbg(dev, "queue %u of %u\n", stream->nr_streaming,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
591
stream->nr_queues);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
593
list_add(&aq->node, &stream->queues);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
597
if (stream->nr_streaming != stream->nr_queues)
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
601
ret = buffer_list_get(stream, bl);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
612
mutex_unlock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
619
stream->nr_streaming--;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
622
mutex_unlock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
638
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
640
mutex_lock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
645
if (stream->nr_streaming == stream->nr_queues && stream->streaming)
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
650
stream->nr_streaming--;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
651
stream->streaming = 0;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
652
mutex_unlock(&stream->mutex);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
662
get_sof_sequence_by_timestamp(struct ipu6_isys_stream *stream, u64 time)
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
664
struct ipu6_isys *isys = stream->isys;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
673
return atomic_read(&stream->sequence) - 1;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
676
if (time == stream->seq[i].timestamp) {
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
678
stream->seq[i].sequence, time);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
679
return stream->seq[i].sequence;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
684
stream->seq[i].sequence, stream->seq[i].timestamp);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
712
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
717
sequence = get_sof_sequence_by_timestamp(stream, time);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
745
ipu6_stream_buf_ready(struct ipu6_isys_stream *stream, u8 pin_id, u32 pin_addr,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
748
struct ipu6_isys_queue *aq = stream->output_pins_queue[pin_id];
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
749
struct ipu6_isys *isys = stream->isys;
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
809
void ipu6_isys_queue_buf_ready(struct ipu6_isys_stream *stream,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.c
815
ipu6_stream_buf_ready(stream, info->pin_id, info->pin.addr, time, err);
drivers/media/pci/intel/ipu6/ipu6-isys-queue.h
65
struct ipu6_isys_stream *stream,
drivers/media/pci/intel/ipu6/ipu6-isys-queue.h
67
void ipu6_isys_queue_buf_ready(struct ipu6_isys_stream *stream,
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
195
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
206
format->stream);
drivers/media/pci/intel/ipu6/ipu6-isys-subdev.c
214
format->stream,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1001
sd = &stream->asd->sd;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1208
entry.stream, entry.length, entry.bus.csi2.vc,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1224
av->stream = ipu6_isys_get_stream(av, asd);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
1225
if (!av->stream) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
461
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
491
stream->output_pins_queue[output_pins] = aq;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
525
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
532
msg = ipu6_get_fw_msg_buf(stream);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
536
stream_cfg = &msg->fw_msg.stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
537
stream_cfg->src = stream->stream_source;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
538
stream_cfg->vc = stream->vc;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
542
list_for_each_entry(aq, &stream->queues, node) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
554
stream->nr_output_pins = stream_cfg->nof_output_pins;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
556
reinit_completion(&stream->stream_open_completion);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
558
ret = ipu6_fw_isys_complex_cmd(av->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
570
tout = wait_for_completion_timeout(&stream->stream_open_completion,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
580
if (stream->error) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
581
dev_err(dev, "stream open error: %d\n", stream->error);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
588
msg = ipu6_get_fw_msg_buf(stream);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
594
ipu6_isys_buf_to_fw_frame_buf(buf, stream, bl);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
599
reinit_completion(&stream->stream_start_completion);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
605
ret = ipu6_fw_isys_complex_cmd(av->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
610
ret = ipu6_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
619
tout = wait_for_completion_timeout(&stream->stream_start_completion,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
626
if (stream->error) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
627
dev_err(dev, "stream start error: %d\n", stream->error);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
636
reinit_completion(&stream->stream_close_completion);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
639
stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
646
tout = wait_for_completion_timeout(&stream->stream_close_completion,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
650
else if (stream->error)
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
651
dev_err(dev, "stream close error: %d\n", stream->error);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
664
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
667
reinit_completion(&stream->stream_stop_completion);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
669
ret = ipu6_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
677
tout = wait_for_completion_timeout(&stream->stream_stop_completion,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
681
else if (stream->error)
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
682
dev_warn(dev, "stream stop error: %d\n", stream->error);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
689
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
693
reinit_completion(&stream->stream_close_completion);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
695
ret = ipu6_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
702
tout = wait_for_completion_timeout(&stream->stream_close_completion,
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
706
else if (stream->error)
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
707
dev_warn(dev, "stream close error: %d\n", stream->error);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
718
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
721
if (WARN_ON(stream->nr_streaming))
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
724
stream->nr_queues = nr_queues;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
725
atomic_set(&stream->sequence, 0);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
727
stream->seq_index = 0;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
728
memset(stream->seq, 0, sizeof(stream->seq));
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
730
if (WARN_ON(!list_empty(&stream->queues)))
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
733
stream->stream_source = stream->asd->source;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
734
csi2 = ipu6_isys_subdev_to_csi2(stream->asd);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
772
csi2 = ipu6_isys_subdev_to_csi2(av->stream->asd);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
845
void ipu6_isys_put_stream(struct ipu6_isys_stream *stream)
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
851
if (!stream) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
856
dev = &stream->isys->adev->auxdev.dev;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
858
spin_lock_irqsave(&stream->isys->streams_lock, flags);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
860
if (&stream->isys->streams[i] == stream) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
861
if (stream->isys->streams_ref_count[i] > 0)
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
862
stream->isys->streams_ref_count[i]--;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
869
spin_unlock_irqrestore(&stream->isys->streams_lock, flags);
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
875
struct ipu6_isys_stream *stream = NULL;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
889
stream = &isys->streams[i];
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
894
if (!stream) {
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
898
stream = &isys->streams[i];
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
899
stream->vc = vc;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
900
stream->asd = asd;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
907
return stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
914
struct ipu6_isys_stream *stream = NULL;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
928
stream = &isys->streams[stream_handle];
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
932
return stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
938
struct ipu6_isys_stream *stream = NULL;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
958
stream = &isys->streams[i];
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
965
return stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.c
989
struct ipu6_isys_stream *stream = av->stream;
drivers/media/pci/intel/ipu6/ipu6-isys-video.h
119
void ipu6_isys_put_stream(struct ipu6_isys_stream *stream);
drivers/media/pci/intel/ipu6/ipu6-isys-video.h
91
struct ipu6_isys_stream *stream;
drivers/media/pci/intel/ipu6/ipu6-isys.c
1209
struct ipu6_isys_stream *stream;
drivers/media/pci/intel/ipu6/ipu6-isys.c
1245
stream = ipu6_isys_query_stream_by_handle(isys, resp->stream_handle);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1246
if (!stream) {
drivers/media/pci/intel/ipu6/ipu6-isys.c
1251
stream->error = resp->error_info.error;
drivers/media/pci/intel/ipu6/ipu6-isys.c
1253
csi2 = ipu6_isys_subdev_to_csi2(stream->asd);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1257
complete(&stream->stream_open_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1260
complete(&stream->stream_close_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1263
complete(&stream->stream_start_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1266
complete(&stream->stream_start_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1269
complete(&stream->stream_stop_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1272
complete(&stream->stream_stop_completion);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1281
stream->output_pins_queue[resp->pin_id])
drivers/media/pci/intel/ipu6/ipu6-isys.c
1282
ipu6_isys_queue_buf_ready(stream, resp);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1298
ipu6_isys_csi2_sof_event_by_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1299
stream->seq[stream->seq_index].sequence =
drivers/media/pci/intel/ipu6/ipu6-isys.c
1300
atomic_read(&stream->sequence) - 1;
drivers/media/pci/intel/ipu6/ipu6-isys.c
1301
stream->seq[stream->seq_index].timestamp = ts;
drivers/media/pci/intel/ipu6/ipu6-isys.c
1305
stream->seq[stream->seq_index].sequence, ts);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1306
stream->seq_index = (stream->seq_index + 1)
drivers/media/pci/intel/ipu6/ipu6-isys.c
1310
ipu6_isys_csi2_eof_event_by_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1314
stream->seq[stream->seq_index].sequence, ts);
drivers/media/pci/intel/ipu6/ipu6-isys.c
1324
ipu6_isys_put_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
309
struct ipu6_isys_stream *stream;
drivers/media/pci/intel/ipu6/ipu6-isys.c
325
stream = ipu6_isys_query_stream_by_source(csi2->isys,
drivers/media/pci/intel/ipu6/ipu6-isys.c
327
if (stream) {
drivers/media/pci/intel/ipu6/ipu6-isys.c
328
ipu6_isys_csi2_sof_event_by_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
329
ipu6_isys_put_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
334
stream = ipu6_isys_query_stream_by_source(csi2->isys,
drivers/media/pci/intel/ipu6/ipu6-isys.c
336
if (stream) {
drivers/media/pci/intel/ipu6/ipu6-isys.c
337
ipu6_isys_csi2_eof_event_by_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
338
ipu6_isys_put_stream(stream);
drivers/media/pci/intel/ipu6/ipu6-isys.c
978
struct isys_fw_msgs *ipu6_get_fw_msg_buf(struct ipu6_isys_stream *stream)
drivers/media/pci/intel/ipu6/ipu6-isys.c
980
struct ipu6_isys *isys = stream->isys;
drivers/media/pci/intel/ipu6/ipu6-isys.h
172
struct ipu6_fw_isys_stream_cfg_data_abi stream;
drivers/media/pci/intel/ipu6/ipu6-isys.h
178
struct isys_fw_msgs *ipu6_get_fw_msg_buf(struct ipu6_isys_stream *stream);
drivers/media/pci/ngene/ngene-core.c
540
static int ngene_command_stream_control(struct ngene *dev, u8 stream,
drivers/media/pci/ngene/ngene-core.c
544
struct ngene_channel *chan = &dev->channel[stream];
drivers/media/pci/ngene/ngene-core.c
546
u16 BsUVI = ((stream & 1) ? 0x9400 : 0x9300);
drivers/media/pci/ngene/ngene-core.c
547
u16 BsSDI = ((stream & 1) ? 0x9600 : 0x9500);
drivers/media/pci/ngene/ngene-core.c
548
u16 BsSPI = ((stream & 1) ? 0x9800 : 0x9700);
drivers/media/pci/ngene/ngene-core.c
554
com.cmd.StreamControl.Stream = stream | (control ? 8 : 0);
drivers/media/pci/ngene/ngene-core.c
632
4 * dev->card_info->i2s[stream], 4);
drivers/media/pci/ngene/ngene-core.c
636
if (stream >= STREAM_AUDIOIN1) {
drivers/media/pci/ngene/ngene-core.c
657
8 * dev->card_info->tsf[stream], 8);
drivers/media/platform/broadcom/bcm2835-unicam.c
1237
u32 pad, stream;
drivers/media/platform/broadcom/bcm2835-unicam.c
1241
code->pad, code->stream,
drivers/media/platform/broadcom/bcm2835-unicam.c
1242
&pad, &stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
1250
fmt = v4l2_subdev_state_get_format(state, pad, stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
1283
u32 pad, stream;
drivers/media/platform/broadcom/bcm2835-unicam.c
1290
fse->stream, &pad,
drivers/media/platform/broadcom/bcm2835-unicam.c
1291
&stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
1299
fmt = v4l2_subdev_state_get_format(state, pad, stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
1357
format->pad, format->stream,
drivers/media/platform/broadcom/bcm2835-unicam.c
1398
format->stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
896
u32 stream;
drivers/media/platform/broadcom/bcm2835-unicam.c
901
0, NULL, &stream);
drivers/media/platform/broadcom/bcm2835-unicam.c
917
if (fde->stream == stream) {
drivers/media/platform/cadence/cdns-csi2tx.c
332
unsigned int stream;
drivers/media/platform/cadence/cdns-csi2tx.c
354
stream = pad_idx - CSI2TX_PAD_SINK_STREAM0;
drivers/media/platform/cadence/cdns-csi2tx.c
364
csi2tx->base + CSI2TX_DT_CFG_REG(stream));
drivers/media/platform/cadence/cdns-csi2tx.c
368
csi2tx->base + CSI2TX_DT_FORMAT_REG(stream));
drivers/media/platform/cadence/cdns-csi2tx.c
375
csi2tx->base + CSI2TX_STREAM_IF_CFG_REG(stream));
drivers/media/platform/chips-media/coda/coda-jpeg.c
822
static inline int coda_jpeg_put_byte(u8 byte, struct coda_jpeg_stream *stream)
drivers/media/platform/chips-media/coda/coda-jpeg.c
824
if (stream->curr >= stream->end)
drivers/media/platform/chips-media/coda/coda-jpeg.c
827
*stream->curr++ = byte;
drivers/media/platform/chips-media/coda/coda-jpeg.c
832
static inline int coda_jpeg_put_word(u16 word, struct coda_jpeg_stream *stream)
drivers/media/platform/chips-media/coda/coda-jpeg.c
834
if (stream->curr + sizeof(__be16) > stream->end)
drivers/media/platform/chips-media/coda/coda-jpeg.c
837
put_unaligned_be16(word, stream->curr);
drivers/media/platform/chips-media/coda/coda-jpeg.c
838
stream->curr += sizeof(__be16);
drivers/media/platform/chips-media/coda/coda-jpeg.c
844
size_t len, struct coda_jpeg_stream *stream)
drivers/media/platform/chips-media/coda/coda-jpeg.c
848
ret = coda_jpeg_put_word(marker, stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
851
ret = coda_jpeg_put_word(3 + len, stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
854
ret = coda_jpeg_put_byte(index, stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
856
ret = coda_jpeg_put_byte(table[i], stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
862
struct coda_jpeg_stream *stream)
drivers/media/platform/chips-media/coda/coda-jpeg.c
866
stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
870
struct coda_jpeg_stream *stream)
drivers/media/platform/chips-media/coda/coda-jpeg.c
872
return coda_jpeg_put_table(DHT_MARKER, index, table, len, stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
877
struct coda_jpeg_stream stream = { buf, buf + len };
drivers/media/platform/chips-media/coda/coda-jpeg.c
888
ret = coda_jpeg_put_word(SOI_MARKER, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
894
ret = coda_jpeg_put_word(DRI_MARKER, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
897
ret = coda_jpeg_put_word(4, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
901
&stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
907
ret = coda_jpeg_define_quantization_table(ctx, 0x00, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
911
ret = coda_jpeg_define_quantization_table(ctx, 0x01, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
917
ret = coda_jpeg_define_huffman_table(0x00, luma_dc, 16 + 12, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
920
ret = coda_jpeg_define_huffman_table(0x10, luma_ac, 16 + 162, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
925
&stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
929
&stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
935
ret = coda_jpeg_put_word(SOF_MARKER, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
939
ret = coda_jpeg_put_word(8 + comp_num * 3, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
942
ret = coda_jpeg_put_byte(0x08, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
945
ret = coda_jpeg_put_word(q_data_src->height, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
948
ret = coda_jpeg_put_word(q_data_src->width, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
951
ret = coda_jpeg_put_byte(comp_num, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
964
ret = coda_jpeg_put_byte(i + 1, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
968
&stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
972
ret = coda_jpeg_put_byte((i == 0) ? 0 : 1, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
978
pad = (stream.curr - buf) % 8;
drivers/media/platform/chips-media/coda/coda-jpeg.c
982
ret = coda_jpeg_put_byte(0x00, &stream);
drivers/media/platform/chips-media/coda/coda-jpeg.c
988
return stream.curr - buf;
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
103
param->comp_id[i] = read_byte(&stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
108
byte = read_byte(&stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
114
param->qtbl_num[i] = read_byte(&stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
127
if (read_word_be(&stream, &word))
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
130
read_skip(&stream, length);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
20
static int read_byte(struct mtk_jpeg_stream *stream)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
22
if (stream->curr >= stream->size)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
24
return stream->addr[stream->curr++];
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
27
static int read_word_be(struct mtk_jpeg_stream *stream, u32 *word)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
32
byte = read_byte(stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
36
byte = read_byte(stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
44
static void read_skip(struct mtk_jpeg_stream *stream, long len)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
49
read_byte(stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
56
struct mtk_jpeg_stream stream;
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
58
stream.addr = src_addr_va;
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
59
stream.size = src_size;
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
60
stream.curr = 0;
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
66
byte = read_byte(&stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
72
byte = read_byte(&stream);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
83
if (read_word_be(&stream, &word))
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
87
if (read_byte(&stream) == -1)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
90
if (read_word_be(&stream, &word))
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
94
if (read_word_be(&stream, &word))
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
98
param->comp_num = read_byte(&stream);
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
232
code->stream);
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
283
sink_fmt = v4l2_subdev_state_get_format(state, fmt->pad, fmt->stream);
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c
294
route->sink_stream != fmt->stream)
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
835
if (remote_desc.entry[i].stream == sink_stream)
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
424
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
432
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
448
format->stream);
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c
453
format->stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
642
static void rkcif_dvp_queue_buffer(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
645
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
646
struct rkcif_buffer *buffer = stream->buffers[index];
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
656
static int rkcif_dvp_start_streaming(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
658
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
659
struct rkcif_interface *interface = stream->interface;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
670
stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
676
active_out_fmt = rkcif_stream_find_output_fmt(stream, false,
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
677
stream->pix.pixelformat);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
689
val = stream->pix.width;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
691
val = stream->pix.width * 2;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
694
val = RKCIF_XY_COORD(stream->pix.width, stream->pix.height);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
721
static void rkcif_dvp_stop_streaming(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
723
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
733
stream->stopping = false;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
745
static void rkcif_dvp_set_crop(struct rkcif_stream *stream, u16 left, u16 top)
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
747
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
758
struct rkcif_stream *stream;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
775
stream = &rkcif->interfaces[RKCIF_DVP].streams[RKCIF_ID0];
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
777
if (stream->stopping) {
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
778
rkcif_dvp_stop_streaming(stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
779
wake_up(&stream->wq_stopped);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
784
if (lastline != stream->pix.height) {
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
792
rkcif_stream_pingpong(stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
824
struct rkcif_stream *stream = &interface->streams[i];
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
826
stream->id = i;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
827
stream->interface = interface;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
828
stream->out_fmts = rkcif->match_data->dvp->out_fmts;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
829
stream->out_fmts_num = rkcif->match_data->dvp->out_fmts_num;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
830
stream->queue_buffer = rkcif_dvp_queue_buffer;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
831
stream->start_streaming = rkcif_dvp_start_streaming;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
832
stream->stop_streaming = rkcif_dvp_stop_streaming;
drivers/media/platform/rockchip/rkcif/rkcif-capture-dvp.c
834
ret = rkcif_stream_register(rkcif, stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
375
rkcif_rk3568_mipi_ctrl0(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
504
static inline unsigned int rkcif_mipi_id_get_reg(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
507
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
510
block = stream->interface->index - RKCIF_MIPI_BASE;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
511
id = stream->id;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
538
rkcif_mipi_stream_write(struct rkcif_stream *stream, unsigned int index,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
541
unsigned int addr = rkcif_mipi_id_get_reg(stream, index);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
546
writel(val, stream->rkcif->base_addr + addr);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
561
rkcif_mipi_stream_read(struct rkcif_stream *stream, unsigned int index)
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
563
unsigned int addr = rkcif_mipi_id_get_reg(stream, index);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
568
return readl(stream->rkcif->base_addr + addr);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
571
static void rkcif_mipi_queue_buffer(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
574
struct rkcif_buffer *buffer = stream->buffers[index];
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
582
rkcif_mipi_stream_write(stream, frm_addr_y,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
584
rkcif_mipi_stream_write(stream, frm_addr_uv,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
588
static int rkcif_mipi_start_streaming(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
590
struct rkcif_interface *interface = stream->interface;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
600
active_out_fmt = rkcif_stream_find_output_fmt(stream, false,
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
601
stream->pix.pixelformat);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
605
height = stream->pix.height;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
606
width = stream->pix.width;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
607
vlw = stream->pix.plane_fmt[0].bytesperline;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
609
match_data = stream->rkcif->match_data->mipi;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
611
ctrl0 = match_data->mipi_ctrl0(stream, active_out_fmt);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
615
int_mask |= RKCIF_MIPI_INT_FRAME0_END(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
616
int_mask |= RKCIF_MIPI_INT_FRAME1_END(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
626
rkcif_mipi_stream_write(stream, RKCIF_MIPI_FRAME0_VLW_Y, vlw);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
627
rkcif_mipi_stream_write(stream, RKCIF_MIPI_FRAME1_VLW_Y, vlw);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
628
rkcif_mipi_stream_write(stream, RKCIF_MIPI_FRAME0_VLW_UV, vlw);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
629
rkcif_mipi_stream_write(stream, RKCIF_MIPI_FRAME1_VLW_UV, vlw);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
630
rkcif_mipi_stream_write(stream, RKCIF_MIPI_CROP_START, 0x0);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
631
rkcif_mipi_stream_write(stream, RKCIF_MIPI_CTRL1, ctrl1);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
632
rkcif_mipi_stream_write(stream, RKCIF_MIPI_CTRL0, ctrl0);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
641
static void rkcif_mipi_stop_streaming(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
643
struct rkcif_interface *interface = stream->interface;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
649
rkcif_mipi_stream_write(stream, RKCIF_MIPI_CTRL0, 0);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
651
int_mask |= RKCIF_MIPI_INT_FRAME0_END(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
652
int_mask |= RKCIF_MIPI_INT_FRAME1_END(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
662
stream->stopping = false;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
667
static void rkcif_mipi_set_crop(struct rkcif_stream *stream, u16 left, u16 top)
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
672
rkcif_mipi_stream_write(stream, RKCIF_MIPI_CROP_START, val);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
690
struct rkcif_stream *stream = &interface->streams[j];
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
692
if (intstat & RKCIF_MIPI_INT_FRAME0_END(stream->id) ||
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
693
intstat & RKCIF_MIPI_INT_FRAME1_END(stream->id)) {
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
696
if (stream->stopping) {
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
697
rkcif_mipi_stop_streaming(stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
698
wake_up(&stream->wq_stopped);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
702
rkcif_stream_pingpong(stream);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
732
struct rkcif_stream *stream = &interface->streams[j];
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
734
stream->id = j;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
735
stream->interface = interface;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
736
stream->out_fmts = mipi_out_fmts;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
737
stream->out_fmts_num = ARRAY_SIZE(mipi_out_fmts);
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
738
stream->queue_buffer = rkcif_mipi_queue_buffer;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
739
stream->start_streaming = rkcif_mipi_start_streaming;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
740
stream->stop_streaming = rkcif_mipi_stop_streaming;
drivers/media/platform/rockchip/rkcif/rkcif-capture-mipi.c
741
ret = rkcif_stream_register(rkcif, stream);
drivers/media/platform/rockchip/rkcif/rkcif-common.h
173
void (*queue_buffer)(struct rkcif_stream *stream, unsigned int index);
drivers/media/platform/rockchip/rkcif/rkcif-common.h
174
int (*start_streaming)(struct rkcif_stream *stream);
drivers/media/platform/rockchip/rkcif/rkcif-common.h
175
void (*stop_streaming)(struct rkcif_stream *stream);
drivers/media/platform/rockchip/rkcif/rkcif-common.h
201
void (*set_crop)(struct rkcif_stream *stream, u16 left, u16 top);
drivers/media/platform/rockchip/rkcif/rkcif-common.h
208
u32 (*mipi_ctrl0)(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
128
sel->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
132
src = v4l2_subdev_state_get_format(state, sel->pad, sel->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
136
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
172
static int rkcif_interface_apply_crop(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
175
struct rkcif_interface *interface = stream->interface;
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
178
crop = v4l2_subdev_state_get_crop(state, RKCIF_IF_PAD_SRC, stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
183
interface->set_crop(stream, crop->left, crop->top);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
193
struct rkcif_stream *stream;
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
205
stream = &interface->streams[RKCIF_ID0];
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
206
rkcif_interface_apply_crop(stream, state);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
209
stream = &interface->streams[route->sink_stream];
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
210
rkcif_interface_apply_crop(stream, state);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
46
sink = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
54
format->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
61
format->pad, format->stream,
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
91
sel->stream);
drivers/media/platform/rockchip/rkcif/rkcif-interface.c
95
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
100
stream->queue_buffer(stream, stream->frame_phase);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
102
stream->frame_phase = 1 - stream->frame_phase;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
105
static int rkcif_stream_init_buffers(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
107
struct v4l2_pix_format_mplane *pix = &stream->pix;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
109
stream->buffers[0] = rkcif_stream_pop_buffer(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
110
if (!stream->buffers[0])
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
113
stream->buffers[1] = rkcif_stream_pop_buffer(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
114
if (!stream->buffers[1])
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
117
if (stream->queue_buffer) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
118
stream->queue_buffer(stream, 0);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
119
stream->queue_buffer(stream, 1);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
122
stream->dummy.size = pix->num_planes * pix->plane_fmt[0].sizeimage;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
123
stream->dummy.vaddr =
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
124
dma_alloc_attrs(stream->rkcif->dev, stream->dummy.size,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
125
&stream->dummy.buffer.buff_addr[0], GFP_KERNEL,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
127
if (!stream->dummy.vaddr)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
131
stream->dummy.buffer.buff_addr[i] =
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
132
stream->dummy.buffer.buff_addr[i - 1] +
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
138
rkcif_stream_return_buffer(stream->buffers[1], VB2_BUF_STATE_QUEUED);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
139
stream->buffers[1] = NULL;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
142
rkcif_stream_return_buffer(stream->buffers[0], VB2_BUF_STATE_QUEUED);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
143
stream->buffers[0] = NULL;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
148
static void rkcif_stream_return_all_buffers(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
153
if (stream->buffers[0] && !stream->buffers[0]->is_dummy) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
154
rkcif_stream_return_buffer(stream->buffers[0], state);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
155
stream->buffers[0] = NULL;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
158
if (stream->buffers[1] && !stream->buffers[1]->is_dummy) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
159
rkcif_stream_return_buffer(stream->buffers[1], state);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
160
stream->buffers[1] = NULL;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
163
while ((buffer = rkcif_stream_pop_buffer(stream)))
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
166
if (stream->dummy.vaddr) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
167
dma_free_attrs(stream->rkcif->dev, stream->dummy.size,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
168
stream->dummy.vaddr,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
169
stream->dummy.buffer.buff_addr[0],
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
171
stream->dummy.vaddr = NULL;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
181
struct rkcif_stream *stream = queue->drv_priv;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
182
struct v4l2_pix_format_mplane *pix = &stream->pix;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
204
struct rkcif_stream *stream = vb->vb2_queue->drv_priv;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
206
struct v4l2_pix_format_mplane *pix = &stream->pix;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
215
fmt = rkcif_stream_find_output_fmt(stream, true,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
228
dev_err(stream->rkcif->dev,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
246
struct rkcif_stream *stream = vb->vb2_queue->drv_priv;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
248
rkcif_stream_push_buffer(stream, buffer);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
254
struct rkcif_stream *stream = queue->drv_priv;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
255
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
259
stream->frame_idx = 0;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
260
stream->frame_phase = 0;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
262
ret = video_device_pipeline_start(&stream->vdev, &stream->pipeline);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
274
ret = rkcif_stream_init_buffers(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
278
if (stream->start_streaming) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
279
ret = stream->start_streaming(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
284
mask = BIT_ULL(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
285
ret = v4l2_subdev_enable_streams(&stream->interface->sd,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
293
if (stream->stop_streaming)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
294
stream->stop_streaming(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
298
video_device_pipeline_stop(&stream->vdev);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
300
rkcif_stream_return_all_buffers(stream, VB2_BUF_STATE_QUEUED);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
306
struct rkcif_stream *stream = queue->drv_priv;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
307
struct rkcif_device *rkcif = stream->rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
311
mask = BIT_ULL(stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
312
v4l2_subdev_disable_streams(&stream->interface->sd, RKCIF_IF_PAD_SRC,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
315
stream->stopping = true;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
316
ret = wait_event_timeout(stream->wq_stopped, !stream->stopping,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
319
if (!ret && stream->stop_streaming)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
320
stream->stop_streaming(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
324
rkcif_stream_return_all_buffers(stream, VB2_BUF_STATE_ERROR);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
326
video_device_pipeline_stop(&stream->vdev);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
337
static int rkcif_stream_fill_format(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
344
fmt = rkcif_stream_find_output_fmt(stream, true, pix->pixelformat);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
359
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
362
return rkcif_stream_fill_format(stream, pix);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
368
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
37
static struct rkcif_buffer *rkcif_stream_pop_buffer(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
372
if (vb2_is_busy(&stream->buf_queue))
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
379
stream->pix = *pix;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
387
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
389
f->fmt.pix_mp = stream->pix;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
397
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
399
if (f->index >= stream->out_fmts_num)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
402
f->pixelformat = stream->out_fmts[f->index].fourcc;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
41
guard(spinlock_irqsave)(&stream->driver_queue_lock);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
410
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
415
if (!rkcif_stream_find_output_fmt(stream, false, fsize->pixel_format))
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
43
if (list_empty(&stream->driver_queue))
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
432
struct rkcif_stream *stream = video_drvdata(file);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
433
struct device *dev = stream->rkcif->dev;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
46
buffer = list_first_entry(&stream->driver_queue, struct rkcif_buffer,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
466
struct rkcif_stream *stream = to_rkcif_stream(vdev);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
477
stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
481
if (source_fmt->height != stream->pix.height ||
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
482
source_fmt->width != stream->pix.width) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
483
dev_dbg(stream->rkcif->dev,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
488
stream->pix.width, stream->pix.height);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
512
struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
516
q->drv_priv = stream;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
522
q->lock = &stream->vlock;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
523
q->dev = stream->rkcif->dev;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
529
struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
53
static void rkcif_stream_push_buffer(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
531
struct rkcif_interface *interface = stream->interface;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
533
struct video_device *vdev = &stream->vdev;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
537
stream->rkcif = rkcif;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
539
INIT_LIST_HEAD(&stream->driver_queue);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
540
spin_lock_init(&stream->driver_queue_lock);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
542
init_waitqueue_head(&stream->wq_stopped);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
544
mutex_init(&stream->vlock);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
551
vdev->lock = &stream->vlock;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
556
video_set_drvdata(vdev, stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
558
stream->pad.flags = MEDIA_PAD_FL_SINK;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
56
guard(spinlock_irqsave)(&stream->driver_queue_lock);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
560
stream->pix.height = CIF_MIN_HEIGHT;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
561
stream->pix.width = CIF_MIN_WIDTH;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
562
rkcif_stream_fill_format(stream, &stream->pix);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
564
rkcif_stream_init_vb2_queue(&stream->buf_queue, stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
566
vdev->queue = &stream->buf_queue;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
569
stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
572
interface->index - RKCIF_MIPI_BASE, stream->id);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
574
ret = media_entity_pads_init(&vdev->entity, 1, &stream->pad);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
58
list_add_tail(&buffer->queue, &stream->driver_queue);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
589
if (stream->id == RKCIF_ID0)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
593
&stream->vdev.entity, 0, link_flags);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
606
video_unregister_device(&stream->vdev);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
608
media_entity_cleanup(&stream->vdev.entity);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
612
void rkcif_stream_unregister(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
614
video_unregister_device(&stream->vdev);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
615
media_entity_cleanup(&stream->vdev.entity);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
619
rkcif_stream_find_output_fmt(struct rkcif_stream *stream, bool ret_def,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
624
WARN_ON(stream->out_fmts_num == 0);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
626
for (unsigned int i = 0; i < stream->out_fmts_num; i++) {
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
627
fmt = &stream->out_fmts[i];
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
633
return &stream->out_fmts[0];
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
69
static void rkcif_stream_complete_buffer(struct rkcif_stream *stream,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
75
vb->sequence = stream->frame_idx;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
77
stream->frame_idx++;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
80
void rkcif_stream_pingpong(struct rkcif_stream *stream)
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
84
buffer = stream->buffers[stream->frame_phase];
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
86
rkcif_stream_complete_buffer(stream, buffer);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
88
buffer = rkcif_stream_pop_buffer(stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
90
stream->buffers[stream->frame_phase] = buffer;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
91
stream->buffers[stream->frame_phase]->is_dummy = false;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
93
stream->buffers[stream->frame_phase] = &stream->dummy.buffer;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
94
stream->buffers[stream->frame_phase]->is_dummy = true;
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
95
dev_dbg(stream->rkcif->dev,
drivers/media/platform/rockchip/rkcif/rkcif-stream.c
99
if (stream->queue_buffer)
drivers/media/platform/rockchip/rkcif/rkcif-stream.h
21
void rkcif_stream_pingpong(struct rkcif_stream *stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.h
24
struct rkcif_stream *stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.h
26
void rkcif_stream_unregister(struct rkcif_stream *stream);
drivers/media/platform/rockchip/rkcif/rkcif-stream.h
29
rkcif_stream_find_output_fmt(struct rkcif_stream *stream, bool ret_def,
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h
181
#define RKISP1_CIF_MI_FRAME(stream) BIT((stream)->id)
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h
184
#define RKISP1_CIF_MI_WRAP_Y(stream) BIT(4 + (stream)->id * 3)
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h
185
#define RKISP1_CIF_MI_WRAP_CB(stream) BIT(5 + (stream)->id * 3)
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h
186
#define RKISP1_CIF_MI_WRAP_CR(stream) BIT(6 + (stream)->id * 3)
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_common.h
188
size_t stream;
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
1059
ctx->src_bufs[i].cookie.stream =
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c
2490
ctx->dst_bufs[i].cookie.stream =
drivers/media/platform/st/sti/hva/hva-debugfs.c
15
struct hva_streaminfo *stream = &ctx->streaminfo;
drivers/media/platform/st/sti/hva/hva-debugfs.c
175
void hva_dbg_perf_end(struct hva_ctx *ctx, struct hva_stream *stream)
drivers/media/platform/st/sti/hva/hva-debugfs.c
186
bytesused = vb2_get_plane_payload(&stream->vbuf.vb2_buf, 0);
drivers/media/platform/st/sti/hva/hva-debugfs.c
187
div = stream->vbuf.vb2_buf.timestamp;
drivers/media/platform/st/sti/hva/hva-debugfs.c
197
stream->vbuf.sequence,
drivers/media/platform/st/sti/hva/hva-debugfs.c
40
(char *)&stream->streamformat,
drivers/media/platform/st/sti/hva/hva-debugfs.c
41
stream->width, stream->height,
drivers/media/platform/st/sti/hva/hva-debugfs.c
42
stream->profile, stream->level);
drivers/media/platform/st/sti/hva/hva-debugfs.c
62
if (stream->streamformat == V4L2_PIX_FMT_H264) {
drivers/media/platform/st/sti/hva/hva-h264.c
1008
struct hva_stream *stream)
drivers/media/platform/st/sti/hva/hva-h264.c
1015
ret = hva_h264_prepare_task(pctx, task, frame, stream);
drivers/media/platform/st/sti/hva/hva-h264.c
1024
stream->bytesused += hva_h264_get_stream_size(task);
drivers/media/platform/st/sti/hva/hva-h264.c
1030
(u8 *)stream->vaddr,
drivers/media/platform/st/sti/hva/hva-h264.c
1031
stream->size,
drivers/media/platform/st/sti/hva/hva-h264.c
1032
&stream->bytesused);
drivers/media/platform/st/sti/hva/hva-h264.c
1039
stream->bytesused = 0;
drivers/media/platform/st/sti/hva/hva-h264.c
590
struct hva_stream *stream)
drivers/media/platform/st/sti/hva/hva-h264.c
610
unsigned int payload = stream->bytesused;
drivers/media/platform/st/sti/hva/hva-h264.c
775
td->addr_output_bitstream_end = (u32)stream->paddr + stream->size;
drivers/media/platform/st/sti/hva/hva-h264.c
777
td->addr_output_bitstream_start = (u32)stream->paddr;
drivers/media/platform/st/sti/hva/hva-h264.c
778
td->bitstream_offset = (((u32)stream->paddr & 0xF) << 3) &
drivers/media/platform/st/sti/hva/hva-h264.c
818
stream->vbuf.flags |= V4L2_BUF_FLAG_KEYFRAME;
drivers/media/platform/st/sti/hva/hva-h264.c
821
stream->vbuf.flags &= ~V4L2_BUF_FLAG_KEYFRAME;
drivers/media/platform/st/sti/hva/hva-h264.c
843
if ((stream->vbuf.flags == V4L2_BUF_FLAG_KEYFRAME) &&
drivers/media/platform/st/sti/hva/hva-h264.c
851
if (stream->vbuf.flags != V4L2_BUF_FLAG_KEYFRAME)
drivers/media/platform/st/sti/hva/hva-h264.c
856
(u8 *)stream->vaddr,
drivers/media/platform/st/sti/hva/hva-h264.c
870
stream->bytesused = payload;
drivers/media/platform/st/sti/hva/hva-v4l2.c
234
struct hva_streaminfo *stream = &ctx->streaminfo;
drivers/media/platform/st/sti/hva/hva-v4l2.c
244
(char *)&stream->streamformat,
drivers/media/platform/st/sti/hva/hva-v4l2.c
245
stream->width, stream->height,
drivers/media/platform/st/sti/hva/hva-v4l2.c
246
stream->profile, stream->level,
drivers/media/platform/st/sti/hva/hva-v4l2.c
571
struct hva_stream *stream;
drivers/media/platform/st/sti/hva/hva-v4l2.c
580
stream = to_hva_stream(to_vb2_v4l2_buffer(vb2_buf));
drivers/media/platform/st/sti/hva/hva-v4l2.c
581
stream->bytesused = buf->bytesused;
drivers/media/platform/st/sti/hva/hva-v4l2.c
811
struct hva_stream *stream;
drivers/media/platform/st/sti/hva/hva-v4l2.c
825
stream = to_hva_stream(dst_buf);
drivers/media/platform/st/sti/hva/hva-v4l2.c
828
ret = enc->encode(ctx, frame, stream);
drivers/media/platform/st/sti/hva/hva-v4l2.c
830
vb2_set_plane_payload(&dst_buf->vb2_buf, 0, stream->bytesused);
drivers/media/platform/st/sti/hva/hva-v4l2.c
843
hva_dbg_perf_end(ctx, stream);
drivers/media/platform/st/sti/hva/hva-v4l2.c
965
struct hva_stream *stream = to_hva_stream(vbuf);
drivers/media/platform/st/sti/hva/hva-v4l2.c
967
if (!stream->prepared) {
drivers/media/platform/st/sti/hva/hva-v4l2.c
969
stream->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0);
drivers/media/platform/st/sti/hva/hva-v4l2.c
970
stream->paddr = vb2_dma_contig_plane_dma_addr(
drivers/media/platform/st/sti/hva/hva-v4l2.c
972
stream->size = vb2_plane_size(&vbuf->vb2_buf, 0);
drivers/media/platform/st/sti/hva/hva-v4l2.c
973
stream->prepared = true;
drivers/media/platform/st/sti/hva/hva-v4l2.c
978
stream->vaddr, &stream->paddr);
drivers/media/platform/st/sti/hva/hva.h
395
struct hva_stream *stream);
drivers/media/platform/st/sti/hva/hva.h
404
void hva_dbg_perf_end(struct hva_ctx *ctx, struct hva_stream *stream);
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
326
sink = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/synopsys/dw-mipi-csi2rx.c
338
format->stream);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1123
struct hdmirx_stream *stream = &hdmirx_dev->stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1135
v4l2_event_queue(&stream->vdev, &ev_src_chg);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1225
static void hdmirx_set_fmt(struct hdmirx_stream *stream,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1228
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
124
struct hdmirx_stream stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1313
stream->out_finfo = finfo;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1314
stream->pixm = *pixm;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1317
pixm->width, pixm->height, stream->pixm.width,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1318
stream->pixm.height, finfo->format);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1325
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1326
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1339
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1340
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1343
if (vb2_is_busy(&stream->buf_queue)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1348
hdmirx_set_fmt(stream, &f->fmt.pix_mp, false);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1356
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1357
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1361
hdmirx_set_fmt(stream, &pixm, true);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1370
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1371
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1386
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1387
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1415
if (vb2_is_busy(&stream->buf_queue))
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1420
hdmirx_set_fmt(stream, &stream->pixm, false);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1428
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1429
struct device *dev = stream->hdmirx_dev->dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1443
struct hdmirx_stream *stream = vb2_get_drv_priv(queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1444
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1450
pixm = &stream->pixm;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1451
out_finfo = stream->out_finfo;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1489
struct hdmirx_stream *stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1497
stream = vb2_get_drv_priv(queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1498
pixm = &stream->pixm;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1499
out_finfo = stream->out_finfo;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1523
spin_lock_irqsave(&stream->vbq_lock, flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1524
list_add_tail(&hdmirx_buf->queue, &stream->buf_head);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1525
spin_unlock_irqrestore(&stream->vbq_lock, flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1528
static void return_all_buffers(struct hdmirx_stream *stream,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1534
spin_lock_irqsave(&stream->vbq_lock, flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1535
if (stream->curr_buf)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1536
list_add_tail(&stream->curr_buf->queue, &stream->buf_head);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1537
if (stream->next_buf && stream->next_buf != stream->curr_buf)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1538
list_add_tail(&stream->next_buf->queue, &stream->buf_head);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1539
stream->curr_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1540
stream->next_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1542
list_for_each_entry_safe(buf, tmp, &stream->buf_head, queue) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1546
spin_unlock_irqrestore(&stream->vbq_lock, flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1551
struct hdmirx_stream *stream = vb2_get_drv_priv(queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1552
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1558
WRITE_ONCE(stream->stopping, true);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1561
ret = wait_event_timeout(stream->wq_stopped, !stream->stopping,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1568
return_all_buffers(stream, VB2_BUF_STATE_ERROR);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1575
struct hdmirx_stream *stream = vb2_get_drv_priv(queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1576
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1584
stream->sequence = 0;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1585
stream->line_flag_int_cnt = 0;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1586
stream->curr_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1587
stream->next_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1588
stream->irq_stat = 0;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1590
WRITE_ONCE(stream->stopping, false);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1592
spin_lock_irqsave(&stream->vbq_lock, lock_flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1593
if (!stream->curr_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1594
if (!list_empty(&stream->buf_head)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1595
stream->curr_buf = list_first_entry(&stream->buf_head,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1598
list_del(&stream->curr_buf->queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1600
stream->curr_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1603
spin_unlock_irqrestore(&stream->vbq_lock, lock_flags);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1605
if (!stream->curr_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1612
__func__, stream->curr_buf->buff_addr[HDMIRX_PLANE_Y],
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1613
stream->curr_buf->buff_addr[HDMIRX_PLANE_CBCR]);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1615
stream->curr_buf->buff_addr[HDMIRX_PLANE_Y]);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1617
stream->curr_buf->buff_addr[HDMIRX_PLANE_CBCR]);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1664
struct hdmirx_stream *stream,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1667
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1671
q->drv_priv = stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1676
q->lock = &stream->vlock;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1727
static int hdmirx_register_stream_vdev(struct hdmirx_stream *stream)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1729
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1731
struct video_device *vdev = &stream->vdev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1735
INIT_LIST_HEAD(&stream->buf_head);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1736
spin_lock_init(&stream->vbq_lock);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1737
mutex_init(&stream->vlock);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1738
init_waitqueue_head(&stream->wq_stopped);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1739
stream->curr_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1740
stream->next_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1747
vdev->lock = &stream->vlock;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1752
video_set_drvdata(vdev, stream);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1754
hdmirx_init_vb2_queue(&stream->buf_queue, stream,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1756
vdev->queue = &stream->buf_queue;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1958
static void hdmirx_vb_done(struct hdmirx_stream *stream,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1961
const struct v4l2_format_info *finfo = stream->out_finfo;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1967
stream->pixm.plane_fmt[i].sizeimage);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1977
struct hdmirx_stream *stream = &hdmirx_dev->stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1983
if (!(stream->irq_stat) && !(stream->irq_stat & LINE_FLAG_INT_EN))
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1988
if (stream->line_flag_int_cnt <= FILTER_FRAME_CNT)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1992
!(stream->line_flag_int_cnt % 2)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1993
if (stream->next_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1994
if (stream->curr_buf)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1995
vb_done = &stream->curr_buf->vb;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
1999
vb_done->sequence = stream->sequence;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2006
hdmirx_vb_done(stream, vb_done);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2009
stream->curr_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2010
if (stream->next_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2011
stream->curr_buf = stream->next_buf;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2012
stream->next_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2019
stream->sequence++;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2020
if (stream->sequence == 30)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2031
struct hdmirx_stream *stream = &hdmirx_dev->stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2037
stream->line_flag_int_cnt++;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2038
if (!(stream->irq_stat) && !(stream->irq_stat & HDMIRX_DMA_IDLE_INT))
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2047
if (stream->line_flag_int_cnt <= FILTER_FRAME_CNT)
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2051
!(stream->line_flag_int_cnt % 2)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2052
if (!stream->next_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2053
spin_lock(&stream->vbq_lock);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2054
if (!list_empty(&stream->buf_head)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2055
stream->next_buf = list_first_entry(&stream->buf_head,
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2058
list_del(&stream->next_buf->queue);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2060
stream->next_buf = NULL;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2062
spin_unlock(&stream->vbq_lock);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2064
if (stream->next_buf) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2066
stream->next_buf->buff_addr[HDMIRX_PLANE_Y]);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2068
stream->next_buf->buff_addr[HDMIRX_PLANE_CBCR]);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2076
__func__, bt->interlaced, stream->line_flag_int_cnt);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2086
struct hdmirx_stream *stream = &hdmirx_dev->stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2096
if (READ_ONCE(stream->stopping)) {
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2107
WRITE_ONCE(stream->stopping, false);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2108
wake_up(&stream->wq_stopped);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2123
stream->irq_stat = dma_stat1;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2658
struct hdmirx_stream *stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2749
stream = &hdmirx_dev->stream;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2750
stream->hdmirx_dev = hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2751
ret = hdmirx_register_stream_vdev(stream);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2775
vb2_video_unregister_device(&hdmirx_dev->stream.vdev);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
2798
vb2_video_unregister_device(&hdmirx_dev->stream.vdev);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
467
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
468
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
653
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
654
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
702
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
703
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
738
struct hdmirx_stream *stream = video_drvdata(file);
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
739
struct snps_hdmirx_dev *hdmirx_dev = stream->hdmirx_dev;
drivers/media/platform/ti/cal/cal-camerarx.c
709
code->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
739
fse->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
798
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
805
format->stream);
drivers/media/platform/ti/cal/cal-camerarx.c
909
if (remote_desc.entry[i].stream == sink_stream)
drivers/media/platform/ti/cal/cal.c
485
entry.stream, entry.length, entry.bus.csi2.vc,
drivers/media/platform/ti/vpe/vip.c
1020
vip_reset_vpdma(stream);
drivers/media/platform/ti/vpe/vip.c
1035
vip_setup_scaler(stream);
drivers/media/platform/ti/vpe/vip.c
1040
populate_desc_list(stream);
drivers/media/platform/ti/vpe/vip.c
1041
stream->num_recovery++;
drivers/media/platform/ti/vpe/vip.c
1042
if (stream->num_recovery < 5) {
drivers/media/platform/ti/vpe/vip.c
1044
vip_load_vpdma_list_fifo(stream);
drivers/media/platform/ti/vpe/vip.c
1046
enable_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
1047
vip_schedule_next_buffer(stream);
drivers/media/platform/ti/vpe/vip.c
1071
struct vip_stream *stream = NULL;
drivers/media/platform/ti/vpe/vip.c
1131
stream = porta->cap_streams[i];
drivers/media/platform/ti/vpe/vip.c
1135
if (stream) {
drivers/media/platform/ti/vpe/vip.c
1137
stream->list_num);
drivers/media/platform/ti/vpe/vip.c
1138
schedule_work(&stream->recovery_work);
drivers/media/platform/ti/vpe/vip.c
1149
stream = portb->cap_streams[i];
drivers/media/platform/ti/vpe/vip.c
1153
if (stream) {
drivers/media/platform/ti/vpe/vip.c
1155
stream->list_num);
drivers/media/platform/ti/vpe/vip.c
1156
schedule_work(&stream->recovery_work);
drivers/media/platform/ti/vpe/vip.c
1166
struct vip_stream *stream;
drivers/media/platform/ti/vpe/vip.c
1196
stream = vpdma_hwlist_get_priv(vpdma, list_num);
drivers/media/platform/ti/vpe/vip.c
1197
if (!stream || stream->list_num != list_num) {
drivers/media/platform/ti/vpe/vip.c
1204
vip_process_buffer_complete(stream);
drivers/media/platform/ti/vpe/vip.c
1206
vip_schedule_next_buffer(stream);
drivers/media/platform/ti/vpe/vip.c
1237
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1243
inp->std = stream->vfd->tvnorms;
drivers/media/platform/ti/vpe/vip.c
1244
sprintf(inp->name, "Camera %u", stream->vfd->num);
drivers/media/platform/ti/vpe/vip.c
1264
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1265
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1267
*std = stream->vfd->tvnorms;
drivers/media/platform/ti/vpe/vip.c
1274
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1275
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1277
*std = stream->vfd->tvnorms;
drivers/media/platform/ti/vpe/vip.c
1285
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1286
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1288
if (stream->vfd->tvnorms == std)
drivers/media/platform/ti/vpe/vip.c
1291
if (!(std & stream->vfd->tvnorms))
drivers/media/platform/ti/vpe/vip.c
1294
if (vb2_is_busy(&stream->vb_vidq))
drivers/media/platform/ti/vpe/vip.c
1304
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1305
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1320
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1321
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1354
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1355
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1382
struct vip_stream *stream = video_drvdata(file);
drivers/media/platform/ti/vpe/vip.c
1383
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1390
struct vip_stream *stream = video_drvdata(file);
drivers/media/platform/ti/vpe/vip.c
1391
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1448
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1449
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1638
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1639
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1642
f->fmt.pix.width = stream->width;
drivers/media/platform/ti/vpe/vip.c
1643
f->fmt.pix.height = stream->height;
drivers/media/platform/ti/vpe/vip.c
1645
f->fmt.pix.field = stream->sup_field;
drivers/media/platform/ti/vpe/vip.c
1647
f->fmt.pix.bytesperline = stream->bytesperline;
drivers/media/platform/ti/vpe/vip.c
1648
f->fmt.pix.sizeimage = stream->sizeimage;
drivers/media/platform/ti/vpe/vip.c
1656
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
1657
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1668
if (vb2_is_busy(&stream->vb_vidq)) {
drivers/media/platform/ti/vpe/vip.c
1691
stream->width = f->fmt.pix.width;
drivers/media/platform/ti/vpe/vip.c
1692
stream->height = f->fmt.pix.height;
drivers/media/platform/ti/vpe/vip.c
1693
stream->bytesperline = f->fmt.pix.bytesperline;
drivers/media/platform/ti/vpe/vip.c
1694
stream->sizeimage = f->fmt.pix.sizeimage;
drivers/media/platform/ti/vpe/vip.c
1695
stream->sup_field = f->fmt.pix.field;
drivers/media/platform/ti/vpe/vip.c
1696
stream->field = f->fmt.pix.field;
drivers/media/platform/ti/vpe/vip.c
1700
port->c_rect.width = stream->width;
drivers/media/platform/ti/vpe/vip.c
1701
port->c_rect.height = stream->height;
drivers/media/platform/ti/vpe/vip.c
1719
if (stream->sup_field == V4L2_FIELD_ALTERNATE)
drivers/media/platform/ti/vpe/vip.c
1856
static void unset_fmt_params(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
1858
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
1861
stream->sequence = 0;
drivers/media/platform/ti/vpe/vip.c
1862
stream->field = V4L2_FIELD_TOP;
drivers/media/platform/ti/vpe/vip.c
2006
static void set_fmt_params(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
2008
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2011
stream->sequence = 0;
drivers/media/platform/ti/vpe/vip.c
2012
stream->field = V4L2_FIELD_TOP;
drivers/media/platform/ti/vpe/vip.c
2035
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
2042
s->r.width = stream->width;
drivers/media/platform/ti/vpe/vip.c
2043
s->r.height = stream->height;
drivers/media/platform/ti/vpe/vip.c
2047
s->r = stream->port->c_rect;
drivers/media/platform/ti/vpe/vip.c
2069
struct vip_stream *stream = file2stream(file);
drivers/media/platform/ti/vpe/vip.c
2070
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2080
if (vb2_is_busy(&stream->vb_vidq))
drivers/media/platform/ti/vpe/vip.c
2083
v4l_bound_align_image(&r.width, 0, stream->width, 0,
drivers/media/platform/ti/vpe/vip.c
2084
&r.height, 0, stream->height, 0, 0);
drivers/media/platform/ti/vpe/vip.c
2086
r.left = clamp_t(unsigned int, r.left, 0, stream->width - r.width);
drivers/media/platform/ti/vpe/vip.c
2087
r.top = clamp_t(unsigned int, r.top, 0, stream->height - r.height);
drivers/media/platform/ti/vpe/vip.c
2096
stream->port->c_rect = r;
drivers/media/platform/ti/vpe/vip.c
2100
stream->width, stream->height);
drivers/media/platform/ti/vpe/vip.c
2148
struct vip_stream *stream = vb2_get_drv_priv(vq);
drivers/media/platform/ti/vpe/vip.c
2149
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2151
unsigned int size = stream->sizeimage;
drivers/media/platform/ti/vpe/vip.c
2167
struct vip_stream *stream = vb2_get_drv_priv(vb->vb2_queue);
drivers/media/platform/ti/vpe/vip.c
2168
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2171
if (vb2_plane_size(vb, 0) < stream->sizeimage) {
drivers/media/platform/ti/vpe/vip.c
2175
(long)stream->sizeimage);
drivers/media/platform/ti/vpe/vip.c
2179
vb2_set_plane_payload(vb, 0, stream->sizeimage);
drivers/media/platform/ti/vpe/vip.c
2186
struct vip_stream *stream = vb2_get_drv_priv(vb->vb2_queue);
drivers/media/platform/ti/vpe/vip.c
2187
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
2193
list_add_tail(&buf->list, &stream->vidq);
drivers/media/platform/ti/vpe/vip.c
2199
struct vip_stream *stream = vb2_get_drv_priv(vq);
drivers/media/platform/ti/vpe/vip.c
2200
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
2207
while (!list_empty(&stream->post_bufs)) {
drivers/media/platform/ti/vpe/vip.c
2208
buf = list_entry(stream->post_bufs.next,
drivers/media/platform/ti/vpe/vip.c
2212
list_add_tail(&buf->list, &stream->dropq);
drivers/media/platform/ti/vpe/vip.c
2216
while (!list_empty(&stream->vidq)) {
drivers/media/platform/ti/vpe/vip.c
2217
buf = list_entry(stream->vidq.next, struct vip_buffer, list);
drivers/media/platform/ti/vpe/vip.c
2222
INIT_LIST_HEAD(&stream->post_bufs);
drivers/media/platform/ti/vpe/vip.c
2223
INIT_LIST_HEAD(&stream->vidq);
drivers/media/platform/ti/vpe/vip.c
2228
static int vip_setup_scaler(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
2230
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2236
int list_num = stream->list_num;
drivers/media/platform/ti/vpe/vip.c
2248
dst_f.fmt.pix.width = stream->width;
drivers/media/platform/ti/vpe/vip.c
2249
dst_f.fmt.pix.height = stream->height;
drivers/media/platform/ti/vpe/vip.c
2286
vpdma_reset_desc_list(&stream->desc_list);
drivers/media/platform/ti/vpe/vip.c
2291
vpdma_add_cfd_adb(&stream->desc_list, CFD_MMR_CLIENT,
drivers/media/platform/ti/vpe/vip.c
2301
vpdma_add_cfd_block(&stream->desc_list,
drivers/media/platform/ti/vpe/vip.c
2313
vpdma_add_cfd_block(&stream->desc_list,
drivers/media/platform/ti/vpe/vip.c
2321
v4l2_dbg(3, debug, stream, "CFD_SC_CLIENT %d slice_id: %d\n",
drivers/media/platform/ti/vpe/vip.c
2324
vpdma_map_desc_buf(vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
2326
vpdma_submit_descs(vpdma, &stream->desc_list, list_num);
drivers/media/platform/ti/vpe/vip.c
2334
vpdma_unmap_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
2336
vpdma_reset_desc_list(&stream->desc_list);
drivers/media/platform/ti/vpe/vip.c
2346
static int vip_load_vpdma_list_fifo(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
2348
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2351
int list_num = stream->list_num;
drivers/media/platform/ti/vpe/vip.c
2356
if (vpdma_list_busy(dev->shared->vpdma, stream->list_num))
drivers/media/platform/ti/vpe/vip.c
2361
if (list_empty(&stream->vidq)) {
drivers/media/platform/ti/vpe/vip.c
2367
buf = list_entry(stream->vidq.next,
drivers/media/platform/ti/vpe/vip.c
2371
list_move_tail(&buf->list, &stream->post_bufs);
drivers/media/platform/ti/vpe/vip.c
2376
start_dma(stream, buf);
drivers/media/platform/ti/vpe/vip.c
2392
struct vip_stream *stream = vb2_get_drv_priv(vq);
drivers/media/platform/ti/vpe/vip.c
2393
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2397
ret = vip_setup_scaler(stream);
drivers/media/platform/ti/vpe/vip.c
2408
set_fmt_params(stream);
drivers/media/platform/ti/vpe/vip.c
2421
stream->sequence = 0;
drivers/media/platform/ti/vpe/vip.c
2422
stream->field = V4L2_FIELD_TOP;
drivers/media/platform/ti/vpe/vip.c
2423
populate_desc_list(stream);
drivers/media/platform/ti/vpe/vip.c
2425
ret = vip_load_vpdma_list_fifo(stream);
drivers/media/platform/ti/vpe/vip.c
2429
stream->num_recovery = 0;
drivers/media/platform/ti/vpe/vip.c
2431
clear_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
2432
enable_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
2433
vip_schedule_next_buffer(stream);
drivers/media/platform/ti/vpe/vip.c
2449
struct vip_stream *stream = vb2_get_drv_priv(vq);
drivers/media/platform/ti/vpe/vip.c
2450
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2456
unset_fmt_params(stream);
drivers/media/platform/ti/vpe/vip.c
2458
disable_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
2459
clear_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
2467
stop_dma(stream, true);
drivers/media/platform/ti/vpe/vip.c
2471
vpdma_unmap_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
2472
vpdma_reset_desc_list(&stream->desc_list);
drivers/media/platform/ti/vpe/vip.c
2652
static int vip_init_stream(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
2654
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2677
stream->width = f.fmt.pix.width;
drivers/media/platform/ti/vpe/vip.c
2678
stream->height = f.fmt.pix.height;
drivers/media/platform/ti/vpe/vip.c
2679
stream->sup_field = f.fmt.pix.field;
drivers/media/platform/ti/vpe/vip.c
2680
stream->bytesperline = f.fmt.pix.bytesperline;
drivers/media/platform/ti/vpe/vip.c
2681
stream->sizeimage = f.fmt.pix.sizeimage;
drivers/media/platform/ti/vpe/vip.c
2690
ret = vpdma_create_desc_list(&stream->desc_list, VIP_DESC_LIST_SIZE,
drivers/media/platform/ti/vpe/vip.c
2696
stream->write_desc = (struct vpdma_dtd *)stream->desc_list.buf.addr
drivers/media/platform/ti/vpe/vip.c
2700
__func__, &stream);
drivers/media/platform/ti/vpe/vip.c
280
static int vip_setup_scaler(struct vip_stream *stream);
drivers/media/platform/ti/vpe/vip.c
284
static void stop_dma(struct vip_stream *stream, bool clear_list);
drivers/media/platform/ti/vpe/vip.c
285
static int vip_load_vpdma_list_fifo(struct vip_stream *stream);
drivers/media/platform/ti/vpe/vip.c
2894
static void vip_release_stream(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
2896
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
2899
__func__, &stream);
drivers/media/platform/ti/vpe/vip.c
2901
vpdma_unmap_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
2902
vpdma_free_desc_buf(&stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
2903
vpdma_free_desc_list(&stream->desc_list);
drivers/media/platform/ti/vpe/vip.c
2918
static void stop_dma(struct vip_stream *stream, bool clear_list)
drivers/media/platform/ti/vpe/vip.c
2920
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
2925
if (stream->vpdma_channels[ch] == 1) {
drivers/media/platform/ti/vpe/vip.c
2926
stream->vpdma_channels_to_abort[size++] = ch;
drivers/media/platform/ti/vpe/vip.c
2932
vpdma_list_cleanup(dev->shared->vpdma, stream->list_num,
drivers/media/platform/ti/vpe/vip.c
2933
stream->vpdma_channels_to_abort, size);
drivers/media/platform/ti/vpe/vip.c
2937
stream->vpdma_channels[ch] = 0;
drivers/media/platform/ti/vpe/vip.c
2942
struct vip_stream *stream = video_drvdata(file);
drivers/media/platform/ti/vpe/vip.c
2943
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2962
if (vip_init_stream(stream))
drivers/media/platform/ti/vpe/vip.c
2971
struct vip_stream *stream = video_drvdata(file);
drivers/media/platform/ti/vpe/vip.c
2972
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
2993
vip_release_stream(stream);
drivers/media/platform/ti/vpe/vip.c
3030
struct vip_stream *stream;
drivers/media/platform/ti/vpe/vip.c
3038
stream = kzalloc_obj(*stream);
drivers/media/platform/ti/vpe/vip.c
3039
if (!stream)
drivers/media/platform/ti/vpe/vip.c
3042
stream->port = port;
drivers/media/platform/ti/vpe/vip.c
3043
stream->stream_id = stream_id;
drivers/media/platform/ti/vpe/vip.c
3044
stream->vfl_type = vfl_type;
drivers/media/platform/ti/vpe/vip.c
3045
port->cap_streams[stream_id] = stream;
drivers/media/platform/ti/vpe/vip.c
3047
stream->list_num = vpdma_hwlist_alloc(dev->shared->vpdma, stream);
drivers/media/platform/ti/vpe/vip.c
3048
if (stream->list_num < 0) {
drivers/media/platform/ti/vpe/vip.c
3054
INIT_LIST_HEAD(&stream->post_bufs);
drivers/media/platform/ti/vpe/vip.c
3059
q = &stream->vb_vidq;
drivers/media/platform/ti/vpe/vip.c
3062
q->drv_priv = stream;
drivers/media/platform/ti/vpe/vip.c
3075
INIT_WORK(&stream->recovery_work, vip_overflow_recovery_work);
drivers/media/platform/ti/vpe/vip.c
3077
INIT_LIST_HEAD(&stream->vidq);
drivers/media/platform/ti/vpe/vip.c
3080
INIT_LIST_HEAD(&stream->dropq);
drivers/media/platform/ti/vpe/vip.c
3088
list_add(&buf->list, &stream->dropq);
drivers/media/platform/ti/vpe/vip.c
3101
video_set_drvdata(vfd, stream);
drivers/media/platform/ti/vpe/vip.c
3102
stream->vfd = vfd;
drivers/media/platform/ti/vpe/vip.c
3117
list_for_each_safe(pos, tmp, &stream->dropq) {
drivers/media/platform/ti/vpe/vip.c
3125
vpdma_hwlist_release(dev->shared->vpdma, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
3127
kfree(stream);
drivers/media/platform/ti/vpe/vip.c
3131
static void free_stream(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
3137
if (!stream)
drivers/media/platform/ti/vpe/vip.c
3140
dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
3142
list_for_each_safe(pos, q, &stream->dropq) {
drivers/media/platform/ti/vpe/vip.c
3150
video_unregister_device(stream->vfd);
drivers/media/platform/ti/vpe/vip.c
3151
vpdma_hwlist_release(dev->shared->vpdma, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
3152
stream->port->cap_streams[stream->stream_id] = NULL;
drivers/media/platform/ti/vpe/vip.c
3153
kfree(stream);
drivers/media/platform/ti/vpe/vip.c
635
static int add_out_dtd(struct vip_stream *stream, int srce_type)
drivers/media/platform/ti/vpe/vip.c
637
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
646
u32 width = stream->width;
drivers/media/platform/ti/vpe/vip.c
655
channel += stream->stream_id;
drivers/media/platform/ti/vpe/vip.c
715
width, stream->height);
drivers/media/platform/ti/vpe/vip.c
721
width, stream->height);
drivers/media/platform/ti/vpe/vip.c
733
stream->vpdma_channels[channel] = 1;
drivers/media/platform/ti/vpe/vip.c
735
vpdma_rawchan_add_out_dtd(&stream->desc_list, c_rect->width,
drivers/media/platform/ti/vpe/vip.c
736
stream->bytesperline, c_rect,
drivers/media/platform/ti/vpe/vip.c
745
static void add_stream_dtds(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
747
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
759
add_out_dtd(stream, srce_type);
drivers/media/platform/ti/vpe/vip.c
762
add_out_dtd(stream, VIP_SRCE_CHROMA);
drivers/media/platform/ti/vpe/vip.c
816
static void populate_desc_list(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
818
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
821
stream->desc_next = stream->desc_list.buf.addr;
drivers/media/platform/ti/vpe/vip.c
822
add_stream_dtds(stream);
drivers/media/platform/ti/vpe/vip.c
824
vpdma_map_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
832
static void start_dma(struct vip_stream *stream, struct vip_buffer *buf)
drivers/media/platform/ti/vpe/vip.c
834
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
836
int list_num = stream->list_num;
drivers/media/platform/ti/vpe/vip.c
856
vpdma_update_dma_addr(dev->shared->vpdma, &stream->desc_list,
drivers/media/platform/ti/vpe/vip.c
857
dma_addr, stream->write_desc, drop_data, 0);
drivers/media/platform/ti/vpe/vip.c
859
if (stream->port->fmt->coplanar) {
drivers/media/platform/ti/vpe/vip.c
860
dma_addr += stream->bytesperline * stream->height;
drivers/media/platform/ti/vpe/vip.c
861
vpdma_update_dma_addr(dev->shared->vpdma, &stream->desc_list,
drivers/media/platform/ti/vpe/vip.c
862
dma_addr, stream->write_desc + 1,
drivers/media/platform/ti/vpe/vip.c
867
&stream->desc_list, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
870
static void vip_schedule_next_buffer(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
872
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
877
if (list_empty(&stream->vidq)) {
drivers/media/platform/ti/vpe/vip.c
879
if (list_empty(&stream->dropq)) {
drivers/media/platform/ti/vpe/vip.c
884
buf = list_entry(stream->dropq.next,
drivers/media/platform/ti/vpe/vip.c
888
list_move_tail(&buf->list, &stream->post_bufs);
drivers/media/platform/ti/vpe/vip.c
891
buf = list_entry(stream->vidq.next,
drivers/media/platform/ti/vpe/vip.c
894
list_move_tail(&buf->list, &stream->post_bufs);
drivers/media/platform/ti/vpe/vip.c
899
start_dma(stream, buf);
drivers/media/platform/ti/vpe/vip.c
902
static void vip_process_buffer_complete(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
904
struct vip_dev *dev = stream->port->dev;
drivers/media/platform/ti/vpe/vip.c
909
buf = list_first_entry_or_null(&stream->post_bufs, struct vip_buffer, list);
drivers/media/platform/ti/vpe/vip.c
911
if (stream->port->flags & FLAG_INTERLACED) {
drivers/media/platform/ti/vpe/vip.c
913
&stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
915
fld = dtd_get_field(stream->write_desc);
drivers/media/platform/ti/vpe/vip.c
916
stream->field = fld ? V4L2_FIELD_BOTTOM : V4L2_FIELD_TOP;
drivers/media/platform/ti/vpe/vip.c
918
vpdma_map_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
923
vb->sequence = stream->sequence;
drivers/media/platform/ti/vpe/vip.c
929
list_move_tail(&buf->list, &stream->dropq);
drivers/media/platform/ti/vpe/vip.c
942
stream->sequence++;
drivers/media/platform/ti/vpe/vip.c
945
static int vip_reset_vpdma(struct vip_stream *stream)
drivers/media/platform/ti/vpe/vip.c
947
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
952
stop_dma(stream, false);
drivers/media/platform/ti/vpe/vip.c
956
while (!list_empty(&stream->post_bufs)) {
drivers/media/platform/ti/vpe/vip.c
957
buf = list_last_entry(&stream->post_bufs,
drivers/media/platform/ti/vpe/vip.c
961
list_add_tail(&buf->list, &stream->dropq);
drivers/media/platform/ti/vpe/vip.c
964
list_add(&buf->list, &stream->vidq);
drivers/media/platform/ti/vpe/vip.c
972
vpdma_unmap_desc_buf(dev->shared->vpdma, &stream->desc_list.buf);
drivers/media/platform/ti/vpe/vip.c
979
struct vip_stream *stream = container_of(work, struct vip_stream,
drivers/media/platform/ti/vpe/vip.c
981
struct vip_port *port = stream->port;
drivers/media/platform/ti/vpe/vip.c
987
disable_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/platform/ti/vpe/vip.c
988
clear_irqs(dev, dev->slice_id, stream->list_num);
drivers/media/test-drivers/vidtv/vidtv_psi.c
1064
struct vidtv_psi_table_pmt_stream *stream;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1070
stream = kzalloc_obj(*stream);
drivers/media/test-drivers/vidtv/vidtv_psi.c
1071
if (!stream)
drivers/media/test-drivers/vidtv/vidtv_psi.c
1074
stream->type = stream_type;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1076
stream->bitfield = cpu_to_be16((RESERVED1 << 13) | es_pid);
drivers/media/test-drivers/vidtv/vidtv_psi.c
1078
desc_loop_len = vidtv_psi_desc_comp_loop_len(stream->descriptor);
drivers/media/test-drivers/vidtv/vidtv_psi.c
1080
stream->bitfield2 = cpu_to_be16((RESERVED2 << 12) |
drivers/media/test-drivers/vidtv/vidtv_psi.c
1083
stream->next = NULL;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1089
head->next = stream;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1092
return stream;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1113
if (s == pmt->stream)
drivers/media/test-drivers/vidtv/vidtv_psi.c
1116
pmt->stream = s;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1192
struct vidtv_psi_table_pmt_stream *stream = args->pmt->stream;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1250
while (stream) {
drivers/media/test-drivers/vidtv/vidtv_psi.c
1252
psi_args.from = stream;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1258
stream_descriptor = stream->descriptor;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1272
stream = stream->next;
drivers/media/test-drivers/vidtv/vidtv_psi.c
1288
vidtv_psi_pmt_stream_destroy(pmt->stream);
drivers/media/test-drivers/vidtv/vidtv_psi.c
825
struct vidtv_psi_table_pmt_stream *s = pmt->stream;
drivers/media/test-drivers/vidtv/vidtv_psi.h
247
struct vidtv_psi_table_pmt_stream *stream;
drivers/media/test-drivers/vimc/vimc-capture.c
248
ret = video_device_pipeline_start(&vcapture->vdev, &vcapture->stream.pipe);
drivers/media/test-drivers/vimc/vimc-capture.c
254
ret = vimc_streamer_s_stream(&vcapture->stream, &vcapture->ved, 1);
drivers/media/test-drivers/vimc/vimc-capture.c
272
vimc_streamer_s_stream(&vcapture->stream, &vcapture->ved, 0);
drivers/media/test-drivers/vimc/vimc-capture.c
32
struct vimc_stream stream;
drivers/media/test-drivers/vimc/vimc-streamer.c
107
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
120
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
138
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
156
struct vimc_stream *stream = data;
drivers/media/test-drivers/vimc/vimc-streamer.c
167
for (i = stream->pipe_size - 1; i >= 0; i--) {
drivers/media/test-drivers/vimc/vimc-streamer.c
168
frame = stream->ved_pipeline[i]->process_frame(
drivers/media/test-drivers/vimc/vimc-streamer.c
169
stream->ved_pipeline[i], frame);
drivers/media/test-drivers/vimc/vimc-streamer.c
196
int vimc_streamer_s_stream(struct vimc_stream *stream,
drivers/media/test-drivers/vimc/vimc-streamer.c
202
if (!stream || !ved)
drivers/media/test-drivers/vimc/vimc-streamer.c
206
if (stream->kthread)
drivers/media/test-drivers/vimc/vimc-streamer.c
209
ret = vimc_streamer_pipeline_init(stream, ved);
drivers/media/test-drivers/vimc/vimc-streamer.c
213
stream->kthread = kthread_run(vimc_streamer_thread, stream,
drivers/media/test-drivers/vimc/vimc-streamer.c
216
if (IS_ERR(stream->kthread)) {
drivers/media/test-drivers/vimc/vimc-streamer.c
217
ret = PTR_ERR(stream->kthread);
drivers/media/test-drivers/vimc/vimc-streamer.c
219
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
220
stream->kthread = NULL;
drivers/media/test-drivers/vimc/vimc-streamer.c
225
if (!stream->kthread)
drivers/media/test-drivers/vimc/vimc-streamer.c
228
ret = kthread_stop(stream->kthread);
drivers/media/test-drivers/vimc/vimc-streamer.c
238
stream->kthread = NULL;
drivers/media/test-drivers/vimc/vimc-streamer.c
240
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
48
static void vimc_streamer_pipeline_terminate(struct vimc_stream *stream)
drivers/media/test-drivers/vimc/vimc-streamer.c
53
while (stream->pipe_size) {
drivers/media/test-drivers/vimc/vimc-streamer.c
54
stream->pipe_size--;
drivers/media/test-drivers/vimc/vimc-streamer.c
55
ved = stream->ved_pipeline[stream->pipe_size];
drivers/media/test-drivers/vimc/vimc-streamer.c
56
stream->ved_pipeline[stream->pipe_size] = NULL;
drivers/media/test-drivers/vimc/vimc-streamer.c
85
static int vimc_streamer_pipeline_init(struct vimc_stream *stream,
drivers/media/test-drivers/vimc/vimc-streamer.c
93
stream->pipe_size = 0;
drivers/media/test-drivers/vimc/vimc-streamer.c
94
while (stream->pipe_size < VIMC_STREAMER_PIPELINE_MAX_SIZE) {
drivers/media/test-drivers/vimc/vimc-streamer.c
96
vimc_streamer_pipeline_terminate(stream);
drivers/media/test-drivers/vimc/vimc-streamer.c
99
stream->ved_pipeline[stream->pipe_size++] = ved;
drivers/media/test-drivers/vimc/vimc-streamer.h
41
int vimc_streamer_s_stream(struct vimc_stream *stream,
drivers/media/usb/as102/as102_drv.h
66
void *stream;
drivers/media/usb/as102/as102_usb_drv.c
238
dev->stream,
drivers/media/usb/as102/as102_usb_drv.c
246
dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev,
drivers/media/usb/as102/as102_usb_drv.c
250
if (!dev->stream) {
drivers/media/usb/as102/as102_usb_drv.c
256
memset(dev->stream, 0, MAX_STREAM_URB * AS102_USB_BUF_SIZE);
drivers/media/usb/as102/as102_usb_drv.c
268
urb->transfer_buffer = dev->stream + (i * AS102_USB_BUF_SIZE);
drivers/media/usb/dvb-usb-v2/af9015.c
1443
.stream = DVB_USB_STREAM_BULK(0x84, 6, 87 * 188),
drivers/media/usb/dvb-usb-v2/af9015.c
1451
.stream = DVB_USB_STREAM_BULK(0x85, 6, 87 * 188),
drivers/media/usb/dvb-usb-v2/af9015.c
539
struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/af9015.c
547
stream->u.bulk.buffersize = 5 * 188;
drivers/media/usb/dvb-usb-v2/af9035.c
1946
struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/af9035.c
1954
stream->u.bulk.buffersize = 5 * 188;
drivers/media/usb/dvb-usb-v2/af9035.c
2045
.stream = DVB_USB_STREAM_BULK(0x84, 6, 87 * 188),
drivers/media/usb/dvb-usb-v2/af9035.c
2054
.stream = DVB_USB_STREAM_BULK(0x85, 6, 87 * 188),
drivers/media/usb/dvb-usb-v2/af9035.c
2088
.stream = DVB_USB_STREAM_BULK(0x84, 4, 816 * 188),
drivers/media/usb/dvb-usb-v2/af9035.c
2090
.stream = DVB_USB_STREAM_BULK(0x85, 4, 816 * 188),
drivers/media/usb/dvb-usb-v2/anysee.c
1375
.stream = DVB_USB_STREAM_BULK(0x82, 8, 16 * 512),
drivers/media/usb/dvb-usb-v2/au6610.c
171
.stream = DVB_USB_STREAM_ISOC(0x82, 5, 40, 942, 1),
drivers/media/usb/dvb-usb-v2/az6007.c
911
{ .stream = DVB_USB_STREAM_BULK(0x02, 10, 4096), }
drivers/media/usb/dvb-usb-v2/az6007.c
934
{ .stream = DVB_USB_STREAM_BULK(0x02, 10, 4096), }
drivers/media/usb/dvb-usb-v2/ce6230.c
247
.stream = {
drivers/media/usb/dvb-usb-v2/dvb_usb.h
183
struct usb_data_stream_properties stream;
drivers/media/usb/dvb-usb-v2/dvb_usb.h
331
struct usb_data_stream stream;
drivers/media/usb/dvb-usb-v2/dvb_usb_common.h
15
extern int usb_urb_initv2(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/dvb_usb_common.h
17
extern int usb_urb_exitv2(struct usb_data_stream *stream);
drivers/media/usb/dvb-usb-v2/dvb_usb_common.h
18
extern int usb_urb_submitv2(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/dvb_usb_common.h
20
extern int usb_urb_killv2(struct usb_data_stream *stream);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
1053
usb_urb_killv2(&d->adapter[i].stream);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
1077
usb_urb_submitv2(&d->adapter[i].stream, NULL);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
200
static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf,
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
203
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
207
static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buf,
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
210
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
214
static void dvb_usb_data_complete_raw(struct usb_data_stream *stream, u8 *buf,
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
217
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
226
adap->stream.udev = adap_to_d(adap)->udev;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
227
adap->stream.user_priv = adap;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
228
adap->stream.complete = dvb_usb_data_complete;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
230
return usb_urb_initv2(&adap->stream, &adap->props->stream);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
238
return usb_urb_exitv2(&adap->stream);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
268
memcpy(&stream_props, &adap->props->stream,
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
277
stream_props = adap->props->stream;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
282
adap->stream.complete = dvb_usb_data_complete_204;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
285
adap->stream.complete = dvb_usb_data_complete_raw;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
289
adap->stream.complete = dvb_usb_data_complete;
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
294
usb_urb_submitv2(&adap->stream, &stream_props);
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
375
usb_urb_killv2(&adap->stream);
drivers/media/usb/dvb-usb-v2/dvbsky.c
647
.stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
drivers/media/usb/dvb-usb-v2/dvbsky.c
674
.stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
drivers/media/usb/dvb-usb-v2/dvbsky.c
701
.stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
drivers/media/usb/dvb-usb-v2/dvbsky.c
728
.stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
drivers/media/usb/dvb-usb-v2/dvbsky.c
754
.stream = DVB_USB_STREAM_BULK(0x82, 8, 4096),
drivers/media/usb/dvb-usb-v2/ec168.c
342
.stream = DVB_USB_STREAM_BULK(0x82, 6, 32 * 512),
drivers/media/usb/dvb-usb-v2/gl861.c
226
.stream = DVB_USB_STREAM_BULK(0x81, 7, 512),
drivers/media/usb/dvb-usb-v2/gl861.c
545
.stream = DVB_USB_STREAM_BULK(0x01, 8, 16384),
drivers/media/usb/dvb-usb-v2/lmedm04.c
1163
struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/lmedm04.c
1181
stream->endpoint = 0x8;
drivers/media/usb/dvb-usb-v2/lmedm04.c
1235
.stream =
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1034
static void mxl111sf_stream_config_bulk(struct usb_data_stream_properties *stream, u8 endpoint)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1037
stream->type = USB_BULK;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1038
stream->count = 5;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1039
stream->endpoint = endpoint;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1040
stream->u.bulk.buffersize = 8192;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1043
static void mxl111sf_stream_config_isoc(struct usb_data_stream_properties *stream,
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1048
stream->type = USB_ISOC;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1049
stream->count = 5;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1050
stream->endpoint = endpoint;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1051
stream->u.isoc.framesperurb = framesperurb;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1052
stream->u.isoc.framesize = framesize;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1053
stream->u.isoc.interval = 1;
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1063
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1069
mxl111sf_stream_config_isoc(stream, 4, 96, 564);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1071
mxl111sf_stream_config_bulk(stream, 4);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1103
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1113
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1119
mxl111sf_stream_config_isoc(stream, 6, 24, 3072);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1121
mxl111sf_stream_config_bulk(stream, 6);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1145
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1155
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1161
mxl111sf_stream_config_isoc(stream, 5, 96, 200);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1163
mxl111sf_stream_config_bulk(stream, 5);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1187
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1197
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1204
mxl111sf_stream_config_isoc(stream, 6, 24, 3072);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1206
mxl111sf_stream_config_bulk(stream, 6);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1210
mxl111sf_stream_config_isoc(stream, 4, 96, 564);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1212
mxl111sf_stream_config_bulk(stream, 4);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1216
mxl111sf_stream_config_isoc(stream, 5, 96, 200);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1218
mxl111sf_stream_config_bulk(stream, 5);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1256
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1268
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1275
mxl111sf_stream_config_isoc(stream, 6, 24, 3072);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1277
mxl111sf_stream_config_bulk(stream, 6);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1281
mxl111sf_stream_config_isoc(stream, 4, 96, 564);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1283
mxl111sf_stream_config_bulk(stream, 4);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1287
mxl111sf_stream_config_isoc(stream, 5, 96, 200);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1289
mxl111sf_stream_config_bulk(stream, 5);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1293
mxl111sf_stream_config_isoc(stream, 6, 24, 3072);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1295
mxl111sf_stream_config_bulk(stream, 6);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1335
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1347
u8 *ts_type, struct usb_data_stream_properties *stream)
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1354
mxl111sf_stream_config_isoc(stream, 4, 96, 564);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1356
mxl111sf_stream_config_bulk(stream, 4);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1360
mxl111sf_stream_config_isoc(stream, 5, 96, 200);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1362
mxl111sf_stream_config_bulk(stream, 5);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1366
mxl111sf_stream_config_isoc(stream, 6, 24, 3072);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1368
mxl111sf_stream_config_bulk(stream, 6);
drivers/media/usb/dvb-usb-v2/mxl111sf.c
1406
.stream = DVB_USB_STREAM_ISOC(6, 5, 24, 3072, 1),
drivers/media/usb/dvb-usb-v2/rtl28xxu.c
1910
.stream = DVB_USB_STREAM_BULK(0x81, 6, 8 * 512),
drivers/media/usb/dvb-usb-v2/usb_urb.c
102
for (i = 0; i < stream->urbs_initialized; i++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
103
dev_dbg(&stream->udev->dev, "%s: submit urb=%d\n", __func__, i);
drivers/media/usb/dvb-usb-v2/usb_urb.c
104
ret = usb_submit_urb(stream->urb_list[i], GFP_ATOMIC);
drivers/media/usb/dvb-usb-v2/usb_urb.c
106
dev_err(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
109
usb_urb_killv2(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
112
stream->urbs_submitted++;
drivers/media/usb/dvb-usb-v2/usb_urb.c
117
static int usb_urb_free_urbs(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
121
usb_urb_killv2(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
123
for (i = stream->urbs_initialized - 1; i >= 0; i--) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
124
if (stream->urb_list[i]) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
125
dev_dbg(&stream->udev->dev, "%s: free urb=%d\n",
drivers/media/usb/dvb-usb-v2/usb_urb.c
128
usb_free_urb(stream->urb_list[i]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
131
stream->urbs_initialized = 0;
drivers/media/usb/dvb-usb-v2/usb_urb.c
136
static int usb_urb_alloc_bulk_urbs(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
141
for (i = 0; i < stream->props.count; i++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
142
dev_dbg(&stream->udev->dev, "%s: alloc urb=%d\n", __func__, i);
drivers/media/usb/dvb-usb-v2/usb_urb.c
143
stream->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC);
drivers/media/usb/dvb-usb-v2/usb_urb.c
144
if (!stream->urb_list[i]) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
145
dev_dbg(&stream->udev->dev, "%s: failed\n", __func__);
drivers/media/usb/dvb-usb-v2/usb_urb.c
147
usb_free_urb(stream->urb_list[j]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
150
usb_fill_bulk_urb(stream->urb_list[i],
drivers/media/usb/dvb-usb-v2/usb_urb.c
151
stream->udev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
152
usb_rcvbulkpipe(stream->udev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
153
stream->props.endpoint),
drivers/media/usb/dvb-usb-v2/usb_urb.c
154
stream->buf_list[i],
drivers/media/usb/dvb-usb-v2/usb_urb.c
155
stream->props.u.bulk.buffersize,
drivers/media/usb/dvb-usb-v2/usb_urb.c
156
usb_urb_complete, stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
158
stream->urbs_initialized++;
drivers/media/usb/dvb-usb-v2/usb_urb.c
16
int usb_urb_reconfig(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/usb_urb.c
163
static int usb_urb_alloc_isoc_urbs(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
168
for (i = 0; i < stream->props.count; i++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
171
dev_dbg(&stream->udev->dev, "%s: alloc urb=%d\n", __func__, i);
drivers/media/usb/dvb-usb-v2/usb_urb.c
172
stream->urb_list[i] = usb_alloc_urb(
drivers/media/usb/dvb-usb-v2/usb_urb.c
173
stream->props.u.isoc.framesperurb, GFP_ATOMIC);
drivers/media/usb/dvb-usb-v2/usb_urb.c
174
if (!stream->urb_list[i]) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
175
dev_dbg(&stream->udev->dev, "%s: failed\n", __func__);
drivers/media/usb/dvb-usb-v2/usb_urb.c
177
usb_free_urb(stream->urb_list[j]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
181
urb = stream->urb_list[i];
drivers/media/usb/dvb-usb-v2/usb_urb.c
183
urb->dev = stream->udev;
drivers/media/usb/dvb-usb-v2/usb_urb.c
184
urb->context = stream;
drivers/media/usb/dvb-usb-v2/usb_urb.c
186
urb->pipe = usb_rcvisocpipe(stream->udev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
187
stream->props.endpoint);
drivers/media/usb/dvb-usb-v2/usb_urb.c
189
urb->interval = stream->props.u.isoc.interval;
drivers/media/usb/dvb-usb-v2/usb_urb.c
190
urb->number_of_packets = stream->props.u.isoc.framesperurb;
drivers/media/usb/dvb-usb-v2/usb_urb.c
191
urb->transfer_buffer_length = stream->props.u.isoc.framesize *
drivers/media/usb/dvb-usb-v2/usb_urb.c
192
stream->props.u.isoc.framesperurb;
drivers/media/usb/dvb-usb-v2/usb_urb.c
193
urb->transfer_buffer = stream->buf_list[i];
drivers/media/usb/dvb-usb-v2/usb_urb.c
195
for (j = 0; j < stream->props.u.isoc.framesperurb; j++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
198
stream->props.u.isoc.framesize;
drivers/media/usb/dvb-usb-v2/usb_urb.c
199
frame_offset += stream->props.u.isoc.framesize;
drivers/media/usb/dvb-usb-v2/usb_urb.c
202
stream->urbs_initialized++;
drivers/media/usb/dvb-usb-v2/usb_urb.c
207
static int usb_free_stream_buffers(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
209
if (stream->state & USB_STATE_URB_BUF) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
21
struct usb_data_stream *stream = urb->context;
drivers/media/usb/dvb-usb-v2/usb_urb.c
210
while (stream->buf_num) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
211
stream->buf_num--;
drivers/media/usb/dvb-usb-v2/usb_urb.c
212
kfree(stream->buf_list[stream->buf_num]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
216
stream->state &= ~USB_STATE_URB_BUF;
drivers/media/usb/dvb-usb-v2/usb_urb.c
221
static int usb_alloc_stream_buffers(struct usb_data_stream *stream, int num,
drivers/media/usb/dvb-usb-v2/usb_urb.c
224
stream->buf_num = 0;
drivers/media/usb/dvb-usb-v2/usb_urb.c
225
stream->buf_size = size;
drivers/media/usb/dvb-usb-v2/usb_urb.c
227
dev_dbg(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
231
for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
232
stream->buf_list[stream->buf_num] = kzalloc(size, GFP_ATOMIC);
drivers/media/usb/dvb-usb-v2/usb_urb.c
233
if (!stream->buf_list[stream->buf_num]) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
234
dev_dbg(&stream->udev->dev, "%s: alloc buf=%d failed\n",
drivers/media/usb/dvb-usb-v2/usb_urb.c
235
__func__, stream->buf_num);
drivers/media/usb/dvb-usb-v2/usb_urb.c
236
usb_free_stream_buffers(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
240
dev_dbg(&stream->udev->dev, "%s: alloc buf=%d %p (dma %llu)\n",
drivers/media/usb/dvb-usb-v2/usb_urb.c
241
__func__, stream->buf_num,
drivers/media/usb/dvb-usb-v2/usb_urb.c
242
stream->buf_list[stream->buf_num],
drivers/media/usb/dvb-usb-v2/usb_urb.c
243
(long long)stream->dma_addr[stream->buf_num]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
244
stream->state |= USB_STATE_URB_BUF;
drivers/media/usb/dvb-usb-v2/usb_urb.c
250
int usb_urb_reconfig(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/usb_urb.c
26
dev_dbg_ratelimited(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
260
buf_size = stream->props.u.bulk.buffersize;
drivers/media/usb/dvb-usb-v2/usb_urb.c
264
dev_err(&stream->udev->dev, "%s: invalid endpoint type=%d\n",
drivers/media/usb/dvb-usb-v2/usb_urb.c
269
if (stream->buf_num < props->count || stream->buf_size < buf_size) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
270
dev_err(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
277
if (stream->props.type == props->type &&
drivers/media/usb/dvb-usb-v2/usb_urb.c
278
stream->props.count == props->count &&
drivers/media/usb/dvb-usb-v2/usb_urb.c
279
stream->props.endpoint == props->endpoint) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
282
stream->props.u.bulk.buffersize)
drivers/media/usb/dvb-usb-v2/usb_urb.c
286
stream->props.u.isoc.framesperurb &&
drivers/media/usb/dvb-usb-v2/usb_urb.c
288
stream->props.u.isoc.framesize &&
drivers/media/usb/dvb-usb-v2/usb_urb.c
290
stream->props.u.isoc.interval)
drivers/media/usb/dvb-usb-v2/usb_urb.c
294
dev_dbg(&stream->udev->dev, "%s: re-alloc urbs\n", __func__);
drivers/media/usb/dvb-usb-v2/usb_urb.c
296
usb_urb_free_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
297
memcpy(&stream->props, props, sizeof(*props));
drivers/media/usb/dvb-usb-v2/usb_urb.c
299
return usb_urb_alloc_bulk_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
301
return usb_urb_alloc_isoc_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
306
int usb_urb_initv2(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/usb_urb.c
311
if (!stream || !props)
drivers/media/usb/dvb-usb-v2/usb_urb.c
314
memcpy(&stream->props, props, sizeof(*props));
drivers/media/usb/dvb-usb-v2/usb_urb.c
316
if (!stream->complete) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
317
dev_err(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
323
switch (stream->props.type) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
325
ret = usb_alloc_stream_buffers(stream, stream->props.count,
drivers/media/usb/dvb-usb-v2/usb_urb.c
326
stream->props.u.bulk.buffersize);
drivers/media/usb/dvb-usb-v2/usb_urb.c
330
return usb_urb_alloc_bulk_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
332
ret = usb_alloc_stream_buffers(stream, stream->props.count,
drivers/media/usb/dvb-usb-v2/usb_urb.c
333
stream->props.u.isoc.framesize *
drivers/media/usb/dvb-usb-v2/usb_urb.c
334
stream->props.u.isoc.framesperurb);
drivers/media/usb/dvb-usb-v2/usb_urb.c
338
return usb_urb_alloc_isoc_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
340
dev_err(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
347
int usb_urb_exitv2(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
349
usb_urb_free_urbs(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
350
usb_free_stream_buffers(stream);
drivers/media/usb/dvb-usb-v2/usb_urb.c
42
dev_dbg_ratelimited(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
53
dev_dbg(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
58
stream->complete(stream,
drivers/media/usb/dvb-usb-v2/usb_urb.c
68
stream->complete(stream, b, urb->actual_length);
drivers/media/usb/dvb-usb-v2/usb_urb.c
71
dev_err(&stream->udev->dev,
drivers/media/usb/dvb-usb-v2/usb_urb.c
79
int usb_urb_killv2(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb-v2/usb_urb.c
82
for (i = 0; i < stream->urbs_submitted; i++) {
drivers/media/usb/dvb-usb-v2/usb_urb.c
83
dev_dbg(&stream->udev->dev, "%s: kill urb=%d\n", __func__, i);
drivers/media/usb/dvb-usb-v2/usb_urb.c
85
usb_kill_urb(stream->urb_list[i]);
drivers/media/usb/dvb-usb-v2/usb_urb.c
87
stream->urbs_submitted = 0;
drivers/media/usb/dvb-usb-v2/usb_urb.c
91
int usb_urb_submitv2(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb-v2/usb_urb.c
97
ret = usb_urb_reconfig(stream, props);
drivers/media/usb/dvb-usb-v2/zd1301.c
261
.stream = DVB_USB_STREAM_BULK(0x81, 6, 21 * 188),
drivers/media/usb/dvb-usb/a800.c
109
.stream = {
drivers/media/usb/dvb-usb/af9005.c
1041
.stream = {
drivers/media/usb/dvb-usb/az6027.c
1141
.stream = {
drivers/media/usb/dvb-usb/cinergyT2-core.c
218
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
1268
d->props.adapter[0].fe[0].stream.endpoint));
drivers/media/usb/dvb-usb/cxusb.c
1329
d->props.adapter[0].fe[0].stream.endpoint));
drivers/media/usb/dvb-usb/cxusb.c
1738
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
1790
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
1849
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
1917
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
1976
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2028
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2082
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2139
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2193
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2239
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2293
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
2348
.stream = {
drivers/media/usb/dvb-usb/cxusb.c
479
struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream;
drivers/media/usb/dvb-usb/dib0700_core.c
568
dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 188*nb_packet_buffer_size;
drivers/media/usb/dvb-usb/dib0700_core.c
572
dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = ((188*nb_packet_buffer_size+188/2)/512)*512;
drivers/media/usb/dvb-usb/dib0700_core.c
573
if (dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize < 512)
drivers/media/usb/dvb-usb/dib0700_core.c
574
dib0700_devices[i].adapter[adap_num].fe[0].stream.u.bulk.buffersize = 512;
drivers/media/usb/dvb-usb/dib0700_core.c
613
if ((adap->fe_adap[0].stream.props.endpoint != 2)
drivers/media/usb/dvb-usb/dib0700_core.c
614
&& (adap->fe_adap[0].stream.props.endpoint != 3)) {
drivers/media/usb/dvb-usb/dib0700_core.c
616
adap->fe_adap[0].stream.props.endpoint);
drivers/media/usb/dvb-usb/dib0700_core.c
619
adapt_nr = adap->fe_adap[0].stream.props.endpoint - 2;
drivers/media/usb/dvb-usb/dib0700_devices.c
4019
.stream = { \
drivers/media/usb/dvb-usb/dibusb-mb.c
219
.stream = {
drivers/media/usb/dvb-usb/dibusb-mb.c
309
.stream = {
drivers/media/usb/dvb-usb/dibusb-mb.c
378
.stream = {
drivers/media/usb/dvb-usb/dibusb-mb.c
440
.stream = {
drivers/media/usb/dvb-usb/dibusb-mc.c
88
.stream = {
drivers/media/usb/dvb-usb/digitv.c
326
.stream = {
drivers/media/usb/dvb-usb/dtt200u.c
208
.stream = {
drivers/media/usb/dvb-usb/dtt200u.c
260
.stream = {
drivers/media/usb/dvb-usb/dtt200u.c
312
.stream = {
drivers/media/usb/dvb-usb/dtt200u.c
364
.stream = {
drivers/media/usb/dvb-usb/dtv5100.c
194
.stream = {
drivers/media/usb/dvb-usb/dvb-usb-common.h
34
extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
drivers/media/usb/dvb-usb/dvb-usb-common.h
35
extern int usb_urb_exit(struct usb_data_stream *stream);
drivers/media/usb/dvb-usb/dvb-usb-common.h
36
extern int usb_urb_submit(struct usb_data_stream *stream);
drivers/media/usb/dvb-usb/dvb-usb-common.h
37
extern int usb_urb_kill(struct usb_data_stream *stream);
drivers/media/usb/dvb-usb/dvb-usb-dvb.c
32
usb_urb_kill(&adap->fe_adap[adap->active_fe].stream);
drivers/media/usb/dvb-usb/dvb-usb-dvb.c
81
usb_urb_submit(&adap->fe_adap[adap->active_fe].stream);
drivers/media/usb/dvb-usb/dvb-usb-urb.c
103
adap->fe_adap[i].stream.complete =
drivers/media/usb/dvb-usb/dvb-usb-urb.c
106
adap->fe_adap[i].stream.complete = dvb_usb_data_complete;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
107
adap->fe_adap[i].stream.user_priv = adap;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
108
ret = usb_urb_init(&adap->fe_adap[i].stream,
drivers/media/usb/dvb-usb/dvb-usb-urb.c
109
&adap->props.fe[i].stream);
drivers/media/usb/dvb-usb/dvb-usb-urb.c
120
usb_urb_exit(&adap->fe_adap[i].stream);
drivers/media/usb/dvb-usb/dvb-usb-urb.c
70
static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buffer, size_t length)
drivers/media/usb/dvb-usb/dvb-usb-urb.c
72
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
77
static void dvb_usb_data_complete_204(struct usb_data_stream *stream, u8 *buffer, size_t length)
drivers/media/usb/dvb-usb/dvb-usb-urb.c
79
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
84
static void dvb_usb_data_complete_raw(struct usb_data_stream *stream,
drivers/media/usb/dvb-usb/dvb-usb-urb.c
87
struct dvb_usb_adapter *adap = stream->user_priv;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
97
adap->fe_adap[i].stream.udev = adap->dev->udev;
drivers/media/usb/dvb-usb/dvb-usb-urb.c
99
adap->fe_adap[i].stream.complete =
drivers/media/usb/dvb-usb/dvb-usb.h
159
struct usb_data_stream_properties stream;
drivers/media/usb/dvb-usb/dvb-usb.h
377
struct usb_data_stream stream;
drivers/media/usb/dvb-usb/dw2102.c
2014
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2069
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2121
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2168
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2215
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2262
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2317
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2366
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2447
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2500
.stream = {
drivers/media/usb/dvb-usb/dw2102.c
2549
.stream = {
drivers/media/usb/dvb-usb/gp8psk.c
348
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1006
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1069
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1093
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1135
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1189
.stream = {
drivers/media/usb/dvb-usb/m920x.c
1246
.stream = {
drivers/media/usb/dvb-usb/m920x.c
351
int ep = adap->props.fe[0].stream.endpoint;
drivers/media/usb/dvb-usb/m920x.c
958
.stream = {
drivers/media/usb/dvb-usb/m920x.c
98
epi = d->adapter[i].props.fe[0].stream.endpoint - 0x81;
drivers/media/usb/dvb-usb/nova-t-usb2.c
197
.stream = {
drivers/media/usb/dvb-usb/opera1.c
532
.stream = {
drivers/media/usb/dvb-usb/pctv452e.c
1046
.stream = {
drivers/media/usb/dvb-usb/pctv452e.c
993
.stream = {
drivers/media/usb/dvb-usb/technisat-usb2.c
726
.stream = {
drivers/media/usb/dvb-usb/ttusb2.c
671
.stream = {
drivers/media/usb/dvb-usb/ttusb2.c
726
.stream = {
drivers/media/usb/dvb-usb/ttusb2.c
787
.stream = {
drivers/media/usb/dvb-usb/ttusb2.c
806
.stream = {
drivers/media/usb/dvb-usb/umt-010.c
113
.stream = {
drivers/media/usb/dvb-usb/usb-urb.c
100
usb_free_coherent(stream->udev, stream->buf_size,
drivers/media/usb/dvb-usb/usb-urb.c
101
stream->buf_list[stream->buf_num],
drivers/media/usb/dvb-usb/usb-urb.c
102
stream->dma_addr[stream->buf_num]);
drivers/media/usb/dvb-usb/usb-urb.c
106
stream->state &= ~USB_STATE_URB_BUF;
drivers/media/usb/dvb-usb/usb-urb.c
111
static int usb_allocate_stream_buffers(struct usb_data_stream *stream, int num, unsigned long size)
drivers/media/usb/dvb-usb/usb-urb.c
113
stream->buf_num = 0;
drivers/media/usb/dvb-usb/usb-urb.c
114
stream->buf_size = size;
drivers/media/usb/dvb-usb/usb-urb.c
118
for (stream->buf_num = 0; stream->buf_num < num; stream->buf_num++) {
drivers/media/usb/dvb-usb/usb-urb.c
119
deb_mem("allocating buffer %d\n",stream->buf_num);
drivers/media/usb/dvb-usb/usb-urb.c
120
if (( stream->buf_list[stream->buf_num] =
drivers/media/usb/dvb-usb/usb-urb.c
121
usb_alloc_coherent(stream->udev, size, GFP_KERNEL,
drivers/media/usb/dvb-usb/usb-urb.c
122
&stream->dma_addr[stream->buf_num]) ) == NULL) {
drivers/media/usb/dvb-usb/usb-urb.c
124
usb_free_stream_buffers(stream);
drivers/media/usb/dvb-usb/usb-urb.c
128
stream->buf_num,
drivers/media/usb/dvb-usb/usb-urb.c
129
stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]);
drivers/media/usb/dvb-usb/usb-urb.c
130
memset(stream->buf_list[stream->buf_num],0,size);
drivers/media/usb/dvb-usb/usb-urb.c
131
stream->state |= USB_STATE_URB_BUF;
drivers/media/usb/dvb-usb/usb-urb.c
138
static int usb_bulk_urb_init(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
142
if ((i = usb_allocate_stream_buffers(stream,stream->props.count,
drivers/media/usb/dvb-usb/usb-urb.c
143
stream->props.u.bulk.buffersize)) < 0)
drivers/media/usb/dvb-usb/usb-urb.c
147
for (i = 0; i < stream->props.count; i++) {
drivers/media/usb/dvb-usb/usb-urb.c
148
stream->urb_list[i] = usb_alloc_urb(0, GFP_KERNEL);
drivers/media/usb/dvb-usb/usb-urb.c
149
if (!stream->urb_list[i]) {
drivers/media/usb/dvb-usb/usb-urb.c
152
usb_free_urb(stream->urb_list[j]);
drivers/media/usb/dvb-usb/usb-urb.c
155
usb_fill_bulk_urb( stream->urb_list[i], stream->udev,
drivers/media/usb/dvb-usb/usb-urb.c
156
usb_rcvbulkpipe(stream->udev,stream->props.endpoint),
drivers/media/usb/dvb-usb/usb-urb.c
157
stream->buf_list[i],
drivers/media/usb/dvb-usb/usb-urb.c
158
stream->props.u.bulk.buffersize,
drivers/media/usb/dvb-usb/usb-urb.c
159
usb_urb_complete, stream);
drivers/media/usb/dvb-usb/usb-urb.c
161
stream->urb_list[i]->transfer_flags = URB_NO_TRANSFER_DMA_MAP;
drivers/media/usb/dvb-usb/usb-urb.c
162
stream->urb_list[i]->transfer_dma = stream->dma_addr[i];
drivers/media/usb/dvb-usb/usb-urb.c
163
stream->urbs_initialized++;
drivers/media/usb/dvb-usb/usb-urb.c
168
static int usb_isoc_urb_init(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
17
struct usb_data_stream *stream = urb->context;
drivers/media/usb/dvb-usb/usb-urb.c
172
if ((i = usb_allocate_stream_buffers(stream,stream->props.count,
drivers/media/usb/dvb-usb/usb-urb.c
173
stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0)
drivers/media/usb/dvb-usb/usb-urb.c
177
for (i = 0; i < stream->props.count; i++) {
drivers/media/usb/dvb-usb/usb-urb.c
181
stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_KERNEL);
drivers/media/usb/dvb-usb/usb-urb.c
182
if (!stream->urb_list[i]) {
drivers/media/usb/dvb-usb/usb-urb.c
185
usb_free_urb(stream->urb_list[j]);
drivers/media/usb/dvb-usb/usb-urb.c
189
urb = stream->urb_list[i];
drivers/media/usb/dvb-usb/usb-urb.c
191
urb->dev = stream->udev;
drivers/media/usb/dvb-usb/usb-urb.c
192
urb->context = stream;
drivers/media/usb/dvb-usb/usb-urb.c
194
urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint);
drivers/media/usb/dvb-usb/usb-urb.c
196
urb->interval = stream->props.u.isoc.interval;
drivers/media/usb/dvb-usb/usb-urb.c
197
urb->number_of_packets = stream->props.u.isoc.framesperurb;
drivers/media/usb/dvb-usb/usb-urb.c
198
urb->transfer_buffer_length = stream->buf_size;
drivers/media/usb/dvb-usb/usb-urb.c
199
urb->transfer_buffer = stream->buf_list[i];
drivers/media/usb/dvb-usb/usb-urb.c
200
urb->transfer_dma = stream->dma_addr[i];
drivers/media/usb/dvb-usb/usb-urb.c
202
for (j = 0; j < stream->props.u.isoc.framesperurb; j++) {
drivers/media/usb/dvb-usb/usb-urb.c
204
urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize;
drivers/media/usb/dvb-usb/usb-urb.c
205
frame_offset += stream->props.u.isoc.framesize;
drivers/media/usb/dvb-usb/usb-urb.c
208
stream->urbs_initialized++;
drivers/media/usb/dvb-usb/usb-urb.c
213
int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props)
drivers/media/usb/dvb-usb/usb-urb.c
215
if (stream == NULL || props == NULL)
drivers/media/usb/dvb-usb/usb-urb.c
218
memcpy(&stream->props, props, sizeof(*props));
drivers/media/usb/dvb-usb/usb-urb.c
220
usb_clear_halt(stream->udev,usb_rcvbulkpipe(stream->udev,stream->props.endpoint));
drivers/media/usb/dvb-usb/usb-urb.c
222
if (stream->complete == NULL) {
drivers/media/usb/dvb-usb/usb-urb.c
227
switch (stream->props.type) {
drivers/media/usb/dvb-usb/usb-urb.c
229
return usb_bulk_urb_init(stream);
drivers/media/usb/dvb-usb/usb-urb.c
231
return usb_isoc_urb_init(stream);
drivers/media/usb/dvb-usb/usb-urb.c
238
int usb_urb_exit(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
242
usb_urb_kill(stream);
drivers/media/usb/dvb-usb/usb-urb.c
244
for (i = 0; i < stream->urbs_initialized; i++) {
drivers/media/usb/dvb-usb/usb-urb.c
245
if (stream->urb_list[i] != NULL) {
drivers/media/usb/dvb-usb/usb-urb.c
248
usb_free_urb(stream->urb_list[i]);
drivers/media/usb/dvb-usb/usb-urb.c
251
stream->urbs_initialized = 0;
drivers/media/usb/dvb-usb/usb-urb.c
253
usb_free_stream_buffers(stream);
drivers/media/usb/dvb-usb/usb-urb.c
48
stream->complete(stream, b + urb->iso_frame_desc[i].offset, urb->iso_frame_desc[i].actual_length);
drivers/media/usb/dvb-usb/usb-urb.c
57
stream->complete(stream, b, urb->actual_length);
drivers/media/usb/dvb-usb/usb-urb.c
66
int usb_urb_kill(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
69
for (i = 0; i < stream->urbs_submitted; i++) {
drivers/media/usb/dvb-usb/usb-urb.c
73
usb_kill_urb(stream->urb_list[i]);
drivers/media/usb/dvb-usb/usb-urb.c
75
stream->urbs_submitted = 0;
drivers/media/usb/dvb-usb/usb-urb.c
79
int usb_urb_submit(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
82
for (i = 0; i < stream->urbs_initialized; i++) {
drivers/media/usb/dvb-usb/usb-urb.c
84
if ((ret = usb_submit_urb(stream->urb_list[i],GFP_ATOMIC))) {
drivers/media/usb/dvb-usb/usb-urb.c
86
usb_urb_kill(stream);
drivers/media/usb/dvb-usb/usb-urb.c
89
stream->urbs_submitted++;
drivers/media/usb/dvb-usb/usb-urb.c
94
static int usb_free_stream_buffers(struct usb_data_stream *stream)
drivers/media/usb/dvb-usb/usb-urb.c
96
if (stream->state & USB_STATE_URB_BUF) {
drivers/media/usb/dvb-usb/usb-urb.c
97
while (stream->buf_num) {
drivers/media/usb/dvb-usb/usb-urb.c
98
stream->buf_num--;
drivers/media/usb/dvb-usb/usb-urb.c
99
deb_mem("freeing buffer %d\n",stream->buf_num);
drivers/media/usb/dvb-usb/vp702x.c
405
.stream = {
drivers/media/usb/dvb-usb/vp7045.c
204
.stream = {
drivers/media/usb/gspca/t613.c
155
.stream =
drivers/media/usb/gspca/t613.c
177
.stream =
drivers/media/usb/gspca/t613.c
199
.stream =
drivers/media/usb/gspca/t613.c
216
.stream = {0x0b, 0x04, 0x0a, 0x28},
drivers/media/usb/gspca/t613.c
655
reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream);
drivers/media/usb/gspca/t613.c
792
reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream);
drivers/media/usb/gspca/t613.c
793
reg_w_buf(gspca_dev, sensor->stream, sizeof sensor->stream);
drivers/media/usb/gspca/t613.c
805
reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
drivers/media/usb/gspca/t613.c
806
sizeof sensor_data[sd->sensor].stream);
drivers/media/usb/gspca/t613.c
807
reg_w_buf(gspca_dev, sensor_data[sd->sensor].stream,
drivers/media/usb/gspca/t613.c
808
sizeof sensor_data[sd->sensor].stream);
drivers/media/usb/gspca/t613.c
90
const u8 stream[4];
drivers/media/usb/pvrusb2/pvrusb2-context.c
112
mp->video_stream.stream =
drivers/media/usb/pvrusb2/pvrusb2-context.c
295
if (!cp->stream) return;
drivers/media/usb/pvrusb2/pvrusb2-context.c
296
pvr2_stream_kill(cp->stream->stream);
drivers/media/usb/pvrusb2/pvrusb2-context.c
297
cp->stream->user = NULL;
drivers/media/usb/pvrusb2/pvrusb2-context.c
298
cp->stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-context.c
380
if (sp == cp->stream) break;
drivers/media/usb/pvrusb2/pvrusb2-context.c
388
cp->stream = sp;
drivers/media/usb/pvrusb2/pvrusb2-context.c
406
pvr2_ioread_setup(cp,sp->stream);
drivers/media/usb/pvrusb2/pvrusb2-context.h
23
struct pvr2_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-context.h
49
struct pvr2_context_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
104
if (adap->channel.stream) {
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
105
stream = adap->channel.stream->stream;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
107
stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
109
if (stream) {
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
111
pvr2_stream_set_callback(stream, NULL, NULL);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
112
pvr2_stream_kill(stream);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
113
pvr2_stream_set_buffer_count(stream, 0);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
133
struct pvr2_stream *stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
141
stream = adap->channel.stream->stream;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
149
pvr2_stream_set_callback(pvr->video_stream.stream,
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
152
ret = pvr2_stream_set_buffer_count(stream, PVR2_DVB_BUFFER_COUNT);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
156
bp = pvr2_stream_get_buffer(stream, idx);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
165
while ((bp = pvr2_stream_get_idle_buffer(stream)) != NULL) {
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
26
struct pvr2_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
31
stream = adap->channel.stream->stream;
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
36
bp = pvr2_stream_get_ready_buffer(stream);
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
63
(pvr2_stream_get_ready_count(stream) > 0) ||
drivers/media/usb/pvrusb2/pvrusb2-dvb.c
97
struct pvr2_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
109
(bp ? bp->stream : NULL),
drivers/media/usb/pvrusb2/pvrusb2-io.c
120
struct pvr2_stream *sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
154
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
171
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
197
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
221
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
256
bp->stream = sp;
drivers/media/usb/pvrusb2/pvrusb2-io.c
275
bp->stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-io.c
421
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
599
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
636
sp = bp->stream;
drivers/media/usb/pvrusb2/pvrusb2-io.c
644
bp->stream->i_bcount -= bp->max_count;
drivers/media/usb/pvrusb2/pvrusb2-io.c
646
bp->stream->i_bcount += bp->max_count;
drivers/media/usb/pvrusb2/pvrusb2-io.c
651
bp->stream->i_bcount, bp->stream->i_count);
drivers/media/usb/pvrusb2/pvrusb2-io.c
82
struct pvr2_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
131
pvr2_stream_kill(cp->stream);
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
151
if (!(cp->stream)) return 0;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
154
while ((bp = pvr2_stream_get_idle_buffer(cp->stream)) != NULL) {
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
183
return cp->stream;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
194
if (cp->stream) {
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
199
pvr2_stream_kill(cp->stream);
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
20
struct pvr2_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
200
if (pvr2_stream_get_buffer_count(cp->stream)) {
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
201
pvr2_stream_set_buffer_count(cp->stream,0);
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
203
cp->stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
221
cp->stream = sp;
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
268
cp->c_buf = pvr2_stream_get_ready_buffer(cp->stream);
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
367
if (!pvr2_stream_get_ready_count(cp->stream)) {
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
372
if (pvr2_stream_get_ready_count(cp->stream) < BUFFER_COUNT/2) {
drivers/media/usb/pvrusb2/pvrusb2-ioread.c
43
cp->stream = NULL;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1027
if (!fh->pdi->stream) {
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1036
fh->pdi->stream)) != 0) {
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1041
fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream);
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1048
sp = fh->pdi->stream->stream;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1175
dip->stream = &vp->channel.mc_head->video_stream;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
1188
dip->stream = &vp->channel.mc_head->video_stream;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
29
struct pvr2_context_stream *stream;
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
477
if (!fh->pdi->stream) {
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
494
if (!fh->pdi->stream) {
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
823
dip->stream = NULL;
drivers/media/usb/pwc/pwc-dec23.c
460
pdec->reservoir |= (*(pdec->stream)++) << (pdec->nbits_in_reservoir); \
drivers/media/usb/pwc/pwc-dec23.c
600
pdec->stream = rawyuv + 1; /* The first byte of the stream is skipped */
drivers/media/usb/pwc/pwc-dec23.h
30
const unsigned char *stream;
drivers/media/usb/uvc/uvc_ctrl.c
1930
dev_warn_ratelimited(&handle->stream->dev->intf->dev,
drivers/media/usb/uvc/uvc_ctrl.c
3401
uvc_pm_put(handle->stream->dev);
drivers/media/usb/uvc/uvc_debugfs.c
29
struct uvc_streaming *stream = inode->i_private;
drivers/media/usb/uvc/uvc_debugfs.c
36
buf->count = uvc_video_stats_dump(stream, buf->data, sizeof(buf->data));
drivers/media/usb/uvc/uvc_debugfs.c
72
void uvc_debugfs_init_stream(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_debugfs.c
74
struct usb_device *udev = stream->dev->udev;
drivers/media/usb/uvc/uvc_debugfs.c
81
udev->devnum, stream->intfnum);
drivers/media/usb/uvc/uvc_debugfs.c
83
stream->debugfs_dir = debugfs_create_dir(dir_name,
drivers/media/usb/uvc/uvc_debugfs.c
86
debugfs_create_file("stats", 0444, stream->debugfs_dir, stream,
drivers/media/usb/uvc/uvc_debugfs.c
90
void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_debugfs.c
92
debugfs_remove_recursive(stream->debugfs_dir);
drivers/media/usb/uvc/uvc_debugfs.c
93
stream->debugfs_dir = NULL;
drivers/media/usb/uvc/uvc_driver.c
172
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
174
list_for_each_entry(stream, &dev->streams, list) {
drivers/media/usb/uvc/uvc_driver.c
175
if (stream->header.bTerminalLink == id)
drivers/media/usb/uvc/uvc_driver.c
176
return stream;
drivers/media/usb/uvc/uvc_driver.c
186
static void uvc_stream_delete(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_driver.c
188
if (stream->async_wq)
drivers/media/usb/uvc/uvc_driver.c
189
destroy_workqueue(stream->async_wq);
drivers/media/usb/uvc/uvc_driver.c
191
usb_put_intf(stream->intf);
drivers/media/usb/uvc/uvc_driver.c
193
kfree(stream->formats);
drivers/media/usb/uvc/uvc_driver.c
194
kfree(stream->header.bmaControls);
drivers/media/usb/uvc/uvc_driver.c
195
kfree(stream);
drivers/media/usb/uvc/uvc_driver.c
1984
struct uvc_streaming *stream = video_get_drvdata(vdev);
drivers/media/usb/uvc/uvc_driver.c
1985
struct uvc_device *dev = stream->dev;
drivers/media/usb/uvc/uvc_driver.c
1995
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
1999
list_for_each_entry(stream, &dev->streams, list) {
drivers/media/usb/uvc/uvc_driver.c
2001
if (!video_is_registered(&stream->queue.vdev))
drivers/media/usb/uvc/uvc_driver.c
2004
vb2_video_unregister_device(&stream->queue.vdev);
drivers/media/usb/uvc/uvc_driver.c
2005
vb2_video_unregister_device(&stream->meta.queue.vdev);
drivers/media/usb/uvc/uvc_driver.c
201
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
2012
uvc_debugfs_cleanup_stream(stream);
drivers/media/usb/uvc/uvc_driver.c
2026
struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_driver.c
203
stream = kzalloc_obj(*stream);
drivers/media/usb/uvc/uvc_driver.c
204
if (stream == NULL)
drivers/media/usb/uvc/uvc_driver.c
2051
vdev->prio = &stream->chain->prio;
drivers/media/usb/uvc/uvc_driver.c
207
stream->dev = dev;
drivers/media/usb/uvc/uvc_driver.c
2078
video_set_drvdata(vdev, stream);
drivers/media/usb/uvc/uvc_driver.c
208
stream->intf = usb_get_intf(intf);
drivers/media/usb/uvc/uvc_driver.c
2082
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_driver.c
209
stream->intfnum = intf->cur_altsetting->desc.bInterfaceNumber;
drivers/media/usb/uvc/uvc_driver.c
2093
struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_driver.c
2098
ret = uvc_video_init(stream);
drivers/media/usb/uvc/uvc_driver.c
2100
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_driver.c
2105
if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
drivers/media/usb/uvc/uvc_driver.c
2106
stream->chain->caps |= V4L2_CAP_VIDEO_CAPTURE
drivers/media/usb/uvc/uvc_driver.c
2109
stream->chain->caps |= V4L2_CAP_VIDEO_OUTPUT;
drivers/media/usb/uvc/uvc_driver.c
2111
uvc_debugfs_init_stream(stream);
drivers/media/usb/uvc/uvc_driver.c
2114
return uvc_register_video_device(dev, stream, &stream->queue,
drivers/media/usb/uvc/uvc_driver.c
2115
stream->type, &uvc_fops,
drivers/media/usb/uvc/uvc_driver.c
212
stream->async_wq = alloc_workqueue("uvcvideo", WQ_UNBOUND | WQ_HIGHPRI,
drivers/media/usb/uvc/uvc_driver.c
2125
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
2133
stream = uvc_stream_for_terminal(dev, term);
drivers/media/usb/uvc/uvc_driver.c
2134
if (!stream) {
drivers/media/usb/uvc/uvc_driver.c
214
if (!stream->async_wq) {
drivers/media/usb/uvc/uvc_driver.c
2141
stream->chain = chain;
drivers/media/usb/uvc/uvc_driver.c
2142
ret = uvc_register_video(dev, stream);
drivers/media/usb/uvc/uvc_driver.c
215
uvc_stream_delete(stream);
drivers/media/usb/uvc/uvc_driver.c
2150
uvc_meta_register(stream);
drivers/media/usb/uvc/uvc_driver.c
2152
term->vdev = &stream->queue.vdev;
drivers/media/usb/uvc/uvc_driver.c
219
return stream;
drivers/media/usb/uvc/uvc_driver.c
2380
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
2392
list_for_each_entry(stream, &dev->streams, list) {
drivers/media/usb/uvc/uvc_driver.c
2393
if (stream->intf == intf)
drivers/media/usb/uvc/uvc_driver.c
2394
return uvc_video_suspend(stream);
drivers/media/usb/uvc/uvc_driver.c
2405
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_driver.c
2422
list_for_each_entry(stream, &dev->streams, list) {
drivers/media/usb/uvc/uvc_driver.c
2423
if (stream->intf == intf) {
drivers/media/usb/uvc/uvc_driver.c
2424
ret = uvc_video_resume(stream, reset);
drivers/media/usb/uvc/uvc_driver.c
2426
mutex_lock(&stream->queue.mutex);
drivers/media/usb/uvc/uvc_driver.c
2427
vb2_streamoff(&stream->queue.queue,
drivers/media/usb/uvc/uvc_driver.c
2428
stream->queue.queue.type);
drivers/media/usb/uvc/uvc_driver.c
2429
mutex_unlock(&stream->queue.mutex);
drivers/media/usb/uvc/uvc_isight.c
105
struct uvc_streaming *stream = uvc_urb->stream;
drivers/media/usb/uvc/uvc_isight.c
110
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_isight.c
126
ret = isight_decode(&stream->queue, buf,
drivers/media/usb/uvc/uvc_isight.c
136
buf = uvc_queue_next_buffer(&stream->queue,
drivers/media/usb/uvc/uvc_isight.c
44
struct uvc_streaming *stream = uvc_queue_to_stream(queue);
drivers/media/usb/uvc/uvc_isight.c
54
uvc_dbg(stream->dev, FRAME, "iSight header found\n");
drivers/media/usb/uvc/uvc_isight.c
61
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_isight.c
92
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_metadata.c
102
if (vb2_is_busy(&stream->meta.queue.queue))
drivers/media/usb/uvc/uvc_metadata.c
105
stream->meta.format = fmt->dataformat;
drivers/media/usb/uvc/uvc_metadata.c
114
struct uvc_streaming *stream = video_get_drvdata(vfh->vdev);
drivers/media/usb/uvc/uvc_metadata.c
115
struct uvc_device *dev = stream->dev;
drivers/media/usb/uvc/uvc_metadata.c
226
int uvc_meta_register(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_metadata.c
228
struct uvc_device *dev = stream->dev;
drivers/media/usb/uvc/uvc_metadata.c
229
struct uvc_video_queue *queue = &stream->meta.queue;
drivers/media/usb/uvc/uvc_metadata.c
231
stream->meta.format = V4L2_META_FMT_UVC;
drivers/media/usb/uvc/uvc_metadata.c
233
return uvc_register_video_device(dev, stream, queue,
drivers/media/usb/uvc/uvc_metadata.c
30
struct uvc_streaming *stream = video_get_drvdata(vfh->vdev);
drivers/media/usb/uvc/uvc_metadata.c
31
struct uvc_video_chain *chain = stream->chain;
drivers/media/usb/uvc/uvc_metadata.c
34
strscpy(cap->card, stream->dev->name, sizeof(cap->card));
drivers/media/usb/uvc/uvc_metadata.c
35
usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info));
drivers/media/usb/uvc/uvc_metadata.c
46
struct uvc_streaming *stream = video_get_drvdata(vfh->vdev);
drivers/media/usb/uvc/uvc_metadata.c
52
fmt->dataformat = stream->meta.format;
drivers/media/usb/uvc/uvc_metadata.c
62
struct uvc_streaming *stream = video_get_drvdata(vfh->vdev);
drivers/media/usb/uvc/uvc_metadata.c
63
struct uvc_device *dev = stream->dev;
drivers/media/usb/uvc/uvc_metadata.c
89
struct uvc_streaming *stream = video_get_drvdata(vfh->vdev);
drivers/media/usb/uvc/uvc_queue.c
163
struct uvc_streaming *stream = uvc_queue_to_stream(queue);
drivers/media/usb/uvc/uvc_queue.c
167
uvc_video_clock_update(stream, vbuf, buf);
drivers/media/usb/uvc/uvc_queue.c
173
struct uvc_streaming *stream = uvc_queue_to_stream(queue);
drivers/media/usb/uvc/uvc_queue.c
178
ret = uvc_pm_get(stream->dev);
drivers/media/usb/uvc/uvc_queue.c
184
ret = uvc_video_start_streaming(stream);
drivers/media/usb/uvc/uvc_queue.c
191
uvc_pm_put(stream->dev);
drivers/media/usb/uvc/uvc_queue.c
200
struct uvc_streaming *stream = uvc_queue_to_stream(queue);
drivers/media/usb/uvc/uvc_queue.c
206
uvc_pm_put(stream->dev);
drivers/media/usb/uvc/uvc_queue.c
81
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_queue.c
90
stream = uvc_queue_to_stream(queue);
drivers/media/usb/uvc/uvc_queue.c
91
size = stream->ctrl.dwMaxVideoFrameSize;
drivers/media/usb/uvc/uvc_status.c
25
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_status.c
33
list_for_each_entry(stream, &dev->streams, list) {
drivers/media/usb/uvc/uvc_status.c
34
if (stream->header.bTriggerSupport == 1 &&
drivers/media/usb/uvc/uvc_status.c
35
stream->header.bTriggerUsage == 1)
drivers/media/usb/uvc/uvc_v4l2.c
1157
ret = uvc_pm_get(handle->stream->dev);
drivers/media/usb/uvc/uvc_v4l2.c
1191
uvc_pm_put(handle->stream->dev);
drivers/media/usb/uvc/uvc_v4l2.c
1221
ret = uvc_pm_get(handle->stream->dev);
drivers/media/usb/uvc/uvc_v4l2.c
1225
uvc_pm_put(handle->stream->dev);
drivers/media/usb/uvc/uvc_v4l2.c
238
static int uvc_v4l2_try_format(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_v4l2.c
252
if (fmt->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
256
uvc_dbg(stream->dev, FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u\n",
drivers/media/usb/uvc/uvc_v4l2.c
265
for (i = 0; i < stream->nformats; ++i) {
drivers/media/usb/uvc/uvc_v4l2.c
266
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
271
if (i == stream->nformats) {
drivers/media/usb/uvc/uvc_v4l2.c
272
format = stream->def_format;
drivers/media/usb/uvc/uvc_v4l2.c
301
uvc_dbg(stream->dev, FORMAT, "Unsupported size %ux%u\n",
drivers/media/usb/uvc/uvc_v4l2.c
308
uvc_dbg(stream->dev, FORMAT,
drivers/media/usb/uvc/uvc_v4l2.c
332
if (stream->dev->quirks & UVC_QUIRK_PROBE_EXTRAFIELDS)
drivers/media/usb/uvc/uvc_v4l2.c
334
stream->ctrl.dwMaxVideoFrameSize;
drivers/media/usb/uvc/uvc_v4l2.c
337
ret = uvc_probe_video(stream, probe);
drivers/media/usb/uvc/uvc_v4l2.c
347
for (i = 0; i < stream->nformats; ++i) {
drivers/media/usb/uvc/uvc_v4l2.c
348
if (probe->bFormatIndex == stream->formats[i].index) {
drivers/media/usb/uvc/uvc_v4l2.c
349
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
354
if (i == stream->nformats)
drivers/media/usb/uvc/uvc_v4l2.c
355
uvc_dbg(stream->dev, FORMAT,
drivers/media/usb/uvc/uvc_v4l2.c
367
uvc_dbg(stream->dev, FORMAT,
drivers/media/usb/uvc/uvc_v4l2.c
393
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
397
if (fmt->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
400
format = stream->cur_format;
drivers/media/usb/uvc/uvc_v4l2.c
401
frame = stream->cur_frame;
drivers/media/usb/uvc/uvc_v4l2.c
411
fmt->fmt.pix.sizeimage = stream->ctrl.dwMaxVideoFrameSize;
drivers/media/usb/uvc/uvc_v4l2.c
423
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
429
if (fmt->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
432
ret = uvc_v4l2_try_format(stream, fmt, &probe, &format, &frame);
drivers/media/usb/uvc/uvc_v4l2.c
436
if (vb2_is_busy(&stream->queue.queue))
drivers/media/usb/uvc/uvc_v4l2.c
439
stream->ctrl = probe;
drivers/media/usb/uvc/uvc_v4l2.c
440
stream->cur_format = format;
drivers/media/usb/uvc/uvc_v4l2.c
441
stream->cur_frame = frame;
drivers/media/usb/uvc/uvc_v4l2.c
451
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
453
if (parm->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
456
numerator = stream->ctrl.dwFrameInterval;
drivers/media/usb/uvc/uvc_v4l2.c
461
parm->type = stream->type;
drivers/media/usb/uvc/uvc_v4l2.c
463
if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
drivers/media/usb/uvc/uvc_v4l2.c
484
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
493
if (parm->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
503
uvc_dbg(stream->dev, FORMAT, "Setting frame interval to %u/%u (%u)\n",
drivers/media/usb/uvc/uvc_v4l2.c
506
if (uvc_queue_streaming(&stream->queue))
drivers/media/usb/uvc/uvc_v4l2.c
509
format = stream->cur_format;
drivers/media/usb/uvc/uvc_v4l2.c
510
frame = stream->cur_frame;
drivers/media/usb/uvc/uvc_v4l2.c
511
probe = stream->ctrl;
drivers/media/usb/uvc/uvc_v4l2.c
519
if (&format->frames[i] == stream->cur_frame)
drivers/media/usb/uvc/uvc_v4l2.c
522
if (format->frames[i].wWidth != stream->cur_frame->wWidth ||
drivers/media/usb/uvc/uvc_v4l2.c
523
format->frames[i].wHeight != stream->cur_frame->wHeight)
drivers/media/usb/uvc/uvc_v4l2.c
538
ret = uvc_probe_video(stream, &probe);
drivers/media/usb/uvc/uvc_v4l2.c
542
stream->ctrl = probe;
drivers/media/usb/uvc/uvc_v4l2.c
543
stream->cur_frame = frame;
drivers/media/usb/uvc/uvc_v4l2.c
568
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvc_v4l2.c
571
stream = video_drvdata(file);
drivers/media/usb/uvc/uvc_v4l2.c
572
uvc_dbg(stream->dev, CALLS, "%s\n", __func__);
drivers/media/usb/uvc/uvc_v4l2.c
579
v4l2_fh_init(&handle->vfh, &stream->queue.vdev);
drivers/media/usb/uvc/uvc_v4l2.c
581
handle->chain = stream->chain;
drivers/media/usb/uvc/uvc_v4l2.c
582
handle->stream = stream;
drivers/media/usb/uvc/uvc_v4l2.c
590
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
592
uvc_dbg(stream->dev, CALLS, "%s\n", __func__);
drivers/media/usb/uvc/uvc_v4l2.c
607
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
610
strscpy(cap->card, handle->stream->dev->name, sizeof(cap->card));
drivers/media/usb/uvc/uvc_v4l2.c
611
usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info));
drivers/media/usb/uvc/uvc_v4l2.c
622
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
627
if (fmt->type != stream->type || fmt->index >= stream->nformats)
drivers/media/usb/uvc/uvc_v4l2.c
634
format = &stream->formats[fmt->index];
drivers/media/usb/uvc/uvc_v4l2.c
646
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
649
return uvc_v4l2_try_format(stream, fmt, &probe, NULL, NULL);
drivers/media/usb/uvc/uvc_v4l2.c
726
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
731
if (vb2_is_busy(&stream->queue.queue))
drivers/media/usb/uvc/uvc_v4l2.c
900
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
902
if (sel->type != stream->type)
drivers/media/usb/uvc/uvc_v4l2.c
908
if (stream->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
drivers/media/usb/uvc/uvc_v4l2.c
913
if (stream->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
drivers/media/usb/uvc/uvc_v4l2.c
922
sel->r.width = stream->cur_frame->wWidth;
drivers/media/usb/uvc/uvc_v4l2.c
923
sel->r.height = stream->cur_frame->wHeight;
drivers/media/usb/uvc/uvc_v4l2.c
932
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
939
for (i = 0; i < stream->nformats; i++) {
drivers/media/usb/uvc/uvc_v4l2.c
940
if (stream->formats[i].fcc == fsize->pixel_format) {
drivers/media/usb/uvc/uvc_v4l2.c
941
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_v4l2.c
972
struct uvc_streaming *stream = handle->stream;
drivers/media/usb/uvc/uvc_v4l2.c
980
for (i = 0; i < stream->nformats; i++) {
drivers/media/usb/uvc/uvc_v4l2.c
981
if (stream->formats[i].fcc == fival->pixel_format) {
drivers/media/usb/uvc/uvc_v4l2.c
982
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_video.c
1000
stream->stats.stream.min_sof = scr_sof;
drivers/media/usb/uvc/uvc_video.c
1001
if (scr_sof > stream->stats.stream.max_sof)
drivers/media/usb/uvc/uvc_video.c
1002
stream->stats.stream.max_sof = scr_sof;
drivers/media/usb/uvc/uvc_video.c
1006
if (stream->stats.frame.size == 0 && len > header_size)
drivers/media/usb/uvc/uvc_video.c
1007
stream->stats.frame.first_data = stream->stats.frame.nb_packets;
drivers/media/usb/uvc/uvc_video.c
1010
stream->stats.frame.size += len - header_size;
drivers/media/usb/uvc/uvc_video.c
1013
stream->stats.frame.nb_packets++;
drivers/media/usb/uvc/uvc_video.c
1015
stream->stats.frame.nb_empty++;
drivers/media/usb/uvc/uvc_video.c
1018
stream->stats.frame.nb_errors++;
drivers/media/usb/uvc/uvc_video.c
1021
static void uvc_video_stats_update(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
1023
struct uvc_stats_frame *frame = &stream->stats.frame;
drivers/media/usb/uvc/uvc_video.c
1025
uvc_dbg(stream->dev, STATS,
drivers/media/usb/uvc/uvc_video.c
1027
stream->sequence, frame->first_data,
drivers/media/usb/uvc/uvc_video.c
1035
stream->stats.stream.nb_frames++;
drivers/media/usb/uvc/uvc_video.c
1036
stream->stats.stream.nb_packets += stream->stats.frame.nb_packets;
drivers/media/usb/uvc/uvc_video.c
1037
stream->stats.stream.nb_empty += stream->stats.frame.nb_empty;
drivers/media/usb/uvc/uvc_video.c
1038
stream->stats.stream.nb_errors += stream->stats.frame.nb_errors;
drivers/media/usb/uvc/uvc_video.c
1039
stream->stats.stream.nb_invalid += stream->stats.frame.nb_invalid;
drivers/media/usb/uvc/uvc_video.c
1042
stream->stats.stream.nb_pts_early++;
drivers/media/usb/uvc/uvc_video.c
1044
stream->stats.stream.nb_pts_initial++;
drivers/media/usb/uvc/uvc_video.c
1046
stream->stats.stream.nb_pts_constant++;
drivers/media/usb/uvc/uvc_video.c
1048
stream->stats.stream.nb_scr_count_ok++;
drivers/media/usb/uvc/uvc_video.c
1050
stream->stats.stream.nb_scr_diffs_ok++;
drivers/media/usb/uvc/uvc_video.c
1052
memset(&stream->stats.frame, 0, sizeof(stream->stats.frame));
drivers/media/usb/uvc/uvc_video.c
1055
size_t uvc_video_stats_dump(struct uvc_streaming *stream, char *buf,
drivers/media/usb/uvc/uvc_video.c
1066
duration = ktime_ms_delta(stream->stats.stream.stop_ts,
drivers/media/usb/uvc/uvc_video.c
1067
stream->stats.stream.start_ts);
drivers/media/usb/uvc/uvc_video.c
1069
scr_sof_freq = stream->stats.stream.scr_sof_count * 1000
drivers/media/usb/uvc/uvc_video.c
1077
stream->stats.stream.nb_frames,
drivers/media/usb/uvc/uvc_video.c
1078
stream->stats.stream.nb_packets,
drivers/media/usb/uvc/uvc_video.c
1079
stream->stats.stream.nb_empty,
drivers/media/usb/uvc/uvc_video.c
1080
stream->stats.stream.nb_errors,
drivers/media/usb/uvc/uvc_video.c
1081
stream->stats.stream.nb_invalid);
drivers/media/usb/uvc/uvc_video.c
1084
stream->stats.stream.nb_pts_early,
drivers/media/usb/uvc/uvc_video.c
1085
stream->stats.stream.nb_pts_initial,
drivers/media/usb/uvc/uvc_video.c
1086
stream->stats.stream.nb_pts_constant);
drivers/media/usb/uvc/uvc_video.c
1089
stream->stats.stream.nb_scr_count_ok,
drivers/media/usb/uvc/uvc_video.c
1090
stream->stats.stream.nb_scr_diffs_ok);
drivers/media/usb/uvc/uvc_video.c
1093
stream->stats.stream.min_sof,
drivers/media/usb/uvc/uvc_video.c
1094
stream->stats.stream.max_sof,
drivers/media/usb/uvc/uvc_video.c
1100
static void uvc_video_stats_start(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
1102
memset(&stream->stats, 0, sizeof(stream->stats));
drivers/media/usb/uvc/uvc_video.c
1103
stream->stats.stream.min_sof = 2048;
drivers/media/usb/uvc/uvc_video.c
1106
static void uvc_video_stats_stop(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
1108
stream->stats.stream.stop_ts = ktime_get();
drivers/media/usb/uvc/uvc_video.c
1151
static int uvc_video_decode_start(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1164
stream->stats.frame.nb_invalid++;
drivers/media/usb/uvc/uvc_video.c
1175
if (stream->last_fid != fid) {
drivers/media/usb/uvc/uvc_video.c
1176
stream->sequence++;
drivers/media/usb/uvc/uvc_video.c
1177
if (stream->sequence)
drivers/media/usb/uvc/uvc_video.c
1178
uvc_video_stats_update(stream);
drivers/media/usb/uvc/uvc_video.c
1181
uvc_video_clock_decode(stream, buf, data, len);
drivers/media/usb/uvc/uvc_video.c
1182
uvc_video_stats_decode(stream, data, len);
drivers/media/usb/uvc/uvc_video.c
1189
stream->last_fid = fid;
drivers/media/usb/uvc/uvc_video.c
1195
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1210
if (fid == stream->last_fid) {
drivers/media/usb/uvc/uvc_video.c
1211
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1213
if ((stream->dev->quirks & UVC_QUIRK_STREAM_NO_FID) &&
drivers/media/usb/uvc/uvc_video.c
1215
stream->last_fid ^= UVC_STREAM_FID;
drivers/media/usb/uvc/uvc_video.c
1220
buf->buf.sequence = stream->sequence;
drivers/media/usb/uvc/uvc_video.c
1243
if (fid != stream->last_fid && buf->bytesused != 0) {
drivers/media/usb/uvc/uvc_video.c
1244
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1257
if (stream->dev->quirks & UVC_QUIRK_MJPEG_NO_EOF &&
drivers/media/usb/uvc/uvc_video.c
1258
(stream->cur_format->fcc == V4L2_PIX_FMT_MJPEG ||
drivers/media/usb/uvc/uvc_video.c
1259
stream->cur_format->fcc == V4L2_PIX_FMT_JPEG)) {
drivers/media/usb/uvc/uvc_video.c
1267
stream->last_fid ^= UVC_STREAM_FID;
drivers/media/usb/uvc/uvc_video.c
1272
stream->last_fid = fid;
drivers/media/usb/uvc/uvc_video.c
1278
struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
1280
if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
drivers/media/usb/uvc/uvc_video.c
1309
dev_err(&uvc_urb->stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
1337
uvc_dbg(uvc_urb->stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1346
static void uvc_video_decode_end(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1351
uvc_dbg(stream->dev, FRAME, "Frame complete (EOF found)\n");
drivers/media/usb/uvc/uvc_video.c
1353
uvc_dbg(stream->dev, FRAME, "EOF in empty payload\n");
drivers/media/usb/uvc/uvc_video.c
1355
if (stream->dev->quirks & UVC_QUIRK_STREAM_NO_FID)
drivers/media/usb/uvc/uvc_video.c
1356
stream->last_fid ^= UVC_STREAM_FID;
drivers/media/usb/uvc/uvc_video.c
1372
static int uvc_video_encode_header(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1377
| (stream->last_fid & UVC_STREAM_FID);
drivers/media/usb/uvc/uvc_video.c
1381
static int uvc_video_encode_data(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1384
struct uvc_video_queue *queue = &stream->queue;
drivers/media/usb/uvc/uvc_video.c
1391
nbytes = min(stream->bulk.max_payload_size - stream->bulk.payload_size,
drivers/media/usb/uvc/uvc_video.c
1415
static void uvc_video_decode_meta(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1443
if (stream->meta.format == V4L2_META_FMT_UVC)
drivers/media/usb/uvc/uvc_video.c
1447
!memcmp(scr, stream->clock.last_scr, 6)))
drivers/media/usb/uvc/uvc_video.c
1459
sof = usb_get_current_frame_number(stream->dev->udev);
drivers/media/usb/uvc/uvc_video.c
1465
memcpy(stream->clock.last_scr, scr, 6);
drivers/media/usb/uvc/uvc_video.c
1472
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1488
static void uvc_video_validate_buffer(const struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1491
if (stream->ctrl.dwMaxVideoFrameSize != buf->bytesused &&
drivers/media/usb/uvc/uvc_video.c
1492
!(stream->cur_format->flags & UVC_FMT_FLAG_COMPRESSED))
drivers/media/usb/uvc/uvc_video.c
1500
static void uvc_video_next_buffers(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1503
uvc_video_validate_buffer(stream, *video_buf);
drivers/media/usb/uvc/uvc_video.c
1516
*meta_buf = uvc_queue_next_buffer(&stream->meta.queue,
drivers/media/usb/uvc/uvc_video.c
1519
*video_buf = uvc_queue_next_buffer(&stream->queue, *video_buf);
drivers/media/usb/uvc/uvc_video.c
1526
struct uvc_streaming *stream = uvc_urb->stream;
drivers/media/usb/uvc/uvc_video.c
1532
uvc_dbg(stream->dev, FRAME,
drivers/media/usb/uvc/uvc_video.c
1544
ret = uvc_video_decode_start(stream, buf, mem,
drivers/media/usb/uvc/uvc_video.c
1547
uvc_video_next_buffers(stream, &buf, &meta_buf);
drivers/media/usb/uvc/uvc_video.c
1553
uvc_video_decode_meta(stream, meta_buf, mem, ret);
drivers/media/usb/uvc/uvc_video.c
1560
uvc_video_decode_end(stream, buf, mem,
drivers/media/usb/uvc/uvc_video.c
1564
uvc_video_next_buffers(stream, &buf, &meta_buf);
drivers/media/usb/uvc/uvc_video.c
1572
struct uvc_streaming *stream = uvc_urb->stream;
drivers/media/usb/uvc/uvc_video.c
1580
if (urb->actual_length == 0 && stream->bulk.header_size == 0)
drivers/media/usb/uvc/uvc_video.c
1585
stream->bulk.payload_size += len;
drivers/media/usb/uvc/uvc_video.c
1591
if (stream->bulk.header_size == 0 && !stream->bulk.skip_payload) {
drivers/media/usb/uvc/uvc_video.c
1593
ret = uvc_video_decode_start(stream, buf, mem, len);
drivers/media/usb/uvc/uvc_video.c
1595
uvc_video_next_buffers(stream, &buf, &meta_buf);
drivers/media/usb/uvc/uvc_video.c
1600
stream->bulk.skip_payload = 1;
drivers/media/usb/uvc/uvc_video.c
1602
memcpy(stream->bulk.header, mem, ret);
drivers/media/usb/uvc/uvc_video.c
1603
stream->bulk.header_size = ret;
drivers/media/usb/uvc/uvc_video.c
1605
uvc_video_decode_meta(stream, meta_buf, mem, ret);
drivers/media/usb/uvc/uvc_video.c
1619
if (!stream->bulk.skip_payload && buf != NULL)
drivers/media/usb/uvc/uvc_video.c
1627
stream->bulk.payload_size >= stream->bulk.max_payload_size) {
drivers/media/usb/uvc/uvc_video.c
1628
if (!stream->bulk.skip_payload && buf != NULL) {
drivers/media/usb/uvc/uvc_video.c
1629
uvc_video_decode_end(stream, buf, stream->bulk.header,
drivers/media/usb/uvc/uvc_video.c
163
static void uvc_fixup_video_ctrl(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1630
stream->bulk.payload_size);
drivers/media/usb/uvc/uvc_video.c
1632
uvc_video_next_buffers(stream, &buf, &meta_buf);
drivers/media/usb/uvc/uvc_video.c
1635
stream->bulk.header_size = 0;
drivers/media/usb/uvc/uvc_video.c
1636
stream->bulk.skip_payload = 0;
drivers/media/usb/uvc/uvc_video.c
1637
stream->bulk.payload_size = 0;
drivers/media/usb/uvc/uvc_video.c
1645
struct uvc_streaming *stream = uvc_urb->stream;
drivers/media/usb/uvc/uvc_video.c
1648
int len = stream->urb_size, ret;
drivers/media/usb/uvc/uvc_video.c
1656
if (stream->bulk.header_size == 0) {
drivers/media/usb/uvc/uvc_video.c
1657
ret = uvc_video_encode_header(stream, buf, mem, len);
drivers/media/usb/uvc/uvc_video.c
1658
stream->bulk.header_size = ret;
drivers/media/usb/uvc/uvc_video.c
1659
stream->bulk.payload_size += ret;
drivers/media/usb/uvc/uvc_video.c
1665
ret = uvc_video_encode_data(stream, buf, mem, len);
drivers/media/usb/uvc/uvc_video.c
1667
stream->bulk.payload_size += ret;
drivers/media/usb/uvc/uvc_video.c
1670
if (buf->bytesused == stream->queue.buf_used ||
drivers/media/usb/uvc/uvc_video.c
1671
stream->bulk.payload_size == stream->bulk.max_payload_size) {
drivers/media/usb/uvc/uvc_video.c
1672
if (buf->bytesused == stream->queue.buf_used) {
drivers/media/usb/uvc/uvc_video.c
1673
stream->queue.buf_used = 0;
drivers/media/usb/uvc/uvc_video.c
1675
buf->buf.sequence = ++stream->sequence;
drivers/media/usb/uvc/uvc_video.c
1676
uvc_queue_next_buffer(&stream->queue, buf);
drivers/media/usb/uvc/uvc_video.c
1677
stream->last_fid ^= UVC_STREAM_FID;
drivers/media/usb/uvc/uvc_video.c
1680
stream->bulk.header_size = 0;
drivers/media/usb/uvc/uvc_video.c
1681
stream->bulk.payload_size = 0;
drivers/media/usb/uvc/uvc_video.c
1684
urb->transfer_buffer_length = stream->urb_size - len;
drivers/media/usb/uvc/uvc_video.c
1690
struct uvc_streaming *stream = uvc_urb->stream;
drivers/media/usb/uvc/uvc_video.c
1691
struct uvc_video_queue *queue = &stream->queue;
drivers/media/usb/uvc/uvc_video.c
1692
struct uvc_video_queue *qmeta = &stream->meta.queue;
drivers/media/usb/uvc/uvc_video.c
1693
struct vb2_queue *vb2_qmeta = stream->meta.queue.vdev.queue;
drivers/media/usb/uvc/uvc_video.c
1704
dev_warn(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
1709
if (stream->frozen)
drivers/media/usb/uvc/uvc_video.c
1737
stream->decode(uvc_urb, buf, buf_meta);
drivers/media/usb/uvc/uvc_video.c
1743
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
1748
queue_work(stream->async_wq, &uvc_urb->work);
drivers/media/usb/uvc/uvc_video.c
1754
static void uvc_free_urb_buffers(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1757
struct usb_device *udev = stream->dev->udev;
drivers/media/usb/uvc/uvc_video.c
1760
for_each_uvc_urb(uvc_urb, stream) {
drivers/media/usb/uvc/uvc_video.c
1765
uvc_stream_dir(stream), uvc_urb->sgt);
drivers/media/usb/uvc/uvc_video.c
1770
stream->urb_size = 0;
drivers/media/usb/uvc/uvc_video.c
1773
static bool uvc_alloc_urb_buffer(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1777
struct usb_device *udev = stream->dev->udev;
drivers/media/usb/uvc/uvc_video.c
1781
uvc_stream_dir(stream),
drivers/media/usb/uvc/uvc_video.c
1797
static int uvc_alloc_urb_buffers(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1804
if (stream->urb_size)
drivers/media/usb/uvc/uvc_video.c
1805
return stream->urb_size / psize;
drivers/media/usb/uvc/uvc_video.c
182
if (usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k) &&
drivers/media/usb/uvc/uvc_video.c
1820
struct uvc_urb *uvc_urb = &stream->uvc_urb[i];
drivers/media/usb/uvc/uvc_video.c
1822
if (!uvc_alloc_urb_buffer(stream, uvc_urb, urb_size,
drivers/media/usb/uvc/uvc_video.c
1824
uvc_free_urb_buffers(stream, urb_size);
drivers/media/usb/uvc/uvc_video.c
1828
uvc_urb->stream = stream;
drivers/media/usb/uvc/uvc_video.c
1832
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
1835
stream->urb_size = urb_size;
drivers/media/usb/uvc/uvc_video.c
1840
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
1849
static void uvc_video_stop_transfer(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1854
uvc_video_stats_stop(stream);
drivers/media/usb/uvc/uvc_video.c
186
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
1861
for_each_uvc_urb(uvc_urb, stream)
drivers/media/usb/uvc/uvc_video.c
1864
flush_workqueue(stream->async_wq);
drivers/media/usb/uvc/uvc_video.c
1866
for_each_uvc_urb(uvc_urb, stream) {
drivers/media/usb/uvc/uvc_video.c
1872
uvc_free_urb_buffers(stream, stream->urb_size);
drivers/media/usb/uvc/uvc_video.c
1879
static int uvc_init_video_isoc(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1888
psize = usb_endpoint_max_periodic_payload(stream->dev->udev, ep);
drivers/media/usb/uvc/uvc_video.c
1889
size = stream->ctrl.dwMaxVideoFrameSize;
drivers/media/usb/uvc/uvc_video.c
1891
npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
drivers/media/usb/uvc/uvc_video.c
1897
for_each_uvc_urb(uvc_urb, stream) {
drivers/media/usb/uvc/uvc_video.c
1900
uvc_video_stop_transfer(stream, 1);
drivers/media/usb/uvc/uvc_video.c
1904
urb->dev = stream->dev->udev;
drivers/media/usb/uvc/uvc_video.c
1906
urb->pipe = usb_rcvisocpipe(stream->dev->udev,
drivers/media/usb/uvc/uvc_video.c
1932
static int uvc_init_video_bulk(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
194
for (i = 0; i < stream->nformats; ++i) {
drivers/media/usb/uvc/uvc_video.c
1942
size = stream->ctrl.dwMaxPayloadTransferSize;
drivers/media/usb/uvc/uvc_video.c
1943
stream->bulk.max_payload_size = size;
drivers/media/usb/uvc/uvc_video.c
1945
npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
drivers/media/usb/uvc/uvc_video.c
195
if (stream->formats[i].index == ctrl->bFormatIndex) {
drivers/media/usb/uvc/uvc_video.c
1952
pipe = usb_rcvbulkpipe(stream->dev->udev,
drivers/media/usb/uvc/uvc_video.c
1955
pipe = usb_sndbulkpipe(stream->dev->udev,
drivers/media/usb/uvc/uvc_video.c
1958
if (stream->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
drivers/media/usb/uvc/uvc_video.c
196
format = &stream->formats[i];
drivers/media/usb/uvc/uvc_video.c
1961
for_each_uvc_urb(uvc_urb, stream) {
drivers/media/usb/uvc/uvc_video.c
1964
uvc_video_stop_transfer(stream, 1);
drivers/media/usb/uvc/uvc_video.c
1968
usb_fill_bulk_urb(urb, stream->dev->udev, pipe, uvc_urb->buffer,
drivers/media/usb/uvc/uvc_video.c
1983
static int uvc_video_start_transfer(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
1986
struct usb_interface *intf = stream->intf;
drivers/media/usb/uvc/uvc_video.c
1992
stream->sequence = -1;
drivers/media/usb/uvc/uvc_video.c
1993
stream->last_fid = -1;
drivers/media/usb/uvc/uvc_video.c
1994
stream->bulk.header_size = 0;
drivers/media/usb/uvc/uvc_video.c
1995
stream->bulk.skip_payload = 0;
drivers/media/usb/uvc/uvc_video.c
1996
stream->bulk.payload_size = 0;
drivers/media/usb/uvc/uvc_video.c
1998
uvc_video_stats_start(stream);
drivers/media/usb/uvc/uvc_video.c
2005
int intfnum = stream->intfnum;
drivers/media/usb/uvc/uvc_video.c
2008
bandwidth = stream->ctrl.dwMaxPayloadTransferSize;
drivers/media/usb/uvc/uvc_video.c
2011
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
2015
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
2026
stream->header.bEndpointAddress);
drivers/media/usb/uvc/uvc_video.c
2031
psize = usb_endpoint_max_periodic_payload(stream->dev->udev, ep);
drivers/media/usb/uvc/uvc_video.c
2040
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
2045
uvc_dbg(stream->dev, VIDEO,
drivers/media/usb/uvc/uvc_video.c
2054
if (stream->dev->quirks & UVC_QUIRK_WAKE_AUTOSUSPEND) {
drivers/media/usb/uvc/uvc_video.c
2055
usb_set_interface(stream->dev->udev, intfnum,
drivers/media/usb/uvc/uvc_video.c
2057
usb_set_interface(stream->dev->udev, intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2060
ret = usb_set_interface(stream->dev->udev, intfnum, altsetting);
drivers/media/usb/uvc/uvc_video.c
2064
ret = uvc_init_video_isoc(stream, best_ep, gfp_flags);
drivers/media/usb/uvc/uvc_video.c
2068
stream->header.bEndpointAddress);
drivers/media/usb/uvc/uvc_video.c
2076
ret = uvc_init_video_bulk(stream, ep, gfp_flags);
drivers/media/usb/uvc/uvc_video.c
2083
for_each_uvc_urb(uvc_urb, stream) {
drivers/media/usb/uvc/uvc_video.c
2086
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
2089
uvc_video_stop_transfer(stream, 1);
drivers/media/usb/uvc/uvc_video.c
2098
if (stream->dev->quirks & UVC_QUIRK_RESTORE_CTRLS_ON_INIT)
drivers/media/usb/uvc/uvc_video.c
2099
uvc_ctrl_restore_values(stream->dev);
drivers/media/usb/uvc/uvc_video.c
2115
int uvc_video_suspend(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
2117
if (!uvc_queue_streaming(&stream->queue))
drivers/media/usb/uvc/uvc_video.c
2120
stream->frozen = 1;
drivers/media/usb/uvc/uvc_video.c
2121
uvc_video_stop_transfer(stream, 0);
drivers/media/usb/uvc/uvc_video.c
2122
usb_set_interface(stream->dev->udev, stream->intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2134
int uvc_video_resume(struct uvc_streaming *stream, int reset)
drivers/media/usb/uvc/uvc_video.c
2145
usb_set_interface(stream->dev->udev, stream->intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2147
stream->frozen = 0;
drivers/media/usb/uvc/uvc_video.c
2149
uvc_video_clock_reset(&stream->clock);
drivers/media/usb/uvc/uvc_video.c
2151
if (!uvc_queue_streaming(&stream->queue))
drivers/media/usb/uvc/uvc_video.c
2154
ret = uvc_commit_video(stream, &stream->ctrl);
drivers/media/usb/uvc/uvc_video.c
2158
return uvc_video_start_transfer(stream, GFP_NOIO);
drivers/media/usb/uvc/uvc_video.c
216
stream->dev->uvc_version < 0x0110))
drivers/media/usb/uvc/uvc_video.c
2175
int uvc_video_init(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
2177
struct uvc_streaming_control *probe = &stream->ctrl;
drivers/media/usb/uvc/uvc_video.c
2184
if (stream->nformats == 0) {
drivers/media/usb/uvc/uvc_video.c
2185
dev_info(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
2190
atomic_set(&stream->active, 0);
drivers/media/usb/uvc/uvc_video.c
2198
usb_set_interface(stream->dev->udev, stream->intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2206
if (uvc_get_video_ctrl(stream, probe, 1, UVC_GET_DEF) == 0)
drivers/media/usb/uvc/uvc_video.c
2207
uvc_set_video_ctrl(stream, probe, 1);
drivers/media/usb/uvc/uvc_video.c
2215
ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR);
drivers/media/usb/uvc/uvc_video.c
2225
usb_match_one_id(stream->dev->intf, &elgato_cam_link_4k)) {
drivers/media/usb/uvc/uvc_video.c
2226
dev_err(&stream->intf->dev, "Elgato Cam Link 4K firmware crash detected\n");
drivers/media/usb/uvc/uvc_video.c
2227
dev_err(&stream->intf->dev, "Resetting the device, unplug and replug to recover\n");
drivers/media/usb/uvc/uvc_video.c
2228
usb_reset_device(stream->dev->udev);
drivers/media/usb/uvc/uvc_video.c
2238
for (i = stream->nformats; i > 0; --i) {
drivers/media/usb/uvc/uvc_video.c
2239
format = &stream->formats[i-1];
drivers/media/usb/uvc/uvc_video.c
2245
dev_info(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
2265
stream->def_format = format;
drivers/media/usb/uvc/uvc_video.c
2266
stream->cur_format = format;
drivers/media/usb/uvc/uvc_video.c
2267
stream->cur_frame = frame;
drivers/media/usb/uvc/uvc_video.c
2270
if (stream->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
drivers/media/usb/uvc/uvc_video.c
2271
if (stream->dev->quirks & UVC_QUIRK_BUILTIN_ISIGHT)
drivers/media/usb/uvc/uvc_video.c
2272
stream->decode = uvc_video_decode_isight;
drivers/media/usb/uvc/uvc_video.c
2273
else if (stream->intf->num_altsetting > 1)
drivers/media/usb/uvc/uvc_video.c
2274
stream->decode = uvc_video_decode_isoc;
drivers/media/usb/uvc/uvc_video.c
2276
stream->decode = uvc_video_decode_bulk;
drivers/media/usb/uvc/uvc_video.c
2278
if (stream->intf->num_altsetting == 1)
drivers/media/usb/uvc/uvc_video.c
2279
stream->decode = uvc_video_encode_bulk;
drivers/media/usb/uvc/uvc_video.c
2281
dev_info(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
2288
for_each_uvc_urb(uvc_urb, stream)
drivers/media/usb/uvc/uvc_video.c
2294
int uvc_video_start_streaming(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
2298
ret = uvc_video_clock_init(&stream->clock);
drivers/media/usb/uvc/uvc_video.c
230
stream->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH &&
drivers/media/usb/uvc/uvc_video.c
2303
ret = uvc_commit_video(stream, &stream->ctrl);
drivers/media/usb/uvc/uvc_video.c
2307
ret = uvc_video_start_transfer(stream, GFP_KERNEL);
drivers/media/usb/uvc/uvc_video.c
231
stream->intf->num_altsetting > 1) {
drivers/media/usb/uvc/uvc_video.c
2314
usb_set_interface(stream->dev->udev, stream->intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2316
uvc_video_clock_cleanup(&stream->clock);
drivers/media/usb/uvc/uvc_video.c
2321
void uvc_video_stop_streaming(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
2323
uvc_video_stop_transfer(stream, 1);
drivers/media/usb/uvc/uvc_video.c
2325
if (stream->intf->num_altsetting > 1) {
drivers/media/usb/uvc/uvc_video.c
2326
usb_set_interface(stream->dev->udev, stream->intfnum, 0);
drivers/media/usb/uvc/uvc_video.c
2334
unsigned int epnum = stream->header.bEndpointAddress
drivers/media/usb/uvc/uvc_video.c
2336
unsigned int dir = stream->header.bEndpointAddress
drivers/media/usb/uvc/uvc_video.c
2340
pipe = usb_sndbulkpipe(stream->dev->udev, epnum) | dir;
drivers/media/usb/uvc/uvc_video.c
2341
usb_clear_halt(stream->dev->udev, pipe);
drivers/media/usb/uvc/uvc_video.c
2344
uvc_video_clock_cleanup(&stream->clock);
drivers/media/usb/uvc/uvc_video.c
249
if (stream->dev->udev->speed >= USB_SPEED_HIGH)
drivers/media/usb/uvc/uvc_video.c
266
if (stream->intf->num_altsetting > 1 &&
drivers/media/usb/uvc/uvc_video.c
267
ctrl->dwMaxPayloadTransferSize > stream->maxpsize) {
drivers/media/usb/uvc/uvc_video.c
268
dev_warn_ratelimited(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
271
stream->maxpsize);
drivers/media/usb/uvc/uvc_video.c
272
ctrl->dwMaxPayloadTransferSize = stream->maxpsize;
drivers/media/usb/uvc/uvc_video.c
276
static size_t uvc_video_ctrl_size(struct uvc_streaming *stream)
drivers/media/usb/uvc/uvc_video.c
282
if (stream->dev->uvc_version < 0x0110)
drivers/media/usb/uvc/uvc_video.c
284
else if (stream->dev->uvc_version < 0x0150)
drivers/media/usb/uvc/uvc_video.c
290
static int uvc_get_video_ctrl(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
293
u16 size = uvc_video_ctrl_size(stream);
drivers/media/usb/uvc/uvc_video.c
297
if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) &&
drivers/media/usb/uvc/uvc_video.c
305
ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum,
drivers/media/usb/uvc/uvc_video.c
315
uvc_warn_once(stream->dev, UVC_WARN_MINMAX, "UVC non "
drivers/media/usb/uvc/uvc_video.c
328
uvc_warn_once(stream->dev, UVC_WARN_PROBE_DEF, "UVC non "
drivers/media/usb/uvc/uvc_video.c
334
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
361
ctrl->dwClockFrequency = stream->dev->clock_frequency;
drivers/media/usb/uvc/uvc_video.c
373
uvc_fixup_video_ctrl(stream, ctrl);
drivers/media/usb/uvc/uvc_video.c
381
static int uvc_set_video_ctrl(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
384
u16 size = uvc_video_ctrl_size(stream);
drivers/media/usb/uvc/uvc_video.c
412
ret = __uvc_query_ctrl(stream->dev, UVC_SET_CUR, 0, stream->intfnum,
drivers/media/usb/uvc/uvc_video.c
416
dev_err(&stream->intf->dev,
drivers/media/usb/uvc/uvc_video.c
426
int uvc_probe_video(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
441
ret = uvc_set_video_ctrl(stream, probe, 1);
drivers/media/usb/uvc/uvc_video.c
446
if (!(stream->dev->quirks & UVC_QUIRK_PROBE_MINMAX)) {
drivers/media/usb/uvc/uvc_video.c
447
ret = uvc_get_video_ctrl(stream, &probe_min, 1, UVC_GET_MIN);
drivers/media/usb/uvc/uvc_video.c
450
ret = uvc_get_video_ctrl(stream, &probe_max, 1, UVC_GET_MAX);
drivers/media/usb/uvc/uvc_video.c
458
ret = uvc_set_video_ctrl(stream, probe, 1);
drivers/media/usb/uvc/uvc_video.c
461
ret = uvc_get_video_ctrl(stream, probe, 1, UVC_GET_CUR);
drivers/media/usb/uvc/uvc_video.c
465
if (stream->intf->num_altsetting == 1)
drivers/media/usb/uvc/uvc_video.c
468
if (probe->dwMaxPayloadTransferSize <= stream->maxpsize)
drivers/media/usb/uvc/uvc_video.c
471
if (stream->dev->quirks & UVC_QUIRK_PROBE_MINMAX) {
drivers/media/usb/uvc/uvc_video.c
487
static int uvc_commit_video(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
490
return uvc_set_video_ctrl(stream, probe, 0);
drivers/media/usb/uvc/uvc_video.c
541
uvc_video_clock_decode(struct uvc_streaming *stream, struct uvc_buffer *buf,
drivers/media/usb/uvc/uvc_video.c
593
if (sample.dev_sof == stream->clock.last_sof)
drivers/media/usb/uvc/uvc_video.c
624
sample.host_sof = usb_get_current_frame_number(stream->dev->udev);
drivers/media/usb/uvc/uvc_video.c
633
if (stream->dev->quirks & UVC_QUIRK_INVALID_DEVICE_SOF)
drivers/media/usb/uvc/uvc_video.c
658
if (stream->clock.sof_offset == (u16)-1) {
drivers/media/usb/uvc/uvc_video.c
661
stream->clock.sof_offset = delta_sof;
drivers/media/usb/uvc/uvc_video.c
663
stream->clock.sof_offset = 0;
drivers/media/usb/uvc/uvc_video.c
666
sample.dev_sof = (sample.dev_sof + stream->clock.sof_offset) & 2047;
drivers/media/usb/uvc/uvc_video.c
667
uvc_video_clock_add_sample(&stream->clock, &sample);
drivers/media/usb/uvc/uvc_video.c
668
stream->clock.last_sof = sample.dev_sof;
drivers/media/usb/uvc/uvc_video.c
788
void uvc_video_clock_update(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
792
struct uvc_clock *clock = &stream->clock;
drivers/media/usb/uvc/uvc_video.c
853
uvc_dbg(stream->dev, CLOCK,
drivers/media/usb/uvc/uvc_video.c
855
stream->dev->name, buf->pts,
drivers/media/usb/uvc/uvc_video.c
889
uvc_dbg(stream->dev, CLOCK,
drivers/media/usb/uvc/uvc_video.c
891
stream->dev->name,
drivers/media/usb/uvc/uvc_video.c
908
static void uvc_video_stats_decode(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvc_video.c
918
if (stream->stats.stream.nb_frames == 0 &&
drivers/media/usb/uvc/uvc_video.c
919
stream->stats.frame.nb_packets == 0)
drivers/media/usb/uvc/uvc_video.c
920
stream->stats.stream.start_ts = ktime_get();
drivers/media/usb/uvc/uvc_video.c
943
stream->stats.frame.nb_invalid++;
drivers/media/usb/uvc/uvc_video.c
957
if (has_pts && stream->stats.frame.nb_pts) {
drivers/media/usb/uvc/uvc_video.c
958
if (stream->stats.frame.pts != pts) {
drivers/media/usb/uvc/uvc_video.c
959
stream->stats.frame.nb_pts_diffs++;
drivers/media/usb/uvc/uvc_video.c
960
stream->stats.frame.last_pts_diff =
drivers/media/usb/uvc/uvc_video.c
961
stream->stats.frame.nb_packets;
drivers/media/usb/uvc/uvc_video.c
966
stream->stats.frame.nb_pts++;
drivers/media/usb/uvc/uvc_video.c
967
stream->stats.frame.pts = pts;
drivers/media/usb/uvc/uvc_video.c
974
if (stream->stats.frame.size == 0) {
drivers/media/usb/uvc/uvc_video.c
976
stream->stats.frame.has_initial_pts = has_pts;
drivers/media/usb/uvc/uvc_video.c
978
stream->stats.frame.has_early_pts = true;
drivers/media/usb/uvc/uvc_video.c
982
if (has_scr && stream->stats.frame.nb_scr) {
drivers/media/usb/uvc/uvc_video.c
983
if (stream->stats.frame.scr_stc != scr_stc)
drivers/media/usb/uvc/uvc_video.c
984
stream->stats.frame.nb_scr_diffs++;
drivers/media/usb/uvc/uvc_video.c
989
if (stream->stats.stream.nb_frames > 0 ||
drivers/media/usb/uvc/uvc_video.c
990
stream->stats.frame.nb_scr > 0)
drivers/media/usb/uvc/uvc_video.c
991
stream->stats.stream.scr_sof_count +=
drivers/media/usb/uvc/uvc_video.c
992
(scr_sof - stream->stats.stream.scr_sof) % 2048;
drivers/media/usb/uvc/uvc_video.c
993
stream->stats.stream.scr_sof = scr_sof;
drivers/media/usb/uvc/uvc_video.c
995
stream->stats.frame.nb_scr++;
drivers/media/usb/uvc/uvc_video.c
996
stream->stats.frame.scr_stc = scr_stc;
drivers/media/usb/uvc/uvc_video.c
997
stream->stats.frame.scr_sof = scr_sof;
drivers/media/usb/uvc/uvc_video.c
999
if (scr_sof < stream->stats.stream.min_sof)
drivers/media/usb/uvc/uvcvideo.h
443
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvcvideo.h
506
struct uvc_stats_stream stream;
drivers/media/usb/uvc/uvcvideo.h
539
return uvc_urb - &uvc_urb->stream->uvc_urb[0];
drivers/media/usb/uvc/uvcvideo.h
632
struct uvc_streaming *stream;
drivers/media/usb/uvc/uvcvideo.h
720
int uvc_video_init(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
721
int uvc_video_suspend(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
722
int uvc_video_resume(struct uvc_streaming *stream, int reset);
drivers/media/usb/uvc/uvcvideo.h
723
int uvc_video_start_streaming(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
724
void uvc_video_stop_streaming(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
725
int uvc_probe_video(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvcvideo.h
729
void uvc_video_clock_update(struct uvc_streaming *stream,
drivers/media/usb/uvc/uvcvideo.h
733
int uvc_meta_register(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
736
struct uvc_streaming *stream,
drivers/media/usb/uvc/uvcvideo.h
809
void uvc_debugfs_init_stream(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
810
void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream);
drivers/media/usb/uvc/uvcvideo.h
812
size_t uvc_video_stats_dump(struct uvc_streaming *stream, char *buf,
drivers/media/v4l2-core/v4l2-jpeg.c
182
static int jpeg_get_byte(struct jpeg_stream *stream)
drivers/media/v4l2-core/v4l2-jpeg.c
184
if (stream->curr >= stream->end)
drivers/media/v4l2-core/v4l2-jpeg.c
187
return *stream->curr++;
drivers/media/v4l2-core/v4l2-jpeg.c
191
static int jpeg_get_word_be(struct jpeg_stream *stream)
drivers/media/v4l2-core/v4l2-jpeg.c
195
if (stream->curr + sizeof(__be16) > stream->end)
drivers/media/v4l2-core/v4l2-jpeg.c
198
word = get_unaligned_be16(stream->curr);
drivers/media/v4l2-core/v4l2-jpeg.c
199
stream->curr += sizeof(__be16);
drivers/media/v4l2-core/v4l2-jpeg.c
204
static int jpeg_skip(struct jpeg_stream *stream, size_t len)
drivers/media/v4l2-core/v4l2-jpeg.c
206
if (stream->curr + len > stream->end)
drivers/media/v4l2-core/v4l2-jpeg.c
209
stream->curr += len;
drivers/media/v4l2-core/v4l2-jpeg.c
214
static int jpeg_next_marker(struct jpeg_stream *stream)
drivers/media/v4l2-core/v4l2-jpeg.c
219
while ((byte = jpeg_get_byte(stream)) >= 0) {
drivers/media/v4l2-core/v4l2-jpeg.c
230
static int jpeg_reference_segment(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
235
if (stream->curr + sizeof(__be16) > stream->end)
drivers/media/v4l2-core/v4l2-jpeg.c
238
len = get_unaligned_be16(stream->curr);
drivers/media/v4l2-core/v4l2-jpeg.c
239
if (stream->curr + len > stream->end)
drivers/media/v4l2-core/v4l2-jpeg.c
242
segment->start = stream->curr;
drivers/media/v4l2-core/v4l2-jpeg.c
271
static int jpeg_parse_frame_header(struct jpeg_stream *stream, u16 sof_marker,
drivers/media/v4l2-core/v4l2-jpeg.c
274
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
287
p = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
297
y = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
303
x = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
309
nf = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
330
c = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
334
h_v = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
349
tq = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
361
return jpeg_skip(stream, len - 2);
drivers/media/v4l2-core/v4l2-jpeg.c
367
static int jpeg_parse_scan_header(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
371
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
383
ns = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
395
cs = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
399
td_ta = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
416
return jpeg_skip(stream, skip);
drivers/media/v4l2-core/v4l2-jpeg.c
420
static int jpeg_parse_quantization_tables(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
424
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
436
int pq_tq = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
457
qk = stream->curr;
drivers/media/v4l2-core/v4l2-jpeg.c
458
ret = jpeg_skip(stream, pq ? 128 : 64);
drivers/media/v4l2-core/v4l2-jpeg.c
474
static int jpeg_parse_huffman_tables(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
478
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
488
int tc_th = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
506
table = stream->curr;
drivers/media/v4l2-core/v4l2-jpeg.c
511
li = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
518
ret = jpeg_skip(stream, mt);
drivers/media/v4l2-core/v4l2-jpeg.c
524
tables[(tc << 1) | th].length = stream->curr - table;
drivers/media/v4l2-core/v4l2-jpeg.c
528
return jpeg_skip(stream, len - 2);
drivers/media/v4l2-core/v4l2-jpeg.c
532
static int jpeg_parse_restart_interval(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
535
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
543
ri = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
552
static int jpeg_skip_segment(struct jpeg_stream *stream)
drivers/media/v4l2-core/v4l2-jpeg.c
554
int len = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
561
return jpeg_skip(stream, len - 2);
drivers/media/v4l2-core/v4l2-jpeg.c
565
static int jpeg_parse_app14_data(struct jpeg_stream *stream,
drivers/media/v4l2-core/v4l2-jpeg.c
572
lp = jpeg_get_word_be(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
577
if (stream->curr + 6 > stream->end ||
drivers/media/v4l2-core/v4l2-jpeg.c
578
strncmp(stream->curr, "Adobe\0", 6))
drivers/media/v4l2-core/v4l2-jpeg.c
579
return jpeg_skip(stream, lp - 2);
drivers/media/v4l2-core/v4l2-jpeg.c
582
ret = jpeg_skip(stream, 11);
drivers/media/v4l2-core/v4l2-jpeg.c
586
ret = jpeg_get_byte(stream);
drivers/media/v4l2-core/v4l2-jpeg.c
594
return jpeg_skip(stream, skip);
drivers/media/v4l2-core/v4l2-jpeg.c
612
struct jpeg_stream stream;
drivers/media/v4l2-core/v4l2-jpeg.c
616
stream.curr = buf;
drivers/media/v4l2-core/v4l2-jpeg.c
617
stream.end = stream.curr + len;
drivers/media/v4l2-core/v4l2-jpeg.c
623
if (jpeg_get_word_be(&stream) != SOI)
drivers/media/v4l2-core/v4l2-jpeg.c
630
while ((marker = jpeg_next_marker(&stream)) >= 0) {
drivers/media/v4l2-core/v4l2-jpeg.c
634
ret = jpeg_reference_segment(&stream, &out->sof);
drivers/media/v4l2-core/v4l2-jpeg.c
637
ret = jpeg_parse_frame_header(&stream, marker,
drivers/media/v4l2-core/v4l2-jpeg.c
652
ret = jpeg_reference_segment(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
657
ret = jpeg_skip_segment(&stream);
drivers/media/v4l2-core/v4l2-jpeg.c
660
ret = jpeg_parse_huffman_tables(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
664
ret = jpeg_reference_segment(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
669
ret = jpeg_skip_segment(&stream);
drivers/media/v4l2-core/v4l2-jpeg.c
672
ret = jpeg_parse_quantization_tables(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
677
ret = jpeg_parse_restart_interval(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
681
ret = jpeg_parse_app14_data(&stream,
drivers/media/v4l2-core/v4l2-jpeg.c
685
ret = jpeg_reference_segment(&stream, &out->sos);
drivers/media/v4l2-core/v4l2-jpeg.c
688
ret = jpeg_parse_scan_header(&stream, out->scan);
drivers/media/v4l2-core/v4l2-jpeg.c
693
out->ecs_offset = stream.curr - (u8 *)buf;
drivers/media/v4l2-core/v4l2-jpeg.c
704
ret = jpeg_skip_segment(&stream);
drivers/media/v4l2-core/v4l2-subdev.c
1322
v4l2_subdev_link_validate_get_format(struct media_pad *pad, u32 stream,
drivers/media/v4l2-core/v4l2-subdev.c
1334
fmt->stream = stream;
drivers/media/v4l2-core/v4l2-subdev.c
1423
u32 stream;
drivers/media/v4l2-core/v4l2-subdev.c
1448
for (stream = 0; stream < sizeof(sink_streams_mask) * 8; ++stream) {
drivers/media/v4l2-core/v4l2-subdev.c
1451
if (!(sink_streams_mask & BIT_ULL(stream)))
drivers/media/v4l2-core/v4l2-subdev.c
1455
link->source->entity->name, link->source->index, stream,
drivers/media/v4l2-core/v4l2-subdev.c
1456
link->sink->entity->name, link->sink->index, stream);
drivers/media/v4l2-core/v4l2-subdev.c
1458
ret = v4l2_subdev_link_validate_get_format(link->source, stream,
drivers/media/v4l2-core/v4l2-subdev.c
1464
stream);
drivers/media/v4l2-core/v4l2-subdev.c
1468
ret = v4l2_subdev_link_validate_get_format(link->sink, stream,
drivers/media/v4l2-core/v4l2-subdev.c
1474
stream);
drivers/media/v4l2-core/v4l2-subdev.c
1736
unsigned int pad, u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
1745
if (stream)
drivers/media/v4l2-core/v4l2-subdev.c
1760
stream_configs->configs[i].stream == stream)
drivers/media/v4l2-core/v4l2-subdev.c
1770
u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
1779
if (stream)
drivers/media/v4l2-core/v4l2-subdev.c
1794
stream_configs->configs[i].stream == stream)
drivers/media/v4l2-core/v4l2-subdev.c
1804
unsigned int pad, u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
1813
if (stream)
drivers/media/v4l2-core/v4l2-subdev.c
1828
stream_configs->configs[i].stream == stream)
drivers/media/v4l2-core/v4l2-subdev.c
1838
unsigned int pad, u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
1849
if (stream)
drivers/media/v4l2-core/v4l2-subdev.c
1864
stream_configs->configs[i].stream == stream)
drivers/media/v4l2-core/v4l2-subdev.c
1906
new_configs.configs[idx].stream = route->sink_stream;
drivers/media/v4l2-core/v4l2-subdev.c
1911
new_configs.configs[idx].stream = route->source_stream;
drivers/media/v4l2-core/v4l2-subdev.c
1927
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/media/v4l2-core/v4l2-subdev.c
1943
interval = v4l2_subdev_state_get_interval(state, fi->pad, fi->stream);
drivers/media/v4l2-core/v4l2-subdev.c
2034
u32 pad, u32 stream, u32 *other_pad,
drivers/media/v4l2-core/v4l2-subdev.c
2043
route->source_stream == stream) {
drivers/media/v4l2-core/v4l2-subdev.c
2051
if (route->sink_pad == pad && route->sink_stream == stream) {
drivers/media/v4l2-core/v4l2-subdev.c
2066
u32 pad, u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
2072
pad, stream,
drivers/media/v4l2-core/v4l2-subdev.c
215
u32 which, u32 pad, u32 stream)
drivers/media/v4l2-core/v4l2-subdev.c
219
if (!v4l2_subdev_state_get_format(state, pad, stream))
drivers/media/v4l2-core/v4l2-subdev.c
2269
if (cfg->pad != pad || !(streams_mask & BIT_ULL(cfg->stream)))
drivers/media/v4l2-core/v4l2-subdev.c
227
if (stream != 0)
drivers/media/v4l2-core/v4l2-subdev.c
2272
*found_streams |= BIT_ULL(cfg->stream);
drivers/media/v4l2-core/v4l2-subdev.c
2274
*enabled_streams |= BIT_ULL(cfg->stream);
drivers/media/v4l2-core/v4l2-subdev.c
2299
if (cfg->pad == pad && (streams_mask & BIT_ULL(cfg->stream)))
drivers/media/v4l2-core/v4l2-subdev.c
244
check_state(sd, state, format->which, format->pad, format->stream);
drivers/media/v4l2-core/v4l2-subdev.c
271
check_state(sd, state, code->which, code->pad, code->stream) ? :
drivers/media/v4l2-core/v4l2-subdev.c
283
check_state(sd, state, fse->which, fse->pad, fse->stream) ? :
drivers/media/v4l2-core/v4l2-subdev.c
295
check_state(sd, state, fie->which, fie->pad, fie->stream) ? :
drivers/media/v4l2-core/v4l2-subdev.c
307
check_state(sd, state, sel->which, sel->pad, sel->stream);
drivers/media/v4l2-core/v4l2-subdev.c
334
check_state(sd, state, fi->which, fi->pad, fi->stream);
drivers/media/v4l2-core/v4l2-subdev.c
387
entry->stream, entry->pixelcode, entry->length,
drivers/media/v4l2-core/v4l2-subdev.c
44
u32 stream;
drivers/media/v4l2-core/v4l2-subdev.c
790
format->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
804
format->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
816
crop->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
822
sel.stream = crop->stream;
drivers/media/v4l2-core/v4l2-subdev.c
841
crop->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
847
sel.stream = crop->stream;
drivers/media/v4l2-core/v4l2-subdev.c
863
code->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
874
fse->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
885
fi->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
895
fi->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
908
fie->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
919
sel->stream = 0;
drivers/media/v4l2-core/v4l2-subdev.c
933
sel->stream = 0;
drivers/net/can/softing/softing_main.c
474
static const uint8_t stream[] = {
drivers/net/can/softing/softing_main.c
476
unsigned char back[sizeof(stream)];
drivers/net/can/softing/softing_main.c
491
for (j = 0; (j + sizeof(stream)) < card->dpram_size;
drivers/net/can/softing/softing_main.c
492
j += sizeof(stream)) {
drivers/net/can/softing/softing_main.c
494
memcpy_toio(&card->dpram[j], stream, sizeof(stream));
drivers/net/can/softing/softing_main.c
497
memcpy_fromio(back, &card->dpram[j], sizeof(stream));
drivers/net/can/softing/softing_main.c
499
if (!memcmp(back, stream, sizeof(stream)))
drivers/net/dsa/ocelot/felix_vsc9959.c
1758
struct felix_stream *stream)
drivers/net/dsa/ocelot/felix_vsc9959.c
1777
ether_addr_copy(stream->dmac, match.key->dst);
drivers/net/dsa/ocelot/felix_vsc9959.c
1789
stream->prio = match.key->vlan_priority;
drivers/net/dsa/ocelot/felix_vsc9959.c
1791
stream->prio = -1;
drivers/net/dsa/ocelot/felix_vsc9959.c
1795
stream->vid = match.key->vlan_id;
drivers/net/dsa/ocelot/felix_vsc9959.c
1800
stream->id = f->cookie;
drivers/net/dsa/ocelot/felix_vsc9959.c
1806
struct felix_stream *stream,
drivers/net/dsa/ocelot/felix_vsc9959.c
1814
ether_addr_copy(mac, stream->dmac);
drivers/net/dsa/ocelot/felix_vsc9959.c
1815
vid = stream->vid;
drivers/net/dsa/ocelot/felix_vsc9959.c
1827
if ((stream->sfid_valid || stream->ssid_valid) &&
drivers/net/dsa/ocelot/felix_vsc9959.c
1831
sfid = stream->sfid_valid ? stream->sfid : -1;
drivers/net/dsa/ocelot/felix_vsc9959.c
1832
ssid = stream->ssid_valid ? stream->ssid : -1;
drivers/net/dsa/ocelot/felix_vsc9959.c
1842
struct felix_stream *stream)
drivers/net/dsa/ocelot/felix_vsc9959.c
1847
if (ether_addr_equal(tmp->dmac, stream->dmac) &&
drivers/net/dsa/ocelot/felix_vsc9959.c
1848
tmp->vid == stream->vid)
drivers/net/dsa/ocelot/felix_vsc9959.c
1856
struct felix_stream *stream,
drivers/net/dsa/ocelot/felix_vsc9959.c
1862
stream_entry = kmemdup(stream, sizeof(*stream_entry), GFP_KERNEL);
drivers/net/dsa/ocelot/felix_vsc9959.c
1866
if (!stream->dummy) {
drivers/net/dsa/ocelot/felix_vsc9959.c
1892
struct felix_stream *stream)
drivers/net/dsa/ocelot/felix_vsc9959.c
1894
if (!stream->dummy)
drivers/net/dsa/ocelot/felix_vsc9959.c
1895
vsc9959_mact_stream_set(ocelot, stream, NULL);
drivers/net/dsa/ocelot/felix_vsc9959.c
1897
list_del(&stream->list);
drivers/net/dsa/ocelot/felix_vsc9959.c
1898
kfree(stream);
drivers/net/dsa/ocelot/felix_vsc9959.c
2253
struct felix_stream stream = {0};
drivers/net/dsa/ocelot/felix_vsc9959.c
2263
ret = vsc9959_stream_identify(f, &stream);
drivers/net/dsa/ocelot/felix_vsc9959.c
2317
stream.ports = BIT(port);
drivers/net/dsa/ocelot/felix_vsc9959.c
2318
stream.port = port;
drivers/net/dsa/ocelot/felix_vsc9959.c
2320
sfi.portmask = stream.ports;
drivers/net/dsa/ocelot/felix_vsc9959.c
2321
sfi.prio_valid = (stream.prio < 0 ? 0 : 1);
drivers/net/dsa/ocelot/felix_vsc9959.c
2322
sfi.prio = (sfi.prio_valid ? stream.prio : 0);
drivers/net/dsa/ocelot/felix_vsc9959.c
2326
stream_entry = vsc9959_stream_table_lookup(&psfp->stream_list, &stream);
drivers/net/dsa/ocelot/felix_vsc9959.c
2343
stream.ports = stream_entry->ports;
drivers/net/dsa/ocelot/felix_vsc9959.c
2352
sfi.portmask = stream.ports;
drivers/net/dsa/ocelot/felix_vsc9959.c
2361
stream.dummy = true;
drivers/net/dsa/ocelot/felix_vsc9959.c
2373
stream.sfid = sfi.index;
drivers/net/dsa/ocelot/felix_vsc9959.c
2374
stream.sfid_valid = 1;
drivers/net/dsa/ocelot/felix_vsc9959.c
2376
&stream, extack);
drivers/net/dsa/ocelot/felix_vsc9959.c
2378
vsc9959_psfp_sfi_table_del(ocelot, stream.sfid);
drivers/net/dsa/ocelot/felix_vsc9959.c
2401
struct felix_stream *stream, tmp, *stream_entry;
drivers/net/dsa/ocelot/felix_vsc9959.c
2407
stream = vsc9959_stream_table_get(&psfp->stream_list, f->cookie);
drivers/net/dsa/ocelot/felix_vsc9959.c
2408
if (!stream) {
drivers/net/dsa/ocelot/felix_vsc9959.c
2413
sfi = vsc9959_psfp_sfi_table_get(&psfp->sfi_list, stream->sfid);
drivers/net/dsa/ocelot/felix_vsc9959.c
2425
vsc9959_psfp_sfi_table_del(ocelot, stream->sfid);
drivers/net/dsa/ocelot/felix_vsc9959.c
2427
memcpy(&tmp, stream, sizeof(tmp));
drivers/net/dsa/ocelot/felix_vsc9959.c
2429
stream->sfid_valid = 0;
drivers/net/dsa/ocelot/felix_vsc9959.c
2430
vsc9959_stream_table_del(ocelot, stream);
drivers/net/dsa/ocelot/felix_vsc9959.c
2499
struct felix_stream *stream;
drivers/net/dsa/ocelot/felix_vsc9959.c
2501
stream = vsc9959_stream_table_get(&psfp->stream_list, f->cookie);
drivers/net/dsa/ocelot/felix_vsc9959.c
2502
if (!stream)
drivers/net/dsa/ocelot/felix_vsc9959.c
2505
sfi = vsc9959_psfp_sfi_table_get(&psfp->sfi_list, stream->sfid);
drivers/net/ethernet/microchip/vcap/vcap_api.c
100
u32 *p = &stream[itr->reg_idx];
drivers/net/ethernet/microchip/vcap/vcap_api.c
108
static void vcap_encode_bit(u32 *stream, struct vcap_stream_iter *itr, bool val)
drivers/net/ethernet/microchip/vcap/vcap_api.c
118
vcap_set_bit(stream, itr, (itr->tg->value >> tg_bitpos) & 0x1);
drivers/net/ethernet/microchip/vcap/vcap_api.c
122
vcap_set_bit(stream, itr, val);
drivers/net/ethernet/microchip/vcap/vcap_api.c
125
static void vcap_encode_field(u32 *stream, struct vcap_stream_iter *itr,
drivers/net/ethernet/microchip/vcap/vcap_api.c
1363
enum vcap_type vt, u32 *stream,
drivers/net/ethernet/microchip/vcap/vcap_api.c
137
vcap_encode_bit(stream, itr, (value[idx / 8] >> bidx) & 0x1);
drivers/net/ethernet/microchip/vcap/vcap_api.c
1374
res = vcap_verify_typegroups(stream, vctrl->vcaps[vt].act_width,
drivers/net/ethernet/microchip/vcap/vcap_api.c
1388
u32 *stream,
drivers/net/ethernet/microchip/vcap/vcap_api.c
1395
sw_count = vcap_find_actionstream_typegroup_sw(vctrl, vt, stream,
drivers/net/ethernet/microchip/vcap/vcap_api.c
1406
stream, idx);
drivers/net/ethernet/microchip/vcap/vcap_api.c
142
static void vcap_encode_typegroups(u32 *stream, int sw_width,
drivers/net/ethernet/microchip/vcap/vcap_api.c
163
vcap_set_bit(stream, &iter, 0x1);
drivers/net/ethernet/microchip/vcap/vcap_api.c
165
vcap_set_bit(stream, &iter,
drivers/net/ethernet/microchip/vcap/vcap_api.c
189
static bool vcap_get_bit(u32 *stream, struct vcap_stream_iter *itr)
drivers/net/ethernet/microchip/vcap/vcap_api.c
192
u32 *p = &stream[itr->reg_idx];
drivers/net/ethernet/microchip/vcap/vcap_api.c
197
static void vcap_decode_field(u32 *stream, struct vcap_stream_iter *itr,
drivers/net/ethernet/microchip/vcap/vcap_api.c
209
if (vcap_get_bit(stream, itr))
drivers/net/ethernet/microchip/vcap/vcap_api.c
271
static int vcap_verify_typegroups(u32 *stream, int sw_width,
drivers/net/ethernet/microchip/vcap/vcap_api.c
291
if (vcap_get_bit(stream, &iter))
drivers/net/ethernet/microchip/vcap/vcap_api.c
309
enum vcap_type vt, u32 *stream,
drivers/net/ethernet/microchip/vcap/vcap_api.c
321
res = vcap_verify_typegroups(stream, vctrl->vcaps[vt].sw_width,
drivers/net/ethernet/microchip/vcap/vcap_api.c
97
static void vcap_set_bit(u32 *stream, struct vcap_stream_iter *itr, bool value)
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
337
u32 stream[2] = {0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
339
vcap_set_bit(stream, &iter, 1);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
341
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
342
KUNIT_EXPECT_EQ(test, (u32)BIT(20), stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
354
u32 stream[3] = {~0, ~0, ~0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
356
vcap_set_bit(stream, &iter, 0);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
358
KUNIT_EXPECT_EQ(test, (u32)~0, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
359
KUNIT_EXPECT_EQ(test, (u32)~0, stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
360
KUNIT_EXPECT_EQ(test, (u32)~BIT(11), stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
430
u32 stream[12] = {0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
441
vcap_encode_typegroups(stream, 49, typegroups, false);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
443
KUNIT_EXPECT_EQ(test, (u32)0x8, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
444
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
445
KUNIT_EXPECT_EQ(test, (u32)0x1, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
446
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[3]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
447
KUNIT_EXPECT_EQ(test, (u32)0x3, stream[4]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
448
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[5]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
449
KUNIT_EXPECT_EQ(test, (u32)0x5, stream[6]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
450
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[7]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
451
KUNIT_EXPECT_EQ(test, (u32)0x2, stream[8]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
452
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[9]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
453
KUNIT_EXPECT_EQ(test, (u32)27, stream[10]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
454
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[11]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
460
u32 stream[4] = {0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
477
vcap_encode_bit(stream, &iter, 1);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
479
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
480
KUNIT_EXPECT_EQ(test, (u32)BIT(16), stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
481
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
487
u32 stream[16] = {0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
510
vcap_encode_field(stream, &iter, rf.width, value);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
512
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
513
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
514
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
515
KUNIT_EXPECT_EQ(test, (u32)(0x5 << 10), stream[3]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
516
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[4]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
518
vcap_encode_typegroups(stream, 49, typegroups, false);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
520
KUNIT_EXPECT_EQ(test, (u32)0x8, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
521
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
522
KUNIT_EXPECT_EQ(test, (u32)0x1, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
523
KUNIT_EXPECT_EQ(test, (u32)(0x5 << 10), stream[3]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
524
KUNIT_EXPECT_EQ(test, (u32)0x3, stream[4]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
525
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[5]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
526
KUNIT_EXPECT_EQ(test, (u32)0x5, stream[6]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
527
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[7]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
528
KUNIT_EXPECT_EQ(test, (u32)0x2, stream[8]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
529
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[9]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
530
KUNIT_EXPECT_EQ(test, (u32)27, stream[10]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
531
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[11]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
539
u32 stream[6] = {0};
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
561
vcap_encode_field(stream, &iter, rf.width, value);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
563
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
564
KUNIT_EXPECT_EQ(test, (u32)(0x5 << (25 + 3 + 2 - sw_width)), stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
565
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
566
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[3]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
567
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[4]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
568
KUNIT_EXPECT_EQ(test, (u32)0x0, stream[5]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
570
vcap_encode_typegroups(stream, sw_width, tgt, false);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
572
KUNIT_EXPECT_EQ(test, (u32)7, stream[0]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
573
KUNIT_EXPECT_EQ(test, (u32)((0x5 << (25 + 3 + 2 - sw_width)) + 3), stream[1]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
574
KUNIT_EXPECT_EQ(test, (u32)1, stream[2]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
575
KUNIT_EXPECT_EQ(test, (u32)0, stream[3]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
576
KUNIT_EXPECT_EQ(test, (u32)0, stream[4]);
drivers/net/ethernet/microchip/vcap/vcap_api_kunit.c
577
KUNIT_EXPECT_EQ(test, (u32)0, stream[5]);
drivers/net/ethernet/qlogic/qed/qed.h
656
struct z_stream_s *stream;
drivers/net/ethernet/qlogic/qed/qed_main.c
1020
p_hwfn->stream->next_in = input_buf;
drivers/net/ethernet/qlogic/qed/qed_main.c
1021
p_hwfn->stream->avail_in = input_len;
drivers/net/ethernet/qlogic/qed/qed_main.c
1022
p_hwfn->stream->next_out = unzip_buf;
drivers/net/ethernet/qlogic/qed/qed_main.c
1023
p_hwfn->stream->avail_out = max_size;
drivers/net/ethernet/qlogic/qed/qed_main.c
1025
rc = zlib_inflateInit2(p_hwfn->stream, MAX_WBITS);
drivers/net/ethernet/qlogic/qed/qed_main.c
1033
rc = zlib_inflate(p_hwfn->stream, Z_FINISH);
drivers/net/ethernet/qlogic/qed/qed_main.c
1034
zlib_inflateEnd(p_hwfn->stream);
drivers/net/ethernet/qlogic/qed/qed_main.c
1038
p_hwfn->stream->msg, rc);
drivers/net/ethernet/qlogic/qed/qed_main.c
1042
return p_hwfn->stream->total_out / 4;
drivers/net/ethernet/qlogic/qed/qed_main.c
1053
p_hwfn->stream = kzalloc_obj(*p_hwfn->stream);
drivers/net/ethernet/qlogic/qed/qed_main.c
1054
if (!p_hwfn->stream)
drivers/net/ethernet/qlogic/qed/qed_main.c
1060
p_hwfn->stream->workspace = workspace;
drivers/net/ethernet/qlogic/qed/qed_main.c
1073
if (!p_hwfn->stream)
drivers/net/ethernet/qlogic/qed/qed_main.c
1076
vfree(p_hwfn->stream->workspace);
drivers/net/ethernet/qlogic/qed/qed_main.c
1077
kfree(p_hwfn->stream);
drivers/net/wireless/marvell/mwl8k.c
1801
struct mwl8k_ampdu_stream *stream;
drivers/net/wireless/marvell/mwl8k.c
1806
stream = &priv->ampdu[i];
drivers/net/wireless/marvell/mwl8k.c
1807
if (stream->state == AMPDU_NO_STREAM) {
drivers/net/wireless/marvell/mwl8k.c
1808
stream->sta = sta;
drivers/net/wireless/marvell/mwl8k.c
1809
stream->state = AMPDU_STREAM_NEW;
drivers/net/wireless/marvell/mwl8k.c
1810
stream->tid = tid;
drivers/net/wireless/marvell/mwl8k.c
1811
stream->idx = i;
drivers/net/wireless/marvell/mwl8k.c
1814
return stream;
drivers/net/wireless/marvell/mwl8k.c
1821
mwl8k_start_stream(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream)
drivers/net/wireless/marvell/mwl8k.c
1826
if (stream->state != AMPDU_STREAM_NEW)
drivers/net/wireless/marvell/mwl8k.c
1828
ret = ieee80211_start_tx_ba_session(stream->sta, stream->tid, 0);
drivers/net/wireless/marvell/mwl8k.c
1831
"%d\n", stream->sta->addr, stream->tid, ret);
drivers/net/wireless/marvell/mwl8k.c
1834
stream->sta->addr, stream->tid);
drivers/net/wireless/marvell/mwl8k.c
1839
mwl8k_remove_stream(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream)
drivers/net/wireless/marvell/mwl8k.c
1841
wiphy_debug(hw->wiphy, "Remove stream for %pM %d\n", stream->sta->addr,
drivers/net/wireless/marvell/mwl8k.c
1842
stream->tid);
drivers/net/wireless/marvell/mwl8k.c
1843
memset(stream, 0, sizeof(*stream));
drivers/net/wireless/marvell/mwl8k.c
1853
struct mwl8k_ampdu_stream *stream;
drivers/net/wireless/marvell/mwl8k.c
1854
stream = &priv->ampdu[i];
drivers/net/wireless/marvell/mwl8k.c
1855
if (stream->state == AMPDU_NO_STREAM)
drivers/net/wireless/marvell/mwl8k.c
1857
if (!memcmp(stream->sta->addr, addr, ETH_ALEN) &&
drivers/net/wireless/marvell/mwl8k.c
1858
stream->tid == tid)
drivers/net/wireless/marvell/mwl8k.c
1859
return stream;
drivers/net/wireless/marvell/mwl8k.c
1924
struct mwl8k_ampdu_stream *stream = NULL;
drivers/net/wireless/marvell/mwl8k.c
2002
stream = mwl8k_lookup_stream(hw, sta->addr, tid);
drivers/net/wireless/marvell/mwl8k.c
2003
if (stream != NULL) {
drivers/net/wireless/marvell/mwl8k.c
2004
if (stream->state == AMPDU_STREAM_ACTIVE) {
drivers/net/wireless/marvell/mwl8k.c
2006
txpriority = (BA_QUEUE + stream->idx) %
drivers/net/wireless/marvell/mwl8k.c
2008
if (stream->idx <= 1)
drivers/net/wireless/marvell/mwl8k.c
2009
index = stream->idx +
drivers/net/wireless/marvell/mwl8k.c
2012
} else if (stream->state == AMPDU_STREAM_NEW) {
drivers/net/wireless/marvell/mwl8k.c
2047
stream = mwl8k_add_stream(hw, sta, tid);
drivers/net/wireless/marvell/mwl8k.c
2048
if (stream != NULL)
drivers/net/wireless/marvell/mwl8k.c
2066
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
2089
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
2139
if (mwl8k_start_stream(hw, stream))
drivers/net/wireless/marvell/mwl8k.c
2140
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
4043
mwl8k_check_ba(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream,
drivers/net/wireless/marvell/mwl8k.c
4058
cmd->create_params.queue_id = stream->idx;
drivers/net/wireless/marvell/mwl8k.c
4059
memcpy(&cmd->create_params.peer_mac_addr[0], stream->sta->addr,
drivers/net/wireless/marvell/mwl8k.c
4061
cmd->create_params.tid = stream->tid;
drivers/net/wireless/marvell/mwl8k.c
4075
mwl8k_create_ba(struct ieee80211_hw *hw, struct mwl8k_ampdu_stream *stream,
drivers/net/wireless/marvell/mwl8k.c
4093
cmd->create_params.queue_id = stream->idx;
drivers/net/wireless/marvell/mwl8k.c
4095
memcpy(cmd->create_params.peer_mac_addr, stream->sta->addr, ETH_ALEN);
drivers/net/wireless/marvell/mwl8k.c
4096
cmd->create_params.tid = stream->tid;
drivers/net/wireless/marvell/mwl8k.c
4101
(stream->sta->deflink.ht_cap.ampdu_factor &
drivers/net/wireless/marvell/mwl8k.c
4103
((stream->sta->deflink.ht_cap.ampdu_density << 2) &
drivers/net/wireless/marvell/mwl8k.c
4113
stream->sta->addr, stream->tid);
drivers/net/wireless/marvell/mwl8k.c
5526
struct mwl8k_ampdu_stream *stream;
drivers/net/wireless/marvell/mwl8k.c
5534
stream = mwl8k_lookup_stream(hw, addr, tid);
drivers/net/wireless/marvell/mwl8k.c
5551
if (stream == NULL) {
drivers/net/wireless/marvell/mwl8k.c
5559
stream = mwl8k_add_stream(hw, sta, tid);
drivers/net/wireless/marvell/mwl8k.c
5561
if (stream == NULL) {
drivers/net/wireless/marvell/mwl8k.c
5566
stream->state = AMPDU_STREAM_IN_PROGRESS;
drivers/net/wireless/marvell/mwl8k.c
5575
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
5580
rc = mwl8k_check_ba(hw, stream, vif);
drivers/net/wireless/marvell/mwl8k.c
5599
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
5608
if (stream) {
drivers/net/wireless/marvell/mwl8k.c
5609
if (stream->state == AMPDU_STREAM_ACTIVE) {
drivers/net/wireless/marvell/mwl8k.c
5610
idx = stream->idx;
drivers/net/wireless/marvell/mwl8k.c
5615
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/marvell/mwl8k.c
5620
BUG_ON(stream == NULL);
drivers/net/wireless/marvell/mwl8k.c
5621
BUG_ON(stream->state != AMPDU_STREAM_IN_PROGRESS);
drivers/net/wireless/marvell/mwl8k.c
5623
rc = mwl8k_create_ba(hw, stream, buf_size, vif);
drivers/net/wireless/marvell/mwl8k.c
5626
stream->state = AMPDU_STREAM_ACTIVE;
drivers/net/wireless/marvell/mwl8k.c
5628
idx = stream->idx;
drivers/net/wireless/marvell/mwl8k.c
5635
mwl8k_remove_stream(hw, stream);
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
287
int stream;
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
289
for (stream = 0; stream < 2; stream++) {
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
290
if (pstats->rx_mimo_sig_qual[stream] != -1) {
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
291
if (rtlpriv->stats.rx_evm_percentage[stream] == 0) {
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
292
rtlpriv->stats.rx_evm_percentage[stream] =
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
293
pstats->rx_mimo_sig_qual[stream];
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
295
rtlpriv->stats.rx_evm_percentage[stream] =
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
296
((rtlpriv->stats.rx_evm_percentage[stream]
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
298
(pstats->rx_mimo_sig_qual[stream] * 1)) /
drivers/pci/ide.c
201
static void free_stream_index(struct stream_index *stream)
drivers/pci/ide.c
203
ida_free(stream->ida, stream->stream_index);
drivers/pci/ide.c
208
struct stream_index *stream)
drivers/pci/ide.c
219
*stream = (struct stream_index) {
drivers/pci/ide.c
223
return stream;
drivers/slimbus/stream.c
125
static int slim_connect_port_channel(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
128
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
132
DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
145
static int slim_disconnect_port(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
148
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
152
DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
161
static int slim_deactivate_remove_channel(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
164
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
168
DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
272
static int slim_define_channel_content(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
275
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
279
DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
285
if (stream->prot != SLIM_PROTO_ISO)
drivers/slimbus/stream.c
289
wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS;
drivers/slimbus/stream.c
307
static int slim_define_channel(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
310
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
314
DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
316
port->ch.seg_dist = slim_get_segdist_code(stream->ratem);
drivers/slimbus/stream.c
320
wbuf[2] = (stream->prot << 4) | ((port->ch.seg_dist & 0xF00) >> 8);
drivers/slimbus/stream.c
321
if (stream->prot == SLIM_PROTO_ISO)
drivers/slimbus/stream.c
322
wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS;
drivers/slimbus/stream.c
324
wbuf[3] = stream->bps/SLIM_SLOT_LEN_BITS + 1;
drivers/slimbus/stream.c
331
static int slim_activate_channel(struct slim_stream_runtime *stream,
drivers/slimbus/stream.c
334
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
338
DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg);
drivers/slimbus/stream.c
359
int slim_stream_enable(struct slim_stream_runtime *stream)
drivers/slimbus/stream.c
363
struct slim_controller *ctrl = stream->dev->ctrl;
drivers/slimbus/stream.c
367
ret = ctrl->enable_stream(stream);
drivers/slimbus/stream.c
371
for (i = 0; i < stream->num_ports; i++)
drivers/slimbus/stream.c
372
stream->ports[i].ch.state = SLIM_CH_STATE_ACTIVE;
drivers/slimbus/stream.c
382
for (i = 0; i < stream->num_ports; i++) {
drivers/slimbus/stream.c
383
struct slim_port *port = &stream->ports[i];
drivers/slimbus/stream.c
385
slim_define_channel(stream, port);
drivers/slimbus/stream.c
386
slim_define_channel_content(stream, port);
drivers/slimbus/stream.c
389
for (i = 0; i < stream->num_ports; i++) {
drivers/slimbus/stream.c
390
struct slim_port *port = &stream->ports[i];
drivers/slimbus/stream.c
392
slim_activate_channel(stream, port);
drivers/slimbus/stream.c
412
int slim_stream_disable(struct slim_stream_runtime *stream)
drivers/slimbus/stream.c
416
struct slim_controller *ctrl = stream->dev->ctrl;
drivers/slimbus/stream.c
419
if (!stream->ports || !stream->num_ports)
drivers/slimbus/stream.c
423
ctrl->disable_stream(stream);
drivers/slimbus/stream.c
429
for (i = 0; i < stream->num_ports; i++)
drivers/slimbus/stream.c
430
slim_deactivate_remove_channel(stream, &stream->ports[i]);
drivers/slimbus/stream.c
449
int slim_stream_unprepare(struct slim_stream_runtime *stream)
drivers/slimbus/stream.c
453
if (!stream->ports || !stream->num_ports)
drivers/slimbus/stream.c
456
for (i = 0; i < stream->num_ports; i++)
drivers/slimbus/stream.c
457
slim_disconnect_port(stream, &stream->ports[i]);
drivers/slimbus/stream.c
459
kfree(stream->ports);
drivers/slimbus/stream.c
460
stream->ports = NULL;
drivers/slimbus/stream.c
461
stream->num_ports = 0;
drivers/slimbus/stream.c
479
int slim_stream_free(struct slim_stream_runtime *stream)
drivers/slimbus/stream.c
481
struct slim_device *sdev = stream->dev;
drivers/slimbus/stream.c
484
list_del(&stream->node);
drivers/slimbus/stream.c
487
kfree(stream->name);
drivers/slimbus/stream.c
488
kfree(stream);
drivers/soundwire/amd_manager.c
438
static int amd_sdw_compute_params(struct sdw_bus *bus, struct sdw_stream_runtime *stream)
drivers/soundwire/amd_manager.c
454
rate = m_rt->stream->params.rate;
drivers/soundwire/amd_manager.c
455
bps = m_rt->stream->params.bps;
drivers/soundwire/amd_manager.c
707
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
drivers/soundwire/amd_manager.c
728
pconfig, 1, dai_runtime->stream);
drivers/soundwire/amd_manager.c
745
ret = sdw_stream_remove_master(&amd_manager->bus, dai_runtime->stream);
drivers/soundwire/amd_manager.c
748
dai_runtime->stream->name, ret);
drivers/soundwire/amd_manager.c
752
static int amd_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
drivers/soundwire/amd_manager.c
758
if (stream) {
drivers/soundwire/amd_manager.c
772
dai_runtime->stream = stream;
drivers/soundwire/amd_manager.c
788
static int amd_pcm_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
drivers/soundwire/amd_manager.c
790
return amd_set_sdw_stream(dai, stream, direction);
drivers/soundwire/amd_manager.c
802
return dai_runtime->stream;
drivers/soundwire/amd_manager.c
820
struct snd_soc_pcm_stream *stream;
drivers/soundwire/amd_manager.c
842
stream = &dais[i].playback;
drivers/soundwire/amd_manager.c
844
stream = &dais[i].capture;
drivers/soundwire/amd_manager.c
846
stream->channels_min = 2;
drivers/soundwire/amd_manager.c
847
stream->channels_max = 2;
drivers/soundwire/amd_manager.c
848
stream->rates = SNDRV_PCM_RATE_48000;
drivers/soundwire/amd_manager.c
849
stream->formats = SNDRV_PCM_FMTBIT_S16_LE;
drivers/soundwire/bus.h
168
struct sdw_stream_runtime *stream;
drivers/soundwire/cadence_master.c
1270
struct sdw_cdns_pdi **stream,
drivers/soundwire/cadence_master.c
1287
*stream = pdi;
drivers/soundwire/cadence_master.c
1300
struct sdw_cdns_streams *stream;
drivers/soundwire/cadence_master.c
1308
stream = &cdns->pcm;
drivers/soundwire/cadence_master.c
1311
ret = cdns_allocate_pdi(cdns, &stream->bd, stream->num_bd);
drivers/soundwire/cadence_master.c
1315
ret = cdns_allocate_pdi(cdns, &stream->in, stream->num_in);
drivers/soundwire/cadence_master.c
1319
ret = cdns_allocate_pdi(cdns, &stream->out, stream->num_out);
drivers/soundwire/cadence_master.c
1324
stream->num_pdi = stream->num_bd + stream->num_in + stream->num_out;
drivers/soundwire/cadence_master.c
1325
cdns->num_ports = stream->num_pdi;
drivers/soundwire/cadence_master.c
1832
void *stream, int direction)
drivers/soundwire/cadence_master.c
1839
if (stream) {
drivers/soundwire/cadence_master.c
1858
dai_runtime->stream = stream;
drivers/soundwire/cadence_master.c
1952
struct sdw_cdns_streams *stream,
drivers/soundwire/cadence_master.c
1958
pdi = cdns_find_pdi(cdns, stream->num_in, stream->in,
drivers/soundwire/cadence_master.c
1961
pdi = cdns_find_pdi(cdns, stream->num_out, stream->out,
drivers/soundwire/cadence_master.c
1966
pdi = cdns_find_pdi(cdns, stream->num_bd, stream->bd,
drivers/soundwire/cadence_master.h
188
struct sdw_cdns_streams *stream,
drivers/soundwire/cadence_master.h
204
void *stream, int direction);
drivers/soundwire/cadence_master.h
96
struct sdw_stream_runtime *stream;
drivers/soundwire/generic_bandwidth_allocation.c
128
if (m_rt->stream->type != SDW_STREAM_BPT)
drivers/soundwire/generic_bandwidth_allocation.c
146
rate = m_rt->stream->params.rate;
drivers/soundwire/generic_bandwidth_allocation.c
147
bps = m_rt->stream->params.bps;
drivers/soundwire/generic_bandwidth_allocation.c
214
if (m_rt->stream->state > SDW_STREAM_DISABLED ||
drivers/soundwire/generic_bandwidth_allocation.c
215
m_rt->stream->state < SDW_STREAM_CONFIGURED)
drivers/soundwire/generic_bandwidth_allocation.c
226
struct sdw_stream_runtime *stream,
drivers/soundwire/generic_bandwidth_allocation.c
244
if (m_rt->stream == stream) {
drivers/soundwire/generic_bandwidth_allocation.c
246
if (stream->state != SDW_STREAM_CONFIGURED)
drivers/soundwire/generic_bandwidth_allocation.c
253
if (m_rt->stream->state != SDW_STREAM_ENABLED &&
drivers/soundwire/generic_bandwidth_allocation.c
254
m_rt->stream->state != SDW_STREAM_PREPARED &&
drivers/soundwire/generic_bandwidth_allocation.c
255
m_rt->stream->state != SDW_STREAM_DISABLED)
drivers/soundwire/generic_bandwidth_allocation.c
259
rate = m_rt->stream->params.rate;
drivers/soundwire/generic_bandwidth_allocation.c
260
bps = m_rt->stream->params.bps;
drivers/soundwire/generic_bandwidth_allocation.c
360
if (m_rt->stream->state == SDW_STREAM_DEPREPARED)
drivers/soundwire/generic_bandwidth_allocation.c
363
rate = m_rt->stream->params.rate;
drivers/soundwire/generic_bandwidth_allocation.c
392
static int sdw_compute_port_params(struct sdw_bus *bus, struct sdw_stream_runtime *stream)
drivers/soundwire/generic_bandwidth_allocation.c
412
ret = sdw_compute_group_params(bus, stream, params, &group);
drivers/soundwire/generic_bandwidth_allocation.c
47
rate = m_rt->stream->params.rate;
drivers/soundwire/generic_bandwidth_allocation.c
48
bps = m_rt->stream->params.bps;
drivers/soundwire/generic_bandwidth_allocation.c
510
required_bandwidth += m_rt->stream->params.rate *
drivers/soundwire/generic_bandwidth_allocation.c
512
m_rt->stream->params.bps;
drivers/soundwire/generic_bandwidth_allocation.c
666
int sdw_compute_params(struct sdw_bus *bus, struct sdw_stream_runtime *stream)
drivers/soundwire/generic_bandwidth_allocation.c
675
if (stream->type == SDW_STREAM_BPT) {
drivers/soundwire/generic_bandwidth_allocation.c
681
ret = sdw_compute_port_params(bus, stream);
drivers/soundwire/intel.c
1036
struct sdw_cdns_streams *stream;
drivers/soundwire/intel.c
1063
stream = &cdns->pcm;
drivers/soundwire/intel.c
1066
off, stream->num_ch_in);
drivers/soundwire/intel.c
1072
off, stream->num_ch_out);
drivers/soundwire/intel.c
1078
off, stream->num_ch_bd);
drivers/soundwire/intel.c
611
struct sdw_cdns_streams *stream)
drivers/soundwire/intel.c
613
intel_pdi_get_ch_update(sdw, stream->bd, stream->num_bd,
drivers/soundwire/intel.c
614
&stream->num_ch_bd);
drivers/soundwire/intel.c
616
intel_pdi_get_ch_update(sdw, stream->in, stream->num_in,
drivers/soundwire/intel.c
617
&stream->num_ch_in);
drivers/soundwire/intel.c
619
intel_pdi_get_ch_update(sdw, stream->out, stream->num_out,
drivers/soundwire/intel.c
620
&stream->num_ch_out);
drivers/soundwire/intel.c
737
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
drivers/soundwire/intel.c
780
pconfig, 1, dai_runtime->stream);
drivers/soundwire/intel.c
807
hw_params = &rtd->dpcm[substream->stream].hw_params;
drivers/soundwire/intel.c
821
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
drivers/soundwire/intel.c
858
ret = sdw_stream_remove_master(&cdns->bus, dai_runtime->stream);
drivers/soundwire/intel.c
861
dai_runtime->stream->name, ret);
drivers/soundwire/intel.c
877
void *stream, int direction)
drivers/soundwire/intel.c
879
return cdns_set_sdw_stream(dai, stream, direction);
drivers/soundwire/intel.c
892
return dai_runtime->stream;
drivers/soundwire/intel_ace2x.c
1029
struct sdw_cdns_streams *stream;
drivers/soundwire/intel_ace2x.c
1058
stream = &cdns->pcm;
drivers/soundwire/intel_ace2x.c
1061
off, stream->num_ch_in);
drivers/soundwire/intel_ace2x.c
1067
off, stream->num_ch_out);
drivers/soundwire/intel_ace2x.c
1073
off, stream->num_ch_bd);
drivers/soundwire/intel_ace2x.c
141
ret = sdw_stream_add_master(&cdns->bus, &sconfig, pconfig, 2, stream);
drivers/soundwire/intel_ace2x.c
24
static int sdw_slave_bpt_stream_add(struct sdw_slave *slave, struct sdw_stream_runtime *stream)
drivers/soundwire/intel_ace2x.c
40
ret = sdw_stream_add_slave(slave, &sconfig, &pconfig, 1, stream);
drivers/soundwire/intel_ace2x.c
55
struct sdw_stream_runtime *stream;
drivers/soundwire/intel_ace2x.c
712
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
drivers/soundwire/intel_ace2x.c
758
pconfig, 1, dai_runtime->stream);
drivers/soundwire/intel_ace2x.c
782
hw_params = &rtd->dpcm[substream->stream].hw_params;
drivers/soundwire/intel_ace2x.c
796
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
drivers/soundwire/intel_ace2x.c
829
ret = sdw_stream_remove_master(&cdns->bus, dai_runtime->stream);
drivers/soundwire/intel_ace2x.c
832
dai_runtime->stream->name, ret);
drivers/soundwire/intel_ace2x.c
848
void *stream, int direction)
drivers/soundwire/intel_ace2x.c
85
stream = sdw_alloc_stream("BPT", SDW_STREAM_BPT);
drivers/soundwire/intel_ace2x.c
850
return cdns_set_sdw_stream(dai, stream, direction);
drivers/soundwire/intel_ace2x.c
86
if (!stream)
drivers/soundwire/intel_ace2x.c
863
return dai_runtime->stream;
drivers/soundwire/intel_ace2x.c
89
cdns->bus.bpt_stream = stream;
drivers/soundwire/intel_ace2x.c
91
ret = sdw_slave_bpt_stream_add(slave, stream);
drivers/soundwire/intel_ace2x.c
979
struct sdw_cdns_streams *stream)
drivers/soundwire/intel_ace2x.c
981
intel_pdi_get_ch_update(sdw, stream->bd, stream->num_bd,
drivers/soundwire/intel_ace2x.c
982
&stream->num_ch_bd);
drivers/soundwire/intel_ace2x.c
984
intel_pdi_get_ch_update(sdw, stream->in, stream->num_in,
drivers/soundwire/intel_ace2x.c
985
&stream->num_ch_in);
drivers/soundwire/intel_ace2x.c
987
intel_pdi_get_ch_update(sdw, stream->out, stream->num_out,
drivers/soundwire/intel_ace2x.c
988
&stream->num_ch_out);
drivers/soundwire/qcom.c
1139
static int qcom_swrm_compute_params(struct sdw_bus *bus, struct sdw_stream_runtime *stream)
drivers/soundwire/qcom.c
1203
struct sdw_stream_runtime *stream)
drivers/soundwire/qcom.c
1211
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/qcom.c
1221
struct sdw_stream_runtime *stream,
drivers/soundwire/qcom.c
1246
sconfig.type = stream->type;
drivers/soundwire/qcom.c
1251
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/qcom.c
1287
nports, stream);
drivers/soundwire/qcom.c
1301
substream->stream);
drivers/soundwire/qcom.c
1321
void *stream, int direction)
drivers/soundwire/qcom.c
1325
ctrl->sruntime[dai->id] = stream;
drivers/soundwire/qcom.c
1383
struct snd_soc_pcm_stream *stream;
drivers/soundwire/qcom.c
1398
stream = &dais[i].playback;
drivers/soundwire/qcom.c
1400
stream = &dais[i].capture;
drivers/soundwire/qcom.c
1402
stream->channels_min = 1;
drivers/soundwire/qcom.c
1403
stream->channels_max = 1;
drivers/soundwire/qcom.c
1404
stream->rates = SNDRV_PCM_RATE_48000;
drivers/soundwire/qcom.c
1405
stream->formats = SNDRV_PCM_FMTBIT_S16_LE;
drivers/soundwire/stream.c
1000
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1164
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1169
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1189
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1193
s_rt = sdw_slave_rt_find(slave, stream);
drivers/soundwire/stream.c
1202
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1207
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1225
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1230
if (stream->type == SDW_STREAM_BPT) {
drivers/soundwire/stream.c
1257
insert_after = &stream->master_list;
drivers/soundwire/stream.c
1258
list_for_each_entry_reverse(walk_m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1269
m_rt->stream = stream;
drivers/soundwire/stream.c
1272
if (stream->type == SDW_STREAM_BPT)
drivers/soundwire/stream.c
1308
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1314
sdw_slave_port_free(s_rt->slave, stream);
drivers/soundwire/stream.c
1315
sdw_slave_rt_free(s_rt->slave, stream);
drivers/soundwire/stream.c
1322
if (stream->type == SDW_STREAM_BPT)
drivers/soundwire/stream.c
1338
struct sdw_stream_runtime *stream,
drivers/soundwire/stream.c
1350
if (stream->params.rate &&
drivers/soundwire/stream.c
1351
stream->params.rate != stream_config->frame_rate) {
drivers/soundwire/stream.c
1352
dev_err(dev, "rate not matching, stream:%s\n", stream->name);
drivers/soundwire/stream.c
1356
if (stream->params.bps &&
drivers/soundwire/stream.c
1357
stream->params.bps != stream_config->bps) {
drivers/soundwire/stream.c
1358
dev_err(dev, "bps not matching, stream:%s\n", stream->name);
drivers/soundwire/stream.c
1362
stream->type = stream_config->type;
drivers/soundwire/stream.c
1363
stream->params.rate = stream_config->frame_rate;
drivers/soundwire/stream.c
1364
stream->params.bps = stream_config->bps;
drivers/soundwire/stream.c
1368
stream->params.ch_count += stream_config->ch_count;
drivers/soundwire/stream.c
1419
static void sdw_acquire_bus_lock(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1425
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1441
static void sdw_release_bus_lock(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1447
list_for_each_entry_reverse(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1453
static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
drivers/soundwire/stream.c
1463
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1469
if ((prop->max_clk_freq % stream->params.rate) != 0) {
drivers/soundwire/stream.c
1477
bus->params.bandwidth += m_rt->stream->params.rate *
drivers/soundwire/stream.c
1478
m_rt->ch_count * m_rt->stream->params.bps;
drivers/soundwire/stream.c
1482
ret = bus->compute_params(bus, stream);
drivers/soundwire/stream.c
1499
ret = do_bank_switch(stream);
drivers/soundwire/stream.c
1505
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1517
stream->state = SDW_STREAM_PREPARED;
drivers/soundwire/stream.c
1533
int sdw_prepare_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1538
if (!stream) {
drivers/soundwire/stream.c
1543
sdw_acquire_bus_lock(stream);
drivers/soundwire/stream.c
1545
if (stream->state == SDW_STREAM_PREPARED) {
drivers/soundwire/stream.c
1550
if (stream->state != SDW_STREAM_CONFIGURED &&
drivers/soundwire/stream.c
1551
stream->state != SDW_STREAM_DEPREPARED &&
drivers/soundwire/stream.c
1552
stream->state != SDW_STREAM_DISABLED) {
drivers/soundwire/stream.c
1554
__func__, stream->name, stream->state);
drivers/soundwire/stream.c
1565
if (stream->state == SDW_STREAM_DISABLED)
drivers/soundwire/stream.c
1568
ret = _sdw_prepare_stream(stream, update_params);
drivers/soundwire/stream.c
1571
sdw_release_bus_lock(stream);
drivers/soundwire/stream.c
1576
static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1583
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1602
ret = do_bank_switch(stream);
drivers/soundwire/stream.c
1608
stream->state = SDW_STREAM_ENABLED;
drivers/soundwire/stream.c
1619
int sdw_enable_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1623
if (!stream) {
drivers/soundwire/stream.c
1628
sdw_acquire_bus_lock(stream);
drivers/soundwire/stream.c
1630
if (stream->state == SDW_STREAM_ENABLED) {
drivers/soundwire/stream.c
1635
if (stream->state != SDW_STREAM_PREPARED &&
drivers/soundwire/stream.c
1636
stream->state != SDW_STREAM_DISABLED) {
drivers/soundwire/stream.c
1638
__func__, stream->name, stream->state);
drivers/soundwire/stream.c
1643
ret = _sdw_enable_stream(stream);
drivers/soundwire/stream.c
1646
sdw_release_bus_lock(stream);
drivers/soundwire/stream.c
1651
static int _sdw_disable_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1656
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1666
stream->state = SDW_STREAM_DISABLED;
drivers/soundwire/stream.c
1668
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1679
ret = do_bank_switch(stream);
drivers/soundwire/stream.c
1686
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1707
int sdw_disable_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1711
if (!stream) {
drivers/soundwire/stream.c
1716
sdw_acquire_bus_lock(stream);
drivers/soundwire/stream.c
1718
if (stream->state == SDW_STREAM_DISABLED) {
drivers/soundwire/stream.c
1723
if (stream->state != SDW_STREAM_ENABLED) {
drivers/soundwire/stream.c
1725
__func__, stream->name, stream->state);
drivers/soundwire/stream.c
1730
ret = _sdw_disable_stream(stream);
drivers/soundwire/stream.c
1733
sdw_release_bus_lock(stream);
drivers/soundwire/stream.c
1738
static int _sdw_deprepare_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1745
int state = stream->state;
drivers/soundwire/stream.c
1752
stream->state = SDW_STREAM_DEPREPARED;
drivers/soundwire/stream.c
1754
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
1761
stream->state = state;
drivers/soundwire/stream.c
1771
bandwidth = m_rt->stream->params.rate * hweight32(p_rt->ch_mask) *
drivers/soundwire/stream.c
1772
m_rt->stream->params.bps;
drivers/soundwire/stream.c
1779
bandwidth = m_rt->stream->params.rate * m_rt->ch_count * m_rt->stream->params.bps;
drivers/soundwire/stream.c
1784
ret = bus->compute_params(bus, stream);
drivers/soundwire/stream.c
1788
stream->state = state;
drivers/soundwire/stream.c
1797
stream->state = state;
drivers/soundwire/stream.c
1802
return do_bank_switch(stream);
drivers/soundwire/stream.c
1812
int sdw_deprepare_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1816
if (!stream) {
drivers/soundwire/stream.c
1821
sdw_acquire_bus_lock(stream);
drivers/soundwire/stream.c
1823
if (stream->state == SDW_STREAM_DEPREPARED) {
drivers/soundwire/stream.c
1828
if (stream->state != SDW_STREAM_PREPARED &&
drivers/soundwire/stream.c
1829
stream->state != SDW_STREAM_DISABLED) {
drivers/soundwire/stream.c
1831
__func__, stream->name, stream->state);
drivers/soundwire/stream.c
1836
ret = _sdw_deprepare_stream(stream);
drivers/soundwire/stream.c
1839
sdw_release_bus_lock(stream);
drivers/soundwire/stream.c
1854
ret = snd_soc_dai_set_stream(dai, sdw_stream, substream->stream);
drivers/soundwire/stream.c
1876
struct sdw_stream_runtime *stream;
drivers/soundwire/stream.c
1878
stream = kzalloc_obj(*stream);
drivers/soundwire/stream.c
1879
if (!stream)
drivers/soundwire/stream.c
1882
stream->name = stream_name;
drivers/soundwire/stream.c
1883
INIT_LIST_HEAD(&stream->master_list);
drivers/soundwire/stream.c
1884
stream->state = SDW_STREAM_ALLOCATED;
drivers/soundwire/stream.c
1885
stream->m_rt_count = 0;
drivers/soundwire/stream.c
1886
stream->type = type;
drivers/soundwire/stream.c
1888
return stream;
drivers/soundwire/stream.c
1907
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
drivers/soundwire/stream.c
1953
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
drivers/soundwire/stream.c
1976
void sdw_release_stream(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
1978
kfree(stream);
drivers/soundwire/stream.c
1995
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
2008
if (!bus->multi_link && stream->m_rt_count > 0) {
drivers/soundwire/stream.c
2019
m_rt = sdw_master_rt_find(bus, stream);
drivers/soundwire/stream.c
2021
m_rt = sdw_master_rt_alloc(bus, stream);
drivers/soundwire/stream.c
2025
__func__, stream->name, ret);
drivers/soundwire/stream.c
2030
__func__, stream->name);
drivers/soundwire/stream.c
2043
stream->m_rt_count++;
drivers/soundwire/stream.c
2050
ret = sdw_config_stream(bus->dev, stream, stream_config, false);
drivers/soundwire/stream.c
2063
sdw_master_rt_free(m_rt, stream);
drivers/soundwire/stream.c
2079
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
2086
&stream->master_list, stream_node) {
drivers/soundwire/stream.c
2091
sdw_master_rt_free(m_rt, stream);
drivers/soundwire/stream.c
2092
stream->m_rt_count--;
drivers/soundwire/stream.c
2095
if (list_empty(&stream->master_list))
drivers/soundwire/stream.c
2096
stream->state = SDW_STREAM_RELEASED;
drivers/soundwire/stream.c
2121
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
2136
m_rt = sdw_master_rt_find(slave->bus, stream);
drivers/soundwire/stream.c
2142
m_rt = sdw_master_rt_alloc(slave->bus, stream);
drivers/soundwire/stream.c
2146
__func__, stream->name, ret);
drivers/soundwire/stream.c
2151
__func__, stream->name);
drivers/soundwire/stream.c
2159
s_rt = sdw_slave_rt_find(slave, stream);
drivers/soundwire/stream.c
2164
stream->name);
drivers/soundwire/stream.c
2186
ret = sdw_config_stream(&slave->dev, stream, stream_config, true);
drivers/soundwire/stream.c
2191
stream->type == SDW_STREAM_BPT);
drivers/soundwire/stream.c
2201
stream->state = SDW_STREAM_CONFIGURED;
drivers/soundwire/stream.c
2211
sdw_master_rt_free(m_rt, stream);
drivers/soundwire/stream.c
2213
sdw_slave_rt_free(slave, stream);
drivers/soundwire/stream.c
2229
struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
2233
sdw_slave_port_free(slave, stream);
drivers/soundwire/stream.c
2234
sdw_slave_rt_free(slave, stream);
drivers/soundwire/stream.c
711
m_rt->stream->state == SDW_STREAM_CONFIGURED)
drivers/soundwire/stream.c
729
if (m_rt->stream->state != SDW_STREAM_ENABLED)
drivers/soundwire/stream.c
845
static int do_bank_switch(struct sdw_stream_runtime *stream)
drivers/soundwire/stream.c
854
m_rt_count = stream->m_rt_count;
drivers/soundwire/stream.c
856
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
894
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
933
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
945
list_for_each_entry(m_rt, &stream->master_list, stream_node) {
drivers/soundwire/stream.c
994
struct sdw_stream_runtime *stream)
drivers/staging/greybus/audio_codec.c
34
find_dai_stream_params(struct gbaudio_codec_info *codec, int id, int stream)
drivers/staging/greybus/audio_codec.c
356
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
381
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
40
return &dai->params[stream];
drivers/staging/greybus/audio_codec.c
453
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
481
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
drivers/staging/greybus/audio_codec.c
528
params = find_dai_stream_params(codec, dai->id, substream->stream);
drivers/staging/greybus/audio_codec.c
542
switch (substream->stream) {
drivers/staging/greybus/audio_codec.c
564
static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
drivers/staging/greybus/audio_codec.c
574
stream ? "CAPTURE" : "PLAYBACK");
drivers/staging/greybus/audio_codec.c
578
params = find_dai_stream_params(codec, dai->id, stream);
drivers/staging/greybus/audio_codec.c
619
if (!mute && !stream) {/* start playback */
drivers/staging/greybus/audio_codec.c
624
} else if (!mute && stream) {/* start capture */
drivers/staging/greybus/audio_codec.c
629
} else if (mute && !stream) {/* stop playback */
drivers/staging/greybus/audio_codec.c
634
} else if (mute && stream) {/* stop capture */
drivers/staging/greybus/audio_codec.c
647
stream ? "Capture" : "Playback", ret);
drivers/staging/greybus/camera.c
737
payload->request_id, payload->frame_number, payload->stream);
drivers/staging/greybus/camera.c
940
struct gb_camera_stream_config *stream = &streams[i];
drivers/staging/greybus/camera.c
948
ret = kstrtouint(token, 10, &stream->width);
drivers/staging/greybus/camera.c
957
ret = kstrtouint(token, 10, &stream->height);
drivers/staging/greybus/camera.c
966
ret = kstrtouint(token, 16, &stream->format);
drivers/staging/greybus/camera.c
979
struct gb_camera_stream_config *stream = &streams[i];
drivers/staging/greybus/camera.c
983
stream->width, stream->height,
drivers/staging/greybus/camera.c
984
stream->format, stream->vc,
drivers/staging/greybus/camera.c
985
stream->dt[0], stream->dt[1],
drivers/staging/greybus/camera.c
986
stream->max_size);
drivers/staging/media/atomisp/include/linux/atomisp_platform.h
119
enum atomisp_input_stream_id stream;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1611
struct ia_css_stream *stream =
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1612
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
1613
if (!stream) {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2580
struct ia_css_stream *stream =
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2581
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream;
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2586
if (!stream) {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2622
dvs_6axis_config = ia_css_dvs2_6axis_config_allocate(stream);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2626
dvs_6axis_config = ia_css_dvs2_6axis_config_allocate(stream);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2670
dvs_6axis_config = ia_css_dvs2_6axis_config_allocate(stream);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2676
dvs_6axis_config = ia_css_dvs2_6axis_config_allocate(stream);
drivers/staging/media/atomisp/pci/atomisp_cmd.c
2948
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3367
if (sh_css_set_black_frame(asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_cmd.c
3516
stream_info->stream = stream_index;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1022
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
1043
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2467
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2480
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2497
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2698
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2707
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2721
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2730
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2744
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2753
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2767
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2776
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2790
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2800
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2814
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2823
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2837
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2846
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2860
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2873
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2888
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2901
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2916
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2925
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2940
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2949
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2964
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2973
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2988
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
2997
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
3131
if (!asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
3140
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
3279
if (!isp->asd.stream_env[i].stream)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
3382
asd->stream_env[ATOMISP_INPUT_STREAM_GENERAL].stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
380
if (!stream_env->stream)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
384
&& ia_css_stream_stop(stream_env->stream) != 0) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
392
if (ia_css_stream_has_stopped(stream_env->stream))
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
406
if (ia_css_stream_destroy(stream_env->stream)) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
411
stream_env->stream = NULL;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
450
pipe_index, multi_pipes, &stream_env->stream) != 0)
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
452
if (ia_css_stream_get_info(stream_env->stream,
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
454
ia_css_stream_destroy(stream_env->stream);
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
455
stream_env->stream = NULL;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
509
if (asd->stream_env[i].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
860
asd->stream_env[i].stream = NULL;
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
974
if (asd->stream_env[i].stream) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
976
.stream) != 0) {
drivers/staging/media/atomisp/pci/atomisp_compat_css20.h
54
struct ia_css_stream *stream;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
215
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
226
if (pipe->stream->config.online) {
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
227
preview_descr->online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
229
(pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
231
preview_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
332
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
346
if (pipe->stream->config.online) {
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
347
video_descr->online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
349
(pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
354
((pipe->stream->isp_params_configs->dz_config.dx !=
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
356
|| (pipe->stream->isp_params_configs->dz_config.dy !=
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
44
descr->continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
550
if (ia_css_util_is_input_format_yuv(pipe->stream->config.input_config.format))
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
556
if (pipe->stream->config.pack_raw_pixels)
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
569
if (pipe->stream->config.online &&
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
570
pipe->stream->config.mode != IA_CSS_INPUT_MODE_MEMORY) {
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
573
(pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
574
prim_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
588
(!pipe->stream->stop_copy_preview || !pipe->stream->disable_cont_vf);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
59
descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
704
if (pipe->stream->config.online) {
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
707
(pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
708
pre_de_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
738
if (pipe->stream->config.online) {
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
741
(pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
742
pre_anr_descr->stream_format = pipe->stream->config.input_config.format;
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_binarydesc.c
92
copy_descr->two_ppc = (pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_util.c
17
assert(pipe->stream);
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_util.c
19
return ia_css_util_input_format_bpp(pipe->stream->config.input_config.format,
drivers/staging/media/atomisp/pci/camera/pipe/src/pipe_util.c
20
pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/ia_css_dvs.h
247
ia_css_dvs2_6axis_config_allocate(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_pipe.h
122
struct ia_css_stream *stream;
drivers/staging/media/atomisp/pci/ia_css_stream.h
46
ia_css_stream_get_shading_correction_binary(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
49
ia_css_stream_get_dvs_binary(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
52
ia_css_stream_get_3a_binary(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
55
ia_css_stream_input_format_bits_per_pixel(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
58
sh_css_params_set_binning_factor(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream.h
62
sh_css_invalidate_params(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
66
ia_css_get_fpn_table(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
75
ia_css_get_shading_table(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
78
ia_css_get_isp_dis_coefficients(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream.h
83
ia_css_get_isp_dvs2_coefficients(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream.h
94
ia_css_stream_isp_parameters_init(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream.h
97
ia_css_stream_isp_parameters_uninit(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
173
struct ia_css_stream **stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
182
ia_css_stream_destroy(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
192
ia_css_stream_get_info(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
207
ia_css_stream_start(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
217
ia_css_stream_stop(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
226
ia_css_stream_has_stopped(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
235
ia_css_stream_unload(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
244
ia_css_stream_get_format(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
254
ia_css_stream_get_two_pixels_per_clock(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
264
ia_css_stream_set_output_padded_width(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
276
ia_css_stream_get_max_buffer_depth(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
288
ia_css_stream_set_buffer_depth(struct ia_css_stream *stream, int buffer_depth);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
299
ia_css_stream_get_buffer_depth(struct ia_css_stream *stream, int *buffer_depth);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
330
ia_css_stream_capture(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
346
ia_css_stream_capture_frame(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
378
ia_css_stream_send_input_frame(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
397
ia_css_stream_start_input_frame(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
417
ia_css_stream_send_input_line(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
440
ia_css_stream_send_input_embedded_line(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
453
ia_css_stream_end_input_frame(const struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
473
ia_css_stream_set_isp_config_on_pipe(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
494
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
503
ia_css_stream_get_isp_config(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
516
ia_css_alloc_continuous_frame_remain(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
527
ia_css_update_continuous_frames(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
539
ia_css_unlock_raw_frame(struct ia_css_stream *stream, uint32_t exp_id);
drivers/staging/media/atomisp/pci/ia_css_stream_public.h
552
ia_css_en_dz_capt_pipe(struct ia_css_stream *stream, bool enable);
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
106
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
121
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
124
dvs_binary = ia_css_stream_get_dvs_binary(stream);
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.h
44
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.c
114
assert(stream);
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.c
124
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.c
127
dvs_binary = ia_css_stream_get_dvs_binary(stream);
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.c
98
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ia_css_sdis2.host.h
44
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/runtime/debug/interface/ia_css_debug.h
230
void ia_css_debug_dump_isp_params(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
855
#define FIND_DMEM_PARAMS_TYPE(stream, kernel, type) \
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
857
findf_dmem_params(stream, offsetof(struct ia_css_memory_offsets, dmem.kernel))
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
859
#define FIND_DMEM_PARAMS(stream, kernel) FIND_DMEM_PARAMS_TYPE(stream, kernel, kernel)
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
863
findf_dmem_params(struct ia_css_stream *stream, short idx)
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
867
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
868
struct ia_css_pipe *pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
887
void ia_css_debug_dump_isp_params(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
892
assert(stream);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
895
ia_css_fpn_dump(FIND_DMEM_PARAMS(stream, fpn), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
899
ia_css_ob_dump(FIND_DMEM_PARAMS(stream, ob), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
903
ia_css_sc_dump(FIND_DMEM_PARAMS(stream, sc), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
907
ia_css_wb_dump(FIND_DMEM_PARAMS(stream, wb), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
911
ia_css_dp_dump(FIND_DMEM_PARAMS(stream, dp), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
915
ia_css_bnr_dump(FIND_DMEM_PARAMS(stream, bnr), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
919
ia_css_s3a_dump(FIND_DMEM_PARAMS(stream, s3a), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
923
ia_css_de_dump(FIND_DMEM_PARAMS(stream, de), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
927
ia_css_nr_dump(FIND_DMEM_PARAMS_TYPE(stream, nr, ynr), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
928
ia_css_yee_dump(FIND_DMEM_PARAMS(stream, yee), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
932
ia_css_csc_dump(FIND_DMEM_PARAMS(stream, csc), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
933
ia_css_yuv2rgb_dump(FIND_DMEM_PARAMS_TYPE(stream, yuv2rgb, csc),
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
935
ia_css_rgb2yuv_dump(FIND_DMEM_PARAMS_TYPE(stream, rgb2yuv, csc),
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
940
ia_css_gc_dump(FIND_DMEM_PARAMS(stream, gc), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
944
ia_css_tnr_dump(FIND_DMEM_PARAMS(stream, tnr), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
948
ia_css_anr_dump(FIND_DMEM_PARAMS(stream, anr), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/runtime/debug/src/ia_css_debug.c
952
ia_css_ce_dump(FIND_DMEM_PARAMS(stream, ce), IA_CSS_DEBUG_VERBOSE);
drivers/staging/media/atomisp/pci/sh_css.c
1004
struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1010
last_pipe = stream_get_last_pipe(stream);
drivers/staging/media/atomisp/pci/sh_css.c
1012
if ((stream) &&
drivers/staging/media/atomisp/pci/sh_css.c
1014
(stream->config.continuous)) {
drivers/staging/media/atomisp/pci/sh_css.c
1033
struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1038
if (stream->config.continuous)
drivers/staging/media/atomisp/pci/sh_css.c
1039
target_pipe = stream_get_copy_pipe(stream);
drivers/staging/media/atomisp/pci/sh_css.c
1041
target_pipe = stream_get_last_pipe(stream);
drivers/staging/media/atomisp/pci/sh_css.c
1047
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
1055
if ((!stream) || (stream->config.mode != IA_CSS_INPUT_MODE_BUFFERED_SENSOR))
drivers/staging/media/atomisp/pci/sh_css.c
1058
target_pipe = stream_get_target_pipe(stream);
drivers/staging/media/atomisp/pci/sh_css.c
1073
if (stream->config.isys_config[stream_id].valid) {
drivers/staging/media/atomisp/pci/sh_css.c
1076
retval = func(stream->config.source.port.port, isys_stream_id);
drivers/staging/media/atomisp/pci/sh_css.c
1087
struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1089
return stream_csi_rx_helper(stream, ia_css_isys_csi_rx_register_stream);
drivers/staging/media/atomisp/pci/sh_css.c
1093
struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1095
return stream_csi_rx_helper(stream, ia_css_isys_csi_rx_unregister_stream);
drivers/staging/media/atomisp/pci/sh_css.c
1109
if (!IS_ISP2401 && pipe->stream->reconfigure_css_rx) {
drivers/staging/media/atomisp/pci/sh_css.c
1110
ia_css_isys_rx_configure(&pipe->stream->csi_rx_config,
drivers/staging/media/atomisp/pci/sh_css.c
1111
pipe->stream->config.mode);
drivers/staging/media/atomisp/pci/sh_css.c
1112
pipe->stream->reconfigure_css_rx = false;
drivers/staging/media/atomisp/pci/sh_css.c
1123
if ((!pipe) || (!pipe->stream))
drivers/staging/media/atomisp/pci/sh_css.c
1126
if (!IS_ISP2401 && pipe->stream->reconfigure_css_rx)
drivers/staging/media/atomisp/pci/sh_css.c
1129
if (pipe->stream->config.input_config.format != ATOMISP_INPUT_FORMAT_BINARY_8)
drivers/staging/media/atomisp/pci/sh_css.c
1131
sh_css_sp_start_binary_copy(ia_css_pipe_get_pipe_num(pipe), out_frame, pipe->stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
1133
if (!IS_ISP2401 && pipe->stream->reconfigure_css_rx) {
drivers/staging/media/atomisp/pci/sh_css.c
1134
ia_css_isys_rx_configure(&pipe->stream->csi_rx_config,
drivers/staging/media/atomisp/pci/sh_css.c
1135
pipe->stream->config.mode);
drivers/staging/media/atomisp/pci/sh_css.c
1136
pipe->stream->reconfigure_css_rx = false;
drivers/staging/media/atomisp/pci/sh_css.c
1173
me->stream->config.pixels_per_clock == 2,
drivers/staging/media/atomisp/pci/sh_css.c
1174
me->stream->config.continuous,
drivers/staging/media/atomisp/pci/sh_css.c
1179
&me->stream->config.metadata_config,
drivers/staging/media/atomisp/pci/sh_css.c
1180
&me->stream->info.metadata_info
drivers/staging/media/atomisp/pci/sh_css.c
1183
me->stream->config.source.port.port);
drivers/staging/media/atomisp/pci/sh_css.c
1198
sh_css_invalidate_shading_tables(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1202
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
1207
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
1208
assert(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
1209
sh_css_pipe_free_shading_table(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
121
struct ia_css_stream *stream;
drivers/staging/media/atomisp/pci/sh_css.c
1472
map_sp_threads(struct ia_css_stream *stream, bool map)
drivers/staging/media/atomisp/pci/sh_css.c
1481
stream, map ? "true" : "false");
drivers/staging/media/atomisp/pci/sh_css.c
1483
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
1488
main_pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
1517
if (!stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
1520
for (i = 1; i < stream->num_pipes; i++)
drivers/staging/media/atomisp/pci/sh_css.c
1521
ia_css_pipeline_map(stream->pipes[i]->pipe_num, map);
drivers/staging/media/atomisp/pci/sh_css.c
1533
create_host_pipeline_structure(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1542
IA_CSS_ENTER_PRIVATE("stream = %p", stream);
drivers/staging/media/atomisp/pci/sh_css.c
1544
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
1549
main_pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
1603
if (!stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
1606
for (i = 1; i < stream->num_pipes && 0 == err; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
1607
main_pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
1624
create_host_pipeline(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
1632
IA_CSS_ENTER_PRIVATE("stream = %p", stream);
drivers/staging/media/atomisp/pci/sh_css.c
1633
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
1638
main_pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
1661
if (stream->config.continuous ||
drivers/staging/media/atomisp/pci/sh_css.c
1663
stream->config.mode != IA_CSS_INPUT_MODE_MEMORY)) {
drivers/staging/media/atomisp/pci/sh_css.c
1672
err = allocate_mipi_frames(main_pipe, &stream->info);
drivers/staging/media/atomisp/pci/sh_css.c
1734
if (!stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
1737
for (i = 1; i < stream->num_pipes && 0 == err; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
1738
switch (stream->pipes[i]->mode) {
drivers/staging/media/atomisp/pci/sh_css.c
1740
err = create_host_preview_pipeline(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
1743
err = create_host_video_pipeline(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
1746
err = create_host_capture_pipeline(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
1749
err = create_host_yuvpp_pipeline(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
176
sh_css_pipe_start(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/sh_css.c
1929
if (pipe->stream) {
drivers/staging/media/atomisp/pci/sh_css.c
2217
if ((!pipe) || (!pipe->stream)) {
drivers/staging/media/atomisp/pci/sh_css.c
2223
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
2227
num_frames = pipe->stream->config.init_num_cont_raw_buf;
drivers/staging/media/atomisp/pci/sh_css.c
2228
pipe->stream->continuous_pipe = pipe;
drivers/staging/media/atomisp/pci/sh_css.c
2230
num_frames = pipe->stream->config.target_num_cont_raw_buf;
drivers/staging/media/atomisp/pci/sh_css.c
2248
ref_info.res.width = pipe->stream->config.input_config.input_res.width;
drivers/staging/media/atomisp/pci/sh_css.c
2249
ref_info.res.height = pipe->stream->config.input_config.input_res.height;
drivers/staging/media/atomisp/pci/sh_css.c
2255
if (pipe->stream->config.pack_raw_pixels) {
drivers/staging/media/atomisp/pci/sh_css.c
2281
idx = pipe->stream->config.init_num_cont_raw_buf;
drivers/staging/media/atomisp/pci/sh_css.c
2305
&pipe->stream->info.metadata_info);
drivers/staging/media/atomisp/pci/sh_css.c
2313
ia_css_alloc_continuous_frame_remain(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
2315
if (!stream)
drivers/staging/media/atomisp/pci/sh_css.c
2317
return alloc_continuous_frames(stream->continuous_pipe, false);
drivers/staging/media/atomisp/pci/sh_css.c
2341
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
2344
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
2346
sensor = pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR;
drivers/staging/media/atomisp/pci/sh_css.c
2347
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
2352
err = ia_css_util_check_input(&pipe->stream->config, false, false);
drivers/staging/media/atomisp/pci/sh_css.c
280
create_host_pipeline_structure(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/sh_css.c
283
create_host_pipeline(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/sh_css.c
2884
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
2891
input_res = &pipe->stream->config.input_config.input_res;
drivers/staging/media/atomisp/pci/sh_css.c
2896
effective_res = &pipe->stream->config.input_config.effective_res;
drivers/staging/media/atomisp/pci/sh_css.c
2900
in_frame->raw_bayer_order = pipe->stream->config.input_config.bayer_order;
drivers/staging/media/atomisp/pci/sh_css.c
2924
column += get_crop_columns_for_bayer_order(&pipe->stream->config);
drivers/staging/media/atomisp/pci/sh_css.c
2925
row += get_crop_lines_for_bayer_order(&pipe->stream->config);
drivers/staging/media/atomisp/pci/sh_css.c
2950
in_frame->frame_info.format = (pipe->stream->config.pack_raw_pixels) ?
drivers/staging/media/atomisp/pci/sh_css.c
2954
in_frame->frame_info.res.width = pipe->stream->config.input_config.input_res.width;
drivers/staging/media/atomisp/pci/sh_css.c
2955
in_frame->frame_info.res.height = pipe->stream->config.input_config.input_res.height;
drivers/staging/media/atomisp/pci/sh_css.c
2958
pipe->stream->config.input_config.input_res.width, 0);
drivers/staging/media/atomisp/pci/sh_css.c
3020
if ((!pipe) || (!pipe->stream) || (pipe->mode != IA_CSS_PIPE_ID_VIDEO)) {
drivers/staging/media/atomisp/pci/sh_css.c
3038
need_in_frameinfo_memory = !(pipe->stream->config.online ||
drivers/staging/media/atomisp/pci/sh_css.c
3039
pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
3042
need_in_frameinfo_memory = pipe->stream->config.mode ==
drivers/staging/media/atomisp/pci/sh_css.c
3089
} else if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
3095
in_frame = pipe->stream->last_pipe->continuous_frames[0];
drivers/staging/media/atomisp/pci/sh_css.c
3172
pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
3200
if ((!pipe) || (!pipe->stream) || (pipe->mode != IA_CSS_PIPE_ID_PREVIEW)) {
drivers/staging/media/atomisp/pci/sh_css.c
3219
sensor = (pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR);
drivers/staging/media/atomisp/pci/sh_css.c
3220
buffered_sensor = (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR);
drivers/staging/media/atomisp/pci/sh_css.c
3221
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
3222
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
3228
need_in_frameinfo_memory = pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY;
drivers/staging/media/atomisp/pci/sh_css.c
3259
} else if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
3266
in_frame = pipe->stream->last_pipe->continuous_frames[0];
drivers/staging/media/atomisp/pci/sh_css.c
3306
ia_css_pipeline_finalize_stages(&pipe->pipeline, pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
3315
if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
3319
(pipe->stream->config.init_num_cont_raw_buf, true);
drivers/staging/media/atomisp/pci/sh_css.c
3321
(pipe->stream->config.target_num_cont_raw_buf, false);
drivers/staging/media/atomisp/pci/sh_css.c
3324
for (i = 0; i < pipe->stream->config.init_num_cont_raw_buf; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
3343
if ((!pipe) || (!pipe->stream) || (pipe->mode != IA_CSS_PIPE_ID_PREVIEW)) {
drivers/staging/media/atomisp/pci/sh_css.c
3348
preview_pipe_input_mode = pipe->stream->config.mode;
drivers/staging/media/atomisp/pci/sh_css.c
3366
if (pipe->stream->cont_capt) {
drivers/staging/media/atomisp/pci/sh_css.c
3373
if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
3378
pipe->stream->config.pixels_per_clock == 2, false,
drivers/staging/media/atomisp/pci/sh_css.c
3381
pipe->stream->config.mode,
drivers/staging/media/atomisp/pci/sh_css.c
3382
&pipe->stream->config.metadata_config,
drivers/staging/media/atomisp/pci/sh_css.c
3383
&pipe->stream->info.metadata_info,
drivers/staging/media/atomisp/pci/sh_css.c
3384
pipe->stream->config.source.port.port);
drivers/staging/media/atomisp/pci/sh_css.c
3394
if (pipe->stream->cont_capt) {
drivers/staging/media/atomisp/pci/sh_css.c
3399
capture_pipe->stream->config.pixels_per_clock == 2,
drivers/staging/media/atomisp/pci/sh_css.c
3405
&pipe->stream->config.metadata_config,
drivers/staging/media/atomisp/pci/sh_css.c
3406
&pipe->stream->info.metadata_info,
drivers/staging/media/atomisp/pci/sh_css.c
391
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
393
switch (pipe->stream->config.input_config.format) {
drivers/staging/media/atomisp/pci/sh_css.c
3975
n = event->pipe->stream->num_pipes;
drivers/staging/media/atomisp/pci/sh_css.c
3978
event->pipe->stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
4049
sh_css_pipe_start(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
4057
IA_CSS_ENTER_PRIVATE("stream = %p", stream);
drivers/staging/media/atomisp/pci/sh_css.c
4059
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
4063
pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
4071
if (stream->started) {
drivers/staging/media/atomisp/pci/sh_css.c
4094
if (!stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
4097
for (i = 1; i < stream->num_pipes && 0 == err ; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
4098
switch (stream->pipes[i]->mode) {
drivers/staging/media/atomisp/pci/sh_css.c
4100
err = preview_start(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
4103
err = video_start(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
4106
err = capture_start(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
4109
err = yuvpp_start(stream->pipes[i]);
drivers/staging/media/atomisp/pci/sh_css.c
4128
sh_css_invalidate_params(stream);
drivers/staging/media/atomisp/pci/sh_css.c
4130
stream->isp_params_configs, true, NULL);
drivers/staging/media/atomisp/pci/sh_css.c
4150
if (!stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
4153
for (i = 1; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
4155
ia_css_pipe_get_pipe_num(stream->pipes[i]),
drivers/staging/media/atomisp/pci/sh_css.c
4164
if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
4183
if (pipe->stream->cont_capt) {
drivers/staging/media/atomisp/pci/sh_css.c
4203
stream->started = true;
drivers/staging/media/atomisp/pci/sh_css.c
4229
continuous = pipe && pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
4238
ia_css_stream_get_max_buffer_depth(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
4244
(void)stream;
drivers/staging/media/atomisp/pci/sh_css.c
4250
ia_css_stream_set_buffer_depth(struct ia_css_stream *stream, int buffer_depth)
drivers/staging/media/atomisp/pci/sh_css.c
4253
(void)stream;
drivers/staging/media/atomisp/pci/sh_css.c
4257
stream->config.target_num_cont_raw_buf = buffer_depth;
drivers/staging/media/atomisp/pci/sh_css.c
4264
ia_css_stream_get_buffer_depth(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
4270
(void)stream;
drivers/staging/media/atomisp/pci/sh_css.c
4271
*buffer_depth = stream->config.target_num_cont_raw_buf;
drivers/staging/media/atomisp/pci/sh_css.c
4339
(const struct ia_css_stream_config *)&pipe->stream->config,
drivers/staging/media/atomisp/pci/sh_css.c
445
ia_css_stream_input_format_bits_per_pixel(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
4450
bool continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
4471
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
4482
err = ia_css_util_check_input(&pipe->stream->config, false, false);
drivers/staging/media/atomisp/pci/sh_css.c
4486
if (online && pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY)
drivers/staging/media/atomisp/pci/sh_css.c
449
if (stream)
drivers/staging/media/atomisp/pci/sh_css.c
450
bpp = ia_css_util_input_format_bpp(stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
451
stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
457
sh_css_config_input_network_2400(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
4573
pipe->stream->config.left_padding);
drivers/staging/media/atomisp/pci/sh_css.c
460
struct ia_css_pipe *pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
464
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
474
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
475
stream->csi_rx_config.comp,
drivers/staging/media/atomisp/pci/sh_css.c
4780
video_pipe_input_mode = pipe->stream->config.mode;
drivers/staging/media/atomisp/pci/sh_css.c
4798
if (pipe->stream->cont_capt) {
drivers/staging/media/atomisp/pci/sh_css.c
480
stream->config.channel_id,
drivers/staging/media/atomisp/pci/sh_css.c
4805
if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
481
stream->config.mode);
drivers/staging/media/atomisp/pci/sh_css.c
4810
pipe->stream->config.pixels_per_clock == 2, false,
drivers/staging/media/atomisp/pci/sh_css.c
4813
pipe->stream->config.mode,
drivers/staging/media/atomisp/pci/sh_css.c
4814
&pipe->stream->config.metadata_config,
drivers/staging/media/atomisp/pci/sh_css.c
4815
&pipe->stream->info.metadata_info,
drivers/staging/media/atomisp/pci/sh_css.c
4816
pipe->stream->config.source.port.port);
drivers/staging/media/atomisp/pci/sh_css.c
4826
if (pipe->stream->cont_capt) {
drivers/staging/media/atomisp/pci/sh_css.c
483
if ((binary && (binary->online || stream->config.continuous)) ||
drivers/staging/media/atomisp/pci/sh_css.c
4831
capture_pipe->stream->config.pixels_per_clock == 2,
drivers/staging/media/atomisp/pci/sh_css.c
4837
&pipe->stream->config.metadata_config,
drivers/staging/media/atomisp/pci/sh_css.c
4838
&pipe->stream->info.metadata_info,
drivers/staging/media/atomisp/pci/sh_css.c
485
err = ia_css_ifmtr_configure(&stream->config,
drivers/staging/media/atomisp/pci/sh_css.c
491
if (stream->config.mode == IA_CSS_INPUT_MODE_PRBS) {
drivers/staging/media/atomisp/pci/sh_css.c
496
width = (stream->config.input_config.input_res.width) /
drivers/staging/media/atomisp/pci/sh_css.c
4963
if ((pipe->stream->isp_params_configs->dz_config.dx < HRT_GDC_N) ||
drivers/staging/media/atomisp/pci/sh_css.c
4964
(pipe->stream->isp_params_configs->dz_config.dy < HRT_GDC_N) ||
drivers/staging/media/atomisp/pci/sh_css.c
497
(1 + (stream->config.pixels_per_clock == 2));
drivers/staging/media/atomisp/pci/sh_css.c
498
height = stream->config.input_config.input_res.height;
drivers/staging/media/atomisp/pci/sh_css.c
5027
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
5031
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
5032
sensor = (pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR);
drivers/staging/media/atomisp/pci/sh_css.c
5033
memory = pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY;
drivers/staging/media/atomisp/pci/sh_css.c
5034
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
5459
need_isp_copy = pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR;
drivers/staging/media/atomisp/pci/sh_css.c
5607
need_isp_copy = pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR;
drivers/staging/media/atomisp/pci/sh_css.c
5630
rval &= ((pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
5658
err = ia_css_util_check_input(&pipe->stream->config, must_be_raw, false);
drivers/staging/media/atomisp/pci/sh_css.c
5664
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
5679
pipe->pipe_settings.capture.copy_binary.online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
5762
((pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
6107
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
6114
err = ia_css_util_check_input(&pipe->stream->config, false, false);
drivers/staging/media/atomisp/pci/sh_css.c
6197
(pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_YUV422_8);
drivers/staging/media/atomisp/pci/sh_css.c
6227
pipe->pipe_settings.capture.copy_binary.online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
6320
yuvpp_pipe_input_mode = pipe->stream->config.mode;
drivers/staging/media/atomisp/pci/sh_css.c
6447
if ((!pipe) || (!pipe->stream) || (pipe->mode != IA_CSS_PIPE_ID_YUVPP)) {
drivers/staging/media/atomisp/pci/sh_css.c
6469
sensor = pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR;
drivers/staging/media/atomisp/pci/sh_css.c
6470
buffered_sensor = pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR;
drivers/staging/media/atomisp/pci/sh_css.c
6471
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
6472
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
6477
need_in_frameinfo_memory = pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY;
drivers/staging/media/atomisp/pci/sh_css.c
6498
if (pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
6501
} else if (pipe->stream->config.input_config.format ==
drivers/staging/media/atomisp/pci/sh_css.c
6667
pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
6692
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
6710
pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
6754
ia_css_pipeline_finalize_stages(me, pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
6799
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css.c
6818
sensor = (pipe->stream->config.mode == IA_CSS_INPUT_MODE_SENSOR);
drivers/staging/media/atomisp/pci/sh_css.c
6819
buffered_sensor = (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR);
drivers/staging/media/atomisp/pci/sh_css.c
6820
online = pipe->stream->config.online;
drivers/staging/media/atomisp/pci/sh_css.c
6821
continuous = pipe->stream->config.continuous;
drivers/staging/media/atomisp/pci/sh_css.c
6827
need_in_frameinfo_memory = pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY;
drivers/staging/media/atomisp/pci/sh_css.c
6900
in_frame = pipe->stream->last_pipe->continuous_frames[0];
drivers/staging/media/atomisp/pci/sh_css.c
6929
} else if (pipe->stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
6930
in_frame = pipe->stream->last_pipe->continuous_frames[0];
drivers/staging/media/atomisp/pci/sh_css.c
7099
ia_css_pipeline_finalize_stages(&pipe->pipeline, pipe->stream->config.continuous);
drivers/staging/media/atomisp/pci/sh_css.c
7165
start_pipe(pipe, copy_ovrd, pipe->stream->config.mode);
drivers/staging/media/atomisp/pci/sh_css.c
7174
pipe->stream->reconfigure_css_rx) {
drivers/staging/media/atomisp/pci/sh_css.c
7175
ia_css_isys_rx_configure(&pipe->stream->csi_rx_config,
drivers/staging/media/atomisp/pci/sh_css.c
7176
pipe->stream->config.mode);
drivers/staging/media/atomisp/pci/sh_css.c
7177
pipe->stream->reconfigure_css_rx = false;
drivers/staging/media/atomisp/pci/sh_css.c
7197
pipe->stream->config.input_config.format == ATOMISP_INPUT_FORMAT_BINARY_8) {
drivers/staging/media/atomisp/pci/sh_css.c
7216
ia_css_stream_send_input_frame(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
7221
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7225
stream->config.channel_id,
drivers/staging/media/atomisp/pci/sh_css.c
7226
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
7227
stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
7231
ia_css_stream_start_input_frame(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
7233
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7236
stream->config.channel_id,
drivers/staging/media/atomisp/pci/sh_css.c
7237
stream->config.input_config.format,
drivers/staging/media/atomisp/pci/sh_css.c
7238
stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
7242
ia_css_stream_send_input_line(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
7248
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7250
ia_css_inputfifo_send_line(stream->config.channel_id,
drivers/staging/media/atomisp/pci/sh_css.c
7255
ia_css_stream_send_input_embedded_line(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
7260
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7263
ia_css_inputfifo_send_embedded_line(stream->config.channel_id,
drivers/staging/media/atomisp/pci/sh_css.c
7268
ia_css_stream_end_input_frame(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
7270
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7272
ia_css_inputfifo_end_frame(stream->config.channel_id);
drivers/staging/media/atomisp/pci/sh_css.c
7300
int ia_css_stream_capture_frame(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
7307
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7311
if (exp_id == 0 || !stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
7342
int ia_css_stream_capture(struct ia_css_stream *stream, int num_captures,
drivers/staging/media/atomisp/pci/sh_css.c
7349
if (!stream)
drivers/staging/media/atomisp/pci/sh_css.c
7668
if (!pipe || !pipe->stream) {
drivers/staging/media/atomisp/pci/sh_css.c
7734
ia_css_stream_configure_rx(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
7738
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
7740
config = &stream->config.source.port;
drivers/staging/media/atomisp/pci/sh_css.c
7743
stream->csi_rx_config.mode = MONO_1L_1L_0L;
drivers/staging/media/atomisp/pci/sh_css.c
7745
stream->csi_rx_config.mode = MONO_2L_1L_0L;
drivers/staging/media/atomisp/pci/sh_css.c
7747
stream->csi_rx_config.mode = MONO_3L_1L_0L;
drivers/staging/media/atomisp/pci/sh_css.c
7749
stream->csi_rx_config.mode = MONO_4L_1L_0L;
drivers/staging/media/atomisp/pci/sh_css.c
7755
stream->csi_rx_config.port =
drivers/staging/media/atomisp/pci/sh_css.c
7757
stream->csi_rx_config.timeout = config->timeout;
drivers/staging/media/atomisp/pci/sh_css.c
7758
stream->csi_rx_config.initcount = 0;
drivers/staging/media/atomisp/pci/sh_css.c
7759
stream->csi_rx_config.synccount = 0x28282828;
drivers/staging/media/atomisp/pci/sh_css.c
7760
stream->csi_rx_config.rxcount = config->rxcount;
drivers/staging/media/atomisp/pci/sh_css.c
7762
stream->csi_rx_config.comp = MIPI_PREDICTOR_NONE;
drivers/staging/media/atomisp/pci/sh_css.c
7770
stream->csi_rx_config.is_two_ppc = (stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
7771
stream->reconfigure_css_rx = true;
drivers/staging/media/atomisp/pci/sh_css.c
7815
struct ia_css_stream **stream)
drivers/staging/media/atomisp/pci/sh_css.c
7831
!stream ||
drivers/staging/media/atomisp/pci/sh_css.c
7982
curr_pipe->stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
7987
effective_res = curr_pipe->stream->config.input_config.effective_res;
drivers/staging/media/atomisp/pci/sh_css.c
8057
copy_pipe->stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
8068
copy_pipe->stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
8076
curr_pipe->stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
8161
*stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
8168
if (!my_css_save.stream_seeds[i].stream) {
drivers/staging/media/atomisp/pci/sh_css.c
8170
my_css_save.stream_seeds[i].orig_stream = stream;
drivers/staging/media/atomisp/pci/sh_css.c
8171
my_css_save.stream_seeds[i].stream = curr_stream;
drivers/staging/media/atomisp/pci/sh_css.c
8193
ia_css_stream_destroy(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8198
IA_CSS_ENTER_PRIVATE("stream = %p", stream);
drivers/staging/media/atomisp/pci/sh_css.c
8199
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
8205
ia_css_stream_isp_parameters_uninit(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8207
if ((stream->last_pipe) &&
drivers/staging/media/atomisp/pci/sh_css.c
8208
ia_css_pipeline_is_mapped(stream->last_pipe->pipe_num)) {
drivers/staging/media/atomisp/pci/sh_css.c
8210
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
8211
struct ia_css_pipe *entry = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
8229
if (stream->config.isys_config[i].valid && isys_stream->valid)
drivers/staging/media/atomisp/pci/sh_css.c
8235
if (stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css.c
8236
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
8237
struct ia_css_pipe *entry = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
8249
stream_unregister_with_csi_rx(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8252
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
8253
struct ia_css_pipe *curr_pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
8259
err = map_sp_threads(stream, false);
drivers/staging/media/atomisp/pci/sh_css.c
8267
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
8268
struct ia_css_pipe *entry = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
8273
entry->stream = NULL;
drivers/staging/media/atomisp/pci/sh_css.c
8278
entry->pipe_settings.preview.copy_pipe->stream = NULL;
drivers/staging/media/atomisp/pci/sh_css.c
8283
entry->pipe_settings.video.copy_pipe->stream = NULL;
drivers/staging/media/atomisp/pci/sh_css.c
8289
kfree(stream->pipes);
drivers/staging/media/atomisp/pci/sh_css.c
8290
stream->pipes = NULL;
drivers/staging/media/atomisp/pci/sh_css.c
8291
stream->num_pipes = 0;
drivers/staging/media/atomisp/pci/sh_css.c
8296
if (my_css_save.stream_seeds[i].stream == stream) {
drivers/staging/media/atomisp/pci/sh_css.c
8298
my_css_save.stream_seeds[i].stream = NULL;
drivers/staging/media/atomisp/pci/sh_css.c
8304
kfree(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8311
ia_css_stream_get_info(const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
8315
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8318
*stream_info = stream->info;
drivers/staging/media/atomisp/pci/sh_css.c
8323
ia_css_stream_start(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8327
IA_CSS_ENTER("stream = %p", stream);
drivers/staging/media/atomisp/pci/sh_css.c
8328
if ((!stream) || (!stream->last_pipe)) {
drivers/staging/media/atomisp/pci/sh_css.c
8332
IA_CSS_LOG("starting %d", stream->last_pipe->mode);
drivers/staging/media/atomisp/pci/sh_css.c
8334
sh_css_sp_set_disable_continuous_viewfinder(stream->disable_cont_vf);
drivers/staging/media/atomisp/pci/sh_css.c
8337
err = create_host_pipeline(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8344
((stream->config.mode == IA_CSS_INPUT_MODE_SENSOR) ||
drivers/staging/media/atomisp/pci/sh_css.c
8345
(stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR)))
drivers/staging/media/atomisp/pci/sh_css.c
8346
stream_register_with_csi_rx(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8349
if (!IS_ISP2401 && stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css.c
8351
unsigned int port = (unsigned int)(stream->config.source.port.port);
drivers/staging/media/atomisp/pci/sh_css.c
8359
if (stream->config.mode != IA_CSS_INPUT_MODE_MEMORY) {
drivers/staging/media/atomisp/pci/sh_css.c
8361
err = sh_css_config_input_network_2401(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8363
err = sh_css_config_input_network_2400(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8368
err = sh_css_pipe_start(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8374
ia_css_stream_stop(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8379
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8380
assert(stream->last_pipe);
drivers/staging/media/atomisp/pci/sh_css.c
8382
stream->last_pipe->mode);
drivers/staging/media/atomisp/pci/sh_css.c
8385
if (!IS_ISP2401 && stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css.c
8387
unsigned int port = (unsigned int)(stream->config.source.port.port);
drivers/staging/media/atomisp/pci/sh_css.c
8393
err = ia_css_pipeline_request_stop(&stream->last_pipe->pipeline);
drivers/staging/media/atomisp/pci/sh_css.c
8407
ia_css_stream_has_stopped(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8411
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8413
stopped = ia_css_pipeline_has_stopped(&stream->last_pipe->pipeline);
drivers/staging/media/atomisp/pci/sh_css.c
8424
ia_css_stream_unload(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8428
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8431
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8433
if (my_css_save.stream_seeds[i].stream == stream) {
drivers/staging/media/atomisp/pci/sh_css.c
8438
my_css_save.stream_seeds[i].stream);
drivers/staging/media/atomisp/pci/sh_css.c
8439
ia_css_stream_destroy(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8444
my_css_save.stream_seeds[i].stream);
drivers/staging/media/atomisp/pci/sh_css.c
8465
ia_css_stream_get_format(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8467
return stream->config.input_config.format;
drivers/staging/media/atomisp/pci/sh_css.c
8471
ia_css_stream_get_two_pixels_per_clock(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8473
return (stream->config.pixels_per_clock == 2);
drivers/staging/media/atomisp/pci/sh_css.c
8478
*stream)
drivers/staging/media/atomisp/pci/sh_css.c
8482
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8484
pipe = stream->pipes[0];
drivers/staging/media/atomisp/pci/sh_css.c
8486
if (stream->num_pipes == 2) {
drivers/staging/media/atomisp/pci/sh_css.c
8487
assert(stream->pipes[1]);
drivers/staging/media/atomisp/pci/sh_css.c
8488
if (stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_VIDEO ||
drivers/staging/media/atomisp/pci/sh_css.c
8489
stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_PREVIEW)
drivers/staging/media/atomisp/pci/sh_css.c
8490
pipe = stream->pipes[1];
drivers/staging/media/atomisp/pci/sh_css.c
8497
ia_css_stream_get_dvs_binary(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8503
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css.c
8504
struct ia_css_pipe *pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css.c
8517
ia_css_stream_get_3a_binary(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8522
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8524
pipe = stream->pipes[0];
drivers/staging/media/atomisp/pci/sh_css.c
8526
if (stream->num_pipes == 2) {
drivers/staging/media/atomisp/pci/sh_css.c
8527
assert(stream->pipes[1]);
drivers/staging/media/atomisp/pci/sh_css.c
8528
if (stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_VIDEO ||
drivers/staging/media/atomisp/pci/sh_css.c
8529
stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_PREVIEW)
drivers/staging/media/atomisp/pci/sh_css.c
8530
pipe = stream->pipes[1];
drivers/staging/media/atomisp/pci/sh_css.c
8539
ia_css_stream_set_output_padded_width(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css.c
8544
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
8546
pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
8807
ia_css_update_continuous_frames(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8816
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css.c
8823
pipe = stream->continuous_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
8825
for (i = stream->config.init_num_cont_raw_buf;
drivers/staging/media/atomisp/pci/sh_css.c
8826
i < stream->config.target_num_cont_raw_buf; i++)
drivers/staging/media/atomisp/pci/sh_css.c
8831
(stream->config.target_num_cont_raw_buf, true);
drivers/staging/media/atomisp/pci/sh_css.c
8855
need_input_queue = pipe->stream->config.mode == IA_CSS_INPUT_MODE_MEMORY;
drivers/staging/media/atomisp/pci/sh_css.c
888
sh_css_config_input_network_2401(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
8914
if (!pipe->stream->config.continuous)
drivers/staging/media/atomisp/pci/sh_css.c
8935
ia_css_unlock_raw_frame(struct ia_css_stream *stream, uint32_t exp_id)
drivers/staging/media/atomisp/pci/sh_css.c
8945
if (!stream || !stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
900
assert(stream);
drivers/staging/media/atomisp/pci/sh_css.c
902
"sh_css_config_input_network() enter 0x%p:\n", stream);
drivers/staging/media/atomisp/pci/sh_css.c
904
if (stream->config.continuous) {
drivers/staging/media/atomisp/pci/sh_css.c
905
if (stream->last_pipe->config.mode == IA_CSS_PIPE_MODE_CAPTURE)
drivers/staging/media/atomisp/pci/sh_css.c
906
pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
907
else if (stream->last_pipe->config.mode == IA_CSS_PIPE_MODE_YUVPP)
drivers/staging/media/atomisp/pci/sh_css.c
908
pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
909
else if (stream->last_pipe->config.mode == IA_CSS_PIPE_MODE_PREVIEW)
drivers/staging/media/atomisp/pci/sh_css.c
910
pipe = stream->last_pipe->pipe_settings.preview.copy_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
911
else if (stream->last_pipe->config.mode == IA_CSS_PIPE_MODE_VIDEO)
drivers/staging/media/atomisp/pci/sh_css.c
912
pipe = stream->last_pipe->pipe_settings.video.copy_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
914
pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css.c
946
if (!stream->config.isys_config[i].valid)
drivers/staging/media/atomisp/pci/sh_css.c
951
&stream->config,
drivers/staging/media/atomisp/pci/sh_css.c
955
if (stream->config.online) {
drivers/staging/media/atomisp/pci/sh_css.c
993
struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css.c
997
if (stream)
drivers/staging/media/atomisp/pci/sh_css.c
998
last_pipe = stream->last_pipe;
drivers/staging/media/atomisp/pci/sh_css_internal.h
934
sh_css_invalidate_shading_tables(struct ia_css_stream *stream);
drivers/staging/media/atomisp/pci/sh_css_legacy.h
54
sh_css_set_black_frame(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_mipi.c
305
if (IS_ISP2401 && pipe->stream->config.online) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
312
if (pipe->stream->config.mode != IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
319
port = (unsigned int)pipe->stream->config.source.port.port;
drivers/staging/media/atomisp/pci/sh_css_mipi.c
327
err = calculate_mipi_buff_size(&pipe->stream->config,
drivers/staging/media/atomisp/pci/sh_css_mipi.c
416
assert(pipe->stream);
drivers/staging/media/atomisp/pci/sh_css_mipi.c
417
if ((!pipe) || (!pipe->stream)) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
423
if (pipe->stream->config.mode != IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
429
port = (unsigned int)pipe->stream->config.source.port.port;
drivers/staging/media/atomisp/pci/sh_css_mipi.c
504
if (pipe->stream->config.mode != IA_CSS_INPUT_MODE_BUFFERED_SENSOR) {
drivers/staging/media/atomisp/pci/sh_css_mipi.c
510
port = (unsigned int)pipe->stream->config.source.port.port;
drivers/staging/media/atomisp/pci/sh_css_params.c
1002
sh_css_params_set_binning_factor(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1008
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
1010
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
1023
sh_css_set_shading_table(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1030
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
1043
sh_css_invalidate_shading_tables(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
1814
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1817
return ia_css_stream_set_isp_config_on_pipe(stream, config, NULL);
drivers/staging/media/atomisp/pci/sh_css_params.c
1822
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1828
if ((!stream) || (!config))
drivers/staging/media/atomisp/pci/sh_css_params.c
1831
IA_CSS_ENTER("stream=%p, config=%p, pipe=%p", stream, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1834
err = sh_css_set_per_frame_isp_config_on_pipe(stream, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1836
err = sh_css_set_global_isp_config_on_pipe(stream->pipes[0], config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1851
if ((!pipe) || (!pipe->stream))
drivers/staging/media/atomisp/pci/sh_css_params.c
1857
err = sh_css_set_per_frame_isp_config_on_pipe(pipe->stream, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1876
err1 = sh_css_init_isp_params_from_config(curr_pipe, curr_pipe->stream->isp_params_configs, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1879
err2 = sh_css_param_update_isp_params(curr_pipe, curr_pipe->stream->isp_params_configs, sh_css_sp_is_running(), pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1895
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1910
IA_CSS_ENTER_PRIVATE("stream=%p, config=%p, pipe=%p", stream, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1920
if (!stream->per_frame_isp_params_configs) {
drivers/staging/media/atomisp/pci/sh_css_params.c
1921
err = sh_css_create_isp_params(stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
1922
&stream->per_frame_isp_params_configs);
drivers/staging/media/atomisp/pci/sh_css_params.c
1928
params = stream->per_frame_isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
1931
if (!sh_css_init_isp_params_from_global(stream, params, false, pipe)) {
drivers/staging/media/atomisp/pci/sh_css_params.c
1935
err2 = sh_css_init_isp_params_from_config(stream->pipes[0], params, config, pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1948
err3 = sh_css_param_update_isp_params(stream->pipes[0], params, sh_css_sp_is_running(), pipe);
drivers/staging/media/atomisp/pci/sh_css_params.c
1986
sh_css_set_shading_table(pipe->stream, params, config->shading_table);
drivers/staging/media/atomisp/pci/sh_css_params.c
2024
const struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
2028
ia_css_pipe_get_isp_config(stream->pipes[0], config);
drivers/staging/media/atomisp/pci/sh_css_params.c
2042
params = pipe->stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
2254
ia_css_stream_isp_parameters_init(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
2262
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
2265
if (!stream) {
drivers/staging/media/atomisp/pci/sh_css_params.c
2273
stream->per_frame_isp_params_configs = NULL;
drivers/staging/media/atomisp/pci/sh_css_params.c
2274
err = sh_css_create_isp_params(stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
2275
&stream->isp_params_configs);
drivers/staging/media/atomisp/pci/sh_css_params.c
2279
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
2280
if (!sh_css_init_isp_params_from_global(stream, params, true, NULL)) {
drivers/staging/media/atomisp/pci/sh_css_params.c
2323
sh_css_create_isp_params(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
2380
sh_css_init_isp_params_from_global(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
2389
stream->pipes[0]);
drivers/staging/media/atomisp/pci/sh_css_params.c
2390
struct ia_css_isp_parameters *stream_params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
2511
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css_params.c
2513
sh_css_select_dp_10bpp_config(stream->pipes[i], &is_dp_10bpp)) {
drivers/staging/media/atomisp/pci/sh_css_params.c
2537
sh_css_set_shading_table(stream, params, stream_params->sc_table);
drivers/staging/media/atomisp/pci/sh_css_params.c
2649
if (pipe->stream && pipe->stream->started) {
drivers/staging/media/atomisp/pci/sh_css_params.c
2796
ia_css_stream_isp_parameters_uninit(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
2799
struct ia_css_isp_parameters *params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
2801
stream->per_frame_isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
2843
stream->isp_params_configs = NULL;
drivers/staging/media/atomisp/pci/sh_css_params.c
2844
stream->per_frame_isp_params_configs = NULL;
drivers/staging/media/atomisp/pci/sh_css_params.c
3073
raw_bit_depth = ia_css_stream_input_format_bits_per_pixel(curr_pipe->stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3082
for (i = 0; i < curr_pipe->stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css_params.c
3092
pipe = curr_pipe->stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css_params.c
3625
*stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
3630
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3632
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
3638
*stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
3645
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3647
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
3656
= ia_css_stream_get_shading_correction_binary(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3674
= ia_css_stream_get_shading_correction_binary(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3680
pipe = stream->pipes[0];
drivers/staging/media/atomisp/pci/sh_css_params.c
3682
if (stream->num_pipes == 2) {
drivers/staging/media/atomisp/pci/sh_css_params.c
3683
assert(stream->pipes[1]);
drivers/staging/media/atomisp/pci/sh_css_params.c
3684
if (stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_VIDEO ||
drivers/staging/media/atomisp/pci/sh_css_params.c
3685
stream->pipes[1]->config.mode == IA_CSS_PIPE_MODE_PREVIEW)
drivers/staging/media/atomisp/pci/sh_css_params.c
3686
pipe = stream->pipes[1];
drivers/staging/media/atomisp/pci/sh_css_params.c
3890
sh_css_invalidate_params(struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
3896
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
3898
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
4451
ia_css_dvs2_6axis_config_allocate(const struct ia_css_stream *stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
4460
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
4461
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
4522
ia_css_en_dz_capt_pipe(struct ia_css_stream *stream, bool enable)
drivers/staging/media/atomisp/pci/sh_css_params.c
4531
if (!stream)
drivers/staging/media/atomisp/pci/sh_css_params.c
4534
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css_params.c
4535
pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css_params.c
707
sh_css_create_isp_params(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
711
sh_css_init_isp_params_from_global(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
730
struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
863
ia_css_process_kernel(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
871
for (i = 0; i < stream->num_pipes; i++) {
drivers/staging/media/atomisp/pci/sh_css_params.c
872
struct ia_css_pipe *pipe = stream->pipes[i];
drivers/staging/media/atomisp/pci/sh_css_params.c
926
sh_css_set_black_frame(struct ia_css_stream *stream,
drivers/staging/media/atomisp/pci/sh_css_params.c
936
assert(stream);
drivers/staging/media/atomisp/pci/sh_css_params.c
939
params = stream->isp_params_configs;
drivers/staging/media/atomisp/pci/sh_css_params.c
994
ia_css_process_kernel(stream, params, ia_css_kernel_process_param[IA_CSS_FPN_ID]);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
207
sel->stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
211
src_ffmt = v4l2_subdev_state_get_format(state, sel->pad, sel->stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
215
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
256
sel->stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
260
crop = v4l2_subdev_state_get_crop(state, sel->pad, sel->stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
459
void ipu7_isys_csi2_sof_event_by_stream(struct ipu7_isys_stream *stream)
drivers/staging/media/ipu7/ipu7-isys-csi2.c
461
struct ipu7_isys_csi2 *csi2 = ipu7_isys_subdev_to_csi2(stream->asd);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
462
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys-csi2.c
468
ev.id = stream->vc;
drivers/staging/media/ipu7/ipu7-isys-csi2.c
469
ev.u.frame_sync.frame_sequence = atomic_fetch_inc(&stream->sequence);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
473
csi2->port, ev.u.frame_sync.frame_sequence, stream->vc);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
476
void ipu7_isys_csi2_eof_event_by_stream(struct ipu7_isys_stream *stream)
drivers/staging/media/ipu7/ipu7-isys-csi2.c
478
struct ipu7_isys_csi2 *csi2 = ipu7_isys_subdev_to_csi2(stream->asd);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
479
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys-csi2.c
480
u32 frame_sequence = atomic_read(&stream->sequence);
drivers/staging/media/ipu7/ipu7-isys-csi2.c
518
if (source_stream == desc.entry[i].stream) {
drivers/staging/media/ipu7/ipu7-isys-csi2.h
57
void ipu7_isys_csi2_sof_event_by_stream(struct ipu7_isys_stream *stream);
drivers/staging/media/ipu7/ipu7-isys-csi2.h
58
void ipu7_isys_csi2_eof_event_by_stream(struct ipu7_isys_stream *stream);
drivers/staging/media/ipu7/ipu7-isys-queue.c
162
static void flush_firmware_streamon_fail(struct ipu7_isys_stream *stream)
drivers/staging/media/ipu7/ipu7-isys-queue.c
167
lockdep_assert_held(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
169
list_for_each_entry(aq, &stream->queues, node) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
203
static int buffer_list_get(struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-queue.c
207
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys-queue.c
214
list_for_each_entry(aq, &stream->queues, node) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
261
struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-queue.c
273
buf_id = atomic_fetch_inc(&stream->buf_id);
drivers/staging/media/ipu7/ipu7-isys-queue.c
287
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
288
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys-queue.c
292
mutex_lock(&stream->isys->stream_mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
295
mutex_unlock(&stream->isys->stream_mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
299
stream->streaming = 1;
drivers/staging/media/ipu7/ipu7-isys-queue.c
309
ret = buffer_list_get(stream, bl);
drivers/staging/media/ipu7/ipu7-isys-queue.c
313
msg = ipu7_get_fw_msg_buf(stream);
drivers/staging/media/ipu7/ipu7-isys-queue.c
319
ipu7_isys_buffer_to_fw_frame_buff(buf, stream, bl);
drivers/staging/media/ipu7/ipu7-isys-queue.c
322
stream->nr_output_pins);
drivers/staging/media/ipu7/ipu7-isys-queue.c
327
ret = ipu7_fw_isys_complex_cmd(stream->isys,
drivers/staging/media/ipu7/ipu7-isys-queue.c
328
stream->stream_handle, buf,
drivers/staging/media/ipu7/ipu7-isys-queue.c
343
flush_firmware_streamon_fail(stream);
drivers/staging/media/ipu7/ipu7-isys-queue.c
358
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
382
mutex_lock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
384
if (stream->nr_streaming != stream->nr_queues) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
394
ret = buffer_list_get(stream, &bl);
drivers/staging/media/ipu7/ipu7-isys-queue.c
400
msg = ipu7_get_fw_msg_buf(stream);
drivers/staging/media/ipu7/ipu7-isys-queue.c
408
ipu7_isys_buffer_to_fw_frame_buff(buf, stream, &bl);
drivers/staging/media/ipu7/ipu7-isys-queue.c
410
ipu7_fw_isys_dump_frame_buff_set(dev, buf, stream->nr_output_pins);
drivers/staging/media/ipu7/ipu7-isys-queue.c
412
if (!stream->streaming) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
427
ret = ipu7_fw_isys_complex_cmd(stream->isys, stream->stream_handle,
drivers/staging/media/ipu7/ipu7-isys-queue.c
434
mutex_unlock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
523
ipu7_isys_put_stream(av->stream);
drivers/staging/media/ipu7/ipu7-isys-queue.c
524
av->stream = NULL;
drivers/staging/media/ipu7/ipu7-isys-queue.c
535
struct ipu7_isys_stream *stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
557
stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
558
mutex_lock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
559
if (!stream->nr_streaming) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
563
mutex_unlock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
568
stream->nr_streaming++;
drivers/staging/media/ipu7/ipu7-isys-queue.c
569
dev_dbg(dev, "queue %u of %u\n", stream->nr_streaming,
drivers/staging/media/ipu7/ipu7-isys-queue.c
570
stream->nr_queues);
drivers/staging/media/ipu7/ipu7-isys-queue.c
572
list_add(&aq->node, &stream->queues);
drivers/staging/media/ipu7/ipu7-isys-queue.c
574
if (stream->nr_streaming != stream->nr_queues)
drivers/staging/media/ipu7/ipu7-isys-queue.c
578
ret = buffer_list_get(stream, bl);
drivers/staging/media/ipu7/ipu7-isys-queue.c
595
mutex_unlock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
604
stream->nr_streaming--;
drivers/staging/media/ipu7/ipu7-isys-queue.c
605
mutex_unlock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
620
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
622
mutex_lock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
624
if (stream->nr_streaming == stream->nr_queues && stream->streaming)
drivers/staging/media/ipu7/ipu7-isys-queue.c
628
stream->nr_streaming--;
drivers/staging/media/ipu7/ipu7-isys-queue.c
630
stream->streaming = 0;
drivers/staging/media/ipu7/ipu7-isys-queue.c
632
mutex_unlock(&stream->mutex);
drivers/staging/media/ipu7/ipu7-isys-queue.c
642
get_sof_sequence_by_timestamp(struct ipu7_isys_stream *stream, u64 time)
drivers/staging/media/ipu7/ipu7-isys-queue.c
644
struct ipu7_isys *isys = stream->isys;
drivers/staging/media/ipu7/ipu7-isys-queue.c
653
return atomic_read(&stream->sequence) - 1;
drivers/staging/media/ipu7/ipu7-isys-queue.c
656
if (time == stream->seq[i].timestamp) {
drivers/staging/media/ipu7/ipu7-isys-queue.c
658
stream->seq[i].sequence, time);
drivers/staging/media/ipu7/ipu7-isys-queue.c
659
return stream->seq[i].sequence;
drivers/staging/media/ipu7/ipu7-isys-queue.c
665
stream->seq[i].sequence, stream->seq[i].timestamp);
drivers/staging/media/ipu7/ipu7-isys-queue.c
668
return atomic_read(&stream->sequence) - 1;
drivers/staging/media/ipu7/ipu7-isys-queue.c
694
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-queue.c
699
sequence = get_sof_sequence_by_timestamp(stream, time);
drivers/staging/media/ipu7/ipu7-isys-queue.c
726
void ipu7_isys_queue_buf_ready(struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-queue.c
729
struct ipu7_isys_queue *aq = stream->output_pins[info->pin_id].aq;
drivers/staging/media/ipu7/ipu7-isys-queue.c
731
struct ipu7_isys *isys = stream->isys;
drivers/staging/media/ipu7/ipu7-isys-queue.h
67
struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-queue.h
69
void ipu7_isys_queue_buf_ready(struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
134
fmt = v4l2_subdev_state_get_format(state, format->pad, format->stream);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
145
format->stream);
drivers/staging/media/ipu7/ipu7-isys-subdev.c
153
format->stream,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
216
int ipu7_isys_get_stream_pad_fmt(struct v4l2_subdev *sd, u32 pad, u32 stream,
drivers/staging/media/ipu7/ipu7-isys-subdev.c
226
fmt = v4l2_subdev_state_get_format(state, pad, stream);
drivers/staging/media/ipu7/ipu7-isys-subdev.h
40
int ipu7_isys_get_stream_pad_fmt(struct v4l2_subdev *sd, u32 pad, u32 stream,
drivers/staging/media/ipu7/ipu7-isys-video.c
1000
if (!av->stream) {
drivers/staging/media/ipu7/ipu7-isys-video.c
356
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
395
stream->output_pins[output_pins].pin_ready = ipu7_isys_queue_buf_ready;
drivers/staging/media/ipu7/ipu7-isys-video.c
396
stream->output_pins[output_pins].aq = aq;
drivers/staging/media/ipu7/ipu7-isys-video.c
440
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
451
msg = ipu7_get_fw_msg_buf(stream);
drivers/staging/media/ipu7/ipu7-isys-video.c
455
stream_cfg = &msg->fw_msg.stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
456
stream_cfg->port_id = stream->stream_source;
drivers/staging/media/ipu7/ipu7-isys-video.c
457
stream_cfg->vc = stream->vc;
drivers/staging/media/ipu7/ipu7-isys-video.c
461
list_for_each_entry(aq, &stream->queues, node) {
drivers/staging/media/ipu7/ipu7-isys-video.c
473
stream->nr_output_pins = stream_cfg->nof_output_pins;
drivers/staging/media/ipu7/ipu7-isys-video.c
475
reinit_completion(&stream->stream_open_completion);
drivers/staging/media/ipu7/ipu7-isys-video.c
477
ret = ipu7_fw_isys_complex_cmd(av->isys, stream->stream_handle,
drivers/staging/media/ipu7/ipu7-isys-video.c
489
tout = wait_for_completion_timeout(&stream->stream_open_completion,
drivers/staging/media/ipu7/ipu7-isys-video.c
499
if (stream->error) {
drivers/staging/media/ipu7/ipu7-isys-video.c
500
dev_err(dev, "stream open error: %d\n", stream->error);
drivers/staging/media/ipu7/ipu7-isys-video.c
506
msg = ipu7_get_fw_msg_buf(stream);
drivers/staging/media/ipu7/ipu7-isys-video.c
513
ipu7_isys_buffer_to_fw_frame_buff(buf, stream, bl);
drivers/staging/media/ipu7/ipu7-isys-video.c
516
reinit_completion(&stream->stream_start_completion);
drivers/staging/media/ipu7/ipu7-isys-video.c
521
ret = ipu7_fw_isys_complex_cmd(av->isys, stream->stream_handle, buf,
drivers/staging/media/ipu7/ipu7-isys-video.c
529
tout = wait_for_completion_timeout(&stream->stream_start_completion,
drivers/staging/media/ipu7/ipu7-isys-video.c
536
if (stream->error) {
drivers/staging/media/ipu7/ipu7-isys-video.c
537
dev_err(dev, "stream start error: %d\n", stream->error);
drivers/staging/media/ipu7/ipu7-isys-video.c
546
reinit_completion(&stream->stream_close_completion);
drivers/staging/media/ipu7/ipu7-isys-video.c
548
retout = ipu7_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/staging/media/ipu7/ipu7-isys-video.c
555
tout = wait_for_completion_timeout(&stream->stream_close_completion,
drivers/staging/media/ipu7/ipu7-isys-video.c
559
stream->error);
drivers/staging/media/ipu7/ipu7-isys-video.c
572
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
575
reinit_completion(&stream->stream_stop_completion);
drivers/staging/media/ipu7/ipu7-isys-video.c
577
ret = ipu7_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/staging/media/ipu7/ipu7-isys-video.c
584
tout = wait_for_completion_timeout(&stream->stream_stop_completion,
drivers/staging/media/ipu7/ipu7-isys-video.c
588
else if (stream->error)
drivers/staging/media/ipu7/ipu7-isys-video.c
589
dev_warn(dev, "stream stop error: %d\n", stream->error);
drivers/staging/media/ipu7/ipu7-isys-video.c
597
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
600
reinit_completion(&stream->stream_close_completion);
drivers/staging/media/ipu7/ipu7-isys-video.c
602
ret = ipu7_fw_isys_simple_cmd(av->isys, stream->stream_handle,
drivers/staging/media/ipu7/ipu7-isys-video.c
609
tout = wait_for_completion_timeout(&stream->stream_close_completion,
drivers/staging/media/ipu7/ipu7-isys-video.c
613
else if (stream->error)
drivers/staging/media/ipu7/ipu7-isys-video.c
614
dev_warn(dev, "stream close error: %d\n", stream->error);
drivers/staging/media/ipu7/ipu7-isys-video.c
625
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
628
if (WARN_ON(stream->nr_streaming))
drivers/staging/media/ipu7/ipu7-isys-video.c
631
stream->nr_queues = nr_queues;
drivers/staging/media/ipu7/ipu7-isys-video.c
632
atomic_set(&stream->sequence, 0);
drivers/staging/media/ipu7/ipu7-isys-video.c
633
atomic_set(&stream->buf_id, 0);
drivers/staging/media/ipu7/ipu7-isys-video.c
635
stream->seq_index = 0;
drivers/staging/media/ipu7/ipu7-isys-video.c
636
memset(stream->seq, 0, sizeof(stream->seq));
drivers/staging/media/ipu7/ipu7-isys-video.c
638
if (WARN_ON(!list_empty(&stream->queues)))
drivers/staging/media/ipu7/ipu7-isys-video.c
641
stream->stream_source = stream->asd->source;
drivers/staging/media/ipu7/ipu7-isys-video.c
643
csi2 = ipu7_isys_subdev_to_csi2(stream->asd);
drivers/staging/media/ipu7/ipu7-isys-video.c
645
stream->source_entity = source_entity;
drivers/staging/media/ipu7/ipu7-isys-video.c
649
stream->source_entity->name);
drivers/staging/media/ipu7/ipu7-isys-video.c
654
void ipu7_isys_put_stream(struct ipu7_isys_stream *stream)
drivers/staging/media/ipu7/ipu7-isys-video.c
660
if (!stream) {
drivers/staging/media/ipu7/ipu7-isys-video.c
665
dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys-video.c
667
spin_lock_irqsave(&stream->isys->streams_lock, flags);
drivers/staging/media/ipu7/ipu7-isys-video.c
669
if (&stream->isys->streams[i] == stream) {
drivers/staging/media/ipu7/ipu7-isys-video.c
670
if (stream->isys->streams_ref_count[i] > 0)
drivers/staging/media/ipu7/ipu7-isys-video.c
671
stream->isys->streams_ref_count[i]--;
drivers/staging/media/ipu7/ipu7-isys-video.c
678
spin_unlock_irqrestore(&stream->isys->streams_lock, flags);
drivers/staging/media/ipu7/ipu7-isys-video.c
684
struct ipu7_isys_stream *stream = NULL;
drivers/staging/media/ipu7/ipu7-isys-video.c
698
stream = &isys->streams[i];
drivers/staging/media/ipu7/ipu7-isys-video.c
703
if (!stream) {
drivers/staging/media/ipu7/ipu7-isys-video.c
707
stream = &isys->streams[i];
drivers/staging/media/ipu7/ipu7-isys-video.c
708
stream->vc = vc;
drivers/staging/media/ipu7/ipu7-isys-video.c
709
stream->asd = asd;
drivers/staging/media/ipu7/ipu7-isys-video.c
716
return stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
723
struct ipu7_isys_stream *stream = NULL;
drivers/staging/media/ipu7/ipu7-isys-video.c
737
stream = &isys->streams[stream_handle];
drivers/staging/media/ipu7/ipu7-isys-video.c
741
return stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
747
struct ipu7_isys_stream *stream = NULL;
drivers/staging/media/ipu7/ipu7-isys-video.c
767
stream = &isys->streams[i];
drivers/staging/media/ipu7/ipu7-isys-video.c
774
return stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
780
struct ipu7_isys_stream *stream = av->stream;
drivers/staging/media/ipu7/ipu7-isys-video.c
789
if (WARN(!stream->source_entity, "No source entity for stream\n"))
drivers/staging/media/ipu7/ipu7-isys-video.c
792
sd = &stream->asd->sd;
drivers/staging/media/ipu7/ipu7-isys-video.c
979
entry.stream, entry.length, entry.bus.csi2.vc,
drivers/staging/media/ipu7/ipu7-isys-video.c
999
av->stream = ipu7_isys_get_stream(av, asd);
drivers/staging/media/ipu7/ipu7-isys-video.h
111
void ipu7_isys_put_stream(struct ipu7_isys_stream *stream);
drivers/staging/media/ipu7/ipu7-isys-video.h
43
void (*pin_ready)(struct ipu7_isys_stream *stream,
drivers/staging/media/ipu7/ipu7-isys-video.h
88
struct ipu7_isys_stream *stream;
drivers/staging/media/ipu7/ipu7-isys.c
1003
stream->seq[stream->seq_index].sequence, ts);
drivers/staging/media/ipu7/ipu7-isys.c
1004
stream->seq_index = (stream->seq_index + 1U)
drivers/staging/media/ipu7/ipu7-isys.c
1009
ipu7_isys_csi2_eof_event_by_stream(stream);
drivers/staging/media/ipu7/ipu7-isys.c
1013
stream->seq[stream->seq_index].sequence, ts);
drivers/staging/media/ipu7/ipu7-isys.c
1021
ipu7_isys_put_stream(stream);
drivers/staging/media/ipu7/ipu7-isys.c
637
struct isys_fw_msgs *ipu7_get_fw_msg_buf(struct ipu7_isys_stream *stream)
drivers/staging/media/ipu7/ipu7-isys.c
639
struct device *dev = &stream->isys->adev->auxdev.dev;
drivers/staging/media/ipu7/ipu7-isys.c
640
struct ipu7_isys *isys = stream->isys;
drivers/staging/media/ipu7/ipu7-isys.c
890
struct ipu7_isys_stream *stream = NULL;
drivers/staging/media/ipu7/ipu7-isys.c
943
stream = ipu7_isys_query_stream_by_handle(isys, resp->stream_id);
drivers/staging/media/ipu7/ipu7-isys.c
944
if (!stream) {
drivers/staging/media/ipu7/ipu7-isys.c
950
stream->error = err_info.err_code;
drivers/staging/media/ipu7/ipu7-isys.c
952
if (stream->asd)
drivers/staging/media/ipu7/ipu7-isys.c
953
csi2 = ipu7_isys_subdev_to_csi2(stream->asd);
drivers/staging/media/ipu7/ipu7-isys.c
957
complete(&stream->stream_open_completion);
drivers/staging/media/ipu7/ipu7-isys.c
960
complete(&stream->stream_close_completion);
drivers/staging/media/ipu7/ipu7-isys.c
963
complete(&stream->stream_start_completion);
drivers/staging/media/ipu7/ipu7-isys.c
966
complete(&stream->stream_stop_completion);
drivers/staging/media/ipu7/ipu7-isys.c
969
complete(&stream->stream_stop_completion);
drivers/staging/media/ipu7/ipu7-isys.c
978
stream->output_pins[resp->pin_id].pin_ready)
drivers/staging/media/ipu7/ipu7-isys.c
979
stream->output_pins[resp->pin_id].pin_ready(stream,
drivers/staging/media/ipu7/ipu7-isys.c
995
ipu7_isys_csi2_sof_event_by_stream(stream);
drivers/staging/media/ipu7/ipu7-isys.c
997
stream->seq[stream->seq_index].sequence =
drivers/staging/media/ipu7/ipu7-isys.c
998
atomic_read(&stream->sequence) - 1U;
drivers/staging/media/ipu7/ipu7-isys.c
999
stream->seq[stream->seq_index].timestamp = ts;
drivers/staging/media/ipu7/ipu7-isys.h
118
struct ipu7_insys_stream_cfg stream;
drivers/staging/media/ipu7/ipu7-isys.h
135
struct isys_fw_msgs *ipu7_get_fw_msg_buf(struct ipu7_isys_stream *stream);
drivers/usb/cdns3/cdnsp-gadget.h
549
#define DB_VALUE(ep, stream) ((((ep) + 1) & 0xff) | ((stream) << 16))
drivers/usb/cdns3/cdnsp-gadget.h
550
#define DB_VALUE_EP0_OUT(ep, stream) ((ep) & 0xff)
drivers/usb/fotg210/fotg210-hcd.c
3362
usecs += q->itd->stream->usecs;
drivers/usb/fotg210/fotg210-hcd.c
3900
struct fotg210_iso_stream *stream;
drivers/usb/fotg210/fotg210-hcd.c
3902
stream = kzalloc_obj(*stream, mem_flags);
drivers/usb/fotg210/fotg210-hcd.c
3903
if (likely(stream != NULL)) {
drivers/usb/fotg210/fotg210-hcd.c
3904
INIT_LIST_HEAD(&stream->td_list);
drivers/usb/fotg210/fotg210-hcd.c
3905
INIT_LIST_HEAD(&stream->free_list);
drivers/usb/fotg210/fotg210-hcd.c
3906
stream->next_uframe = -1;
drivers/usb/fotg210/fotg210-hcd.c
3908
return stream;
drivers/usb/fotg210/fotg210-hcd.c
3912
struct fotg210_iso_stream *stream, struct usb_device *dev,
drivers/usb/fotg210/fotg210-hcd.c
3939
stream->buf0 = cpu_to_hc32(fotg210, (epnum << 8) | dev->devnum);
drivers/usb/fotg210/fotg210-hcd.c
3940
stream->buf1 = cpu_to_hc32(fotg210, buf1);
drivers/usb/fotg210/fotg210-hcd.c
3941
stream->buf2 = cpu_to_hc32(fotg210, multi);
drivers/usb/fotg210/fotg210-hcd.c
3948
stream->usecs = NS_TO_US(usb_calc_bus_time(dev->speed,
drivers/usb/fotg210/fotg210-hcd.c
3950
stream->usecs /= 8;
drivers/usb/fotg210/fotg210-hcd.c
3952
stream->highspeed = 1;
drivers/usb/fotg210/fotg210-hcd.c
3953
stream->usecs = HS_USECS_ISO(maxp);
drivers/usb/fotg210/fotg210-hcd.c
3955
bandwidth = stream->usecs * 8;
drivers/usb/fotg210/fotg210-hcd.c
3958
stream->bandwidth = bandwidth;
drivers/usb/fotg210/fotg210-hcd.c
3959
stream->udev = dev;
drivers/usb/fotg210/fotg210-hcd.c
3960
stream->bEndpointAddress = is_input | epnum;
drivers/usb/fotg210/fotg210-hcd.c
3961
stream->interval = interval;
drivers/usb/fotg210/fotg210-hcd.c
3962
stream->maxp = maxp;
drivers/usb/fotg210/fotg210-hcd.c
3969
struct fotg210_iso_stream *stream;
drivers/usb/fotg210/fotg210-hcd.c
3980
stream = ep->hcpriv;
drivers/usb/fotg210/fotg210-hcd.c
3982
if (unlikely(stream == NULL)) {
drivers/usb/fotg210/fotg210-hcd.c
3983
stream = iso_stream_alloc(GFP_ATOMIC);
drivers/usb/fotg210/fotg210-hcd.c
3984
if (likely(stream != NULL)) {
drivers/usb/fotg210/fotg210-hcd.c
3985
ep->hcpriv = stream;
drivers/usb/fotg210/fotg210-hcd.c
3986
stream->ep = ep;
drivers/usb/fotg210/fotg210-hcd.c
3987
iso_stream_init(fotg210, stream, urb->dev, urb->pipe,
drivers/usb/fotg210/fotg210-hcd.c
3992
} else if (unlikely(stream->hw != NULL)) {
drivers/usb/fotg210/fotg210-hcd.c
3996
stream = NULL;
drivers/usb/fotg210/fotg210-hcd.c
4000
return stream;
drivers/usb/fotg210/fotg210-hcd.c
4019
struct fotg210_iso_stream *stream, struct urb *urb)
drivers/usb/fotg210/fotg210-hcd.c
4025
iso_sched->span = urb->number_of_packets * stream->interval;
drivers/usb/fotg210/fotg210-hcd.c
4055
static void iso_sched_free(struct fotg210_iso_stream *stream,
drivers/usb/fotg210/fotg210-hcd.c
4061
list_splice(&iso_sched->td_list, &stream->free_list);
drivers/usb/fotg210/fotg210-hcd.c
4065
static int itd_urb_transaction(struct fotg210_iso_stream *stream,
drivers/usb/fotg210/fotg210-hcd.c
4079
itd_sched_init(fotg210, sched, stream, urb);
drivers/usb/fotg210/fotg210-hcd.c
4094
if (likely(!list_empty(&stream->free_list))) {
drivers/usb/fotg210/fotg210-hcd.c
4095
itd = list_first_entry(&stream->free_list,
drivers/usb/fotg210/fotg210-hcd.c
4108
iso_sched_free(stream, sched);
drivers/usb/fotg210/fotg210-hcd.c
4155
struct fotg210_iso_stream *stream)
drivers/usb/fotg210/fotg210-hcd.c
4178
if (likely(!list_empty(&stream->td_list))) {
drivers/usb/fotg210/fotg210-hcd.c
4186
if (!stream->highspeed && fotg210->fs_i_thresh)
drivers/usb/fotg210/fotg210-hcd.c
4195
excess = (stream->next_uframe - period - next) & (mod - 1);
drivers/usb/fotg210/fotg210-hcd.c
4234
stream->usecs, period))
drivers/usb/fotg210/fotg210-hcd.c
4257
stream->next_uframe = start & (mod - 1);
drivers/usb/fotg210/fotg210-hcd.c
4260
urb->start_frame = stream->next_uframe;
drivers/usb/fotg210/fotg210-hcd.c
4261
if (!stream->highspeed)
drivers/usb/fotg210/fotg210-hcd.c
4270
iso_sched_free(stream, sched);
drivers/usb/fotg210/fotg210-hcd.c
4276
struct fotg210_iso_stream *stream, struct fotg210_itd *itd)
drivers/usb/fotg210/fotg210-hcd.c
4282
itd->hw_bufp[0] = stream->buf0;
drivers/usb/fotg210/fotg210-hcd.c
4283
itd->hw_bufp[1] = stream->buf1;
drivers/usb/fotg210/fotg210-hcd.c
4284
itd->hw_bufp[2] = stream->buf2;
drivers/usb/fotg210/fotg210-hcd.c
4345
unsigned mod, struct fotg210_iso_stream *stream)
drivers/usb/fotg210/fotg210-hcd.c
4352
next_uframe = stream->next_uframe & (mod - 1);
drivers/usb/fotg210/fotg210-hcd.c
4354
if (unlikely(list_empty(&stream->td_list))) {
drivers/usb/fotg210/fotg210-hcd.c
4356
+= stream->bandwidth;
drivers/usb/fotg210/fotg210-hcd.c
4359
urb->dev->devpath, stream->bEndpointAddress & 0x0f,
drivers/usb/fotg210/fotg210-hcd.c
4360
(stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out",
drivers/usb/fotg210/fotg210-hcd.c
4374
list_move_tail(&itd->itd_list, &stream->td_list);
drivers/usb/fotg210/fotg210-hcd.c
4375
itd->stream = stream;
drivers/usb/fotg210/fotg210-hcd.c
4377
itd_init(fotg210, stream, itd);
drivers/usb/fotg210/fotg210-hcd.c
4385
next_uframe += stream->interval;
drivers/usb/fotg210/fotg210-hcd.c
4397
stream->next_uframe = next_uframe;
drivers/usb/fotg210/fotg210-hcd.c
4400
iso_sched_free(stream, iso_sched);
drivers/usb/fotg210/fotg210-hcd.c
4427
struct fotg210_iso_stream *stream = itd->stream;
drivers/usb/fotg210/fotg210-hcd.c
4486
if (unlikely(list_is_singular(&stream->td_list))) {
drivers/usb/fotg210/fotg210-hcd.c
4488
-= stream->bandwidth;
drivers/usb/fotg210/fotg210-hcd.c
4491
dev->devpath, stream->bEndpointAddress & 0x0f,
drivers/usb/fotg210/fotg210-hcd.c
4492
(stream->bEndpointAddress & USB_DIR_IN) ? "in" : "out");
drivers/usb/fotg210/fotg210-hcd.c
4499
list_move_tail(&itd->itd_list, &stream->free_list);
drivers/usb/fotg210/fotg210-hcd.c
4502
if (list_empty(&stream->td_list)) {
drivers/usb/fotg210/fotg210-hcd.c
4503
list_splice_tail_init(&stream->free_list,
drivers/usb/fotg210/fotg210-hcd.c
4516
struct fotg210_iso_stream *stream;
drivers/usb/fotg210/fotg210-hcd.c
4519
stream = iso_stream_find(fotg210, urb);
drivers/usb/fotg210/fotg210-hcd.c
4520
if (unlikely(stream == NULL)) {
drivers/usb/fotg210/fotg210-hcd.c
4524
if (unlikely(urb->interval != stream->interval &&
drivers/usb/fotg210/fotg210-hcd.c
4528
stream->interval, urb->interval);
drivers/usb/fotg210/fotg210-hcd.c
4540
stream);
drivers/usb/fotg210/fotg210-hcd.c
4544
status = itd_urb_transaction(stream, fotg210, urb, mem_flags);
drivers/usb/fotg210/fotg210-hcd.c
4559
status = iso_stream_schedule(fotg210, urb, stream);
drivers/usb/fotg210/fotg210-hcd.c
4561
itd_link_urb(fotg210, urb, fotg210->periodic_size << 3, stream);
drivers/usb/fotg210/fotg210-hcd.c
5376
struct fotg210_iso_stream *stream = ep->hcpriv;
drivers/usb/fotg210/fotg210-hcd.c
5378
if (!list_empty(&stream->td_list))
drivers/usb/fotg210/fotg210-hcd.c
5382
kfree(stream);
drivers/usb/fotg210/fotg210-hcd.h
562
struct fotg210_iso_stream *stream; /* endpoint's queue */
drivers/usb/gadget/function/f_tcm.c
1085
struct uas_stream *stream = &cmd->fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
1087
hash_del(&stream->node);
drivers/usb/gadget/function/f_tcm.c
1275
struct uas_stream *stream = NULL;
drivers/usb/gadget/function/f_tcm.c
1281
hash_for_each_possible_safe(fu->stream_hash, stream, tmp, node, cmd->tag) {
drivers/usb/gadget/function/f_tcm.c
1282
int i = stream - &fu->stream[0];
drivers/usb/gadget/function/f_tcm.c
1290
if (!stream || (active_cmd && active_cmd->tag != cmd->tag)) {
drivers/usb/gadget/function/f_tcm.c
1295
reinit_completion(&stream->cmd_completion);
drivers/usb/gadget/function/f_tcm.c
1313
wait_for_completion_timeout(&stream->cmd_completion, msecs_to_jiffies(1));
drivers/usb/gadget/function/f_tcm.c
1316
if (!hash_hashed(&stream->node)) {
drivers/usb/gadget/function/f_tcm.c
1373
struct uas_stream *stream;
drivers/usb/gadget/function/f_tcm.c
1411
hash_for_each_possible_safe(fu->stream_hash, stream, tmp, node, scsi_tag) {
drivers/usb/gadget/function/f_tcm.c
1414
int i = stream - &fu->stream[0];
drivers/usb/gadget/function/f_tcm.c
1425
stream = &fu->stream[cmd->se_cmd.map_tag];
drivers/usb/gadget/function/f_tcm.c
1426
hash_add(fu->stream_hash, &stream->node, scsi_tag);
drivers/usb/gadget/function/f_tcm.c
1439
hash_del(&stream->node);
drivers/usb/gadget/function/f_tcm.c
1614
struct uas_stream *stream = &fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
1617
if (stream->req_out->status == -EINPROGRESS)
drivers/usb/gadget/function/f_tcm.c
1618
ret = usb_ep_dequeue(fu->ep_out, stream->req_out);
drivers/usb/gadget/function/f_tcm.c
1619
else if (stream->req_in->status == -EINPROGRESS)
drivers/usb/gadget/function/f_tcm.c
1620
ret = usb_ep_dequeue(fu->ep_in, stream->req_in);
drivers/usb/gadget/function/f_tcm.c
1621
else if (stream->req_status->status == -EINPROGRESS)
drivers/usb/gadget/function/f_tcm.c
1622
ret = usb_ep_dequeue(fu->ep_status, stream->req_status);
drivers/usb/gadget/function/f_tcm.c
511
static void uasp_cleanup_one_stream(struct f_uas *fu, struct uas_stream *stream)
drivers/usb/gadget/function/f_tcm.c
514
if (!stream->req_in)
drivers/usb/gadget/function/f_tcm.c
517
usb_ep_free_request(fu->ep_in, stream->req_in);
drivers/usb/gadget/function/f_tcm.c
518
usb_ep_free_request(fu->ep_out, stream->req_out);
drivers/usb/gadget/function/f_tcm.c
519
usb_ep_free_request(fu->ep_status, stream->req_status);
drivers/usb/gadget/function/f_tcm.c
521
stream->req_in = NULL;
drivers/usb/gadget/function/f_tcm.c
522
stream->req_out = NULL;
drivers/usb/gadget/function/f_tcm.c
523
stream->req_status = NULL;
drivers/usb/gadget/function/f_tcm.c
551
uasp_cleanup_one_stream(fu, &fu->stream[i]);
drivers/usb/gadget/function/f_tcm.c
562
struct uas_stream *stream = &fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
574
stream->req_in->buf = cmd->data_buf;
drivers/usb/gadget/function/f_tcm.c
576
stream->req_in->buf = NULL;
drivers/usb/gadget/function/f_tcm.c
577
stream->req_in->num_sgs = se_cmd->t_data_nents;
drivers/usb/gadget/function/f_tcm.c
578
stream->req_in->sg = se_cmd->t_data_sg;
drivers/usb/gadget/function/f_tcm.c
581
stream->req_in->is_last = 1;
drivers/usb/gadget/function/f_tcm.c
582
stream->req_in->stream_id = cmd->tag;
drivers/usb/gadget/function/f_tcm.c
583
stream->req_in->complete = uasp_status_data_cmpl;
drivers/usb/gadget/function/f_tcm.c
584
stream->req_in->length = se_cmd->data_length;
drivers/usb/gadget/function/f_tcm.c
585
stream->req_in->context = cmd;
drivers/usb/gadget/function/f_tcm.c
595
struct uas_stream *stream = &cmd->fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
606
stream->req_status->is_last = 1;
drivers/usb/gadget/function/f_tcm.c
607
stream->req_status->stream_id = cmd->tag;
drivers/usb/gadget/function/f_tcm.c
608
stream->req_status->context = cmd;
drivers/usb/gadget/function/f_tcm.c
609
stream->req_status->length = se_cmd->scsi_sense_length + 16;
drivers/usb/gadget/function/f_tcm.c
610
stream->req_status->buf = iu;
drivers/usb/gadget/function/f_tcm.c
611
stream->req_status->complete = uasp_status_data_cmpl;
drivers/usb/gadget/function/f_tcm.c
618
struct uas_stream *stream = &cmd->fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
658
stream->req_status->is_last = 1;
drivers/usb/gadget/function/f_tcm.c
659
stream->req_status->stream_id = cmd->tag;
drivers/usb/gadget/function/f_tcm.c
660
stream->req_status->context = cmd;
drivers/usb/gadget/function/f_tcm.c
661
stream->req_status->length = sizeof(struct response_iu);
drivers/usb/gadget/function/f_tcm.c
662
stream->req_status->buf = rsp_iu;
drivers/usb/gadget/function/f_tcm.c
663
stream->req_status->complete = uasp_status_data_cmpl;
drivers/usb/gadget/function/f_tcm.c
673
struct uas_stream *stream = &fu->stream[cmd->se_cmd.map_tag];
drivers/usb/gadget/function/f_tcm.c
684
ret = usb_ep_queue(fu->ep_in, stream->req_in, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
690
ret = usbg_prepare_w_request(cmd, stream->req_out);
drivers/usb/gadget/function/f_tcm.c
693
ret = usb_ep_queue(fu->ep_out, stream->req_out, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
700
ret = usb_ep_queue(fu->ep_status, stream->req_status,
drivers/usb/gadget/function/f_tcm.c
717
hash_del(&stream->node);
drivers/usb/gadget/function/f_tcm.c
737
complete(&stream->cmd_completion);
drivers/usb/gadget/function/f_tcm.c
746
hash_del(&stream->node);
drivers/usb/gadget/function/f_tcm.c
753
struct uas_stream *stream = &fu->stream[cmd->se_cmd.map_tag];
drivers/usb/gadget/function/f_tcm.c
759
return usb_ep_queue(fu->ep_status, stream->req_status, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
765
struct uas_stream *stream = &fu->stream[cmd->se_cmd.map_tag];
drivers/usb/gadget/function/f_tcm.c
771
return usb_ep_queue(fu->ep_status, stream->req_status, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
777
struct uas_stream *stream = &fu->stream[cmd->se_cmd.map_tag];
drivers/usb/gadget/function/f_tcm.c
789
ret = usb_ep_queue(fu->ep_in, stream->req_in, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
801
stream->req_status->complete = uasp_status_data_cmpl;
drivers/usb/gadget/function/f_tcm.c
802
stream->req_status->context = cmd;
drivers/usb/gadget/function/f_tcm.c
805
stream->req_status->buf = iu;
drivers/usb/gadget/function/f_tcm.c
806
stream->req_status->length = sizeof(struct iu);
drivers/usb/gadget/function/f_tcm.c
808
ret = usb_ep_queue(fu->ep_status, stream->req_status,
drivers/usb/gadget/function/f_tcm.c
821
struct uas_stream *stream = &fu->stream[se_cmd->map_tag];
drivers/usb/gadget/function/f_tcm.c
831
ret = usbg_prepare_w_request(cmd, stream->req_out);
drivers/usb/gadget/function/f_tcm.c
834
ret = usb_ep_queue(fu->ep_out, stream->req_out, GFP_ATOMIC);
drivers/usb/gadget/function/f_tcm.c
843
stream->req_status->complete = uasp_status_data_cmpl;
drivers/usb/gadget/function/f_tcm.c
844
stream->req_status->context = cmd;
drivers/usb/gadget/function/f_tcm.c
847
stream->req_status->buf = iu;
drivers/usb/gadget/function/f_tcm.c
848
stream->req_status->length = sizeof(struct iu);
drivers/usb/gadget/function/f_tcm.c
850
ret = usb_ep_queue(fu->ep_status, stream->req_status,
drivers/usb/gadget/function/f_tcm.c
877
static int uasp_alloc_stream_res(struct f_uas *fu, struct uas_stream *stream)
drivers/usb/gadget/function/f_tcm.c
879
init_completion(&stream->cmd_completion);
drivers/usb/gadget/function/f_tcm.c
881
stream->req_in = usb_ep_alloc_request(fu->ep_in, GFP_KERNEL);
drivers/usb/gadget/function/f_tcm.c
882
if (!stream->req_in)
drivers/usb/gadget/function/f_tcm.c
885
stream->req_out = usb_ep_alloc_request(fu->ep_out, GFP_KERNEL);
drivers/usb/gadget/function/f_tcm.c
886
if (!stream->req_out)
drivers/usb/gadget/function/f_tcm.c
889
stream->req_status = usb_ep_alloc_request(fu->ep_status, GFP_KERNEL);
drivers/usb/gadget/function/f_tcm.c
890
if (!stream->req_status)
drivers/usb/gadget/function/f_tcm.c
896
usb_ep_free_request(fu->ep_out, stream->req_out);
drivers/usb/gadget/function/f_tcm.c
897
stream->req_out = NULL;
drivers/usb/gadget/function/f_tcm.c
899
usb_ep_free_request(fu->ep_in, stream->req_in);
drivers/usb/gadget/function/f_tcm.c
900
stream->req_in = NULL;
drivers/usb/gadget/function/f_tcm.c
933
ret = uasp_alloc_stream_res(fu, &fu->stream[i]);
drivers/usb/gadget/function/f_tcm.c
956
uasp_cleanup_one_stream(fu, &fu->stream[i - 1]);
drivers/usb/gadget/function/tcm.h
142
struct uas_stream stream[USBG_NUM_CMDS];
drivers/usb/gadget/function/u_audio.c
193
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
drivers/usb/gadget/function/u_audio.c
247
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
drivers/usb/gadget/function/u_audio.c
325
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
drivers/usb/gadget/function/u_audio.c
347
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !prm->ss)
drivers/usb/gadget/function/u_audio.c
358
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
drivers/usb/gadget/function/u_audio.c
405
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
drivers/usb/host/ehci-dbg.c
717
p.sitd->stream->ps.period,
drivers/usb/host/ehci-hcd.c
992
struct ehci_iso_stream *stream = ep->hcpriv;
drivers/usb/host/ehci-hcd.c
994
if (!list_empty(&stream->td_list))
drivers/usb/host/ehci-hcd.c
998
reserve_release_iso_bandwidth(ehci, stream, -1);
drivers/usb/host/ehci-hcd.c
999
kfree(stream);
drivers/usb/host/ehci-sched.c
1003
struct ehci_iso_stream *stream;
drivers/usb/host/ehci-sched.c
1005
stream = kzalloc_obj(*stream, mem_flags);
drivers/usb/host/ehci-sched.c
1006
if (likely(stream != NULL)) {
drivers/usb/host/ehci-sched.c
1007
INIT_LIST_HEAD(&stream->td_list);
drivers/usb/host/ehci-sched.c
1008
INIT_LIST_HEAD(&stream->free_list);
drivers/usb/host/ehci-sched.c
1009
stream->next_uframe = NO_FRAME;
drivers/usb/host/ehci-sched.c
1010
stream->ps.phase = NO_FRAME;
drivers/usb/host/ehci-sched.c
1012
return stream;
drivers/usb/host/ehci-sched.c
1018
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1043
stream->highspeed = 1;
drivers/usb/host/ehci-sched.c
1048
stream->buf0 = cpu_to_hc32(ehci, (epnum << 8) | dev->devnum);
drivers/usb/host/ehci-sched.c
1049
stream->buf1 = cpu_to_hc32(ehci, buf1);
drivers/usb/host/ehci-sched.c
1050
stream->buf2 = cpu_to_hc32(ehci, multi);
drivers/usb/host/ehci-sched.c
1055
stream->ps.usecs = HS_USECS_ISO(maxp);
drivers/usb/host/ehci-sched.c
1062
stream->ps.bw_uperiod = min_t(unsigned, tmp, urb->interval);
drivers/usb/host/ehci-sched.c
1064
stream->uperiod = urb->interval;
drivers/usb/host/ehci-sched.c
1065
stream->ps.period = urb->interval >> 3;
drivers/usb/host/ehci-sched.c
1066
stream->bandwidth = stream->ps.usecs * 8 /
drivers/usb/host/ehci-sched.c
1067
stream->ps.bw_uperiod;
drivers/usb/host/ehci-sched.c
1081
stream->ps.usecs = HS_USECS_ISO(maxp);
drivers/usb/host/ehci-sched.c
1083
stream->ps.tt_usecs = NS_TO_US(think_time + usb_calc_bus_time(
drivers/usb/host/ehci-sched.c
1090
stream->ps.c_usecs = stream->ps.usecs;
drivers/usb/host/ehci-sched.c
1091
stream->ps.usecs = HS_USECS_ISO(1);
drivers/usb/host/ehci-sched.c
1092
stream->ps.cs_mask = 1;
drivers/usb/host/ehci-sched.c
1096
stream->ps.cs_mask |= tmp << (8 + 2);
drivers/usb/host/ehci-sched.c
1098
stream->ps.cs_mask = smask_out[hs_transfers - 1];
drivers/usb/host/ehci-sched.c
1105
stream->ps.bw_period = min_t(unsigned, tmp, urb->interval);
drivers/usb/host/ehci-sched.c
1106
stream->ps.bw_uperiod = stream->ps.bw_period << 3;
drivers/usb/host/ehci-sched.c
1108
stream->ps.period = urb->interval;
drivers/usb/host/ehci-sched.c
1109
stream->uperiod = urb->interval << 3;
drivers/usb/host/ehci-sched.c
1110
stream->bandwidth = (stream->ps.usecs + stream->ps.c_usecs) /
drivers/usb/host/ehci-sched.c
1111
stream->ps.bw_period;
drivers/usb/host/ehci-sched.c
1114
stream->address = cpu_to_hc32(ehci, addr);
drivers/usb/host/ehci-sched.c
1117
stream->ps.udev = dev;
drivers/usb/host/ehci-sched.c
1118
stream->ps.ep = urb->ep;
drivers/usb/host/ehci-sched.c
1120
stream->bEndpointAddress = is_input | epnum;
drivers/usb/host/ehci-sched.c
1121
stream->maxp = maxp;
drivers/usb/host/ehci-sched.c
1128
struct ehci_iso_stream *stream;
drivers/usb/host/ehci-sched.c
1139
stream = ep->hcpriv;
drivers/usb/host/ehci-sched.c
1141
if (unlikely(stream == NULL)) {
drivers/usb/host/ehci-sched.c
1142
stream = iso_stream_alloc(GFP_ATOMIC);
drivers/usb/host/ehci-sched.c
1143
if (likely(stream != NULL)) {
drivers/usb/host/ehci-sched.c
1144
ep->hcpriv = stream;
drivers/usb/host/ehci-sched.c
1145
iso_stream_init(ehci, stream, urb);
drivers/usb/host/ehci-sched.c
1149
} else if (unlikely(stream->hw != NULL)) {
drivers/usb/host/ehci-sched.c
1153
stream = NULL;
drivers/usb/host/ehci-sched.c
1157
return stream;
drivers/usb/host/ehci-sched.c
1180
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1188
iso_sched->span = urb->number_of_packets * stream->uperiod;
drivers/usb/host/ehci-sched.c
1220
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1227
list_splice(&iso_sched->td_list, &stream->free_list);
drivers/usb/host/ehci-sched.c
1233
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1250
itd_sched_init(ehci, sched, stream, urb);
drivers/usb/host/ehci-sched.c
1265
if (likely(!list_empty(&stream->free_list))) {
drivers/usb/host/ehci-sched.c
1266
itd = list_first_entry(&stream->free_list,
drivers/usb/host/ehci-sched.c
1279
iso_sched_free(stream, sched);
drivers/usb/host/ehci-sched.c
1301
struct ehci_iso_stream *stream, int sign)
drivers/usb/host/ehci-sched.c
1306
int usecs = stream->ps.usecs;
drivers/usb/host/ehci-sched.c
1307
int c_usecs = stream->ps.c_usecs;
drivers/usb/host/ehci-sched.c
1308
int tt_usecs = stream->ps.tt_usecs;
drivers/usb/host/ehci-sched.c
1311
if (stream->ps.phase == NO_FRAME) /* Bandwidth wasn't reserved */
drivers/usb/host/ehci-sched.c
1313
uframe = stream->ps.bw_phase << 3;
drivers/usb/host/ehci-sched.c
1315
bandwidth_dbg(ehci, sign, "iso", &stream->ps);
drivers/usb/host/ehci-sched.c
1323
if (!stream->splits) { /* High speed */
drivers/usb/host/ehci-sched.c
1324
for (i = uframe + stream->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE;
drivers/usb/host/ehci-sched.c
1325
i += stream->ps.bw_uperiod)
drivers/usb/host/ehci-sched.c
1329
s_mask = stream->ps.cs_mask;
drivers/usb/host/ehci-sched.c
1334
i += stream->ps.bw_uperiod) {
drivers/usb/host/ehci-sched.c
1335
for ((j = stream->ps.phase_uf, m = 1 << j); j < 8;
drivers/usb/host/ehci-sched.c
1350
tt = find_tt(stream->ps.udev);
drivers/usb/host/ehci-sched.c
1352
list_add_tail(&stream->ps.ps_list, &tt->ps_list);
drivers/usb/host/ehci-sched.c
1354
list_del(&stream->ps.ps_list);
drivers/usb/host/ehci-sched.c
1357
i += stream->ps.bw_period)
drivers/usb/host/ehci-sched.c
1365
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1372
usecs = ehci->uframe_periodic_max - stream->ps.usecs;
drivers/usb/host/ehci-sched.c
1374
for (uframe &= stream->ps.bw_uperiod - 1; uframe < EHCI_BANDWIDTH_SIZE;
drivers/usb/host/ehci-sched.c
1375
uframe += stream->ps.bw_uperiod) {
drivers/usb/host/ehci-sched.c
1385
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1394
mask = stream->ps.cs_mask << (uframe & 7);
drivers/usb/host/ehci-sched.c
1397
if (((stream->ps.cs_mask & 0xff) << (uframe & 7)) >= (1 << 7))
drivers/usb/host/ehci-sched.c
1405
uframe &= stream->ps.bw_uperiod - 1;
drivers/usb/host/ehci-sched.c
1413
if (!tt_available(ehci, &stream->ps, tt, frame, uf))
drivers/usb/host/ehci-sched.c
1419
if (!tt_no_collision(ehci, stream->ps.bw_period,
drivers/usb/host/ehci-sched.c
1420
stream->ps.udev, frame, mask))
drivers/usb/host/ehci-sched.c
1430
max_used = ehci->uframe_periodic_max - stream->ps.usecs;
drivers/usb/host/ehci-sched.c
1431
for (tmp = stream->ps.cs_mask & 0xff; tmp; tmp >>= 1, uf++) {
drivers/usb/host/ehci-sched.c
1437
if (stream->ps.c_usecs) {
drivers/usb/host/ehci-sched.c
1439
stream->ps.c_usecs;
drivers/usb/host/ehci-sched.c
1443
if ((stream->ps.cs_mask & tmp) == 0)
drivers/usb/host/ehci-sched.c
1450
uframe += stream->ps.bw_uperiod;
drivers/usb/host/ehci-sched.c
1453
stream->ps.cs_mask <<= uframe & 7;
drivers/usb/host/ehci-sched.c
1454
stream->splits = cpu_to_hc32(ehci, stream->ps.cs_mask);
drivers/usb/host/ehci-sched.c
1473
struct ehci_iso_stream *stream
drivers/usb/host/ehci-sched.c
1481
bool empty = list_empty(&stream->td_list);
drivers/usb/host/ehci-sched.c
1484
period = stream->uperiod;
drivers/usb/host/ehci-sched.c
1486
if (!stream->highspeed)
drivers/usb/host/ehci-sched.c
1494
if (stream->ps.phase == NO_FRAME) {
drivers/usb/host/ehci-sched.c
1496
struct ehci_tt *tt = find_tt(stream->ps.udev);
drivers/usb/host/ehci-sched.c
1516
if (stream->highspeed) {
drivers/usb/host/ehci-sched.c
1517
if (itd_slot_ok(ehci, stream, start))
drivers/usb/host/ehci-sched.c
1522
if (sitd_slot_ok(ehci, stream, start,
drivers/usb/host/ehci-sched.c
1534
stream->ps.phase = (start >> 3) &
drivers/usb/host/ehci-sched.c
1535
(stream->ps.period - 1);
drivers/usb/host/ehci-sched.c
1536
stream->ps.bw_phase = stream->ps.phase &
drivers/usb/host/ehci-sched.c
1537
(stream->ps.bw_period - 1);
drivers/usb/host/ehci-sched.c
1538
stream->ps.phase_uf = start & 7;
drivers/usb/host/ehci-sched.c
1539
reserve_release_iso_bandwidth(ehci, stream, 1);
drivers/usb/host/ehci-sched.c
1544
start = (stream->ps.phase << 3) + stream->ps.phase_uf;
drivers/usb/host/ehci-sched.c
1547
stream->next_uframe = start;
drivers/usb/host/ehci-sched.c
1569
start = (stream->next_uframe - base) & (mod - 1);
drivers/usb/host/ehci-sched.c
1585
urb, stream->next_uframe, base, period, mod);
drivers/usb/host/ehci-sched.c
1624
iso_sched_free(stream, sched);
drivers/usb/host/ehci-sched.c
1647
stream->next_uframe = (start + skip) & (mod - 1);
drivers/usb/host/ehci-sched.c
1651
if (!stream->highspeed)
drivers/usb/host/ehci-sched.c
1656
iso_sched_free(stream, sched);
drivers/usb/host/ehci-sched.c
1664
itd_init(struct ehci_hcd *ehci, struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1671
itd->hw_bufp[0] = stream->buf0;
drivers/usb/host/ehci-sched.c
1672
itd->hw_bufp[1] = stream->buf1;
drivers/usb/host/ehci-sched.c
1673
itd->hw_bufp[2] = stream->buf2;
drivers/usb/host/ehci-sched.c
1744
struct ehci_iso_stream *stream
drivers/usb/host/ehci-sched.c
1752
next_uframe = stream->next_uframe & (mod - 1);
drivers/usb/host/ehci-sched.c
1754
if (unlikely(list_empty(&stream->td_list)))
drivers/usb/host/ehci-sched.c
1756
+= stream->bandwidth;
drivers/usb/host/ehci-sched.c
1776
list_move_tail(&itd->itd_list, &stream->td_list);
drivers/usb/host/ehci-sched.c
1777
itd->stream = stream;
drivers/usb/host/ehci-sched.c
1779
itd_init(ehci, stream, itd);
drivers/usb/host/ehci-sched.c
1787
next_uframe += stream->uperiod;
drivers/usb/host/ehci-sched.c
1798
stream->next_uframe = next_uframe;
drivers/usb/host/ehci-sched.c
1801
iso_sched_free(stream, iso_sched);
drivers/usb/host/ehci-sched.c
1802
urb->hcpriv = stream;
drivers/usb/host/ehci-sched.c
1827
struct ehci_iso_stream *stream = itd->stream;
drivers/usb/host/ehci-sched.c
1891
if (unlikely(list_is_singular(&stream->td_list)))
drivers/usb/host/ehci-sched.c
1893
-= stream->bandwidth;
drivers/usb/host/ehci-sched.c
1899
list_move_tail(&itd->itd_list, &stream->free_list);
drivers/usb/host/ehci-sched.c
1902
if (list_empty(&stream->td_list)) {
drivers/usb/host/ehci-sched.c
1903
list_splice_tail_init(&stream->free_list,
drivers/usb/host/ehci-sched.c
1918
struct ehci_iso_stream *stream;
drivers/usb/host/ehci-sched.c
1921
stream = iso_stream_find(ehci, urb);
drivers/usb/host/ehci-sched.c
1922
if (unlikely(stream == NULL)) {
drivers/usb/host/ehci-sched.c
1926
if (unlikely(urb->interval != stream->uperiod)) {
drivers/usb/host/ehci-sched.c
1928
stream->uperiod, urb->interval);
drivers/usb/host/ehci-sched.c
1940
stream);
drivers/usb/host/ehci-sched.c
1944
status = itd_urb_transaction(stream, ehci, urb, mem_flags);
drivers/usb/host/ehci-sched.c
1959
status = iso_stream_schedule(ehci, urb, stream);
drivers/usb/host/ehci-sched.c
1961
itd_link_urb(ehci, urb, ehci->periodic_size << 3, stream);
drivers/usb/host/ehci-sched.c
1985
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
1993
iso_sched->span = urb->number_of_packets * stream->ps.period;
drivers/usb/host/ehci-sched.c
2021
if (stream->bEndpointAddress & USB_DIR_IN)
drivers/usb/host/ehci-sched.c
2032
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
2048
sitd_sched_init(ehci, iso_sched, stream, urb);
drivers/usb/host/ehci-sched.c
2063
if (likely(!list_empty(&stream->free_list))) {
drivers/usb/host/ehci-sched.c
2064
sitd = list_first_entry(&stream->free_list,
drivers/usb/host/ehci-sched.c
2077
iso_sched_free(stream, iso_sched);
drivers/usb/host/ehci-sched.c
2102
struct ehci_iso_stream *stream,
drivers/usb/host/ehci-sched.c
2112
sitd->hw_fullspeed_ep = stream->address;
drivers/usb/host/ehci-sched.c
2113
sitd->hw_uframe = stream->splits;
drivers/usb/host/ehci-sched.c
2145
struct ehci_iso_stream *stream
drivers/usb/host/ehci-sched.c
2153
next_uframe = stream->next_uframe;
drivers/usb/host/ehci-sched.c
2155
if (list_empty(&stream->td_list))
drivers/usb/host/ehci-sched.c
2158
+= stream->bandwidth;
drivers/usb/host/ehci-sched.c
2179
list_move_tail(&sitd->sitd_list, &stream->td_list);
drivers/usb/host/ehci-sched.c
2180
sitd->stream = stream;
drivers/usb/host/ehci-sched.c
2183
sitd_patch(ehci, stream, sitd, sched, packet);
drivers/usb/host/ehci-sched.c
2187
next_uframe += stream->uperiod;
drivers/usb/host/ehci-sched.c
2189
stream->next_uframe = next_uframe & (mod - 1);
drivers/usb/host/ehci-sched.c
2192
iso_sched_free(stream, sched);
drivers/usb/host/ehci-sched.c
2193
urb->hcpriv = stream;
drivers/usb/host/ehci-sched.c
2220
struct ehci_iso_stream *stream = sitd->stream;
drivers/usb/host/ehci-sched.c
2271
if (list_is_singular(&stream->td_list))
drivers/usb/host/ehci-sched.c
2273
-= stream->bandwidth;
drivers/usb/host/ehci-sched.c
2279
list_move_tail(&sitd->sitd_list, &stream->free_list);
drivers/usb/host/ehci-sched.c
2282
if (list_empty(&stream->td_list)) {
drivers/usb/host/ehci-sched.c
2283
list_splice_tail_init(&stream->free_list,
drivers/usb/host/ehci-sched.c
2297
struct ehci_iso_stream *stream;
drivers/usb/host/ehci-sched.c
2300
stream = iso_stream_find(ehci, urb);
drivers/usb/host/ehci-sched.c
2301
if (stream == NULL) {
drivers/usb/host/ehci-sched.c
2305
if (urb->interval != stream->ps.period) {
drivers/usb/host/ehci-sched.c
2307
stream->ps.period, urb->interval);
drivers/usb/host/ehci-sched.c
2321
status = sitd_urb_transaction(stream, ehci, urb, mem_flags);
drivers/usb/host/ehci-sched.c
2336
status = iso_stream_schedule(ehci, urb, stream);
drivers/usb/host/ehci-sched.c
2338
sitd_link_urb(ehci, urb, ehci->periodic_size << 3, stream);
drivers/usb/host/ehci.h
539
struct ehci_iso_stream *stream; /* endpoint's queue */
drivers/usb/host/ehci.h
585
struct ehci_iso_stream *stream; /* endpoint's queue */
drivers/usb/host/xhci-trace.h
250
__field(unsigned int, stream)
drivers/usb/host/xhci-trace.h
266
__entry->stream = urb->stream_id;
drivers/usb/host/xhci-trace.h
288
__entry->num_sgs, __entry->stream, __entry->flags
drivers/usb/host/xhci.h
2491
u16 stream;
drivers/usb/host/xhci.h
2495
stream = doorbell >> 16;
drivers/usb/host/xhci.h
2510
if (stream)
drivers/usb/host/xhci.h
2511
ret = sprintf(str + ret, " Stream %d", stream);
drivers/usb/host/xhci.h
302
#define DB_VALUE(ep, stream) ((((ep) + 1) & 0xff) | ((stream) << 16))
fs/afs/internal.h
1686
void afs_retry_request(struct netfs_io_request *wreq, struct netfs_io_stream *stream);
fs/afs/write.c
193
void afs_retry_request(struct netfs_io_request *wreq, struct netfs_io_stream *stream)
fs/afs/write.c
196
list_first_entry(&stream->subrequests,
fs/afs/write.c
221
stream->failed = true;
fs/afs/write.c
92
struct netfs_io_stream *stream = &subreq->rreq->io_streams[subreq->stream_nr];
fs/afs/write.c
97
stream->sreq_max_len = 256 * 1024 * 1024;
fs/btrfs/zstd.c
406
zstd_cstream *stream;
fs/btrfs/zstd.c
423
stream = zstd_init_cstream(&workspace->params, len, workspace->mem, workspace->size);
fs/btrfs/zstd.c
424
if (unlikely(!stream)) {
fs/btrfs/zstd.c
454
ret2 = zstd_compress_stream(stream, &workspace->out_buf, &workspace->in_buf);
fs/btrfs/zstd.c
525
ret2 = zstd_end_stream(stream, &workspace->out_buf);
fs/btrfs/zstd.c
591
zstd_dstream *stream;
fs/btrfs/zstd.c
605
stream = zstd_init_dstream(
fs/btrfs/zstd.c
607
if (unlikely(!stream)) {
fs/btrfs/zstd.c
628
ret2 = zstd_decompress_stream(stream, &workspace->out_buf,
fs/btrfs/zstd.c
686
zstd_dstream *stream;
fs/btrfs/zstd.c
690
stream = zstd_init_dstream(
fs/btrfs/zstd.c
692
if (unlikely(!stream)) {
fs/btrfs/zstd.c
715
ret = zstd_decompress_stream(stream, &workspace->out_buf, &workspace->in_buf);
fs/cachefiles/io.c
630
struct netfs_io_stream *stream = &wreq->io_streams[subreq->stream_nr];
fs/cachefiles/io.c
634
stream->sreq_max_len = MAX_RW_COUNT;
fs/cachefiles/io.c
635
stream->sreq_max_segs = BIO_MAX_VECS;
fs/cachefiles/io.c
651
struct netfs_io_stream *stream = &wreq->io_streams[subreq->stream_nr];
fs/cachefiles/io.c
680
if (part && stream->submit_extendable_to >= need) {
fs/cramfs/uncompress.c
27
static z_stream stream;
fs/cramfs/uncompress.c
35
stream.next_in = src;
fs/cramfs/uncompress.c
36
stream.avail_in = srclen;
fs/cramfs/uncompress.c
38
stream.next_out = dst;
fs/cramfs/uncompress.c
39
stream.avail_out = dstlen;
fs/cramfs/uncompress.c
41
err = zlib_inflateReset(&stream);
fs/cramfs/uncompress.c
44
zlib_inflateEnd(&stream);
fs/cramfs/uncompress.c
45
zlib_inflateInit(&stream);
fs/cramfs/uncompress.c
48
err = zlib_inflate(&stream, Z_FINISH);
fs/cramfs/uncompress.c
51
return stream.total_out;
fs/cramfs/uncompress.c
62
stream.workspace = vmalloc(zlib_inflate_workspacesize());
fs/cramfs/uncompress.c
63
if (!stream.workspace) {
fs/cramfs/uncompress.c
67
stream.next_in = NULL;
fs/cramfs/uncompress.c
68
stream.avail_in = 0;
fs/cramfs/uncompress.c
69
zlib_inflateInit(&stream);
fs/cramfs/uncompress.c
77
zlib_inflateEnd(&stream);
fs/cramfs/uncompress.c
78
vfree(stream.workspace);
fs/erofs/decompressor_zstd.c
146
zstd_dstream *stream;
fs/erofs/decompressor_zstd.c
163
stream = zstd_init_dstream(z_erofs_zstd_max_dictsize, strm->wksp, strm->wkspsz);
fs/erofs/decompressor_zstd.c
164
if (!stream) {
fs/erofs/decompressor_zstd.c
190
zerr = zstd_decompress_stream(stream, &out_buf, &in_buf);
fs/exfat/dir.c
1079
ep->dentry.stream.name_hash);
fs/exfat/dir.c
1082
ep->dentry.stream.name_len) {
fs/exfat/dir.c
410
ep->dentry.stream.flags = ALLOC_FAT_CHAIN;
fs/exfat/dir.c
412
ep->dentry.stream.flags = ALLOC_NO_FAT_CHAIN;
fs/exfat/dir.c
413
ep->dentry.stream.start_clu = cpu_to_le32(start_clu);
fs/exfat/dir.c
414
ep->dentry.stream.valid_size = cpu_to_le64(size);
fs/exfat/dir.c
415
ep->dentry.stream.size = cpu_to_le64(size);
fs/exfat/dir.c
497
ep->dentry.stream.name_len = p_uniname->name_len;
fs/exfat/dir.c
498
ep->dentry.stream.name_hash = cpu_to_le16(p_uniname->name_hash);
fs/exfat/exfat_raw.h
145
} __packed stream; /* stream extension directory entry */
fs/exfat/inode.c
78
ep2->dentry.stream.size = cpu_to_le64(on_disk_size);
fs/exfat/inode.c
85
ep2->dentry.stream.valid_size = ep2->dentry.stream.size;
fs/exfat/inode.c
87
ep2->dentry.stream.valid_size = cpu_to_le64(ei->valid_size);
fs/exfat/inode.c
90
ep2->dentry.stream.flags = ei->flags;
fs/exfat/inode.c
91
ep2->dentry.stream.start_clu = cpu_to_le32(ei->start_clu);
fs/exfat/inode.c
93
ep2->dentry.stream.flags = ALLOC_FAT_CHAIN;
fs/exfat/inode.c
94
ep2->dentry.stream.start_clu = EXFAT_FREE_CLUSTER;
fs/exfat/namei.c
645
info->valid_size = le64_to_cpu(ep2->dentry.stream.valid_size);
fs/exfat/namei.c
646
info->size = le64_to_cpu(ep2->dentry.stream.size);
fs/exfat/namei.c
648
info->start_clu = le32_to_cpu(ep2->dentry.stream.start_clu);
fs/exfat/namei.c
666
info->flags = ep2->dentry.stream.flags;
fs/f2fs/compress.c
331
zstd_cstream *stream;
fs/f2fs/compress.c
347
stream = zstd_init_cstream(&params, 0, workspace, workspace_size);
fs/f2fs/compress.c
348
if (!stream) {
fs/f2fs/compress.c
356
cc->private2 = stream;
fs/f2fs/compress.c
371
zstd_cstream *stream = cc->private2;
fs/f2fs/compress.c
386
ret = zstd_compress_stream(stream, &outbuf, &inbuf);
fs/f2fs/compress.c
394
ret = zstd_end_stream(stream, &outbuf);
fs/f2fs/compress.c
415
zstd_dstream *stream;
fs/f2fs/compress.c
427
stream = zstd_init_dstream(max_window_size, workspace, workspace_size);
fs/f2fs/compress.c
428
if (!stream) {
fs/f2fs/compress.c
436
dic->private2 = stream;
fs/f2fs/compress.c
450
zstd_dstream *stream = dic->private2;
fs/f2fs/compress.c
463
ret = zstd_decompress_stream(stream, &outbuf, &inbuf);
fs/hostfs/hostfs.h
44
extern void seek_dir(void *stream, unsigned long long pos);
fs/hostfs/hostfs.h
45
extern char *read_dir(void *stream, unsigned long long *pos_out,
fs/hostfs/hostfs.h
48
extern void close_file(void *stream);
fs/hostfs/hostfs.h
50
extern void close_dir(void *stream);
fs/hostfs/hostfs_user.c
111
void seek_dir(void *stream, unsigned long long pos)
fs/hostfs/hostfs_user.c
113
DIR *dir = stream;
fs/hostfs/hostfs_user.c
118
char *read_dir(void *stream, unsigned long long *pos_out,
fs/hostfs/hostfs_user.c
122
DIR *dir = stream;
fs/hostfs/hostfs_user.c
185
void close_file(void *stream)
fs/hostfs/hostfs_user.c
187
close(*((int *) stream));
fs/hostfs/hostfs_user.c
190
void close_dir(void *stream)
fs/hostfs/hostfs_user.c
192
closedir(stream);
fs/isofs/compress.c
104
stream.workspace = zisofs_zlib_workspace;
fs/isofs/compress.c
107
zerr = zlib_inflateInit(&stream);
fs/isofs/compress.c
120
if (!stream.avail_out) {
fs/isofs/compress.c
122
stream.next_out = kmap_local_page(pages[curpage])
fs/isofs/compress.c
124
stream.avail_out = PAGE_SIZE - poffset;
fs/isofs/compress.c
127
stream.next_out = (void *)&zisofs_sink_page;
fs/isofs/compress.c
128
stream.avail_out = PAGE_SIZE;
fs/isofs/compress.c
131
if (!stream.avail_in) {
fs/isofs/compress.c
137
stream.next_in = bhs[curbh]->b_data +
fs/isofs/compress.c
139
stream.avail_in = min_t(unsigned, bufsize -
fs/isofs/compress.c
142
block_size -= stream.avail_in;
fs/isofs/compress.c
146
while (stream.avail_out && stream.avail_in) {
fs/isofs/compress.c
147
zerr = zlib_inflate(&stream, Z_SYNC_FLUSH);
fs/isofs/compress.c
148
if (zerr == Z_BUF_ERROR && stream.avail_in == 0)
fs/isofs/compress.c
164
curbh, stream.avail_in,
fs/isofs/compress.c
165
stream.avail_out);
fs/isofs/compress.c
172
if (!stream.avail_out) {
fs/isofs/compress.c
178
if (stream.next_out != (unsigned char *)zisofs_sink_page) {
fs/isofs/compress.c
179
kunmap_local(stream.next_out);
fs/isofs/compress.c
180
stream.next_out = NULL;
fs/isofs/compress.c
184
if (!stream.avail_in)
fs/isofs/compress.c
188
zlib_inflateEnd(&stream);
fs/isofs/compress.c
189
if (stream.next_out && stream.next_out != (unsigned char *)zisofs_sink_page)
fs/isofs/compress.c
190
kunmap_local(stream.next_out);
fs/isofs/compress.c
199
return stream.total_out;
fs/isofs/compress.c
50
z_stream stream = { .total_out = 0,
fs/netfs/buffered_read.c
163
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/buffered_read.c
172
list_add_tail(&subreq->rreq_link, &stream->subrequests);
fs/netfs/buffered_read.c
173
if (list_is_first(&subreq->rreq_link, &stream->subrequests)) {
fs/netfs/buffered_read.c
174
if (!stream->active) {
fs/netfs/buffered_read.c
175
stream->collected_to = subreq->start;
fs/netfs/buffered_read.c
177
smp_store_release(&stream->active, true);
fs/netfs/direct_read.c
50
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/direct_read.c
72
list_add_tail(&subreq->rreq_link, &stream->subrequests);
fs/netfs/direct_read.c
73
if (list_is_first(&subreq->rreq_link, &stream->subrequests)) {
fs/netfs/direct_read.c
74
if (!stream->active) {
fs/netfs/direct_read.c
75
stream->collected_to = subreq->start;
fs/netfs/direct_read.c
77
smp_store_release(&stream->active, true);
fs/netfs/direct_write.c
105
stream->collected_to = wreq->start;
fs/netfs/direct_write.c
111
netfs_prepare_write(wreq, stream, wreq->start + wreq->transferred);
fs/netfs/direct_write.c
112
subreq = stream->construct;
fs/netfs/direct_write.c
113
stream->construct = NULL;
fs/netfs/direct_write.c
128
stream->sreq_max_len,
fs/netfs/direct_write.c
129
stream->sreq_max_segs);
fs/netfs/direct_write.c
131
stream->submit_extendable_to = subreq->len;
fs/netfs/direct_write.c
134
stream->issue_write(subreq);
fs/netfs/direct_write.c
137
netfs_wait_for_in_progress_stream(wreq, stream);
fs/netfs/direct_write.c
151
netfs_unbuffered_write_collect(wreq, stream, subreq);
fs/netfs/direct_write.c
172
if (stream->source == NETFS_UPLOAD_TO_SERVER &&
fs/netfs/direct_write.c
174
wreq->netfs_ops->retry_request(wreq, stream);
fs/netfs/direct_write.c
184
stream->sreq_max_len = UINT_MAX;
fs/netfs/direct_write.c
185
stream->sreq_max_segs = INT_MAX;
fs/netfs/direct_write.c
189
if (stream->prepare_write) {
fs/netfs/direct_write.c
190
stream->prepare_write(subreq);
fs/netfs/direct_write.c
198
netfs_reissue_write(stream, subreq, &source);
fs/netfs/direct_write.c
66
struct netfs_io_stream *stream,
fs/netfs/direct_write.c
78
stream->collected_to = subreq->start + subreq->transferred;
fs/netfs/direct_write.c
79
wreq->collected_to = stream->collected_to;
fs/netfs/direct_write.c
82
trace_netfs_collect_stream(wreq, stream);
fs/netfs/direct_write.c
97
struct netfs_io_stream *stream = &wreq->io_streams[0];
fs/netfs/internal.h
202
struct netfs_io_stream *stream,
fs/netfs/internal.h
204
void netfs_reissue_write(struct netfs_io_stream *stream,
fs/netfs/internal.h
208
struct netfs_io_stream *stream);
fs/netfs/internal.h
210
struct netfs_io_stream *stream,
fs/netfs/internal.h
74
struct netfs_io_stream *stream);
fs/netfs/misc.c
338
struct netfs_io_stream *stream = &rreq->io_streams[subreq->stream_nr];
fs/netfs/misc.c
344
if (list_is_first(&subreq->rreq_link, &stream->subrequests) ||
fs/netfs/misc.c
353
struct netfs_io_stream *stream)
fs/netfs/misc.c
358
list_for_each_entry(subreq, &stream->subrequests, rreq_link) {
fs/netfs/misc.c
393
struct netfs_io_stream *stream = &rreq->io_streams[i];
fs/netfs/misc.c
395
if (!stream->active)
fs/netfs/misc.c
398
trace_netfs_collect_stream(rreq, stream);
fs/netfs/misc.c
399
subreq = list_first_entry_or_null(&stream->subrequests,
fs/netfs/objects.c
101
stream = &rreq->io_streams[s];
fs/netfs/objects.c
102
while (!list_empty(&stream->subrequests)) {
fs/netfs/objects.c
103
subreq = list_first_entry(&stream->subrequests,
fs/netfs/objects.c
97
struct netfs_io_stream *stream;
fs/netfs/read_collect.c
188
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_collect.c
208
front = list_first_entry_or_null(&stream->subrequests,
fs/netfs/read_collect.c
217
if (stream->collected_to < front->start) {
fs/netfs/read_collect.c
218
trace_netfs_collect_gap(rreq, stream, front->start, 'F');
fs/netfs/read_collect.c
219
stream->collected_to = front->start;
fs/netfs/read_collect.c
246
stream->collected_to = front->start + transferred;
fs/netfs/read_collect.c
247
rreq->collected_to = stream->collected_to;
fs/netfs/read_collect.c
262
stream->collected_to = front->start + transferred;
fs/netfs/read_collect.c
263
rreq->collected_to = stream->collected_to;
fs/netfs/read_collect.c
271
if (!stream->failed) {
fs/netfs/read_collect.c
272
stream->error = front->error;
fs/netfs/read_collect.c
275
stream->failed = true;
fs/netfs/read_collect.c
279
stream->need_retry = true;
fs/netfs/read_collect.c
285
if (!stream->failed) {
fs/netfs/read_collect.c
286
stream->transferred += transferred;
fs/netfs/read_collect.c
287
stream->transferred_valid = true;
fs/netfs/read_collect.c
295
stream->source = front->source;
fs/netfs/read_collect.c
303
front = list_first_entry_or_null(&stream->subrequests,
fs/netfs/read_collect.c
312
trace_netfs_collect_stream(rreq, stream);
fs/netfs/read_collect.c
378
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_collect.c
380
if (!rreq->error && stream->source == NETFS_DOWNLOAD_FROM_SERVER &&
fs/netfs/read_collect.c
406
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_collect.c
417
if (!list_empty(&stream->subrequests))
fs/netfs/read_collect.c
421
rreq->transferred = stream->transferred;
fs/netfs/read_collect.c
478
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_collect.c
490
list_is_first(&subreq->rreq_link, &stream->subrequests)
fs/netfs/read_retry.c
101
list_for_each_continue(next, &stream->subrequests) {
fs/netfs/read_retry.c
122
list_for_each_entry_from(subreq, &stream->subrequests, rreq_link) {
fs/netfs/read_retry.c
137
stream->sreq_max_len = subreq->len;
fs/netfs/read_retry.c
145
part = umin(len, stream->sreq_max_len);
fs/netfs/read_retry.c
146
if (unlikely(stream->sreq_max_segs))
fs/netfs/read_retry.c
147
part = netfs_limit_iter(&source, 0, part, stream->sreq_max_segs);
fs/netfs/read_retry.c
176
&stream->subrequests, rreq_link) {
fs/netfs/read_retry.c
199
subreq->stream_nr = stream->stream_nr;
fs/netfs/read_retry.c
210
stream->sreq_max_len = umin(len, rreq->rsize);
fs/netfs/read_retry.c
211
stream->sreq_max_segs = 0;
fs/netfs/read_retry.c
212
if (unlikely(stream->sreq_max_segs))
fs/netfs/read_retry.c
213
part = netfs_limit_iter(&source, 0, part, stream->sreq_max_segs);
fs/netfs/read_retry.c
222
part = umin(len, stream->sreq_max_len);
fs/netfs/read_retry.c
238
} while (!list_is_head(next, &stream->subrequests));
fs/netfs/read_retry.c
244
if (list_is_last(&subreq->rreq_link, &stream->subrequests))
fs/netfs/read_retry.c
248
list_for_each_entry_from(subreq, &stream->subrequests, rreq_link) {
fs/netfs/read_retry.c
263
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_retry.c
271
netfs_wait_for_in_progress_stream(rreq, stream);
fs/netfs/read_retry.c
29
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/read_retry.c
34
if (list_empty(&stream->subrequests))
fs/netfs/read_retry.c
45
list_for_each_entry(subreq, &stream->subrequests, rreq_link) {
fs/netfs/read_retry.c
73
next = stream->subrequests.next;
fs/netfs/read_single.c
108
list_add_tail(&subreq->rreq_link, &stream->subrequests);
fs/netfs/read_single.c
111
smp_store_release(&stream->active, true);
fs/netfs/read_single.c
92
struct netfs_io_stream *stream = &rreq->io_streams[0];
fs/netfs/write_collect.c
200
struct netfs_io_stream *stream;
fs/netfs/write_collect.c
226
stream = &wreq->io_streams[s];
fs/netfs/write_collect.c
228
if (!smp_load_acquire(&stream->active))
fs/netfs/write_collect.c
231
front = list_first_entry_or_null(&stream->subrequests,
fs/netfs/write_collect.c
238
if (stream->collected_to < front->start) {
fs/netfs/write_collect.c
239
trace_netfs_collect_gap(wreq, stream, issued_to, 'F');
fs/netfs/write_collect.c
240
stream->collected_to = front->start;
fs/netfs/write_collect.c
250
if (stream->failed) {
fs/netfs/write_collect.c
251
stream->collected_to = front->start + front->len;
fs/netfs/write_collect.c
255
if (front->start + front->transferred > stream->collected_to) {
fs/netfs/write_collect.c
256
stream->collected_to = front->start + front->transferred;
fs/netfs/write_collect.c
257
stream->transferred = stream->collected_to - wreq->start;
fs/netfs/write_collect.c
258
stream->transferred_valid = true;
fs/netfs/write_collect.c
262
stream->failed = true;
fs/netfs/write_collect.c
263
stream->error = front->error;
fs/netfs/write_collect.c
264
if (stream->source == NETFS_UPLOAD_TO_SERVER)
fs/netfs/write_collect.c
270
stream->need_retry = true;
fs/netfs/write_collect.c
281
front = list_first_entry_or_null(&stream->subrequests,
fs/netfs/write_collect.c
293
if (!front && issued_to > stream->collected_to) {
fs/netfs/write_collect.c
294
trace_netfs_collect_gap(wreq, stream, issued_to, 'E');
fs/netfs/write_collect.c
295
stream->collected_to = issued_to;
fs/netfs/write_collect.c
298
if (stream->collected_to < collected_to)
fs/netfs/write_collect.c
299
collected_to = stream->collected_to;
fs/netfs/write_collect.c
306
stream = &wreq->io_streams[s];
fs/netfs/write_collect.c
307
if (stream->active)
fs/netfs/write_collect.c
308
trace_netfs_collect_stream(wreq, stream);
fs/netfs/write_collect.c
376
struct netfs_io_stream *stream = &wreq->io_streams[s];
fs/netfs/write_collect.c
377
if (!stream->active)
fs/netfs/write_collect.c
379
if (!list_empty(&stream->subrequests))
fs/netfs/write_collect.c
381
if (stream->transferred_valid &&
fs/netfs/write_collect.c
382
stream->transferred < transferred) {
fs/netfs/write_collect.c
383
transferred = stream->transferred;
fs/netfs/write_issue.c
158
struct netfs_io_stream *stream,
fs/netfs/write_issue.c
173
subreq->source = stream->source;
fs/netfs/write_issue.c
175
subreq->stream_nr = stream->stream_nr;
fs/netfs/write_issue.c
182
stream->sreq_max_len = UINT_MAX;
fs/netfs/write_issue.c
183
stream->sreq_max_segs = INT_MAX;
fs/netfs/write_issue.c
184
switch (stream->source) {
fs/netfs/write_issue.c
187
stream->sreq_max_len = wreq->wsize;
fs/netfs/write_issue.c
197
if (stream->prepare_write)
fs/netfs/write_issue.c
198
stream->prepare_write(subreq);
fs/netfs/write_issue.c
207
list_add_tail(&subreq->rreq_link, &stream->subrequests);
fs/netfs/write_issue.c
208
if (list_is_first(&subreq->rreq_link, &stream->subrequests)) {
fs/netfs/write_issue.c
209
if (!stream->active) {
fs/netfs/write_issue.c
210
stream->collected_to = subreq->start;
fs/netfs/write_issue.c
212
smp_store_release(&stream->active, true);
fs/netfs/write_issue.c
218
stream->construct = subreq;
fs/netfs/write_issue.c
226
static void netfs_do_issue_write(struct netfs_io_stream *stream,
fs/netfs/write_issue.c
237
stream->issue_write(subreq);
fs/netfs/write_issue.c
240
void netfs_reissue_write(struct netfs_io_stream *stream,
fs/netfs/write_issue.c
256
netfs_do_issue_write(stream, subreq);
fs/netfs/write_issue.c
260
struct netfs_io_stream *stream)
fs/netfs/write_issue.c
262
struct netfs_io_subrequest *subreq = stream->construct;
fs/netfs/write_issue.c
266
stream->construct = NULL;
fs/netfs/write_issue.c
268
netfs_do_issue_write(stream, subreq);
fs/netfs/write_issue.c
278
struct netfs_io_stream *stream,
fs/netfs/write_issue.c
281
struct netfs_io_subrequest *subreq = stream->construct;
fs/netfs/write_issue.c
284
if (!stream->avail) {
fs/netfs/write_issue.c
292
netfs_issue_write(wreq, stream);
fs/netfs/write_issue.c
296
if (!stream->construct)
fs/netfs/write_issue.c
297
netfs_prepare_write(wreq, stream, start);
fs/netfs/write_issue.c
298
subreq = stream->construct;
fs/netfs/write_issue.c
300
part = umin(stream->sreq_max_len - subreq->len, len);
fs/netfs/write_issue.c
301
_debug("part %zx/%zx %zx/%zx", subreq->len, stream->sreq_max_len, part, len);
fs/netfs/write_issue.c
304
stream->submit_extendable_to -= part;
fs/netfs/write_issue.c
306
if (subreq->len >= stream->sreq_max_len ||
fs/netfs/write_issue.c
307
subreq->nr_segs >= stream->sreq_max_segs ||
fs/netfs/write_issue.c
309
netfs_issue_write(wreq, stream);
fs/netfs/write_issue.c
325
struct netfs_io_stream *stream;
fs/netfs/write_issue.c
453
stream = &wreq->io_streams[s];
fs/netfs/write_issue.c
454
stream->submit_off = foff;
fs/netfs/write_issue.c
455
stream->submit_len = flen;
fs/netfs/write_issue.c
456
if (!stream->avail ||
fs/netfs/write_issue.c
457
(stream->source == NETFS_WRITE_TO_CACHE && streamw) ||
fs/netfs/write_issue.c
458
(stream->source == NETFS_UPLOAD_TO_SERVER &&
fs/netfs/write_issue.c
460
stream->submit_off = UINT_MAX;
fs/netfs/write_issue.c
461
stream->submit_len = 0;
fs/netfs/write_issue.c
477
stream = &wreq->io_streams[s];
fs/netfs/write_issue.c
478
if (stream->submit_len > 0 &&
fs/netfs/write_issue.c
479
stream->submit_off < lowest_off) {
fs/netfs/write_issue.c
480
lowest_off = stream->submit_off;
fs/netfs/write_issue.c
487
stream = &wreq->io_streams[choose_s];
fs/netfs/write_issue.c
490
if (stream->submit_off > iter_off) {
fs/netfs/write_issue.c
491
rolling_buffer_advance(&wreq->buffer, stream->submit_off - iter_off);
fs/netfs/write_issue.c
492
iter_off = stream->submit_off;
fs/netfs/write_issue.c
495
atomic64_set(&wreq->issued_to, fpos + stream->submit_off);
fs/netfs/write_issue.c
496
stream->submit_extendable_to = fsize - stream->submit_off;
fs/netfs/write_issue.c
497
part = netfs_advance_write(wreq, stream, fpos + stream->submit_off,
fs/netfs/write_issue.c
498
stream->submit_len, to_eof);
fs/netfs/write_issue.c
499
stream->submit_off += part;
fs/netfs/write_issue.c
500
if (part > stream->submit_len)
fs/netfs/write_issue.c
501
stream->submit_len = 0;
fs/netfs/write_issue.c
503
stream->submit_len -= part;
fs/netfs/write_issue.c
534
struct netfs_io_stream *stream = &wreq->io_streams[s];
fs/netfs/write_issue.c
536
if (!stream->active)
fs/netfs/write_issue.c
538
if (!list_empty(&stream->subrequests))
fs/netfs/write_issue.c
540
netfs_issue_write(wreq, stream);
fs/netfs/write_issue.c
708
struct netfs_io_stream *stream;
fs/netfs/write_issue.c
750
stream = &wreq->io_streams[s];
fs/netfs/write_issue.c
751
stream->submit_off = 0;
fs/netfs/write_issue.c
752
stream->submit_len = flen;
fs/netfs/write_issue.c
753
if (!stream->avail) {
fs/netfs/write_issue.c
754
stream->submit_off = UINT_MAX;
fs/netfs/write_issue.c
755
stream->submit_len = 0;
fs/netfs/write_issue.c
771
stream = &wreq->io_streams[s];
fs/netfs/write_issue.c
772
if (stream->submit_len > 0 &&
fs/netfs/write_issue.c
773
stream->submit_off < lowest_off) {
fs/netfs/write_issue.c
774
lowest_off = stream->submit_off;
fs/netfs/write_issue.c
781
stream = &wreq->io_streams[choose_s];
fs/netfs/write_issue.c
784
if (stream->submit_off > iter_off) {
fs/netfs/write_issue.c
785
rolling_buffer_advance(&wreq->buffer, stream->submit_off - iter_off);
fs/netfs/write_issue.c
786
iter_off = stream->submit_off;
fs/netfs/write_issue.c
789
atomic64_set(&wreq->issued_to, fpos + stream->submit_off);
fs/netfs/write_issue.c
790
stream->submit_extendable_to = fsize - stream->submit_off;
fs/netfs/write_issue.c
791
part = netfs_advance_write(wreq, stream, fpos + stream->submit_off,
fs/netfs/write_issue.c
792
stream->submit_len, to_eof);
fs/netfs/write_issue.c
793
stream->submit_off += part;
fs/netfs/write_issue.c
794
if (part > stream->submit_len)
fs/netfs/write_issue.c
795
stream->submit_len = 0;
fs/netfs/write_issue.c
797
stream->submit_len -= part;
fs/netfs/write_retry.c
104
stream->sreq_max_len = len;
fs/netfs/write_retry.c
105
stream->prepare_write(subreq);
fs/netfs/write_retry.c
107
part = umin(len, stream->sreq_max_len);
fs/netfs/write_retry.c
108
if (unlikely(stream->sreq_max_segs))
fs/netfs/write_retry.c
109
part = netfs_limit_iter(&source, 0, part, stream->sreq_max_segs);
fs/netfs/write_retry.c
119
netfs_reissue_write(stream, subreq, &source);
fs/netfs/write_retry.c
131
&stream->subrequests, rreq_link) {
fs/netfs/write_retry.c
160
stream->sreq_max_len = len;
fs/netfs/write_retry.c
161
stream->sreq_max_segs = INT_MAX;
fs/netfs/write_retry.c
162
switch (stream->source) {
fs/netfs/write_retry.c
165
stream->sreq_max_len = umin(len, wreq->wsize);
fs/netfs/write_retry.c
174
stream->prepare_write(subreq);
fs/netfs/write_retry.c
176
part = umin(len, stream->sreq_max_len);
fs/netfs/write_retry.c
18
struct netfs_io_stream *stream)
fs/netfs/write_retry.c
185
netfs_reissue_write(stream, subreq, &source);
fs/netfs/write_retry.c
191
} while (!list_is_head(next, &stream->subrequests));
fs/netfs/write_retry.c
201
struct netfs_io_stream *stream;
fs/netfs/write_retry.c
211
stream = &wreq->io_streams[s];
fs/netfs/write_retry.c
212
if (stream->active)
fs/netfs/write_retry.c
213
netfs_wait_for_in_progress_stream(wreq, stream);
fs/netfs/write_retry.c
22
_enter("R=%x[%x:]", wreq->debug_id, stream->stream_nr);
fs/netfs/write_retry.c
223
stream = &wreq->io_streams[s];
fs/netfs/write_retry.c
224
if (stream->need_retry) {
fs/netfs/write_retry.c
225
stream->need_retry = false;
fs/netfs/write_retry.c
226
netfs_retry_write_stream(wreq, stream);
fs/netfs/write_retry.c
24
if (list_empty(&stream->subrequests))
fs/netfs/write_retry.c
27
if (stream->source == NETFS_UPLOAD_TO_SERVER &&
fs/netfs/write_retry.c
29
wreq->netfs_ops->retry_request(wreq, stream);
fs/netfs/write_retry.c
31
if (unlikely(stream->failed))
fs/netfs/write_retry.c
35
if (!stream->prepare_write) {
fs/netfs/write_retry.c
38
list_for_each_entry(subreq, &stream->subrequests, rreq_link) {
fs/netfs/write_retry.c
47
netfs_reissue_write(stream, subreq, &source);
fs/netfs/write_retry.c
53
next = stream->subrequests.next;
fs/netfs/write_retry.c
75
list_for_each_continue(next, &stream->subrequests) {
fs/netfs/write_retry.c
94
list_for_each_entry_from(subreq, &stream->subrequests, rreq_link) {
fs/nfs/dir.c
810
struct xdr_stream *stream)
fs/nfs/dir.c
816
ret = xdr_decode(desc, entry, stream);
fs/nfs/dir.c
832
struct xdr_stream stream;
fs/nfs/dir.c
842
xdr_init_decode_pages(&stream, &buf, xdr_pages, buflen);
fs/nfs/dir.c
843
xdr_set_scratch_folio(&stream, scratch);
fs/nfs/dir.c
846
status = nfs_readdir_entry_decode(desc, entry, &stream);
fs/nfs/dir.c
888
while (!nfs_readdir_entry_decode(desc, entry, &stream))
fs/nfs/filelayout/filelayout.c
647
struct xdr_stream stream;
fs/nfs/filelayout/filelayout.c
660
xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages, lgr->layoutp->len);
fs/nfs/filelayout/filelayout.c
661
xdr_set_scratch_folio(&stream, scratch);
fs/nfs/filelayout/filelayout.c
665
p = xdr_inline_decode(&stream, NFS4_DEVICEID4_SIZE + 20);
fs/nfs/filelayout/filelayout.c
709
p = xdr_inline_decode(&stream, 4);
fs/nfs/filelayout/filelayout.c
719
p = xdr_inline_decode(&stream, fl->fh_array[i]->size);
fs/nfs/filelayout/filelayoutdev.c
108
p = xdr_inline_decode(&stream, cnt << 2);
fs/nfs/filelayout/filelayoutdev.c
121
p = xdr_inline_decode(&stream, 4);
fs/nfs/filelayout/filelayoutdev.c
157
p = xdr_inline_decode(&stream, 4);
fs/nfs/filelayout/filelayoutdev.c
163
da = nfs4_decode_mp_ds_addr(net, &stream, gfp_flags);
fs/nfs/filelayout/filelayoutdev.c
74
struct xdr_stream stream;
fs/nfs/filelayout/filelayoutdev.c
86
xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen);
fs/nfs/filelayout/filelayoutdev.c
87
xdr_set_scratch_folio(&stream, scratch);
fs/nfs/filelayout/filelayoutdev.c
90
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayout.c
452
struct xdr_stream stream;
fs/nfs/flexfilelayout/flexfilelayout.c
466
xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages,
fs/nfs/flexfilelayout/flexfilelayout.c
468
xdr_set_scratch_folio(&stream, scratch);
fs/nfs/flexfilelayout/flexfilelayout.c
472
p = xdr_inline_decode(&stream, 8 + 4);
fs/nfs/flexfilelayout/flexfilelayout.c
504
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayout.c
532
rc = decode_deviceid(&stream, &dss_info->devid);
fs/nfs/flexfilelayout/flexfilelayout.c
538
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayout.c
544
rc = decode_pnfs_stateid(&stream, &dss_info->stateid);
fs/nfs/flexfilelayout/flexfilelayout.c
550
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayout.c
563
rc = decode_nfs_fh(&stream,
fs/nfs/flexfilelayout/flexfilelayout.c
572
rc = decode_name(&stream, &id);
fs/nfs/flexfilelayout/flexfilelayout.c
579
rc = decode_name(&stream, &id);
fs/nfs/flexfilelayout/flexfilelayout.c
631
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayout.c
636
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
110
p = xdr_inline_decode(&stream, 20);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
45
struct xdr_stream stream;
fs/nfs/flexfilelayout/flexfilelayoutdev.c
72
xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
73
xdr_set_scratch_folio(&stream, scratch);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
76
p = xdr_inline_decode(&stream, 4);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
84
da = nfs4_decode_mp_ds_addr(net, &stream, gfp_flags);
fs/nfs/flexfilelayout/flexfilelayoutdev.c
96
p = xdr_inline_decode(&stream, 4);
fs/smb/client/file.c
104
stream->sreq_max_segs = sp->max_frmr_depth;
fs/smb/client/file.c
52
struct netfs_io_stream *stream = &req->rreq.io_streams[subreq->stream_nr];
fs/smb/client/file.c
82
rc = server->ops->wait_mtu_credits(server, wsize, &stream->sreq_max_len,
fs/smb/server/smb2pdu.c
2494
fp->stream.name = xattr_stream_name;
fs/smb/server/smb2pdu.c
2495
fp->stream.size = xattr_stream_size;
fs/smb/server/smb2pdu.c
4912
sinfo->AllocationSize = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
4913
sinfo->EndOfFile = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
4995
file_info->AllocationSize = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
4996
file_info->EndOfFile = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
5009
file_info->CurrentByteOffset = cpu_to_le64(fp->stream.pos);
fs/smb/server/smb2pdu.c
5203
file_info->AllocationSize = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
5204
file_info->EndOfFile = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
5231
file_info->CurrentByteOffset = cpu_to_le64(fp->stream.pos);
fs/smb/server/smb2pdu.c
5325
file_info->EndOfFile = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
5326
file_info->AllocationSize = cpu_to_le64(fp->stream.size);
fs/smb/server/smb2pdu.c
6462
fp->stream.pos = current_byte_offset;
fs/smb/server/smb_common.c
686
if (strcmp(prev_fp->stream.name, curr_fp->stream.name))
fs/smb/server/vfs.c
265
fp->stream.name,
fs/smb/server/vfs.c
266
fp->stream.size,
fs/smb/server/vfs.c
278
fp->stream.pos = v_len;
fs/smb/server/vfs.c
413
fp->stream.name,
fs/smb/server/vfs.c
414
fp->stream.size,
fs/smb/server/vfs.c
439
fp->stream.name,
fs/smb/server/vfs.c
447
fp->stream.pos = size;
fs/smb/server/vfs_cache.c
389
fp->stream.name,
fs/smb/server/vfs_cache.c
393
fp->stream.name);
fs/smb/server/vfs_cache.c
476
kfree(fp->stream.name);
fs/smb/server/vfs_cache.h
139
return fp->stream.name != NULL;
fs/smb/server/vfs_cache.h
99
struct stream stream;
fs/squashfs/block.c
365
if (!msblk->stream) {
fs/squashfs/decompressor.c
131
void *stream, *comp_opts = get_comp_opts(sb, flags);
fs/squashfs/decompressor.c
136
stream = msblk->thread_ops->create(msblk, comp_opts);
fs/squashfs/decompressor.c
137
if (IS_ERR(stream))
fs/squashfs/decompressor.c
140
return stream;
fs/squashfs/decompressor_multi.c
100
kfree(stream);
fs/squashfs/decompressor_multi.c
107
struct squashfs_stream *stream = msblk->stream;
fs/squashfs/decompressor_multi.c
108
if (stream) {
fs/squashfs/decompressor_multi.c
111
while (!list_empty(&stream->strm_list)) {
fs/squashfs/decompressor_multi.c
112
decomp_strm = list_entry(stream->strm_list.prev,
fs/squashfs/decompressor_multi.c
115
msblk->decompressor->free(decomp_strm->stream);
fs/squashfs/decompressor_multi.c
117
stream->avail_decomp--;
fs/squashfs/decompressor_multi.c
119
WARN_ON(stream->avail_decomp);
fs/squashfs/decompressor_multi.c
120
kfree(stream->comp_opts);
fs/squashfs/decompressor_multi.c
121
kfree(stream);
fs/squashfs/decompressor_multi.c
127
struct squashfs_stream *stream)
fs/squashfs/decompressor_multi.c
132
mutex_lock(&stream->mutex);
fs/squashfs/decompressor_multi.c
135
if (!list_empty(&stream->strm_list)) {
fs/squashfs/decompressor_multi.c
136
decomp_strm = list_entry(stream->strm_list.prev,
fs/squashfs/decompressor_multi.c
139
mutex_unlock(&stream->mutex);
fs/squashfs/decompressor_multi.c
147
if (stream->avail_decomp >= msblk->max_thread_num)
fs/squashfs/decompressor_multi.c
155
decomp_strm->stream = msblk->decompressor->init(msblk,
fs/squashfs/decompressor_multi.c
156
stream->comp_opts);
fs/squashfs/decompressor_multi.c
157
if (IS_ERR(decomp_strm->stream)) {
fs/squashfs/decompressor_multi.c
162
stream->avail_decomp++;
fs/squashfs/decompressor_multi.c
163
WARN_ON(stream->avail_decomp > msblk->max_thread_num);
fs/squashfs/decompressor_multi.c
165
mutex_unlock(&stream->mutex);
fs/squashfs/decompressor_multi.c
173
mutex_unlock(&stream->mutex);
fs/squashfs/decompressor_multi.c
174
wait_event(stream->wait,
fs/squashfs/decompressor_multi.c
175
!list_empty(&stream->strm_list));
fs/squashfs/decompressor_multi.c
187
struct squashfs_stream *stream = msblk->stream;
fs/squashfs/decompressor_multi.c
188
struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream);
fs/squashfs/decompressor_multi.c
189
res = msblk->decompressor->decompress(msblk, decomp_stream->stream,
fs/squashfs/decompressor_multi.c
191
put_decomp_stream(decomp_stream, stream);
fs/squashfs/decompressor_multi.c
47
void *stream;
fs/squashfs/decompressor_multi.c
53
struct squashfs_stream *stream)
fs/squashfs/decompressor_multi.c
55
mutex_lock(&stream->mutex);
fs/squashfs/decompressor_multi.c
56
list_add(&decomp_strm->list, &stream->strm_list);
fs/squashfs/decompressor_multi.c
57
mutex_unlock(&stream->mutex);
fs/squashfs/decompressor_multi.c
58
wake_up(&stream->wait);
fs/squashfs/decompressor_multi.c
64
struct squashfs_stream *stream;
fs/squashfs/decompressor_multi.c
68
stream = kzalloc_obj(*stream);
fs/squashfs/decompressor_multi.c
69
if (!stream)
fs/squashfs/decompressor_multi.c
72
stream->comp_opts = comp_opts;
fs/squashfs/decompressor_multi.c
73
mutex_init(&stream->mutex);
fs/squashfs/decompressor_multi.c
74
INIT_LIST_HEAD(&stream->strm_list);
fs/squashfs/decompressor_multi.c
75
init_waitqueue_head(&stream->wait);
fs/squashfs/decompressor_multi.c
87
decomp_strm->stream = msblk->decompressor->init(msblk,
fs/squashfs/decompressor_multi.c
88
stream->comp_opts);
fs/squashfs/decompressor_multi.c
89
if (IS_ERR(decomp_strm->stream)) {
fs/squashfs/decompressor_multi.c
90
err = PTR_ERR(decomp_strm->stream);
fs/squashfs/decompressor_multi.c
94
list_add(&decomp_strm->list, &stream->strm_list);
fs/squashfs/decompressor_multi.c
95
stream->avail_decomp = 1;
fs/squashfs/decompressor_multi.c
96
return stream;
fs/squashfs/decompressor_multi_percpu.c
23
void *stream;
fs/squashfs/decompressor_multi_percpu.c
30
struct squashfs_stream *stream;
fs/squashfs/decompressor_multi_percpu.c
39
stream = per_cpu_ptr(percpu, cpu);
fs/squashfs/decompressor_multi_percpu.c
40
stream->stream = msblk->decompressor->init(msblk, comp_opts);
fs/squashfs/decompressor_multi_percpu.c
41
if (IS_ERR(stream->stream)) {
fs/squashfs/decompressor_multi_percpu.c
42
err = PTR_ERR(stream->stream);
fs/squashfs/decompressor_multi_percpu.c
45
local_lock_init(&stream->lock);
fs/squashfs/decompressor_multi_percpu.c
53
stream = per_cpu_ptr(percpu, cpu);
fs/squashfs/decompressor_multi_percpu.c
54
if (!IS_ERR_OR_NULL(stream->stream))
fs/squashfs/decompressor_multi_percpu.c
55
msblk->decompressor->free(stream->stream);
fs/squashfs/decompressor_multi_percpu.c
64
(void __percpu *)(unsigned long) msblk->stream;
fs/squashfs/decompressor_multi_percpu.c
65
struct squashfs_stream *stream;
fs/squashfs/decompressor_multi_percpu.c
68
if (msblk->stream) {
fs/squashfs/decompressor_multi_percpu.c
70
stream = per_cpu_ptr(percpu, cpu);
fs/squashfs/decompressor_multi_percpu.c
71
msblk->decompressor->free(stream->stream);
fs/squashfs/decompressor_multi_percpu.c
80
struct squashfs_stream *stream;
fs/squashfs/decompressor_multi_percpu.c
82
(void __percpu *)(unsigned long) msblk->stream;
fs/squashfs/decompressor_multi_percpu.c
86
stream = this_cpu_ptr(percpu);
fs/squashfs/decompressor_multi_percpu.c
88
res = msblk->decompressor->decompress(msblk, stream->stream, bio,
fs/squashfs/decompressor_single.c
23
void *stream;
fs/squashfs/decompressor_single.c
30
struct squashfs_stream *stream;
fs/squashfs/decompressor_single.c
33
stream = kmalloc_obj(*stream);
fs/squashfs/decompressor_single.c
34
if (stream == NULL)
fs/squashfs/decompressor_single.c
37
stream->stream = msblk->decompressor->init(msblk, comp_opts);
fs/squashfs/decompressor_single.c
38
if (IS_ERR(stream->stream)) {
fs/squashfs/decompressor_single.c
39
err = PTR_ERR(stream->stream);
fs/squashfs/decompressor_single.c
44
mutex_init(&stream->mutex);
fs/squashfs/decompressor_single.c
45
return stream;
fs/squashfs/decompressor_single.c
48
kfree(stream);
fs/squashfs/decompressor_single.c
54
struct squashfs_stream *stream = msblk->stream;
fs/squashfs/decompressor_single.c
56
if (stream) {
fs/squashfs/decompressor_single.c
57
msblk->decompressor->free(stream->stream);
fs/squashfs/decompressor_single.c
58
kfree(stream);
fs/squashfs/decompressor_single.c
67
struct squashfs_stream *stream = msblk->stream;
fs/squashfs/decompressor_single.c
69
mutex_lock(&stream->mutex);
fs/squashfs/decompressor_single.c
70
res = msblk->decompressor->decompress(msblk, stream->stream, bio,
fs/squashfs/decompressor_single.c
72
mutex_unlock(&stream->mutex);
fs/squashfs/lz4_wrapper.c
111
res = LZ4_decompress_safe(stream->input, stream->output,
fs/squashfs/lz4_wrapper.c
119
buff = stream->output;
fs/squashfs/lz4_wrapper.c
55
struct squashfs_lz4 *stream;
fs/squashfs/lz4_wrapper.c
57
stream = kzalloc_obj(*stream);
fs/squashfs/lz4_wrapper.c
58
if (stream == NULL)
fs/squashfs/lz4_wrapper.c
60
stream->input = vmalloc(block_size);
fs/squashfs/lz4_wrapper.c
61
if (stream->input == NULL)
fs/squashfs/lz4_wrapper.c
63
stream->output = vmalloc(block_size);
fs/squashfs/lz4_wrapper.c
64
if (stream->output == NULL)
fs/squashfs/lz4_wrapper.c
67
return stream;
fs/squashfs/lz4_wrapper.c
70
vfree(stream->input);
fs/squashfs/lz4_wrapper.c
72
kfree(stream);
fs/squashfs/lz4_wrapper.c
81
struct squashfs_lz4 *stream = strm;
fs/squashfs/lz4_wrapper.c
83
if (stream) {
fs/squashfs/lz4_wrapper.c
84
vfree(stream->input);
fs/squashfs/lz4_wrapper.c
85
vfree(stream->output);
fs/squashfs/lz4_wrapper.c
87
kfree(stream);
fs/squashfs/lz4_wrapper.c
97
struct squashfs_lz4 *stream = strm;
fs/squashfs/lz4_wrapper.c
98
void *buff = stream->input, *data;
fs/squashfs/lzo_wrapper.c
32
struct squashfs_lzo *stream = kzalloc_obj(*stream);
fs/squashfs/lzo_wrapper.c
33
if (stream == NULL)
fs/squashfs/lzo_wrapper.c
35
stream->input = vmalloc(block_size);
fs/squashfs/lzo_wrapper.c
36
if (stream->input == NULL)
fs/squashfs/lzo_wrapper.c
38
stream->output = vmalloc(block_size);
fs/squashfs/lzo_wrapper.c
39
if (stream->output == NULL)
fs/squashfs/lzo_wrapper.c
42
return stream;
fs/squashfs/lzo_wrapper.c
45
vfree(stream->input);
fs/squashfs/lzo_wrapper.c
48
kfree(stream);
fs/squashfs/lzo_wrapper.c
55
struct squashfs_lzo *stream = strm;
fs/squashfs/lzo_wrapper.c
57
if (stream) {
fs/squashfs/lzo_wrapper.c
58
vfree(stream->input);
fs/squashfs/lzo_wrapper.c
59
vfree(stream->output);
fs/squashfs/lzo_wrapper.c
61
kfree(stream);
fs/squashfs/lzo_wrapper.c
71
struct squashfs_lzo *stream = strm;
fs/squashfs/lzo_wrapper.c
72
void *buff = stream->input, *data;
fs/squashfs/lzo_wrapper.c
86
res = lzo1x_decompress_safe(stream->input, (size_t)length,
fs/squashfs/lzo_wrapper.c
87
stream->output, &out_len);
fs/squashfs/lzo_wrapper.c
93
buff = stream->output;
fs/squashfs/squashfs_fs_sb.h
57
void *stream;
fs/squashfs/super.c
353
msblk->stream = squashfs_decompressor_setup(sb, flags);
fs/squashfs/super.c
354
if (IS_ERR(msblk->stream)) {
fs/squashfs/super.c
355
err = PTR_ERR(msblk->stream);
fs/squashfs/super.c
356
msblk->stream = NULL;
fs/squashfs/xz_wrapper.c
100
return stream;
fs/squashfs/xz_wrapper.c
110
struct squashfs_xz *stream = strm;
fs/squashfs/xz_wrapper.c
112
if (stream) {
fs/squashfs/xz_wrapper.c
113
xz_dec_end(stream->state);
fs/squashfs/xz_wrapper.c
114
kfree(stream);
fs/squashfs/xz_wrapper.c
126
struct squashfs_xz *stream = strm;
fs/squashfs/xz_wrapper.c
128
xz_dec_reset(stream->state);
fs/squashfs/xz_wrapper.c
129
stream->buf.in_pos = 0;
fs/squashfs/xz_wrapper.c
130
stream->buf.in_size = 0;
fs/squashfs/xz_wrapper.c
131
stream->buf.out_pos = 0;
fs/squashfs/xz_wrapper.c
132
stream->buf.out_size = PAGE_SIZE;
fs/squashfs/xz_wrapper.c
133
stream->buf.out = squashfs_first_page(output);
fs/squashfs/xz_wrapper.c
134
if (IS_ERR(stream->buf.out)) {
fs/squashfs/xz_wrapper.c
135
error = PTR_ERR(stream->buf.out);
fs/squashfs/xz_wrapper.c
142
if (stream->buf.in_pos == stream->buf.in_size) {
fs/squashfs/xz_wrapper.c
155
stream->buf.in = data + offset;
fs/squashfs/xz_wrapper.c
156
stream->buf.in_size = avail;
fs/squashfs/xz_wrapper.c
157
stream->buf.in_pos = 0;
fs/squashfs/xz_wrapper.c
161
if (stream->buf.out_pos == stream->buf.out_size) {
fs/squashfs/xz_wrapper.c
162
stream->buf.out = squashfs_next_page(output);
fs/squashfs/xz_wrapper.c
163
if (IS_ERR(stream->buf.out)) {
fs/squashfs/xz_wrapper.c
164
error = PTR_ERR(stream->buf.out);
fs/squashfs/xz_wrapper.c
166
} else if (stream->buf.out != NULL) {
fs/squashfs/xz_wrapper.c
167
stream->buf.out_pos = 0;
fs/squashfs/xz_wrapper.c
172
xz_err = xz_dec_run(stream->state, &stream->buf);
fs/squashfs/xz_wrapper.c
184
return error ? error : total + stream->buf.out_pos;
fs/squashfs/xz_wrapper.c
84
struct squashfs_xz *stream;
fs/squashfs/xz_wrapper.c
87
stream = kmalloc_obj(*stream);
fs/squashfs/xz_wrapper.c
88
if (stream == NULL) {
fs/squashfs/xz_wrapper.c
93
stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size);
fs/squashfs/xz_wrapper.c
94
if (stream->state == NULL) {
fs/squashfs/xz_wrapper.c
95
kfree(stream);
fs/squashfs/zlib_wrapper.c
101
zlib_err = zlib_inflateInit(stream);
fs/squashfs/zlib_wrapper.c
109
zlib_err = zlib_inflate(stream, Z_SYNC_FLUSH);
fs/squashfs/zlib_wrapper.c
122
if (zlib_inflateEnd(stream) != Z_OK)
fs/squashfs/zlib_wrapper.c
125
return error ? error : stream->total_out;
fs/squashfs/zlib_wrapper.c
26
z_stream *stream = kmalloc_obj(z_stream);
fs/squashfs/zlib_wrapper.c
27
if (stream == NULL)
fs/squashfs/zlib_wrapper.c
29
stream->workspace = vmalloc(zlib_inflate_workspacesize());
fs/squashfs/zlib_wrapper.c
30
if (stream->workspace == NULL)
fs/squashfs/zlib_wrapper.c
33
return stream;
fs/squashfs/zlib_wrapper.c
37
kfree(stream);
fs/squashfs/zlib_wrapper.c
44
z_stream *stream = strm;
fs/squashfs/zlib_wrapper.c
46
if (stream)
fs/squashfs/zlib_wrapper.c
47
vfree(stream->workspace);
fs/squashfs/zlib_wrapper.c
48
kfree(stream);
fs/squashfs/zlib_wrapper.c
59
z_stream *stream = strm;
fs/squashfs/zlib_wrapper.c
61
stream->avail_out = PAGE_SIZE;
fs/squashfs/zlib_wrapper.c
62
stream->next_out = squashfs_first_page(output);
fs/squashfs/zlib_wrapper.c
63
stream->avail_in = 0;
fs/squashfs/zlib_wrapper.c
65
if (IS_ERR(stream->next_out)) {
fs/squashfs/zlib_wrapper.c
66
error = PTR_ERR(stream->next_out);
fs/squashfs/zlib_wrapper.c
73
if (stream->avail_in == 0) {
fs/squashfs/zlib_wrapper.c
86
stream->next_in = data + offset;
fs/squashfs/zlib_wrapper.c
87
stream->avail_in = avail;
fs/squashfs/zlib_wrapper.c
91
if (stream->avail_out == 0) {
fs/squashfs/zlib_wrapper.c
92
stream->next_out = squashfs_next_page(output);
fs/squashfs/zlib_wrapper.c
93
if (IS_ERR(stream->next_out)) {
fs/squashfs/zlib_wrapper.c
94
error = PTR_ERR(stream->next_out);
fs/squashfs/zlib_wrapper.c
96
} else if (stream->next_out != NULL)
fs/squashfs/zlib_wrapper.c
97
stream->avail_out = PAGE_SIZE;
fs/squashfs/zstd_wrapper.c
126
zstd_err = zstd_decompress_stream(stream, &out_buf, &in_buf);
fs/squashfs/zstd_wrapper.c
66
zstd_dstream *stream;
fs/squashfs/zstd_wrapper.c
74
stream = zstd_init_dstream(wksp->window_size, wksp->mem, wksp->mem_size);
fs/squashfs/zstd_wrapper.c
76
if (!stream) {
include/crypto/internal/acompress.h
199
struct crypto_acomp_stream *stream) __releases(&stream->lock)
include/crypto/internal/acompress.h
201
spin_unlock_bh(&stream->lock);
include/kunit/assert.h
111
struct string_stream *stream);
include/kunit/assert.h
147
struct string_stream *stream);
include/kunit/assert.h
170
struct string_stream *stream);
include/kunit/assert.h
193
struct string_stream *stream);
include/kunit/assert.h
219
struct string_stream *stream);
include/kunit/assert.h
223
struct string_stream *stream);
include/kunit/assert.h
226
void kunit_assert_hexdump(struct string_stream *stream,
include/kunit/assert.h
53
struct string_stream *stream);
include/kunit/assert.h
57
struct string_stream *stream);
include/kunit/assert.h
71
struct string_stream *stream);
include/kunit/assert.h
91
struct string_stream *stream);
include/linux/bpf.h
1768
struct bpf_stream stream[2];
include/linux/greybus/greybus_protocols.h
1613
__u8 stream;
include/linux/netfs.h
311
void (*retry_request)(struct netfs_io_request *wreq, struct netfs_io_stream *stream);
include/linux/sctp.h
222
__be16 stream;
include/linux/sctp.h
234
__be16 stream;
include/linux/sctp.h
598
__be16 stream;
include/linux/sctp.h
613
__be16 stream;
include/linux/slimbus.h
205
int slim_stream_prepare(struct slim_stream_runtime *stream,
include/linux/slimbus.h
207
int slim_stream_enable(struct slim_stream_runtime *stream);
include/linux/slimbus.h
208
int slim_stream_disable(struct slim_stream_runtime *stream);
include/linux/slimbus.h
209
int slim_stream_unprepare(struct slim_stream_runtime *stream);
include/linux/slimbus.h
210
int slim_stream_free(struct slim_stream_runtime *stream);
include/linux/soundwire/sdw.h
1037
int (*compute_params)(struct sdw_bus *bus, struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1051
void sdw_release_stream(struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1053
int sdw_compute_params(struct sdw_bus *bus, struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1059
struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1061
struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1063
int sdw_prepare_stream(struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1064
int sdw_enable_stream(struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1065
int sdw_disable_stream(struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1066
int sdw_deprepare_stream(struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1086
struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1088
struct sdw_stream_runtime *stream);
include/linux/soundwire/sdw.h
1114
struct sdw_stream_runtime *stream)
include/linux/soundwire/sdw.h
1121
struct sdw_stream_runtime *stream)
include/linux/soundwire/sdw_amd.h
52
struct sdw_stream_runtime *stream;
include/media/v4l2-subdev.h
1374
unsigned int pad, u32 stream);
include/media/v4l2-subdev.h
1396
u32 stream);
include/media/v4l2-subdev.h
1418
unsigned int pad, u32 stream);
include/media/v4l2-subdev.h
1440
unsigned int pad, u32 stream);
include/media/v4l2-subdev.h
1541
u32 pad, u32 stream, u32 *other_pad,
include/media/v4l2-subdev.h
1558
u32 pad, u32 stream);
include/media/v4l2-subdev.h
360
u32 stream;
include/net/iw_handler.h
463
char *iwe_stream_add_event(struct iw_request_info *info, char *stream,
include/net/iw_handler.h
467
iwe_stream_add_event_check(struct iw_request_info *info, char *stream,
include/net/iw_handler.h
470
char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len);
include/net/iw_handler.h
472
if (res == stream)
include/net/iw_handler.h
482
char *iwe_stream_add_point(struct iw_request_info *info, char *stream,
include/net/iw_handler.h
486
iwe_stream_add_point_check(struct iw_request_info *info, char *stream,
include/net/iw_handler.h
489
char *res = iwe_stream_add_point(info, stream, ends, iwe, extra);
include/net/iw_handler.h
491
if (res == stream)
include/net/sctp/stream_interleave.h
44
void sctp_stream_interleave_init(struct sctp_stream *stream);
include/net/sctp/stream_sched.h
21
int (*set)(struct sctp_stream *stream, __u16 sid, __u16 value,
include/net/sctp/stream_sched.h
23
int (*get)(struct sctp_stream *stream, __u16 sid, __u16 *value);
include/net/sctp/stream_sched.h
26
int (*init)(struct sctp_stream *stream);
include/net/sctp/stream_sched.h
28
int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
include/net/sctp/stream_sched.h
30
void (*free_sid)(struct sctp_stream *stream, __u16 sid);
include/net/sctp/stream_sched.h
39
void (*sched_all)(struct sctp_stream *stream);
include/net/sctp/stream_sched.h
41
void (*unsched_all)(struct sctp_stream *stream);
include/net/sctp/stream_sched.h
54
int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
include/net/sctp/stream_sched.h
55
const struct sctp_sched_ops *sctp_sched_ops_from_stream(struct sctp_stream *stream);
include/net/sctp/structs.h
1459
struct sctp_stream *stream,
include/net/sctp/structs.h
1462
return genradix_ptr(&stream->out, sid);
include/net/sctp/structs.h
1466
struct sctp_stream *stream,
include/net/sctp/structs.h
1469
return genradix_ptr(&stream->in, sid);
include/net/sctp/structs.h
1478
static inline __u16 sctp_datachk_len(const struct sctp_stream *stream)
include/net/sctp/structs.h
1480
return stream->si->data_chunk_len;
include/net/sctp/structs.h
1483
static inline __u16 sctp_datahdr_len(const struct sctp_stream *stream)
include/net/sctp/structs.h
1485
return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr);
include/net/sctp/structs.h
1488
static inline __u16 sctp_ftsnchk_len(const struct sctp_stream *stream)
include/net/sctp/structs.h
1490
return stream->si->ftsn_chunk_len;
include/net/sctp/structs.h
1493
static inline __u16 sctp_ftsnhdr_len(const struct sctp_stream *stream)
include/net/sctp/structs.h
1495
return stream->si->ftsn_chunk_len - sizeof(struct sctp_chunkhdr);
include/net/sctp/structs.h
1924
struct sctp_stream stream;
include/net/sctp/structs.h
382
int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt,
include/net/sctp/structs.h
384
int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid);
include/net/sctp/structs.h
385
void sctp_stream_free(struct sctp_stream *stream);
include/net/sctp/structs.h
386
void sctp_stream_clear(struct sctp_stream *stream);
include/net/sctp/structs.h
387
void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new);
include/net/sctp/structs.h
390
#define sctp_ssn_peek(stream, type, sid) \
include/net/sctp/structs.h
391
(sctp_stream_##type((stream), (sid))->ssn)
include/net/sctp/structs.h
394
#define sctp_ssn_next(stream, type, sid) \
include/net/sctp/structs.h
395
(sctp_stream_##type((stream), (sid))->ssn++)
include/net/sctp/structs.h
398
#define sctp_ssn_skip(stream, type, sid, ssn) \
include/net/sctp/structs.h
399
(sctp_stream_##type((stream), (sid))->ssn = ssn + 1)
include/net/sctp/structs.h
402
#define sctp_mid_peek(stream, type, sid) \
include/net/sctp/structs.h
403
(sctp_stream_##type((stream), (sid))->mid)
include/net/sctp/structs.h
406
#define sctp_mid_next(stream, type, sid) \
include/net/sctp/structs.h
407
(sctp_stream_##type((stream), (sid))->mid++)
include/net/sctp/structs.h
410
#define sctp_mid_skip(stream, type, sid, mid) \
include/net/sctp/structs.h
411
(sctp_stream_##type((stream), (sid))->mid = mid + 1)
include/net/sctp/structs.h
414
#define sctp_mid_uo_peek(stream, type, sid) \
include/net/sctp/structs.h
415
(sctp_stream_##type((stream), (sid))->mid_uo)
include/net/sctp/structs.h
418
#define sctp_mid_uo_next(stream, type, sid) \
include/net/sctp/structs.h
419
(sctp_stream_##type((stream), (sid))->mid_uo++)
include/net/sctp/structs.h
670
return ntohs(ch->subh.data_hdr->stream);
include/net/sctp/ulpevent.h
52
__u16 stream;
include/sound/ac97_codec.h
388
unsigned int stream: 1, /* stream type: 1 = capture */
include/sound/compress_driver.h
152
int (*open)(struct snd_compr_stream *stream);
include/sound/compress_driver.h
153
int (*free)(struct snd_compr_stream *stream);
include/sound/compress_driver.h
154
int (*set_params)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
156
int (*get_params)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
158
int (*set_metadata)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
160
int (*get_metadata)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
162
int (*trigger)(struct snd_compr_stream *stream, int cmd);
include/sound/compress_driver.h
163
int (*pointer)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
165
int (*copy)(struct snd_compr_stream *stream, char __user *buf,
include/sound/compress_driver.h
167
int (*mmap)(struct snd_compr_stream *stream,
include/sound/compress_driver.h
169
int (*ack)(struct snd_compr_stream *stream, size_t bytes);
include/sound/compress_driver.h
170
int (*get_caps) (struct snd_compr_stream *stream,
include/sound/compress_driver.h
172
int (*get_codec_caps) (struct snd_compr_stream *stream,
include/sound/compress_driver.h
175
int (*task_create) (struct snd_compr_stream *stream, struct snd_compr_task_runtime *task);
include/sound/compress_driver.h
176
int (*task_start) (struct snd_compr_stream *stream, struct snd_compr_task_runtime *task);
include/sound/compress_driver.h
177
int (*task_stop) (struct snd_compr_stream *stream, struct snd_compr_task_runtime *task);
include/sound/compress_driver.h
178
int (*task_free) (struct snd_compr_stream *stream, struct snd_compr_task_runtime *task);
include/sound/compress_driver.h
236
static inline void snd_compr_fragment_elapsed(struct snd_compr_stream *stream)
include/sound/compress_driver.h
238
wake_up(&stream->runtime->sleep);
include/sound/compress_driver.h
241
static inline void snd_compr_drain_notify(struct snd_compr_stream *stream)
include/sound/compress_driver.h
243
if (snd_BUG_ON(!stream))
include/sound/compress_driver.h
247
if (stream->partial_drain) {
include/sound/compress_driver.h
248
stream->runtime->state = SNDRV_PCM_STATE_RUNNING;
include/sound/compress_driver.h
249
stream->partial_drain = false; /* clear this flag as well */
include/sound/compress_driver.h
251
stream->runtime->state = SNDRV_PCM_STATE_SETUP;
include/sound/compress_driver.h
254
wake_up(&stream->runtime->sleep);
include/sound/compress_driver.h
266
snd_compr_set_runtime_buffer(struct snd_compr_stream *stream,
include/sound/compress_driver.h
269
struct snd_compr_runtime *runtime = stream->runtime;
include/sound/compress_driver.h
284
int snd_compr_malloc_pages(struct snd_compr_stream *stream, size_t size);
include/sound/compress_driver.h
285
int snd_compr_free_pages(struct snd_compr_stream *stream);
include/sound/compress_driver.h
287
int snd_compr_stop_error(struct snd_compr_stream *stream,
include/sound/compress_driver.h
291
void snd_compr_task_finished(struct snd_compr_stream *stream,
include/sound/dmaengine_pcm.h
24
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
include/sound/hda_codec.h
166
struct hda_pcm_stream stream[2];
include/sound/hda_codec.h
436
unsigned int stream,
include/sound/hda_register.h
357
snd_hdac_stream_get_pos_lpib(struct hdac_stream *stream)
include/sound/hda_register.h
359
return snd_hdac_stream_readl(stream, SD_LPIB);
include/sound/hda_register.h
363
snd_hdac_stream_get_pos_posbuf(struct hdac_stream *stream)
include/sound/hda_register.h
365
return le32_to_cpu(*stream->posbuf);
include/sound/hdaudio_ext.h
117
int stream);
include/sound/hdaudio_ext.h
119
int stream);
include/sound/pcm.h
1450
return snd_pcm_direction_name(substream->stream);
include/sound/pcm.h
1465
int stream; /* PLAYBACK or CAPTURE */
include/sound/pcm.h
1484
for (s = info->pcm->streams[info->stream].substream; s; s = s->next)
include/sound/pcm.h
1500
int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
include/sound/pcm.h
470
int stream; /* stream (direction) */
include/sound/pcm.h
514
int stream; /* stream (direction) */
include/sound/pcm.h
568
int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
include/sound/pcm.h
602
int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file,
include/sound/pcm.h
605
int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file,
include/sound/pcm.h
699
#define for_each_pcm_streams(stream) \
include/sound/pcm.h
700
for (stream = SNDRV_PCM_STREAM_PLAYBACK; \
include/sound/pcm.h
701
stream <= SNDRV_PCM_STREAM_LAST; \
include/sound/pcm.h
702
stream++)
include/sound/pcm.h
715
substream->stream == SNDRV_PCM_STREAM_PLAYBACK));
include/sound/rawmidi.h
154
void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
include/sound/rawmidi.h
84
int stream; /* direction */
include/sound/sdw.h
41
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
include/sound/soc-component.h
31
struct snd_compr_stream *stream);
include/sound/soc-component.h
33
struct snd_compr_stream *stream);
include/sound/soc-component.h
35
struct snd_compr_stream *stream,
include/sound/soc-component.h
38
struct snd_compr_stream *stream,
include/sound/soc-component.h
41
struct snd_compr_stream *stream,
include/sound/soc-component.h
434
void *stream);
include/sound/soc-component.h
436
void *stream, int rollback);
include/sound/soc-component.h
44
struct snd_compr_stream *stream,
include/sound/soc-component.h
47
struct snd_compr_stream *stream, int cmd);
include/sound/soc-component.h
49
struct snd_compr_stream *stream,
include/sound/soc-component.h
52
struct snd_compr_stream *stream, char __user *buf,
include/sound/soc-component.h
55
struct snd_compr_stream *stream,
include/sound/soc-component.h
58
struct snd_compr_stream *stream, size_t bytes);
include/sound/soc-component.h
60
struct snd_compr_stream *stream,
include/sound/soc-component.h
63
struct snd_compr_stream *stream,
include/sound/soc-dai.h
217
bool snd_soc_dai_stream_valid(const struct snd_soc_dai *dai, int stream);
include/sound/soc-dai.h
219
int stream, int action);
include/sound/soc-dai.h
221
int stream)
include/sound/soc-dai.h
223
snd_soc_dai_action(dai, stream, 1);
include/sound/soc-dai.h
226
int stream)
include/sound/soc-dai.h
228
snd_soc_dai_action(dai, stream, -1);
include/sound/soc-dai.h
309
void *stream, int direction);
include/sound/soc-dai.h
316
int (*mute_stream)(struct snd_soc_dai *dai, int mute, int stream);
include/sound/soc-dai.h
386
int (*pointer)(struct snd_compr_stream *stream,
include/sound/soc-dai.h
447
struct snd_soc_dai_stream stream[SNDRV_PCM_STREAM_LAST + 1];
include/sound/soc-dai.h
473
snd_soc_dai_get_pcm_stream(const struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
475
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
include/sound/soc-dai.h
482
struct snd_soc_dapm_widget *snd_soc_dai_get_widget(struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
484
return dai->stream[stream].widget;
include/sound/soc-dai.h
490
void snd_soc_dai_set_widget(struct snd_soc_dai *dai, int stream, struct snd_soc_dapm_widget *widget)
include/sound/soc-dai.h
492
dai->stream[stream].widget = widget;
include/sound/soc-dai.h
497
#define snd_soc_dai_get_dma_data(dai, ss) snd_soc_dai_dma_data_get(dai, ss->stream)
include/sound/soc-dai.h
498
static inline void *snd_soc_dai_dma_data_get(const struct snd_soc_dai *dai, int stream)
include/sound/soc-dai.h
500
return dai->stream[stream].dma_data;
include/sound/soc-dai.h
505
#define snd_soc_dai_set_dma_data(dai, ss, data) snd_soc_dai_dma_data_set(dai, ss->stream, data)
include/sound/soc-dai.h
506
static inline void snd_soc_dai_dma_data_set(struct snd_soc_dai *dai, int stream, void *data)
include/sound/soc-dai.h
508
dai->stream[stream].dma_data = data;
include/sound/soc-dai.h
518
int stream)
include/sound/soc-dai.h
520
return dai->stream[stream].tdm_mask;
include/sound/soc-dai.h
523
static inline void snd_soc_dai_tdm_mask_set(struct snd_soc_dai *dai, int stream,
include/sound/soc-dai.h
526
dai->stream[stream].tdm_mask = tdm_mask;
include/sound/soc-dai.h
530
int stream)
include/sound/soc-dai.h
533
return dai->stream[stream].active;
include/sound/soc-dai.h
560
void *stream, int direction)
include/sound/soc-dai.h
563
return dai->driver->ops->set_stream(dai, stream, direction);
include/sound/soc-dapm.h
661
void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, int event);
include/sound/soc-dapm.h
662
void snd_soc_dapm_stream_stop(struct snd_soc_pcm_runtime *rtd, int stream);
include/sound/soc-dapm.h
690
int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
include/sound/soc-dpcm.h
106
#define for_each_dpcm_fe(be, stream, _dpcm) \
include/sound/soc-dpcm.h
107
list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
include/sound/soc-dpcm.h
109
#define for_each_dpcm_be(fe, stream, _dpcm) \
include/sound/soc-dpcm.h
110
list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
include/sound/soc-dpcm.h
111
#define for_each_dpcm_be_safe(fe, stream, _dpcm, __dpcm) \
include/sound/soc-dpcm.h
112
list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
include/sound/soc-dpcm.h
113
#define for_each_dpcm_be_rollback(fe, stream, _dpcm) \
include/sound/soc-dpcm.h
114
list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
include/sound/soc-dpcm.h
119
snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream);
include/sound/soc-dpcm.h
133
int stream, struct snd_soc_dapm_widget_list **list_);
include/sound/soc-dpcm.h
135
int dpcm_add_paths(struct snd_soc_pcm_runtime *fe, int stream,
include/sound/soc-dpcm.h
137
int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream);
include/sound/soc-dpcm.h
138
void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
include/sound/soc-dpcm.h
140
void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream);
include/sound/soc-dpcm.h
141
void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream);
include/sound/soc-dpcm.h
142
void dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream);
include/sound/soc-dpcm.h
144
int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd);
include/sound/soc-dpcm.h
145
int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream);
include/sound/soc-dpcm.h
152
#define dpcm_be_dai_startup_rollback(fe, stream, last) \
include/sound/soc-dpcm.h
153
dpcm_be_dai_stop(fe, stream, 0, last)
include/sound/soc-dpcm.h
154
#define dpcm_be_dai_startup_unwind(fe, stream) dpcm_be_dai_stop(fe, stream, 0, NULL)
include/sound/soc-dpcm.h
155
#define dpcm_be_dai_shutdown(fe, stream) dpcm_be_dai_stop(fe, stream, 1, NULL)
include/sound/soc.h
1373
int snd_soc_get_stream_cpu(const struct snd_soc_dai_link *dai_link, int stream);
include/sound/soc.h
485
int stream, int action);
include/sound/soc.h
487
int stream)
include/sound/soc.h
489
snd_soc_runtime_action(rtd, stream, 1);
include/sound/soc.h
492
int stream)
include/sound/soc.h
494
snd_soc_runtime_action(rtd, stream, -1);
include/sound/soc.h
498
struct snd_pcm_hardware *hw, int stream);
include/trace/events/asoc.h
201
TP_PROTO(int paths, int stream),
include/trace/events/asoc.h
203
TP_ARGS(paths, stream),
include/trace/events/asoc.h
207
__field( int, stream )
include/trace/events/asoc.h
212
__entry->stream = stream;
include/trace/events/asoc.h
216
snd_pcm_direction_name(__entry->stream), __entry->paths)
include/trace/events/netfs.h
628
__field(unsigned int, stream)
include/trace/events/netfs.h
637
__entry->stream = subreq->stream_nr;
include/trace/events/netfs.h
644
__entry->wreq, __entry->stream, __entry->subreq,
include/trace/events/netfs.h
707
const struct netfs_io_stream *stream,
include/trace/events/netfs.h
710
TP_ARGS(wreq, stream, jump_to, type),
include/trace/events/netfs.h
714
__field(unsigned char, stream)
include/trace/events/netfs.h
722
__entry->stream = stream->stream_nr;
include/trace/events/netfs.h
723
__entry->from = stream->collected_to;
include/trace/events/netfs.h
729
__entry->wreq, __entry->stream,
include/trace/events/netfs.h
735
const struct netfs_io_stream *stream),
include/trace/events/netfs.h
737
TP_ARGS(wreq, stream),
include/trace/events/netfs.h
741
__field(unsigned char, stream)
include/trace/events/netfs.h
748
__entry->stream = stream->stream_nr;
include/trace/events/netfs.h
749
__entry->collected_to = stream->collected_to;
include/trace/events/netfs.h
754
__entry->wreq, __entry->stream,
include/trace/events/sof.h
73
__field(int, stream)
include/trace/events/sof.h
80
__entry->stream = substream->stream;
include/trace/events/sof.h
85
__get_str(device_name), __entry->pcm_id, __entry->stream,
include/trace/events/sof_intel.h
105
__entry->substream = substream->stream;
include/trace/events/sof_intel.h
118
__field(u32, stream)
include/trace/events/sof_intel.h
123
__entry->stream = s->index;
include/trace/events/sof_intel.h
127
__get_str(device_name), __entry->stream, __entry->status)
include/uapi/drm/etnaviv_drm.h
206
__u64 stream; /* in, ptr to cmdstream */
include/uapi/linux/v4l2-subdev.h
114
__u32 stream;
include/uapi/linux/v4l2-subdev.h
129
__u32 stream;
include/uapi/linux/v4l2-subdev.h
154
__u32 stream;
include/uapi/linux/v4l2-subdev.h
180
__u32 stream;
include/uapi/linux/v4l2-subdev.h
42
__u32 stream;
include/uapi/linux/v4l2-subdev.h
62
__u32 stream;
include/uapi/linux/v4l2-subdev.h
88
__u32 stream;
include/uapi/sound/asoc.h
522
struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* for DAI link */
include/uapi/sound/asoc.h
546
struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */
include/uapi/sound/asound.h
342
int stream; /* RO/WR (control): stream direction */
include/uapi/sound/asound.h
738
int stream; /* WR: stream */
include/uapi/sound/asound.h
776
int stream;
include/uapi/sound/asound.h
786
int stream;
kernel/bpf/stream.c
105
static struct llist_node *bpf_stream_backlog_peek(struct bpf_stream *stream)
kernel/bpf/stream.c
107
return stream->backlog_head;
kernel/bpf/stream.c
110
static struct llist_node *bpf_stream_backlog_pop(struct bpf_stream *stream)
kernel/bpf/stream.c
114
node = stream->backlog_head;
kernel/bpf/stream.c
115
if (stream->backlog_head == stream->backlog_tail)
kernel/bpf/stream.c
116
stream->backlog_head = stream->backlog_tail = NULL;
kernel/bpf/stream.c
118
stream->backlog_head = node->next;
kernel/bpf/stream.c
122
static void bpf_stream_backlog_fill(struct bpf_stream *stream)
kernel/bpf/stream.c
126
if (llist_empty(&stream->log))
kernel/bpf/stream.c
128
tail = llist_del_all(&stream->log);
kernel/bpf/stream.c
133
if (!stream->backlog_head) {
kernel/bpf/stream.c
134
stream->backlog_head = head;
kernel/bpf/stream.c
135
stream->backlog_tail = tail;
kernel/bpf/stream.c
137
stream->backlog_tail->next = head;
kernel/bpf/stream.c
138
stream->backlog_tail = tail;
kernel/bpf/stream.c
155
static int bpf_stream_read(struct bpf_stream *stream, void __user *buf, int len)
kernel/bpf/stream.c
161
mutex_lock(&stream->lock);
kernel/bpf/stream.c
167
node = bpf_stream_backlog_peek(stream);
kernel/bpf/stream.c
169
bpf_stream_backlog_fill(stream);
kernel/bpf/stream.c
170
node = bpf_stream_backlog_peek(stream);
kernel/bpf/stream.c
190
bpf_stream_backlog_pop(stream);
kernel/bpf/stream.c
191
bpf_stream_release_capacity(stream, elem);
kernel/bpf/stream.c
195
mutex_unlock(&stream->lock);
kernel/bpf/stream.c
201
struct bpf_stream *stream;
kernel/bpf/stream.c
203
stream = bpf_stream_get(stream_id, prog->aux);
kernel/bpf/stream.c
204
if (!stream)
kernel/bpf/stream.c
206
return bpf_stream_read(stream, buf, len);
kernel/bpf/stream.c
223
struct bpf_stream *stream;
kernel/bpf/stream.c
227
stream = bpf_stream_get(stream_id, aux);
kernel/bpf/stream.c
228
if (!stream)
kernel/bpf/stream.c
242
ret = bpf_stream_push_str(stream, data.buf, ret);
kernel/bpf/stream.c
275
for (i = 0; i < ARRAY_SIZE(prog->aux->stream); i++) {
kernel/bpf/stream.c
276
atomic_set(&prog->aux->stream[i].capacity, 0);
kernel/bpf/stream.c
277
init_llist_head(&prog->aux->stream[i].log);
kernel/bpf/stream.c
278
mutex_init(&prog->aux->stream[i].lock);
kernel/bpf/stream.c
279
prog->aux->stream[i].backlog_head = NULL;
kernel/bpf/stream.c
280
prog->aux->stream[i].backlog_tail = NULL;
kernel/bpf/stream.c
289
for (i = 0; i < ARRAY_SIZE(prog->aux->stream); i++) {
kernel/bpf/stream.c
290
list = llist_del_all(&prog->aux->stream[i].log);
kernel/bpf/stream.c
292
bpf_stream_free_list(prog->aux->stream[i].backlog_head);
kernel/bpf/stream.c
333
struct bpf_stream *stream;
kernel/bpf/stream.c
336
stream = bpf_stream_get(stream_id, prog->aux);
kernel/bpf/stream.c
337
if (!stream)
kernel/bpf/stream.c
340
ret = bpf_stream_consume_capacity(stream, ss->len);
kernel/bpf/stream.c
353
llist_add_batch(head, tail, &stream->log);
kernel/bpf/stream.c
60
static int bpf_stream_consume_capacity(struct bpf_stream *stream, int len)
kernel/bpf/stream.c
62
if (atomic_read(&stream->capacity) >= BPF_STREAM_MAX_CAPACITY)
kernel/bpf/stream.c
64
if (atomic_add_return(len, &stream->capacity) >= BPF_STREAM_MAX_CAPACITY) {
kernel/bpf/stream.c
65
atomic_sub(len, &stream->capacity);
kernel/bpf/stream.c
71
static void bpf_stream_release_capacity(struct bpf_stream *stream, struct bpf_stream_elem *elem)
kernel/bpf/stream.c
75
atomic_sub(len, &stream->capacity);
kernel/bpf/stream.c
78
static int bpf_stream_push_str(struct bpf_stream *stream, const char *str, int len)
kernel/bpf/stream.c
80
int ret = bpf_stream_consume_capacity(stream, len);
kernel/bpf/stream.c
82
return ret ?: __bpf_stream_push_str(&stream->log, str, len);
kernel/bpf/stream.c
89
return &aux->stream[stream_id - 1];
lib/crypto/chacha.c
19
u8 stream[CHACHA_BLOCK_SIZE] __aligned(sizeof(long));
lib/crypto/chacha.c
22
chacha_block_generic(state, stream, nrounds);
lib/crypto/chacha.c
23
crypto_xor_cpy(dst, src, stream, CHACHA_BLOCK_SIZE);
lib/crypto/chacha.c
29
chacha_block_generic(state, stream, nrounds);
lib/crypto/chacha.c
30
crypto_xor_cpy(dst, src, stream, bytes);
lib/kunit/assert.c
118
struct string_stream *stream)
lib/kunit/assert.c
125
string_stream_add(stream,
lib/kunit/assert.c
131
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %lld (0x%llx)\n",
lib/kunit/assert.c
136
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %lld (0x%llx)",
lib/kunit/assert.c
140
kunit_assert_print_msg(message, stream);
lib/kunit/assert.c
146
struct string_stream *stream)
lib/kunit/assert.c
153
string_stream_add(stream,
lib/kunit/assert.c
158
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %px\n",
lib/kunit/assert.c
16
struct string_stream *stream)
lib/kunit/assert.c
161
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == %px",
lib/kunit/assert.c
164
kunit_assert_print_msg(message, stream);
lib/kunit/assert.c
186
struct string_stream *stream)
lib/kunit/assert.c
193
string_stream_add(stream,
lib/kunit/assert.c
199
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == \"%s\"\n",
lib/kunit/assert.c
203
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s == \"%s\"",
lib/kunit/assert.c
206
kunit_assert_print_msg(message, stream);
lib/kunit/assert.c
214
void kunit_assert_hexdump(struct string_stream *stream,
lib/kunit/assert.c
223
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT);
lib/kunit/assert.c
227
string_stream_add(stream, "\n" KUNIT_SUBSUBTEST_INDENT);
lib/kunit/assert.c
230
string_stream_add(stream, "<%02x>", buf1[i]);
lib/kunit/assert.c
232
string_stream_add(stream, " %02x ", buf1[i]);
lib/kunit/assert.c
238
struct string_stream *stream)
lib/kunit/assert.c
246
string_stream_add(stream,
lib/kunit/assert.c
250
string_stream_add(stream,
lib/kunit/assert.c
254
string_stream_add(stream,
lib/kunit/assert.c
260
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s ==\n",
lib/kunit/assert.c
262
kunit_assert_hexdump(stream, mem_assert->left_value,
lib/kunit/assert.c
265
string_stream_add(stream, "\n");
lib/kunit/assert.c
267
string_stream_add(stream, KUNIT_SUBSUBTEST_INDENT "%s ==\n",
lib/kunit/assert.c
269
kunit_assert_hexdump(stream, mem_assert->right_value,
lib/kunit/assert.c
272
kunit_assert_print_msg(message, stream);
lib/kunit/assert.c
29
string_stream_add(stream, "%s FAILED at %s:%d\n",
lib/kunit/assert.c
36
struct string_stream *stream)
lib/kunit/assert.c
39
string_stream_add(stream, "\n%pV", message);
lib/kunit/assert.c
44
struct string_stream *stream)
lib/kunit/assert.c
46
string_stream_add(stream, "%pV", message);
lib/kunit/assert.c
52
struct string_stream *stream)
lib/kunit/assert.c
59
string_stream_add(stream,
lib/kunit/assert.c
63
string_stream_add(stream,
lib/kunit/assert.c
66
kunit_assert_print_msg(message, stream);
lib/kunit/assert.c
72
struct string_stream *stream)
lib/kunit/assert.c
80
string_stream_add(stream,
lib/kunit/assert.c
84
string_stream_add(stream,
lib/kunit/assert.c
89
kunit_assert_print_msg(message, stream);
lib/kunit/assert_test.c
101
struct string_stream *stream;
lib/kunit/assert_test.c
103
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
104
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
106
verify_assert_print_msg(test, stream, "\nTest", "Test");
lib/kunit/assert_test.c
107
verify_assert_print_msg(test, stream, "\nAbacaba -123 234", "%s %d %u",
lib/kunit/assert_test.c
109
verify_assert_print_msg(test, stream, "", NULL);
lib/kunit/assert_test.c
120
struct string_stream *stream, int num_checks, ...)
lib/kunit/assert_test.c
128
string_stream_clear(stream);
lib/kunit/assert_test.c
129
format_func(assert, &message, stream);
lib/kunit/assert_test.c
133
ASSERT_TEST_EXPECT_CONTAIN(test, get_str_from_stream(test, stream), cur_substr_exp);
lib/kunit/assert_test.c
139
struct string_stream *stream;
lib/kunit/assert_test.c
147
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
148
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
151
stream, 2, "true", "is false");
lib/kunit/assert_test.c
155
stream, 2, "false", "is true");
lib/kunit/assert_test.c
160
struct string_stream *stream;
lib/kunit/assert_test.c
168
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
169
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
174
stream, 1, "null");
lib/kunit/assert_test.c
179
&not_err_assert.assert, stream, 2,
lib/kunit/assert_test.c
185
struct string_stream *stream;
lib/kunit/assert_test.c
199
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
200
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
207
stream, 4, "1 + 2", "2", "3", "==");
lib/kunit/assert_test.c
211
stream, 3, "==", "1 + 2", "4 - 2");
lib/kunit/assert_test.c
215
stream, 4, "3", "4 - 2", "2", "==");
lib/kunit/assert_test.c
219
stream, 3, "3", "2", "==");
lib/kunit/assert_test.c
224
struct string_stream *stream;
lib/kunit/assert_test.c
253
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
254
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
256
stream, 3, addr_var_a, addr_var_b, "==");
lib/kunit/assert_test.c
261
struct string_stream *stream;
lib/kunit/assert_test.c
277
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
278
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
282
stream, 5, "var_a", "var_b", "\"abacaba\"",
lib/kunit/assert_test.c
287
stream, 4, "\"abacaba\"", "var_b", "\"kernel\"", "==");
lib/kunit/assert_test.c
291
stream, 3, "\"abacaba\"", "\"kernel\"", "==");
lib/kunit/assert_test.c
304
struct string_stream *stream;
lib/kunit/assert_test.c
309
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
310
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
312
kunit_assert_hexdump(stream, hex_testbuf1, hex_testbuf2, sizeof(hex_testbuf1));
lib/kunit/assert_test.c
313
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
320
string_stream_clear(stream);
lib/kunit/assert_test.c
321
kunit_assert_hexdump(stream, hex_testbuf1, hex_testbuf1, sizeof(hex_testbuf1));
lib/kunit/assert_test.c
322
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
329
struct string_stream *stream;
lib/kunit/assert_test.c
347
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
348
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
352
stream, 2, "hex_testbuf1", "is not null");
lib/kunit/assert_test.c
358
stream, 2, "hex_testbuf2", "is not null");
lib/kunit/assert_test.c
365
stream, 3, "hex_testbuf1", "hex_testbuf2", "==");
lib/kunit/assert_test.c
41
static char *get_str_from_stream(struct kunit *test, struct string_stream *stream)
lib/kunit/assert_test.c
43
char *str = string_stream_get_string(stream);
lib/kunit/assert_test.c
53
struct string_stream *stream;
lib/kunit/assert_test.c
60
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/assert_test.c
61
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/assert_test.c
64
kunit_assert_prologue(&location, KUNIT_EXPECTATION, stream);
lib/kunit/assert_test.c
65
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
71
string_stream_clear(stream);
lib/kunit/assert_test.c
72
kunit_assert_prologue(&location, KUNIT_ASSERTION, stream);
lib/kunit/assert_test.c
73
str = get_str_from_stream(test, stream);
lib/kunit/assert_test.c
84
struct string_stream *stream,
lib/kunit/assert_test.c
94
string_stream_clear(stream);
lib/kunit/assert_test.c
95
kunit_assert_print_msg(&vformat, stream);
lib/kunit/assert_test.c
96
KUNIT_EXPECT_STREQ(test, get_str_from_stream(test, stream), expected);
lib/kunit/debugfs.c
171
struct string_stream *stream;
lib/kunit/debugfs.c
183
stream = alloc_string_stream(GFP_KERNEL);
lib/kunit/debugfs.c
184
if (IS_ERR(stream))
lib/kunit/debugfs.c
187
string_stream_set_append_newlines(stream, true);
lib/kunit/debugfs.c
188
suite->log = stream;
lib/kunit/debugfs.c
191
stream = alloc_string_stream(GFP_KERNEL);
lib/kunit/debugfs.c
192
if (IS_ERR(stream))
lib/kunit/debugfs.c
195
string_stream_set_append_newlines(stream, true);
lib/kunit/debugfs.c
196
test_case->log = stream;
lib/kunit/string-stream-test.c
166
struct string_stream *stream;
lib/kunit/string-stream-test.c
172
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
173
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
184
string_stream_add(stream, line);
lib/kunit/string-stream-test.c
189
concat_string = get_concatenated_string(test, stream);
lib/kunit/string-stream-test.c
222
struct string_stream *stream;
lib/kunit/string-stream-test.c
228
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
229
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
240
string_stream_add(stream, "%s\n", &line[offset]);
lib/kunit/string-stream-test.c
245
concat_string = get_concatenated_string(test, stream);
lib/kunit/string-stream-test.c
31
static char *get_concatenated_string(struct kunit *test, struct string_stream *stream)
lib/kunit/string-stream-test.c
33
char *str = string_stream_get_string(stream);
lib/kunit/string-stream-test.c
382
struct string_stream *stream;
lib/kunit/string-stream-test.c
385
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
386
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
389
string_stream_add(stream, "%s", "");
lib/kunit/string-stream-test.c
390
KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream));
lib/kunit/string-stream-test.c
391
KUNIT_EXPECT_TRUE(test, list_empty(&stream->fragments));
lib/kunit/string-stream-test.c
394
string_stream_add(stream, "Add this line");
lib/kunit/string-stream-test.c
395
original_frag_count = list_count_nodes(&stream->fragments);
lib/kunit/string-stream-test.c
397
string_stream_add(stream, "%s", "");
lib/kunit/string-stream-test.c
398
KUNIT_EXPECT_EQ(test, list_count_nodes(&stream->fragments), original_frag_count);
lib/kunit/string-stream-test.c
399
KUNIT_EXPECT_STREQ(test, get_concatenated_string(test, stream), "Add this line");
lib/kunit/string-stream-test.c
405
struct string_stream *stream;
lib/kunit/string-stream-test.c
407
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
408
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
414
string_stream_add(stream, "One");
lib/kunit/string-stream-test.c
415
string_stream_add(stream, "Two\n");
lib/kunit/string-stream-test.c
416
string_stream_add(stream, "%s\n", "Three");
lib/kunit/string-stream-test.c
417
string_stream_add(stream, "%s", "Four\n");
lib/kunit/string-stream-test.c
418
string_stream_add(stream, "Five\n%s", "Six");
lib/kunit/string-stream-test.c
419
string_stream_add(stream, "Seven\n\n");
lib/kunit/string-stream-test.c
420
string_stream_add(stream, "Eight");
lib/kunit/string-stream-test.c
421
KUNIT_EXPECT_STREQ(test, get_concatenated_string(test, stream),
lib/kunit/string-stream-test.c
428
struct string_stream *stream;
lib/kunit/string-stream-test.c
430
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
431
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
433
string_stream_set_append_newlines(stream, true);
lib/kunit/string-stream-test.c
434
KUNIT_EXPECT_TRUE(test, stream->append_newlines);
lib/kunit/string-stream-test.c
44
struct string_stream *stream;
lib/kunit/string-stream-test.c
441
string_stream_add(stream, "One");
lib/kunit/string-stream-test.c
442
string_stream_add(stream, "Two\n");
lib/kunit/string-stream-test.c
443
string_stream_add(stream, "%s\n", "Three");
lib/kunit/string-stream-test.c
444
string_stream_add(stream, "%s", "Four\n");
lib/kunit/string-stream-test.c
445
string_stream_add(stream, "Five\n%s", "Six");
lib/kunit/string-stream-test.c
446
string_stream_add(stream, "Seven\n\n");
lib/kunit/string-stream-test.c
447
string_stream_add(stream, "Eight");
lib/kunit/string-stream-test.c
448
KUNIT_EXPECT_STREQ(test, get_concatenated_string(test, stream),
lib/kunit/string-stream-test.c
459
struct string_stream *stream;
lib/kunit/string-stream-test.c
465
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
466
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
47
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/string-stream-test.c
474
string_stream_add(stream, "%s: %d\n", &test_line[offset], i);
lib/kunit/string-stream-test.c
48
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
482
bytes_requested = sizeof(*stream);
lib/kunit/string-stream-test.c
483
actual_bytes_used = ksize(stream);
lib/kunit/string-stream-test.c
486
list_for_each_entry(frag_container, &stream->fragments, node) {
lib/kunit/string-stream-test.c
50
KUNIT_EXPECT_EQ(test, stream->length, 0);
lib/kunit/string-stream-test.c
51
KUNIT_EXPECT_TRUE(test, list_empty(&stream->fragments));
lib/kunit/string-stream-test.c
52
KUNIT_EXPECT_TRUE(test, (stream->gfp == GFP_KERNEL));
lib/kunit/string-stream-test.c
53
KUNIT_EXPECT_FALSE(test, stream->append_newlines);
lib/kunit/string-stream-test.c
54
KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream));
lib/kunit/string-stream-test.c
60
struct string_stream *stream;
lib/kunit/string-stream-test.c
62
stream = alloc_string_stream(GFP_KERNEL);
lib/kunit/string-stream-test.c
63
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, stream);
lib/kunit/string-stream-test.c
64
kunit_add_action(test, cleanup_raw_stream, stream);
lib/kunit/string-stream-test.c
66
KUNIT_EXPECT_EQ(test, stream->length, 0);
lib/kunit/string-stream-test.c
67
KUNIT_EXPECT_TRUE(test, list_empty(&stream->fragments));
lib/kunit/string-stream-test.c
68
KUNIT_EXPECT_TRUE(test, (stream->gfp == GFP_KERNEL));
lib/kunit/string-stream-test.c
69
KUNIT_EXPECT_FALSE(test, stream->append_newlines);
lib/kunit/string-stream-test.c
71
KUNIT_EXPECT_TRUE(test, string_stream_is_empty(stream));
lib/kunit/string-stream-test.c
74
static void string_stream_destroy_stub(struct string_stream *stream)
lib/kunit/string-stream-test.c
80
if (stream == priv->expected_free_stream) {
lib/kunit/string-stream-test.c
93
string_stream_clear(stream);
lib/kunit/string-stream-test.c
94
kfree(stream);
lib/kunit/string-stream.c
102
void string_stream_clear(struct string_stream *stream)
lib/kunit/string-stream.c
106
spin_lock(&stream->lock);
lib/kunit/string-stream.c
109
&stream->fragments,
lib/kunit/string-stream.c
113
stream->length = 0;
lib/kunit/string-stream.c
114
spin_unlock(&stream->lock);
lib/kunit/string-stream.c
117
char *string_stream_get_string(struct string_stream *stream)
lib/kunit/string-stream.c
120
size_t buf_len = stream->length + 1; /* +1 for null byte. */
lib/kunit/string-stream.c
123
buf = kzalloc(buf_len, stream->gfp);
lib/kunit/string-stream.c
127
spin_lock(&stream->lock);
lib/kunit/string-stream.c
128
list_for_each_entry(frag_container, &stream->fragments, node)
lib/kunit/string-stream.c
130
spin_unlock(&stream->lock);
lib/kunit/string-stream.c
135
int string_stream_append(struct string_stream *stream,
lib/kunit/string-stream.c
146
ret = string_stream_add(stream, other_content);
lib/kunit/string-stream.c
152
bool string_stream_is_empty(struct string_stream *stream)
lib/kunit/string-stream.c
154
return list_empty(&stream->fragments);
lib/kunit/string-stream.c
159
struct string_stream *stream;
lib/kunit/string-stream.c
161
stream = kzalloc_obj(*stream, gfp);
lib/kunit/string-stream.c
162
if (!stream)
lib/kunit/string-stream.c
165
stream->gfp = gfp;
lib/kunit/string-stream.c
166
INIT_LIST_HEAD(&stream->fragments);
lib/kunit/string-stream.c
167
spin_lock_init(&stream->lock);
lib/kunit/string-stream.c
169
return stream;
lib/kunit/string-stream.c
172
void string_stream_destroy(struct string_stream *stream)
lib/kunit/string-stream.c
174
KUNIT_STATIC_STUB_REDIRECT(string_stream_destroy, stream);
lib/kunit/string-stream.c
176
if (IS_ERR_OR_NULL(stream))
lib/kunit/string-stream.c
179
string_stream_clear(stream);
lib/kunit/string-stream.c
180
kfree(stream);
lib/kunit/string-stream.c
185
struct string_stream *stream = p;
lib/kunit/string-stream.c
187
string_stream_destroy(stream);
lib/kunit/string-stream.c
192
struct string_stream *stream;
lib/kunit/string-stream.c
194
stream = alloc_string_stream(gfp);
lib/kunit/string-stream.c
195
if (IS_ERR(stream))
lib/kunit/string-stream.c
196
return stream;
lib/kunit/string-stream.c
198
if (kunit_add_action_or_reset(test, resource_free_string_stream, stream) != 0)
lib/kunit/string-stream.c
201
return stream;
lib/kunit/string-stream.c
204
void kunit_free_string_stream(struct kunit *test, struct string_stream *stream)
lib/kunit/string-stream.c
206
kunit_release_action(test, resource_free_string_stream, (void *)stream);
lib/kunit/string-stream.c
41
int string_stream_vadd(struct string_stream *stream,
lib/kunit/string-stream.c
61
if (stream->append_newlines)
lib/kunit/string-stream.c
67
frag_container = alloc_string_stream_fragment(buf_len, stream->gfp);
lib/kunit/string-stream.c
71
if (stream->append_newlines) {
lib/kunit/string-stream.c
82
spin_lock(&stream->lock);
lib/kunit/string-stream.c
83
stream->length += result_len;
lib/kunit/string-stream.c
84
list_add_tail(&frag_container->node, &stream->fragments);
lib/kunit/string-stream.c
85
spin_unlock(&stream->lock);
lib/kunit/string-stream.c
90
int string_stream_add(struct string_stream *stream, const char *fmt, ...)
lib/kunit/string-stream.c
96
result = string_stream_vadd(stream, fmt, args);
lib/kunit/string-stream.h
33
void kunit_free_string_stream(struct kunit *test, struct string_stream *stream);
lib/kunit/string-stream.h
36
void free_string_stream(struct string_stream *stream);
lib/kunit/string-stream.h
38
int __printf(2, 3) string_stream_add(struct string_stream *stream,
lib/kunit/string-stream.h
41
int __printf(2, 0) string_stream_vadd(struct string_stream *stream,
lib/kunit/string-stream.h
45
void string_stream_clear(struct string_stream *stream);
lib/kunit/string-stream.h
47
char *string_stream_get_string(struct string_stream *stream);
lib/kunit/string-stream.h
49
int string_stream_append(struct string_stream *stream,
lib/kunit/string-stream.h
52
bool string_stream_is_empty(struct string_stream *stream);
lib/kunit/string-stream.h
54
void string_stream_destroy(struct string_stream *stream);
lib/kunit/string-stream.h
56
static inline void string_stream_set_append_newlines(struct string_stream *stream,
lib/kunit/string-stream.h
59
stream->append_newlines = append_newlines;
lib/kunit/test.c
259
struct string_stream *stream)
lib/kunit/test.c
264
if (string_stream_is_empty(stream))
lib/kunit/test.c
267
buf = string_stream_get_string(stream);
lib/kunit/test.c
271
list_for_each_entry(fragment, &stream->fragments, node) {
lib/kunit/test.c
285
struct string_stream *stream;
lib/kunit/test.c
289
stream = kunit_alloc_string_stream(test, GFP_KERNEL);
lib/kunit/test.c
290
if (IS_ERR(stream)) {
lib/kunit/test.c
298
kunit_assert_prologue(loc, type, stream);
lib/kunit/test.c
299
assert_format(assert, message, stream);
lib/kunit/test.c
301
kunit_print_string_stream(test, stream);
lib/kunit/test.c
303
kunit_free_string_stream(test, stream);
lib/ref_tracker.c
105
void __ostream_printf (*func)(struct ostream *stream, char *fmt, ...);
lib/ref_tracker.c
112
static void __ostream_printf pr_ostream_log(struct ostream *stream, char *fmt, ...)
lib/ref_tracker.c
121
static void __ostream_printf pr_ostream_buf(struct ostream *stream, char *fmt, ...)
lib/ref_tracker.c
123
int ret, len = stream->size - stream->used;
lib/ref_tracker.c
127
ret = vsnprintf(stream->buf + stream->used, len, fmt, args);
lib/ref_tracker.c
130
stream->used += min(ret, len);
lib/ref_tracker.c
133
#define pr_ostream(stream, fmt, args...) \
lib/ref_tracker.c
135
struct ostream *_s = (stream); \
lib/ref_tracker.c
349
static void __ostream_printf pr_ostream_seq(struct ostream *stream, char *fmt, ...)
lib/ref_tracker.c
354
seq_vprintf(stream->seq, fmt, args);
lib/zstd/decompress/huf_decompress.c
1545
int stream;
lib/zstd/decompress/huf_decompress.c
1549
for (stream = 0; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
1550
assert(op[stream] <= oend[stream]);
lib/zstd/decompress/huf_decompress.c
1551
assert(ip[stream] >= ilowest);
lib/zstd/decompress/huf_decompress.c
1569
for (stream = 0; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
1570
size_t const oiters = (size_t)(oend[stream] - op[stream]) / 10;
lib/zstd/decompress/huf_decompress.c
1590
for (stream = 1; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
1591
if (ip[stream] < ip[stream - 1])
lib/zstd/decompress/huf_decompress.c
1597
for (stream = 1; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
1598
assert(ip[stream] >= ip[stream - 1]);
lib/zstd/decompress/huf_decompress.c
278
static size_t HUF_initRemainingDStream(BIT_DStream_t* bit, HUF_DecompressFastArgs const* args, int stream, BYTE* segmentEnd)
lib/zstd/decompress/huf_decompress.c
281
if (args->op[stream] > segmentEnd)
lib/zstd/decompress/huf_decompress.c
288
if (args->ip[stream] < args->iend[stream] - 8)
lib/zstd/decompress/huf_decompress.c
293
bit->bitContainer = MEM_readLEST(args->ip[stream]);
lib/zstd/decompress/huf_decompress.c
294
bit->bitsConsumed = ZSTD_countTrailingZeros64(args->bits[stream]);
lib/zstd/decompress/huf_decompress.c
297
bit->ptr = (const char*)args->ip[stream];
lib/zstd/decompress/huf_decompress.c
737
int stream;
lib/zstd/decompress/huf_decompress.c
741
for (stream = 0; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
742
assert(op[stream] <= (stream == 3 ? oend : op[stream + 1]));
lib/zstd/decompress/huf_decompress.c
743
assert(ip[stream] >= ilowest);
lib/zstd/decompress/huf_decompress.c
772
for (stream = 1; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
773
if (ip[stream] < ip[stream - 1])
lib/zstd/decompress/huf_decompress.c
779
for (stream = 1; stream < 4; ++stream) {
lib/zstd/decompress/huf_decompress.c
780
assert(ip[stream] >= ip[stream - 1]);
net/netfilter/nf_conntrack_proto_udp.c
109
bool stream = false;
net/netfilter/nf_conntrack_proto_udp.c
114
stream = (status & IPS_ASSURED) == 0;
net/netfilter/nf_conntrack_proto_udp.c
124
if (stream && !test_and_set_bit(IPS_ASSURED_BIT, &ct->status))
net/sctp/associola.c
1127
sctp_stream_clear(&asoc->stream);
net/sctp/associola.c
1153
sctp_stream_update(&asoc->stream, &new->stream);
net/sctp/associola.c
1383
sctp_datachk_len(&asoc->stream));
net/sctp/associola.c
1389
sctp_datachk_len(&asoc->stream));
net/sctp/associola.c
232
if (sctp_stream_init(&asoc->stream, asoc->c.sinit_num_ostreams, 0, gfp))
net/sctp/associola.c
279
sctp_stream_free(&asoc->stream);
net/sctp/associola.c
351
sctp_stream_free(&asoc->stream);
net/sctp/auth.c
917
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/chunk.c
108
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/chunk.c
177
sctp_datachk_len(&asoc->stream));
net/sctp/chunk.c
263
chunk = asoc->stream.si->make_datafrag(asoc, sinfo, len, frag,
net/sctp/chunk.c
316
SCTP_SO(&chunk->asoc->stream,
net/sctp/chunk.c
331
SCTP_SO(&chunk->asoc->stream,
net/sctp/chunk.c
99
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/output.c
743
packet->overhead - sctp_datachk_len(&chunk->asoc->stream) - 4)
net/sctp/output.c
778
asoc->stream.si->assign_number(chunk);
net/sctp/outqueue.c
1085
__u32 sid = ntohs(chunk->subh.data_hdr->stream);
net/sctp/outqueue.c
1086
__u8 stream_state = SCTP_SO(&ctx->asoc->stream, sid)->state;
net/sctp/outqueue.c
1401
asoc->stream.si->generate_ftsn(q, sack_ctsn);
net/sctp/outqueue.c
1809
int nskips, __be16 stream)
net/sctp/outqueue.c
1814
if (skiplist[i].stream == stream)
net/sctp/outqueue.c
1884
chunk->subh.data_hdr->stream);
net/sctp/outqueue.c
1885
ftsn_skip_arr[skip_pos].stream =
net/sctp/outqueue.c
1886
chunk->subh.data_hdr->stream;
net/sctp/outqueue.c
361
streamout = SCTP_SO(&asoc->stream, chk->sinfo.sinfo_stream);
net/sctp/outqueue.c
389
q->sched->unsched_all(&asoc->stream);
net/sctp/outqueue.c
403
sout = SCTP_SO(&asoc->stream, chk->sinfo.sinfo_stream);
net/sctp/outqueue.c
407
if (asoc->stream.out_curr == sout &&
net/sctp/outqueue.c
409
asoc->stream.out_curr = NULL;
net/sctp/outqueue.c
417
q->sched->sched_all(&asoc->stream);
net/sctp/outqueue.c
580
q->asoc->stream.si->generate_ftsn(q, q->asoc->ctsn_ack_point);
net/sctp/outqueue.c
63
__u16 stream;
net/sctp/outqueue.c
68
stream = sctp_chunk_stream_no(ch);
net/sctp/outqueue.c
69
oute = SCTP_SO(&q->asoc->stream, stream)->ext;
net/sctp/outqueue.c
84
__u16 stream;
net/sctp/outqueue.c
89
stream = sctp_chunk_stream_no(ch);
net/sctp/outqueue.c
90
oute = SCTP_SO(&q->asoc->stream, stream)->ext;
net/sctp/proc.c
280
assoc->hbinterval, assoc->stream.incnt,
net/sctp/proc.c
281
assoc->stream.outcnt, assoc->max_retrans,
net/sctp/sm_make_chunk.c
1573
struct sctp_stream *stream;
net/sctp/sm_make_chunk.c
1582
sid = ntohs(chunk->subh.data_hdr->stream);
net/sctp/sm_make_chunk.c
1583
stream = &chunk->asoc->stream;
net/sctp/sm_make_chunk.c
1594
ssn = sctp_ssn_next(stream, out, sid);
net/sctp/sm_make_chunk.c
1596
ssn = sctp_ssn_peek(stream, out, sid);
net/sctp/sm_make_chunk.c
2463
if (sctp_stream_init(&asoc->stream, asoc->c.sinit_num_ostreams,
net/sctp/sm_make_chunk.c
3550
skip.stream = skiplist[i].stream;
net/sctp/sm_make_chunk.c
726
dp.stream = htons(sinfo->sinfo_stream);
net/sctp/sm_make_chunk.c
91
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/sm_sideeffect.c
1059
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/sm_sideeffect.c
1069
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/sm_sideeffect.c
1081
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/sm_sideeffect.c
1352
asoc->stream.si->report_ftsn(&asoc->ulpq, cmd->obj.u32);
net/sctp/sm_sideeffect.c
1356
asoc->stream.si->handle_ftsn(&asoc->ulpq,
net/sctp/sm_sideeffect.c
1466
asoc->stream.si->ulpevent_data(&asoc->ulpq,
net/sctp/sm_sideeffect.c
1476
asoc->stream.si->enqueue_event(&asoc->ulpq,
net/sctp/sm_sideeffect.c
1727
asoc->stream.si->start_pd(&asoc->ulpq, GFP_ATOMIC);
net/sctp/sm_sideeffect.c
1731
asoc->stream.si->renege_events(&asoc->ulpq,
net/sctp/sm_sideeffect.c
665
asoc->stream.si->abort_pd(&asoc->ulpq, GFP_ATOMIC);
net/sctp/sm_sideeffect.c
986
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/sm_statefuns.c
3210
if (!sctp_chunk_length_valid(chunk, sctp_datachk_len(&asoc->stream)))
net/sctp/sm_statefuns.c
3231
sctp_datahdr_len(&asoc->stream));
net/sctp/sm_statefuns.c
3330
if (!sctp_chunk_length_valid(chunk, sctp_datachk_len(&asoc->stream)))
net/sctp/sm_statefuns.c
3347
sctp_datahdr_len(&asoc->stream));
net/sctp/sm_statefuns.c
4227
if (!sctp_chunk_length_valid(chunk, sctp_ftsnchk_len(&asoc->stream)))
net/sctp/sm_statefuns.c
4246
if (!asoc->stream.si->validate_ftsn(chunk))
net/sctp/sm_statefuns.c
4250
if (len > sctp_ftsnhdr_len(&asoc->stream))
net/sctp/sm_statefuns.c
4294
if (!sctp_chunk_length_valid(chunk, sctp_ftsnchk_len(&asoc->stream)))
net/sctp/sm_statefuns.c
4313
if (!asoc->stream.si->validate_ftsn(chunk))
net/sctp/sm_statefuns.c
4317
if (len > sctp_ftsnhdr_len(&asoc->stream))
net/sctp/sm_statefuns.c
6504
skb_pull(chunk->skb, sctp_datahdr_len(&asoc->stream));
net/sctp/sm_statefuns.c
6552
datalen -= sctp_datachk_len(&asoc->stream);
net/sctp/sm_statefuns.c
6657
if (ntohs(data_hdr->stream) >= asoc->stream.incnt) {
net/sctp/sm_statefuns.c
6662
&data_hdr->stream,
net/sctp/sm_statefuns.c
6663
sizeof(data_hdr->stream),
net/sctp/sm_statefuns.c
6678
if (!asoc->stream.si->validate_data(chunk))
net/sctp/socket.c
1114
err = sctp_stream_init(&asoc->stream, outcnt, 0, GFP_KERNEL);
net/sctp/socket.c
1803
if (sinfo->sinfo_stream >= asoc->stream.outcnt) {
net/sctp/socket.c
1808
if (unlikely(!SCTP_SO(&asoc->stream, sinfo->sinfo_stream)->ext)) {
net/sctp/socket.c
1809
err = sctp_stream_init_ext(&asoc->stream, sinfo->sinfo_stream);
net/sctp/socket.c
1833
if (unlikely(sinfo->sinfo_stream >= asoc->stream.outcnt)) {
net/sctp/socket.c
2250
asoc->stream.si->enqueue_event(&asoc->ulpq, event);
net/sctp/socket.c
3282
__u16 datasize = asoc ? sctp_datachk_len(&asoc->stream) :
net/sctp/socket.c
4281
asoc->stream.si->enqueue_event(&asoc->ulpq, event);
net/sctp/socket.c
5244
info->sctpi_instrms = asoc->stream.incnt;
net/sctp/socket.c
5245
info->sctpi_outstrms = asoc->stream.outcnt;
net/sctp/socket.c
5496
status.sstat_instrms = asoc->stream.incnt;
net/sctp/socket.c
5497
status.sstat_outstrms = asoc->stream.outcnt;
net/sctp/socket.c
7538
if (!asoc || params.sprstat_sid >= asoc->stream.outcnt)
net/sctp/socket.c
7541
streamoute = SCTP_SO(&asoc->stream, params.sprstat_sid)->ext;
net/sctp/socket.c
9214
asoc->stream.si->enqueue_event(&asoc->ulpq, ev);
net/sctp/stream.c
1008
asoc->stream.si->report_ftsn(&asoc->ulpq, mtsn);
net/sctp/stream.c
101
if (outcnt <= stream->outcnt)
net/sctp/stream.c
1026
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream.c
1027
SCTP_SO(stream, i)->mid = 0;
net/sctp/stream.c
1028
SCTP_SO(stream, i)->mid_uo = 0;
net/sctp/stream.c
1030
for (i = 0; i < stream->incnt; i++)
net/sctp/stream.c
1031
SCTP_SI(stream, i)->mid = 0;
net/sctp/stream.c
1034
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
1035
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream.c
104
ret = genradix_prealloc(&stream->out, outcnt, gfp);
net/sctp/stream.c
1045
number = stream->outcnt - nums;
net/sctp/stream.c
1048
for (i = number; i < stream->outcnt; i++)
net/sctp/stream.c
1049
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream.c
1051
sctp_stream_shrink_out(stream, number);
net/sctp/stream.c
1052
stream->outcnt = number;
net/sctp/stream.c
109
stream->outcnt = outcnt;
net/sctp/stream.c
113
static int sctp_stream_alloc_in(struct sctp_stream *stream, __u16 incnt,
net/sctp/stream.c
118
if (incnt <= stream->incnt)
net/sctp/stream.c
121
ret = genradix_prealloc(&stream->in, incnt, gfp);
net/sctp/stream.c
126
stream->incnt = incnt;
net/sctp/stream.c
130
int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt,
net/sctp/stream.c
133
const struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream.c
141
if (outcnt == stream->outcnt)
net/sctp/stream.c
145
sched->unsched_all(stream);
net/sctp/stream.c
146
sctp_stream_outq_migrate(stream, NULL, outcnt);
net/sctp/stream.c
147
sched->sched_all(stream);
net/sctp/stream.c
149
ret = sctp_stream_alloc_out(stream, outcnt, gfp);
net/sctp/stream.c
153
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
154
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream.c
157
sctp_stream_interleave_init(stream);
net/sctp/stream.c
161
return sctp_stream_alloc_in(stream, incnt, gfp);
net/sctp/stream.c
164
int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid)
net/sctp/stream.c
172
SCTP_SO(stream, sid)->ext = soute;
net/sctp/stream.c
174
ret = sctp_sched_init_sid(stream, sid, GFP_KERNEL);
net/sctp/stream.c
176
kfree(SCTP_SO(stream, sid)->ext);
net/sctp/stream.c
177
SCTP_SO(stream, sid)->ext = NULL;
net/sctp/stream.c
183
void sctp_stream_free(struct sctp_stream *stream)
net/sctp/stream.c
185
const struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream.c
188
sched->unsched_all(stream);
net/sctp/stream.c
189
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
190
sctp_stream_free_ext(stream, i);
net/sctp/stream.c
191
genradix_free(&stream->out);
net/sctp/stream.c
192
genradix_free(&stream->in);
net/sctp/stream.c
195
void sctp_stream_clear(struct sctp_stream *stream)
net/sctp/stream.c
199
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream.c
200
SCTP_SO(stream, i)->mid = 0;
net/sctp/stream.c
201
SCTP_SO(stream, i)->mid_uo = 0;
net/sctp/stream.c
204
for (i = 0; i < stream->incnt; i++)
net/sctp/stream.c
205
SCTP_SI(stream, i)->mid = 0;
net/sctp/stream.c
208
void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new)
net/sctp/stream.c
210
const struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream.c
212
sched->unsched_all(stream);
net/sctp/stream.c
213
sctp_stream_outq_migrate(stream, new, new->outcnt);
net/sctp/stream.c
214
sctp_stream_free(stream);
net/sctp/stream.c
216
stream->out = new->out;
net/sctp/stream.c
217
stream->in = new->in;
net/sctp/stream.c
218
stream->outcnt = new->outcnt;
net/sctp/stream.c
219
stream->incnt = new->incnt;
net/sctp/stream.c
221
sched->sched_all(stream);
net/sctp/stream.c
241
static bool sctp_stream_outq_is_empty(struct sctp_stream *stream,
net/sctp/stream.c
247
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream.c
25
static void sctp_stream_shrink_out(struct sctp_stream *stream, __u16 outcnt)
net/sctp/stream.c
257
if (SCTP_SO(stream, sid)->ext &&
net/sctp/stream.c
258
!list_empty(&SCTP_SO(stream, sid)->ext->outq))
net/sctp/stream.c
268
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
298
if (str_list[i] >= stream->outcnt)
net/sctp/stream.c
307
if (str_list[i] >= stream->incnt)
net/sctp/stream.c
31
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream.c
328
if (out && !sctp_stream_outq_is_empty(stream, str_nums, nstr_list)) {
net/sctp/stream.c
346
SCTP_SO(stream, str_list[i])->state =
net/sctp/stream.c
349
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
350
SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED;
net/sctp/stream.c
365
SCTP_SO(stream, str_list[i])->state =
net/sctp/stream.c
368
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
369
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream.c
382
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
402
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
403
SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED;
net/sctp/stream.c
413
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
414
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream.c
427
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
446
outcnt = stream->outcnt + out;
net/sctp/stream.c
447
incnt = stream->incnt + in;
net/sctp/stream.c
455
retval = sctp_stream_alloc_out(stream, outcnt, GFP_KERNEL);
net/sctp/stream.c
522
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
55
static void sctp_stream_free_ext(struct sctp_stream *stream, __u16 sid)
net/sctp/stream.c
557
if (ntohs(str_p[i]) >= stream->incnt) {
net/sctp/stream.c
589
SCTP_SI(stream, ntohs(str_p[i]))->mid = 0;
net/sctp/stream.c
59
if (!SCTP_SO(stream, sid)->ext)
net/sctp/stream.c
591
for (i = 0; i < stream->incnt; i++)
net/sctp/stream.c
592
SCTP_SI(stream, i)->mid = 0;
net/sctp/stream.c
611
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
62
sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream.c
63
sched->free_sid(stream, sid);
net/sctp/stream.c
64
kfree(SCTP_SO(stream, sid)->ext);
net/sctp/stream.c
643
if (ntohs(str_p[i]) >= stream->outcnt) {
net/sctp/stream.c
649
if (!sctp_stream_outq_is_empty(stream, nums, str_p)) {
net/sctp/stream.c
65
SCTP_SO(stream, sid)->ext = NULL;
net/sctp/stream.c
661
SCTP_SO(stream, ntohs(str_p[i]))->state =
net/sctp/stream.c
664
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
665
SCTP_SO(stream, i)->state = SCTP_STREAM_CLOSED;
net/sctp/stream.c
689
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
72
static void sctp_stream_outq_migrate(struct sctp_stream *stream,
net/sctp/stream.c
731
asoc->stream.si->report_ftsn(&asoc->ulpq, max_tsn_seen);
net/sctp/stream.c
760
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream.c
761
SCTP_SO(stream, i)->mid = 0;
net/sctp/stream.c
762
SCTP_SO(stream, i)->mid_uo = 0;
net/sctp/stream.c
764
for (i = 0; i < stream->incnt; i++)
net/sctp/stream.c
765
SCTP_SI(stream, i)->mid = 0;
net/sctp/stream.c
77
if (stream->outcnt > outcnt)
net/sctp/stream.c
78
sctp_stream_shrink_out(stream, outcnt);
net/sctp/stream.c
785
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
806
incnt = stream->incnt + in;
net/sctp/stream.c
810
if (sctp_stream_alloc_in(stream, incnt, GFP_ATOMIC))
net/sctp/stream.c
836
stream->incnt = incnt;
net/sctp/stream.c
855
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
87
SCTP_SO(new, i)->ext = SCTP_SO(stream, i)->ext;
net/sctp/stream.c
88
SCTP_SO(stream, i)->ext = NULL;
net/sctp/stream.c
885
outcnt = stream->outcnt + out;
net/sctp/stream.c
889
ret = sctp_stream_alloc_out(stream, outcnt, GFP_ATOMIC);
net/sctp/stream.c
901
stream->outcnt = outcnt;
net/sctp/stream.c
919
struct sctp_stream *stream = &asoc->stream;
net/sctp/stream.c
92
for (i = outcnt; i < stream->outcnt; i++)
net/sctp/stream.c
93
sctp_stream_free_ext(stream, i);
net/sctp/stream.c
954
sout = SCTP_SO(stream, ntohs(str_p[i]));
net/sctp/stream.c
959
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream.c
96
static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt,
net/sctp/stream.c
960
sout = SCTP_SO(stream, i);
net/sctp/stream.c
969
for (i = 0; i < stream->outcnt; i++)
net/sctp/stream.c
970
SCTP_SO(stream, i)->state = SCTP_STREAM_OPEN;
net/sctp/stream_interleave.c
1004
struct sctp_stream *stream = &ulpq->asoc->stream;
net/sctp/stream_interleave.c
1015
csid = cevent->stream;
net/sctp/stream_interleave.c
102
return !SSN_lt(ssn, sctp_ssn_peek(stream, in, sid));
net/sctp/stream_interleave.c
1024
if (!MID_lt(cmid, sctp_mid_peek(stream, in, csid)))
net/sctp/stream_interleave.c
1036
csid = cevent->stream;
net/sctp/stream_interleave.c
1039
if (csid == sid && cmid == sctp_mid_peek(stream, in, csid)) {
net/sctp/stream_interleave.c
1040
sctp_mid_next(stream, in, csid);
net/sctp/stream_interleave.c
1055
struct sctp_stream *stream = &ulpq->asoc->stream;
net/sctp/stream_interleave.c
1058
for (sid = 0; sid < stream->incnt; sid++) {
net/sctp/stream_interleave.c
1059
struct sctp_stream_in *sin = SCTP_SI(stream, sid);
net/sctp/stream_interleave.c
107
struct sctp_stream *stream;
net/sctp/stream_interleave.c
1074
sctp_mid_skip(stream, in, sid, mid);
net/sctp/stream_interleave.c
1085
int nskips, __be16 stream, __u8 flags)
net/sctp/stream_interleave.c
1090
if (skiplist[i].stream == stream &&
net/sctp/stream_interleave.c
1122
__be16 sid = chunk->subh.idata_hdr->stream;
net/sctp/stream_interleave.c
1132
ftsn_skip_arr[skip_pos].stream = sid;
net/sctp/stream_interleave.c
117
stream = &chunk->asoc->stream;
net/sctp/stream_interleave.c
1172
incnt = chunk->asoc->stream.incnt;
net/sctp/stream_interleave.c
1174
if (ntohs(skip->stream) >= incnt)
net/sctp/stream_interleave.c
1188
incnt = chunk->asoc->stream.incnt;
net/sctp/stream_interleave.c
1190
if (ntohs(skip->stream) >= incnt)
net/sctp/stream_interleave.c
121
return !MID_lt(mid, sctp_mid_peek(stream, in, sid));
net/sctp/stream_interleave.c
1248
sctp_ulpq_skip(ulpq, ntohs(skip->stream), ntohs(skip->ssn));
net/sctp/stream_interleave.c
1254
struct sctp_stream_in *sin = sctp_stream_in(&ulpq->asoc->stream, sid);
net/sctp/stream_interleave.c
1255
struct sctp_stream *stream = &ulpq->asoc->stream;
net/sctp/stream_interleave.c
1266
if (MID_lt(mid, sctp_mid_peek(stream, in, sid)))
net/sctp/stream_interleave.c
1274
sctp_mid_skip(stream, in, sid, mid);
net/sctp/stream_interleave.c
1285
sctp_intl_skip(ulpq, ntohs(skip->stream),
net/sctp/stream_interleave.c
1346
void sctp_stream_interleave_init(struct sctp_stream *stream)
net/sctp/stream_interleave.c
1350
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream_interleave.c
1351
stream->si = asoc->peer.intl_capable ? &sctp_stream_interleave_1
net/sctp/stream_interleave.c
138
if (event->stream == cevent->stream &&
net/sctp/stream_interleave.c
147
if ((event->stream == cevent->stream &&
net/sctp/stream_interleave.c
149
event->stream > cevent->stream) {
net/sctp/stream_interleave.c
158
if (event->stream < cevent->stream ||
net/sctp/stream_interleave.c
159
(event->stream == cevent->stream &&
net/sctp/stream_interleave.c
164
if (event->stream == cevent->stream &&
net/sctp/stream_interleave.c
192
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
197
if (cevent->stream < event->stream)
net/sctp/stream_interleave.c
200
if (cevent->stream > event->stream ||
net/sctp/stream_interleave.c
272
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
277
if (cevent->stream < event->stream)
net/sctp/stream_interleave.c
279
if (cevent->stream > event->stream)
net/sctp/stream_interleave.c
33
dp.stream = htons(sinfo->sinfo_stream);
net/sctp/stream_interleave.c
361
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
385
if (event->stream == cevent->stream &&
net/sctp/stream_interleave.c
391
if (event->stream > cevent->stream) {
net/sctp/stream_interleave.c
400
if (cevent->stream > event->stream) {
net/sctp/stream_interleave.c
404
if (cevent->stream == event->stream &&
net/sctp/stream_interleave.c
421
struct sctp_stream *stream;
net/sctp/stream_interleave.c
423
__u16 sid = event->stream;
net/sctp/stream_interleave.c
425
stream = &ulpq->asoc->stream;
net/sctp/stream_interleave.c
431
if (cevent->stream > sid)
net/sctp/stream_interleave.c
434
if (cevent->stream < sid)
net/sctp/stream_interleave.c
437
if (cevent->mid != sctp_mid_peek(stream, in, sid))
net/sctp/stream_interleave.c
440
sctp_mid_next(stream, in, sid);
net/sctp/stream_interleave.c
451
struct sctp_stream *stream;
net/sctp/stream_interleave.c
454
stream = &ulpq->asoc->stream;
net/sctp/stream_interleave.c
455
sid = event->stream;
net/sctp/stream_interleave.c
457
if (event->mid != sctp_mid_peek(stream, in, sid)) {
net/sctp/stream_interleave.c
462
sctp_mid_next(stream, in, sid);
net/sctp/stream_interleave.c
50
struct sctp_stream *stream;
net/sctp/stream_interleave.c
523
if (event->stream == cevent->stream &&
net/sctp/stream_interleave.c
532
if ((event->stream == cevent->stream &&
net/sctp/stream_interleave.c
534
event->stream > cevent->stream) {
net/sctp/stream_interleave.c
542
if (event->stream < cevent->stream ||
net/sctp/stream_interleave.c
543
(event->stream == cevent->stream &&
net/sctp/stream_interleave.c
547
if (event->stream == cevent->stream &&
net/sctp/stream_interleave.c
570
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
575
if (cevent->stream < event->stream)
net/sctp/stream_interleave.c
577
if (cevent->stream > event->stream)
net/sctp/stream_interleave.c
59
stream = &chunk->asoc->stream;
net/sctp/stream_interleave.c
654
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
659
if (cevent->stream < event->stream)
net/sctp/stream_interleave.c
661
if (cevent->stream > event->stream)
net/sctp/stream_interleave.c
744
sin = sctp_stream_in(&ulpq->asoc->stream, event->stream);
net/sctp/stream_interleave.c
76
sctp_mid_uo_next(stream, out, sid) :
net/sctp/stream_interleave.c
768
csin = sctp_stream_in(&ulpq->asoc->stream, cevent->stream);
net/sctp/stream_interleave.c
77
sctp_mid_uo_peek(stream, out, sid);
net/sctp/stream_interleave.c
780
sid = cevent->stream;
net/sctp/stream_interleave.c
786
if (cevent->stream == sid &&
net/sctp/stream_interleave.c
80
sctp_mid_next(stream, out, sid) :
net/sctp/stream_interleave.c
81
sctp_mid_peek(stream, out, sid);
net/sctp/stream_interleave.c
874
csin = sctp_stream_in(&ulpq->asoc->stream, cevent->stream);
net/sctp/stream_interleave.c
887
sid = cevent->stream;
net/sctp/stream_interleave.c
89
struct sctp_stream *stream;
net/sctp/stream_interleave.c
893
if (cevent->stream == sid &&
net/sctp/stream_interleave.c
98
stream = &chunk->asoc->stream;
net/sctp/stream_sched.c
131
static void sctp_sched_free_sched(struct sctp_stream *stream)
net/sctp/stream_sched.c
133
const struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream_sched.c
137
sched->unsched_all(stream);
net/sctp/stream_sched.c
138
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream_sched.c
139
soute = SCTP_SO(stream, i)->ext;
net/sctp/stream_sched.c
142
sched->free_sid(stream, i);
net/sctp/stream_sched.c
165
sctp_sched_free_sched(&asoc->stream);
net/sctp/stream_sched.c
168
n->init(&asoc->stream);
net/sctp/stream_sched.c
169
for (i = 0; i < asoc->stream.outcnt; i++) {
net/sctp/stream_sched.c
170
if (!SCTP_SO(&asoc->stream, i)->ext)
net/sctp/stream_sched.c
173
ret = n->init_sid(&asoc->stream, i, GFP_ATOMIC);
net/sctp/stream_sched.c
189
sctp_sched_free_sched(&asoc->stream);
net/sctp/stream_sched.c
209
if (sid >= asoc->stream.outcnt)
net/sctp/stream_sched.c
212
if (!SCTP_SO(&asoc->stream, sid)->ext) {
net/sctp/stream_sched.c
215
ret = sctp_stream_init_ext(&asoc->stream, sid);
net/sctp/stream_sched.c
220
return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp);
net/sctp/stream_sched.c
226
if (sid >= asoc->stream.outcnt)
net/sctp/stream_sched.c
229
if (!SCTP_SO(&asoc->stream, sid)->ext)
net/sctp/stream_sched.c
232
return asoc->outqueue.sched->get(&asoc->stream, sid, value);
net/sctp/stream_sched.c
247
sout = SCTP_SO(&q->asoc->stream, sid);
net/sctp/stream_sched.c
248
q->asoc->stream.out_curr = sout;
net/sctp/stream_sched.c
25
static int sctp_sched_fcfs_set(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched.c
252
q->asoc->stream.out_curr = NULL;
net/sctp/stream_sched.c
264
int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp)
net/sctp/stream_sched.c
266
const struct sctp_sched_ops *sched = sctp_sched_ops_from_stream(stream);
net/sctp/stream_sched.c
267
struct sctp_stream_out_ext *ext = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched.c
270
return sched->init_sid(stream, sid, gfp);
net/sctp/stream_sched.c
273
const struct sctp_sched_ops *sctp_sched_ops_from_stream(struct sctp_stream *stream)
net/sctp/stream_sched.c
277
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream_sched.c
31
static int sctp_sched_fcfs_get(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched.c
38
static int sctp_sched_fcfs_init(struct sctp_stream *stream)
net/sctp/stream_sched.c
43
static int sctp_sched_fcfs_init_sid(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched.c
49
static void sctp_sched_fcfs_free_sid(struct sctp_stream *stream, __u16 sid)
net/sctp/stream_sched.c
60
struct sctp_stream *stream = &q->asoc->stream;
net/sctp/stream_sched.c
67
if (stream->out_curr) {
net/sctp/stream_sched.c
68
ch = list_entry(stream->out_curr->ext->outq.next,
net/sctp/stream_sched.c
86
static void sctp_sched_fcfs_sched_all(struct sctp_stream *stream)
net/sctp/stream_sched.c
90
static void sctp_sched_fcfs_unsched_all(struct sctp_stream *stream)
net/sctp/stream_sched_fc.c
101
struct sctp_stream *stream;
net/sctp/stream_sched_fc.c
107
stream = &q->asoc->stream;
net/sctp/stream_sched_fc.c
108
sctp_sched_fc_sched(stream, SCTP_SO(stream, sid)->ext);
net/sctp/stream_sched_fc.c
113
struct sctp_stream *stream = &q->asoc->stream;
net/sctp/stream_sched_fc.c
122
if (stream->out_curr)
net/sctp/stream_sched_fc.c
123
soute = stream->out_curr->ext;
net/sctp/stream_sched_fc.c
125
soute = list_entry(stream->fc_list.next, struct sctp_stream_out_ext, fc_list);
net/sctp/stream_sched_fc.c
135
struct sctp_stream *stream = &q->asoc->stream;
net/sctp/stream_sched_fc.c
140
soute = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched_fc.c
143
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream_sched_fc.c
144
pos = SCTP_SO(stream, i)->ext;
net/sctp/stream_sched_fc.c
162
list_for_each_entry_continue(pos, &stream->fc_list, fc_list)
net/sctp/stream_sched_fc.c
169
static void sctp_sched_fc_sched_all(struct sctp_stream *stream)
net/sctp/stream_sched_fc.c
174
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream_sched_fc.c
178
if (SCTP_SO(stream, sid)->ext)
net/sctp/stream_sched_fc.c
179
sctp_sched_fc_sched(stream, SCTP_SO(stream, sid)->ext);
net/sctp/stream_sched_fc.c
183
static void sctp_sched_fc_unsched_all(struct sctp_stream *stream)
net/sctp/stream_sched_fc.c
187
list_for_each_entry_safe(soute, tmp, &stream->fc_list, fc_list)
net/sctp/stream_sched_fc.c
25
static void sctp_sched_fc_unsched_all(struct sctp_stream *stream);
net/sctp/stream_sched_fc.c
27
static int sctp_sched_wfq_set(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_fc.c
30
struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched_fc.c
39
static int sctp_sched_wfq_get(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_fc.c
42
struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched_fc.c
48
static int sctp_sched_fc_set(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_fc.c
54
static int sctp_sched_fc_get(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_fc.c
60
static int sctp_sched_fc_init(struct sctp_stream *stream)
net/sctp/stream_sched_fc.c
62
INIT_LIST_HEAD(&stream->fc_list);
net/sctp/stream_sched_fc.c
67
static int sctp_sched_fc_init_sid(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_fc.c
70
struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched_fc.c
79
static void sctp_sched_fc_free_sid(struct sctp_stream *stream, __u16 sid)
net/sctp/stream_sched_fc.c
83
static void sctp_sched_fc_sched(struct sctp_stream *stream,
net/sctp/stream_sched_fc.c
91
list_for_each_entry(pos, &stream->fc_list, fc_list)
net/sctp/stream_sched_prio.c
130
static void sctp_sched_prio_sched(struct sctp_stream *stream,
net/sctp/stream_sched_prio.c
153
list_for_each_entry(prio, &stream->prio_list, prio_sched) {
net/sctp/stream_sched_prio.c
160
list_add_tail(&prio_head->prio_sched, &stream->prio_list);
net/sctp/stream_sched_prio.c
163
static int sctp_sched_prio_set(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_prio.c
166
struct sctp_stream_out *sout = SCTP_SO(stream, sid);
net/sctp/stream_sched_prio.c
175
prio_head = sctp_sched_prio_get_head(stream, prio, gfp);
net/sctp/stream_sched_prio.c
182
sctp_sched_prio_sched(stream, soute);
net/sctp/stream_sched_prio.c
188
static int sctp_sched_prio_get(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_prio.c
191
*value = SCTP_SO(stream, sid)->ext->prio_head->prio;
net/sctp/stream_sched_prio.c
195
static int sctp_sched_prio_init(struct sctp_stream *stream)
net/sctp/stream_sched_prio.c
197
INIT_LIST_HEAD(&stream->prio_list);
net/sctp/stream_sched_prio.c
202
static int sctp_sched_prio_init_sid(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_prio.c
205
INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->prio_list);
net/sctp/stream_sched_prio.c
206
return sctp_sched_prio_set(stream, sid, 0, gfp);
net/sctp/stream_sched_prio.c
209
static void sctp_sched_prio_free_sid(struct sctp_stream *stream, __u16 sid)
net/sctp/stream_sched_prio.c
211
sctp_sched_prio_head_put(SCTP_SO(stream, sid)->ext->prio_head);
net/sctp/stream_sched_prio.c
212
SCTP_SO(stream, sid)->ext->prio_head = NULL;
net/sctp/stream_sched_prio.c
218
struct sctp_stream *stream;
net/sctp/stream_sched_prio.c
224
stream = &q->asoc->stream;
net/sctp/stream_sched_prio.c
225
sctp_sched_prio_sched(stream, SCTP_SO(stream, sid)->ext);
net/sctp/stream_sched_prio.c
230
struct sctp_stream *stream = &q->asoc->stream;
net/sctp/stream_sched_prio.c
242
if (stream->out_curr) {
net/sctp/stream_sched_prio.c
243
soute = stream->out_curr->ext;
net/sctp/stream_sched_prio.c
245
prio = list_entry(stream->prio_list.next,
net/sctp/stream_sched_prio.c
26
static void sctp_sched_prio_unsched_all(struct sctp_stream *stream);
net/sctp/stream_sched_prio.c
267
soute = SCTP_SO(&q->asoc->stream, sid)->ext;
net/sctp/stream_sched_prio.c
276
static void sctp_sched_prio_sched_all(struct sctp_stream *stream)
net/sctp/stream_sched_prio.c
282
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream_sched_prio.c
287
sout = SCTP_SO(stream, sid);
net/sctp/stream_sched_prio.c
289
sctp_sched_prio_sched(stream, sout->ext);
net/sctp/stream_sched_prio.c
293
static void sctp_sched_prio_unsched_all(struct sctp_stream *stream)
net/sctp/stream_sched_prio.c
298
list_for_each_entry_safe(p, tmp, &stream->prio_list, prio_sched)
net/sctp/stream_sched_prio.c
41
struct sctp_stream *stream, int prio, gfp_t gfp)
net/sctp/stream_sched_prio.c
59
struct sctp_stream *stream, int prio, gfp_t gfp)
net/sctp/stream_sched_prio.c
67
list_for_each_entry(p, &stream->prio_list, prio_sched) {
net/sctp/stream_sched_prio.c
75
for (i = 0; i < stream->outcnt; i++) {
net/sctp/stream_sched_prio.c
76
if (!SCTP_SO(stream, i)->ext)
net/sctp/stream_sched_prio.c
79
p = SCTP_SO(stream, i)->ext->prio_head;
net/sctp/stream_sched_prio.c
90
return sctp_sched_prio_new_head(stream, prio, gfp);
net/sctp/stream_sched_rr.c
100
struct sctp_stream *stream;
net/sctp/stream_sched_rr.c
106
stream = &q->asoc->stream;
net/sctp/stream_sched_rr.c
107
sctp_sched_rr_sched(stream, SCTP_SO(stream, sid)->ext);
net/sctp/stream_sched_rr.c
112
struct sctp_stream *stream = &q->asoc->stream;
net/sctp/stream_sched_rr.c
121
if (stream->out_curr)
net/sctp/stream_sched_rr.c
122
soute = stream->out_curr->ext;
net/sctp/stream_sched_rr.c
124
soute = stream->rr_next;
net/sctp/stream_sched_rr.c
141
soute = SCTP_SO(&q->asoc->stream, sid)->ext;
net/sctp/stream_sched_rr.c
143
sctp_sched_rr_next_stream(&q->asoc->stream);
net/sctp/stream_sched_rr.c
146
sctp_sched_rr_unsched(&q->asoc->stream, soute);
net/sctp/stream_sched_rr.c
149
static void sctp_sched_rr_sched_all(struct sctp_stream *stream)
net/sctp/stream_sched_rr.c
155
asoc = container_of(stream, struct sctp_association, stream);
net/sctp/stream_sched_rr.c
160
soute = SCTP_SO(stream, sid)->ext;
net/sctp/stream_sched_rr.c
162
sctp_sched_rr_sched(stream, soute);
net/sctp/stream_sched_rr.c
166
static void sctp_sched_rr_unsched_all(struct sctp_stream *stream)
net/sctp/stream_sched_rr.c
170
list_for_each_entry_safe(soute, tmp, &stream->rr_list, rr_list)
net/sctp/stream_sched_rr.c
171
sctp_sched_rr_unsched(stream, soute);
net/sctp/stream_sched_rr.c
25
static void sctp_sched_rr_unsched_all(struct sctp_stream *stream);
net/sctp/stream_sched_rr.c
27
static void sctp_sched_rr_next_stream(struct sctp_stream *stream)
net/sctp/stream_sched_rr.c
31
pos = stream->rr_next->rr_list.next;
net/sctp/stream_sched_rr.c
32
if (pos == &stream->rr_list)
net/sctp/stream_sched_rr.c
34
stream->rr_next = list_entry(pos, struct sctp_stream_out_ext, rr_list);
net/sctp/stream_sched_rr.c
37
static void sctp_sched_rr_unsched(struct sctp_stream *stream,
net/sctp/stream_sched_rr.c
40
if (stream->rr_next == soute)
net/sctp/stream_sched_rr.c
42
sctp_sched_rr_next_stream(stream);
net/sctp/stream_sched_rr.c
47
if (list_empty(&stream->rr_list))
net/sctp/stream_sched_rr.c
48
stream->rr_next = NULL;
net/sctp/stream_sched_rr.c
51
static void sctp_sched_rr_sched(struct sctp_stream *stream,
net/sctp/stream_sched_rr.c
59
list_add_tail(&soute->rr_list, &stream->rr_list);
net/sctp/stream_sched_rr.c
61
if (!stream->rr_next)
net/sctp/stream_sched_rr.c
62
stream->rr_next = soute;
net/sctp/stream_sched_rr.c
65
static int sctp_sched_rr_set(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_rr.c
71
static int sctp_sched_rr_get(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_rr.c
77
static int sctp_sched_rr_init(struct sctp_stream *stream)
net/sctp/stream_sched_rr.c
79
INIT_LIST_HEAD(&stream->rr_list);
net/sctp/stream_sched_rr.c
80
stream->rr_next = NULL;
net/sctp/stream_sched_rr.c
85
static int sctp_sched_rr_init_sid(struct sctp_stream *stream, __u16 sid,
net/sctp/stream_sched_rr.c
88
INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->rr_list);
net/sctp/stream_sched_rr.c
93
static void sctp_sched_rr_free_sid(struct sctp_stream *stream, __u16 sid)
net/sctp/ulpevent.c
1024
rinfo.rcv_sid = event->stream;
net/sctp/ulpevent.c
1047
nxtinfo.nxt_sid = event->stream;
net/sctp/ulpevent.c
355
asoc->stream.si->enqueue_event(&asoc->ulpq, event);
net/sctp/ulpevent.c
450
skb_pull(skb, sctp_datachk_len(&asoc->stream));
net/sctp/ulpevent.c
451
len -= sctp_datachk_len(&asoc->stream);
net/sctp/ulpevent.c
547
len -= sctp_datachk_len(&asoc->stream);
net/sctp/ulpevent.c
549
skb_pull(skb, sctp_datachk_len(&asoc->stream));
net/sctp/ulpevent.c
747
event->stream = ntohs(chunk->subh.data_hdr->stream);
net/sctp/ulpevent.c
996
sinfo.sinfo_stream = event->stream;
net/sctp/ulpqueue.c
745
struct sctp_stream *stream;
net/sctp/ulpqueue.c
748
sid = event->stream;
net/sctp/ulpqueue.c
749
stream = &ulpq->asoc->stream;
net/sctp/ulpqueue.c
756
csid = cevent->stream;
net/sctp/ulpqueue.c
767
if (cssn != sctp_ssn_peek(stream, in, sid))
net/sctp/ulpqueue.c
771
sctp_ssn_next(stream, in, sid);
net/sctp/ulpqueue.c
795
sid = event->stream;
net/sctp/ulpqueue.c
799
csid = cevent->stream;
net/sctp/ulpqueue.c
816
csid = cevent->stream;
net/sctp/ulpqueue.c
834
struct sctp_stream *stream;
net/sctp/ulpqueue.c
841
sid = event->stream;
net/sctp/ulpqueue.c
843
stream = &ulpq->asoc->stream;
net/sctp/ulpqueue.c
846
if (ssn != sctp_ssn_peek(stream, in, sid)) {
net/sctp/ulpqueue.c
855
sctp_ssn_next(stream, in, sid);
net/sctp/ulpqueue.c
873
struct sctp_stream *stream;
net/sctp/ulpqueue.c
878
stream = &ulpq->asoc->stream;
net/sctp/ulpqueue.c
885
csid = cevent->stream;
net/sctp/ulpqueue.c
897
if (!SSN_lt(cssn, sctp_ssn_peek(stream, in, csid)))
net/sctp/ulpqueue.c
914
csid = cevent->stream;
net/sctp/ulpqueue.c
917
if (csid == sid && cssn == sctp_ssn_peek(stream, in, csid)) {
net/sctp/ulpqueue.c
918
sctp_ssn_next(stream, in, csid);
net/sctp/ulpqueue.c
940
struct sctp_stream *stream;
net/sctp/ulpqueue.c
943
stream = &ulpq->asoc->stream;
net/sctp/ulpqueue.c
946
if (SSN_lt(ssn, sctp_ssn_peek(stream, in, sid)))
net/sctp/ulpqueue.c
950
sctp_ssn_skip(stream, in, sid, ssn);
net/wireless/wext-core.c
1154
char *iwe_stream_add_event(struct iw_request_info *info, char *stream,
net/wireless/wext-core.c
1162
if (likely((stream + event_len) < ends)) {
net/wireless/wext-core.c
1165
memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN);
net/wireless/wext-core.c
1166
memcpy(stream + lcp_len, &iwe->u,
net/wireless/wext-core.c
1168
stream += event_len;
net/wireless/wext-core.c
1171
return stream;
net/wireless/wext-core.c
1175
char *iwe_stream_add_point(struct iw_request_info *info, char *stream,
net/wireless/wext-core.c
1183
if (likely((stream + event_len) < ends)) {
net/wireless/wext-core.c
1185
memcpy(stream, (char *) iwe, IW_EV_LCP_PK_LEN);
net/wireless/wext-core.c
1186
memcpy(stream + lcp_len,
net/wireless/wext-core.c
1190
memcpy(stream + point_len, extra, iwe->u.data.length);
net/wireless/wext-core.c
1191
stream += event_len;
net/wireless/wext-core.c
1194
return stream;
scripts/kconfig/confdata.c
301
static ssize_t getline_stripped(char **lineptr, size_t *n, FILE *stream)
scripts/kconfig/confdata.c
305
len = getline(lineptr, n, stream);
scripts/kconfig/qconf.cc
1005
QTextStream stream(&info);
scripts/kconfig/qconf.cc
1010
stream << "<big><b>";
scripts/kconfig/qconf.cc
1011
stream << print_filter(_menu->prompt->text);
scripts/kconfig/qconf.cc
1012
stream << "</b></big>";
scripts/kconfig/qconf.cc
1014
stream << " (";
scripts/kconfig/qconf.cc
1016
stream << "<a href=\"" << sym->name << "\">";
scripts/kconfig/qconf.cc
1017
stream << print_filter(sym->name);
scripts/kconfig/qconf.cc
1019
stream << "</a>";
scripts/kconfig/qconf.cc
1020
stream << ")";
scripts/kconfig/qconf.cc
1023
stream << "<big><b>";
scripts/kconfig/qconf.cc
1025
stream << "<a href=\"" << sym->name << "\">";
scripts/kconfig/qconf.cc
1026
stream << print_filter(sym->name);
scripts/kconfig/qconf.cc
1028
stream << "</a>";
scripts/kconfig/qconf.cc
1029
stream << "</b></big>";
scripts/kconfig/qconf.cc
1031
stream << "<br><br>";
scripts/kconfig/qconf.cc
1034
stream << debug_info(sym);
scripts/kconfig/qconf.cc
1039
stream << print_filter(str_get(&help_gstr));
scripts/kconfig/qconf.cc
1042
stream << "<big><b>";
scripts/kconfig/qconf.cc
1043
stream << print_filter(_menu->prompt->text);
scripts/kconfig/qconf.cc
1044
stream << "</b></big><br><br>";
scripts/kconfig/qconf.cc
1047
stream << "&nbsp;&nbsp;dep: ";
scripts/kconfig/qconf.cc
1049
expr_print_help, &stream, E_NONE);
scripts/kconfig/qconf.cc
1050
stream << "<br><br>";
scripts/kconfig/qconf.cc
1053
stream << "defined at " << _menu->filename << ":"
scripts/kconfig/qconf.cc
1064
QTextStream stream(&debug);
scripts/kconfig/qconf.cc
1066
stream << "type: ";
scripts/kconfig/qconf.cc
1067
stream << print_filter(sym_type_name(sym->type));
scripts/kconfig/qconf.cc
1069
stream << " (choice)";
scripts/kconfig/qconf.cc
1072
stream << "reverse dep: ";
scripts/kconfig/qconf.cc
1073
expr_print(sym->rev_dep.expr, expr_print_help, &stream, E_NONE);
scripts/kconfig/qconf.cc
1074
stream << "<br>";
scripts/kconfig/qconf.cc
1080
stream << "prompt: ";
scripts/kconfig/qconf.cc
1081
stream << print_filter(prop->text);
scripts/kconfig/qconf.cc
1082
stream << "<br>";
scripts/kconfig/qconf.cc
1089
stream << prop_get_type_name(prop->type);
scripts/kconfig/qconf.cc
1090
stream << ": ";
scripts/kconfig/qconf.cc
1092
&stream, E_NONE);
scripts/kconfig/qconf.cc
1093
stream << "<br>";
scripts/kconfig/qconf.cc
1096
stream << "unknown property: ";
scripts/kconfig/qconf.cc
1097
stream << prop_get_type_name(prop->type);
scripts/kconfig/qconf.cc
1098
stream << "<br>";
scripts/kconfig/qconf.cc
1101
stream << "&nbsp;&nbsp;&nbsp;&nbsp;dep: ";
scripts/kconfig/qconf.cc
1103
&stream, E_NONE);
scripts/kconfig/qconf.cc
1104
stream << "<br>";
scripts/kconfig/qconf.cc
1107
stream << "<br>";
scripts/kconfig/qconf.cc
1136
QTextStream *stream = reinterpret_cast<QTextStream *>(data);
scripts/kconfig/qconf.cc
1139
*stream << "<a href=\"" << sym->name << "\">";
scripts/kconfig/qconf.cc
1140
*stream << print_filter(str);
scripts/kconfig/qconf.cc
1141
*stream << "</a>";
scripts/kconfig/qconf.cc
1143
*stream << print_filter(str);
sound/arm/aaci.c
396
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/arm/aaci.c
408
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/arm/aaci.c
767
.stream = 1,
sound/arm/aaci.c
777
.stream = 1,
sound/atmel/ac97c.c
545
.stream = 1,
sound/atmel/ac97c.c
554
.stream = 1,
sound/core/compress_offload.c
1010
if (stream->direction == SND_COMPRESS_CAPTURE)
sound/core/compress_offload.c
1014
if (stream->next_track == false)
sound/core/compress_offload.c
1017
stream->partial_drain = true;
sound/core/compress_offload.c
1018
retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_PARTIAL_DRAIN);
sound/core/compress_offload.c
1021
wake_up(&stream->runtime->sleep);
sound/core/compress_offload.c
1025
stream->next_track = false;
sound/core/compress_offload.c
1026
return snd_compress_wait_for_drain(stream);
sound/core/compress_offload.c
1032
snd_compr_find_task(struct snd_compr_stream *stream, __u64 seqno)
sound/core/compress_offload.c
1036
list_for_each_entry(task, &stream->runtime->tasks, list) {
sound/core/compress_offload.c
1052
static u64 snd_compr_seqno_next(struct snd_compr_stream *stream)
sound/core/compress_offload.c
1054
u64 seqno = ++stream->runtime->task_seqno;
sound/core/compress_offload.c
1056
seqno = ++stream->runtime->task_seqno;
sound/core/compress_offload.c
1060
static int snd_compr_task_new(struct snd_compr_stream *stream, struct snd_compr_task *utask)
sound/core/compress_offload.c
1065
if (stream->runtime->total_tasks >= stream->runtime->fragments)
sound/core/compress_offload.c
1072
task->seqno = utask->seqno = snd_compr_seqno_next(stream);
sound/core/compress_offload.c
1074
retval = stream->ops->task_create(stream, task);
sound/core/compress_offload.c
1098
list_add_tail(&task->list, &stream->runtime->tasks);
sound/core/compress_offload.c
1099
stream->runtime->total_tasks++;
sound/core/compress_offload.c
1106
static int snd_compr_task_create(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
1110
if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
sound/core/compress_offload.c
1117
retval = snd_compr_task_new(stream, task);
sound/core/compress_offload.c
1139
static int snd_compr_task_start(struct snd_compr_stream *stream, struct snd_compr_task *utask)
sound/core/compress_offload.c
1145
task = snd_compr_find_task(stream, utask->origin_seqno);
sound/core/compress_offload.c
1149
task->seqno = utask->seqno = snd_compr_seqno_next(stream);
sound/core/compress_offload.c
1151
list_move_tail(&task->list, &stream->runtime->tasks);
sound/core/compress_offload.c
1153
task = snd_compr_find_task(stream, utask->seqno);
sound/core/compress_offload.c
1160
retval = stream->ops->task_start(stream, task);
sound/core/compress_offload.c
1163
stream->runtime->active_tasks++;
sound/core/compress_offload.c
1168
static int snd_compr_task_start_ioctl(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
1172
if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
sound/core/compress_offload.c
1179
retval = snd_compr_task_start(stream, task);
sound/core/compress_offload.c
1186
static void snd_compr_task_stop_one(struct snd_compr_stream *stream,
sound/core/compress_offload.c
1191
stream->ops->task_stop(stream, task);
sound/core/compress_offload.c
1192
if (!snd_BUG_ON(stream->runtime->active_tasks == 0))
sound/core/compress_offload.c
1193
stream->runtime->active_tasks--;
sound/core/compress_offload.c
1194
list_move_tail(&task->list, &stream->runtime->tasks);
sound/core/compress_offload.c
1198
static void snd_compr_task_free_one(struct snd_compr_stream *stream,
sound/core/compress_offload.c
1201
snd_compr_task_stop_one(stream, task);
sound/core/compress_offload.c
1202
stream->ops->task_free(stream, task);
sound/core/compress_offload.c
1205
stream->runtime->total_tasks--;
sound/core/compress_offload.c
1208
static void snd_compr_task_free_all(struct snd_compr_stream *stream)
sound/core/compress_offload.c
1212
list_for_each_entry_safe_reverse(task, temp, &stream->runtime->tasks, list)
sound/core/compress_offload.c
1213
snd_compr_task_free_one(stream, task);
sound/core/compress_offload.c
1216
typedef void (*snd_compr_seq_func_t)(struct snd_compr_stream *stream,
sound/core/compress_offload.c
1219
static int snd_compr_task_seq(struct snd_compr_stream *stream, unsigned long arg,
sound/core/compress_offload.c
1226
if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
sound/core/compress_offload.c
123
INIT_DELAYED_WORK(&data->stream.error_work, error_delayed_work);
sound/core/compress_offload.c
1233
list_for_each_entry_safe_reverse(task, temp, &stream->runtime->tasks, list)
sound/core/compress_offload.c
1234
fcn(stream, task);
sound/core/compress_offload.c
1236
task = snd_compr_find_task(stream, seqno);
sound/core/compress_offload.c
1240
fcn(stream, task);
sound/core/compress_offload.c
1246
static int snd_compr_task_status(struct snd_compr_stream *stream,
sound/core/compress_offload.c
125
data->stream.ops = compr->ops;
sound/core/compress_offload.c
1251
task = snd_compr_find_task(stream, status->seqno);
sound/core/compress_offload.c
126
data->stream.direction = dirn;
sound/core/compress_offload.c
1260
static int snd_compr_task_status_ioctl(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
1264
if (stream->runtime->state != SNDRV_PCM_STATE_SETUP)
sound/core/compress_offload.c
127
data->stream.private_data = compr->private_data;
sound/core/compress_offload.c
1271
retval = snd_compr_task_status(stream, status);
sound/core/compress_offload.c
128
data->stream.device = compr;
sound/core/compress_offload.c
1285
void snd_compr_task_finished(struct snd_compr_stream *stream,
sound/core/compress_offload.c
1288
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
1289
if (!snd_BUG_ON(stream->runtime->active_tasks == 0))
sound/core/compress_offload.c
1290
stream->runtime->active_tasks--;
sound/core/compress_offload.c
1292
wake_up(&stream->runtime->sleep);
sound/core/compress_offload.c
1302
struct snd_compr_stream *stream;
sound/core/compress_offload.c
1307
stream = &data->stream;
sound/core/compress_offload.c
1309
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
1315
return snd_compr_get_caps(stream, arg);
sound/core/compress_offload.c
1318
return snd_compr_get_codec_caps(stream, arg);
sound/core/compress_offload.c
1321
return snd_compr_set_params(stream, arg);
sound/core/compress_offload.c
1323
return snd_compr_get_params(stream, arg);
sound/core/compress_offload.c
1325
return snd_compr_set_metadata(stream, arg);
sound/core/compress_offload.c
1327
return snd_compr_get_metadata(stream, arg);
sound/core/compress_offload.c
1330
if (stream->direction == SND_COMPRESS_ACCEL) {
sound/core/compress_offload.c
1334
return snd_compr_task_create(stream, arg);
sound/core/compress_offload.c
1336
return snd_compr_task_seq(stream, arg, snd_compr_task_free_one);
sound/core/compress_offload.c
1338
return snd_compr_task_start_ioctl(stream, arg);
sound/core/compress_offload.c
1340
return snd_compr_task_seq(stream, arg, snd_compr_task_stop_one);
sound/core/compress_offload.c
1342
return snd_compr_task_status_ioctl(stream, arg);
sound/core/compress_offload.c
1350
return snd_compr_tstamp(stream, arg, true);
sound/core/compress_offload.c
1352
return snd_compr_tstamp(stream, arg, false);
sound/core/compress_offload.c
1354
return snd_compr_ioctl_avail(stream, arg, true);
sound/core/compress_offload.c
1356
return snd_compr_ioctl_avail(stream, arg, false);
sound/core/compress_offload.c
1358
return snd_compr_pause(stream);
sound/core/compress_offload.c
1360
return snd_compr_resume(stream);
sound/core/compress_offload.c
1362
return snd_compr_start(stream);
sound/core/compress_offload.c
1364
return snd_compr_stop(stream);
sound/core/compress_offload.c
1366
return snd_compr_drain(stream);
sound/core/compress_offload.c
1368
return snd_compr_partial_drain(stream);
sound/core/compress_offload.c
1370
return snd_compr_next_track(stream);
sound/core/compress_offload.c
140
data->stream.runtime = runtime;
sound/core/compress_offload.c
143
ret = compr->ops->open(&data->stream);
sound/core/compress_offload.c
155
struct snd_compr_runtime *runtime = data->stream.runtime;
sound/core/compress_offload.c
157
cancel_delayed_work_sync(&data->stream.error_work);
sound/core/compress_offload.c
163
data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP);
sound/core/compress_offload.c
169
snd_compr_task_free_all(&data->stream);
sound/core/compress_offload.c
171
data->stream.ops->free(&data->stream);
sound/core/compress_offload.c
172
if (!data->stream.runtime->dma_buffer_p)
sound/core/compress_offload.c
173
kfree(data->stream.runtime->buffer);
sound/core/compress_offload.c
174
kfree(data->stream.runtime);
sound/core/compress_offload.c
190
static int snd_compr_update_tstamp(struct snd_compr_stream *stream,
sound/core/compress_offload.c
193
if (!stream->ops->pointer)
sound/core/compress_offload.c
195
stream->ops->pointer(stream, tstamp);
sound/core/compress_offload.c
198
if (stream->direction == SND_COMPRESS_PLAYBACK)
sound/core/compress_offload.c
199
stream->runtime->total_bytes_transferred = tstamp->copied_total;
sound/core/compress_offload.c
201
stream->runtime->total_bytes_available = tstamp->copied_total;
sound/core/compress_offload.c
205
static size_t snd_compr_calc_avail(struct snd_compr_stream *stream,
sound/core/compress_offload.c
209
snd_compr_update_tstamp(stream, &avail->tstamp);
sound/core/compress_offload.c
212
if (stream->runtime->total_bytes_available == 0 &&
sound/core/compress_offload.c
213
stream->runtime->state == SNDRV_PCM_STATE_SETUP &&
sound/core/compress_offload.c
214
stream->direction == SND_COMPRESS_PLAYBACK) {
sound/core/compress_offload.c
216
return stream->runtime->buffer_size;
sound/core/compress_offload.c
219
stream->runtime->total_bytes_available,
sound/core/compress_offload.c
220
stream->runtime->total_bytes_transferred);
sound/core/compress_offload.c
221
if (stream->runtime->total_bytes_available ==
sound/core/compress_offload.c
222
stream->runtime->total_bytes_transferred) {
sound/core/compress_offload.c
223
if (stream->direction == SND_COMPRESS_PLAYBACK) {
sound/core/compress_offload.c
225
return stream->runtime->buffer_size;
sound/core/compress_offload.c
232
avail->avail = stream->runtime->total_bytes_available -
sound/core/compress_offload.c
233
stream->runtime->total_bytes_transferred;
sound/core/compress_offload.c
234
if (stream->direction == SND_COMPRESS_PLAYBACK)
sound/core/compress_offload.c
235
avail->avail = stream->runtime->buffer_size - avail->avail;
sound/core/compress_offload.c
241
static inline size_t snd_compr_get_avail(struct snd_compr_stream *stream)
sound/core/compress_offload.c
245
return snd_compr_calc_avail(stream, &avail);
sound/core/compress_offload.c
255
static int snd_compr_ioctl_avail(struct snd_compr_stream *stream,
sound/core/compress_offload.c
264
if (stream->direction == SND_COMPRESS_ACCEL)
sound/core/compress_offload.c
267
avail = snd_compr_calc_avail(stream, &ioctl_avail64);
sound/core/compress_offload.c
275
switch (stream->runtime->state) {
sound/core/compress_offload.c
289
static int snd_compr_write_data(struct snd_compr_stream *stream,
sound/core/compress_offload.c
294
struct snd_compr_runtime *runtime = stream->runtime;
sound/core/compress_offload.c
314
if (stream->ops->ack)
sound/core/compress_offload.c
315
stream->ops->ack(stream, count);
sound/core/compress_offload.c
323
struct snd_compr_stream *stream;
sound/core/compress_offload.c
330
stream = &data->stream;
sound/core/compress_offload.c
331
if (stream->direction == SND_COMPRESS_ACCEL)
sound/core/compress_offload.c
333
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
335
switch (stream->runtime->state) {
sound/core/compress_offload.c
344
avail = snd_compr_get_avail(stream);
sound/core/compress_offload.c
350
if (stream->ops->copy) {
sound/core/compress_offload.c
352
retval = stream->ops->copy(stream, cbuf, avail);
sound/core/compress_offload.c
354
retval = snd_compr_write_data(stream, buf, avail);
sound/core/compress_offload.c
357
stream->runtime->total_bytes_available += retval;
sound/core/compress_offload.c
361
if (stream->runtime->state == SNDRV_PCM_STATE_SETUP) {
sound/core/compress_offload.c
362
stream->runtime->state = SNDRV_PCM_STATE_PREPARED;
sound/core/compress_offload.c
374
struct snd_compr_stream *stream;
sound/core/compress_offload.c
381
stream = &data->stream;
sound/core/compress_offload.c
382
if (stream->direction == SND_COMPRESS_ACCEL)
sound/core/compress_offload.c
384
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
390
switch (stream->runtime->state) {
sound/core/compress_offload.c
400
avail = snd_compr_get_avail(stream);
sound/core/compress_offload.c
406
if (stream->ops->copy)
sound/core/compress_offload.c
407
retval = stream->ops->copy(stream, buf, avail);
sound/core/compress_offload.c
411
stream->runtime->total_bytes_transferred += retval;
sound/core/compress_offload.c
421
static __poll_t snd_compr_get_poll(struct snd_compr_stream *stream)
sound/core/compress_offload.c
423
if (stream->direction == SND_COMPRESS_PLAYBACK)
sound/core/compress_offload.c
432
struct snd_compr_stream *stream;
sound/core/compress_offload.c
440
stream = &data->stream;
sound/core/compress_offload.c
441
runtime = stream->runtime;
sound/core/compress_offload.c
443
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
448
return snd_compr_get_poll(stream) | EPOLLERR;
sound/core/compress_offload.c
456
if (stream->direction == SND_COMPRESS_ACCEL) {
sound/core/compress_offload.c
469
avail = snd_compr_get_avail(stream);
sound/core/compress_offload.c
477
retval = snd_compr_get_poll(stream);
sound/core/compress_offload.c
484
retval = snd_compr_get_poll(stream);
sound/core/compress_offload.c
487
return snd_compr_get_poll(stream) | EPOLLERR;
sound/core/compress_offload.c
494
snd_compr_get_caps(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
499
if (!stream->ops->get_caps)
sound/core/compress_offload.c
503
retval = stream->ops->get_caps(stream, &caps);
sound/core/compress_offload.c
514
snd_compr_get_codec_caps(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
518
if (!stream->ops->get_codec_caps)
sound/core/compress_offload.c
526
retval = stream->ops->get_codec_caps(stream, caps);
sound/core/compress_offload.c
53
struct snd_compr_stream stream;
sound/core/compress_offload.c
535
int snd_compr_malloc_pages(struct snd_compr_stream *stream, size_t size)
sound/core/compress_offload.c
540
if (snd_BUG_ON(!(stream) || !(stream)->runtime))
sound/core/compress_offload.c
545
dmab->dev = stream->dma_buffer.dev;
sound/core/compress_offload.c
552
snd_compr_set_runtime_buffer(stream, dmab);
sound/core/compress_offload.c
553
stream->runtime->dma_bytes = size;
sound/core/compress_offload.c
558
int snd_compr_free_pages(struct snd_compr_stream *stream)
sound/core/compress_offload.c
562
if (snd_BUG_ON(!(stream) || !(stream)->runtime))
sound/core/compress_offload.c
564
runtime = stream->runtime;
sound/core/compress_offload.c
567
if (runtime->dma_buffer_p != &stream->dma_buffer) {
sound/core/compress_offload.c
573
snd_compr_set_runtime_buffer(stream, NULL);
sound/core/compress_offload.c
579
static int snd_compr_allocate_buffer(struct snd_compr_stream *stream,
sound/core/compress_offload.c
585
if (stream->direction == SND_COMPRESS_ACCEL)
sound/core/compress_offload.c
589
if (stream->ops->copy) {
sound/core/compress_offload.c
59
static void snd_compr_task_free_all(struct snd_compr_stream *stream);
sound/core/compress_offload.c
595
if (stream->runtime->dma_buffer_p) {
sound/core/compress_offload.c
597
if (buffer_size > stream->runtime->dma_buffer_p->bytes)
sound/core/compress_offload.c
598
dev_err(stream->device->dev,
sound/core/compress_offload.c
601
buffer = stream->runtime->dma_buffer_p->area;
sound/core/compress_offload.c
61
static inline void snd_compr_task_free_all(struct snd_compr_stream *stream) { }
sound/core/compress_offload.c
611
stream->runtime->buffer = buffer;
sound/core/compress_offload.c
612
stream->runtime->buffer_size = buffer_size;
sound/core/compress_offload.c
614
stream->runtime->fragment_size = params->buffer.fragment_size;
sound/core/compress_offload.c
615
stream->runtime->fragments = params->buffer.fragments;
sound/core/compress_offload.c
620
snd_compress_check_input(struct snd_compr_stream *stream, struct snd_compr_params *params)
sound/core/compress_offload.c
628
if (stream->direction == SND_COMPRESS_ACCEL)
sound/core/compress_offload.c
648
snd_compr_set_params(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
652
if (stream->runtime->state == SNDRV_PCM_STATE_OPEN || stream->next_track) {
sound/core/compress_offload.c
663
retval = snd_compress_check_input(stream, params);
sound/core/compress_offload.c
667
retval = snd_compr_allocate_buffer(stream, params);
sound/core/compress_offload.c
671
retval = stream->ops->set_params(stream, params);
sound/core/compress_offload.c
675
if (stream->next_track)
sound/core/compress_offload.c
678
stream->metadata_set = false;
sound/core/compress_offload.c
679
stream->next_track = false;
sound/core/compress_offload.c
681
stream->runtime->state = SNDRV_PCM_STATE_SETUP;
sound/core/compress_offload.c
689
snd_compr_get_params(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
693
if (!stream->ops->get_params)
sound/core/compress_offload.c
700
retval = stream->ops->get_params(stream, params);
sound/core/compress_offload.c
709
snd_compr_get_metadata(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
714
if (!stream->ops->get_metadata)
sound/core/compress_offload.c
720
retval = stream->ops->get_metadata(stream, &metadata);
sound/core/compress_offload.c
731
snd_compr_set_metadata(struct snd_compr_stream *stream, unsigned long arg)
sound/core/compress_offload.c
736
if (!stream->ops->set_metadata)
sound/core/compress_offload.c
745
retval = stream->ops->set_metadata(stream, &metadata);
sound/core/compress_offload.c
746
stream->metadata_set = true;
sound/core/compress_offload.c
751
static inline int snd_compr_tstamp(struct snd_compr_stream *stream,
sound/core/compress_offload.c
760
ret = snd_compr_update_tstamp(stream, &tstamp64);
sound/core/compress_offload.c
774
static int snd_compr_pause(struct snd_compr_stream *stream)
sound/core/compress_offload.c
778
switch (stream->runtime->state) {
sound/core/compress_offload.c
780
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH);
sound/core/compress_offload.c
782
stream->runtime->state = SNDRV_PCM_STATE_PAUSED;
sound/core/compress_offload.c
785
if (!stream->device->use_pause_in_draining)
sound/core/compress_offload.c
787
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH);
sound/core/compress_offload.c
789
stream->pause_in_draining = true;
sound/core/compress_offload.c
797
static int snd_compr_resume(struct snd_compr_stream *stream)
sound/core/compress_offload.c
801
switch (stream->runtime->state) {
sound/core/compress_offload.c
803
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_RELEASE);
sound/core/compress_offload.c
805
stream->runtime->state = SNDRV_PCM_STATE_RUNNING;
sound/core/compress_offload.c
808
if (!stream->pause_in_draining)
sound/core/compress_offload.c
810
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_RELEASE);
sound/core/compress_offload.c
812
stream->pause_in_draining = false;
sound/core/compress_offload.c
820
static int snd_compr_start(struct snd_compr_stream *stream)
sound/core/compress_offload.c
824
switch (stream->runtime->state) {
sound/core/compress_offload.c
826
if (stream->direction != SND_COMPRESS_CAPTURE)
sound/core/compress_offload.c
835
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_START);
sound/core/compress_offload.c
837
stream->runtime->state = SNDRV_PCM_STATE_RUNNING;
sound/core/compress_offload.c
841
static int snd_compr_stop(struct snd_compr_stream *stream)
sound/core/compress_offload.c
845
switch (stream->runtime->state) {
sound/core/compress_offload.c
854
retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_STOP);
sound/core/compress_offload.c
857
stream->partial_drain = false;
sound/core/compress_offload.c
858
stream->metadata_set = false;
sound/core/compress_offload.c
859
stream->pause_in_draining = false;
sound/core/compress_offload.c
860
snd_compr_drain_notify(stream);
sound/core/compress_offload.c
861
stream->runtime->total_bytes_available = 0;
sound/core/compress_offload.c
862
stream->runtime->total_bytes_transferred = 0;
sound/core/compress_offload.c
869
struct snd_compr_stream *stream;
sound/core/compress_offload.c
871
stream = container_of(work, struct snd_compr_stream, error_work.work);
sound/core/compress_offload.c
873
guard(mutex)(&stream->device->lock);
sound/core/compress_offload.c
875
stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_STOP);
sound/core/compress_offload.c
876
wake_up(&stream->runtime->sleep);
sound/core/compress_offload.c
890
int snd_compr_stop_error(struct snd_compr_stream *stream,
sound/core/compress_offload.c
893
if (stream->runtime->state == state)
sound/core/compress_offload.c
896
stream->runtime->state = state;
sound/core/compress_offload.c
900
queue_delayed_work(system_power_efficient_wq, &stream->error_work, 0);
sound/core/compress_offload.c
906
static int snd_compress_wait_for_drain(struct snd_compr_stream *stream)
sound/core/compress_offload.c
918
stream->runtime->state = SNDRV_PCM_STATE_DRAINING;
sound/core/compress_offload.c
919
mutex_unlock(&stream->device->lock);
sound/core/compress_offload.c
927
ret = wait_event_interruptible(stream->runtime->sleep,
sound/core/compress_offload.c
928
(stream->runtime->state != SNDRV_PCM_STATE_DRAINING));
sound/core/compress_offload.c
935
wake_up(&stream->runtime->sleep);
sound/core/compress_offload.c
936
mutex_lock(&stream->device->lock);
sound/core/compress_offload.c
941
static int snd_compr_drain(struct snd_compr_stream *stream)
sound/core/compress_offload.c
945
switch (stream->runtime->state) {
sound/core/compress_offload.c
957
retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_DRAIN);
sound/core/compress_offload.c
960
wake_up(&stream->runtime->sleep);
sound/core/compress_offload.c
964
return snd_compress_wait_for_drain(stream);
sound/core/compress_offload.c
967
static int snd_compr_next_track(struct snd_compr_stream *stream)
sound/core/compress_offload.c
972
if (stream->runtime->state != SNDRV_PCM_STATE_RUNNING)
sound/core/compress_offload.c
976
if (stream->direction == SND_COMPRESS_CAPTURE)
sound/core/compress_offload.c
982
if (stream->metadata_set == false)
sound/core/compress_offload.c
985
retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_NEXT_TRACK);
sound/core/compress_offload.c
988
stream->metadata_set = false;
sound/core/compress_offload.c
989
stream->next_track = true;
sound/core/compress_offload.c
993
static int snd_compr_partial_drain(struct snd_compr_stream *stream)
sound/core/compress_offload.c
997
switch (stream->runtime->state) {
sound/core/oss/pcm_oss.c
1008
substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/core/oss/pcm_oss.c
1014
sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/core/oss/pcm_oss.c
2023
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/oss/pcm_oss.c
2183
static int snd_pcm_oss_get_ptr(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct count_info __user * _info)
sound/core/oss/pcm_oss.c
2194
substream = pcm_oss_file->streams[stream];
sound/core/oss/pcm_oss.c
2207
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_oss.c
2231
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/oss/pcm_oss.c
2236
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_oss.c
2253
static int snd_pcm_oss_get_space(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct audio_buf_info __user *_info)
sound/core/oss/pcm_oss.c
2264
substream = pcm_oss_file->streams[stream];
sound/core/oss/pcm_oss.c
2278
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_oss.c
2286
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_oss.c
2316
static int snd_pcm_oss_get_mapbuf(struct snd_pcm_oss_file *pcm_oss_file, int stream, struct buffmem_desc __user * _info)
sound/core/oss/pcm_oss.c
2333
static void snd_pcm_oss_look_for_setup(struct snd_pcm *pcm, int stream,
sound/core/oss/pcm_oss.c
2339
guard(mutex)(&pcm->streams[stream].oss.setup_mutex);
sound/core/oss/pcm_oss.c
2341
for (setup = pcm->streams[stream].oss.setup_list; setup;
sound/core/oss/pcm_oss.c
3060
int stream;
sound/core/oss/pcm_oss.c
3061
for (stream = 0; stream < 2; ++stream) {
sound/core/oss/pcm_oss.c
3063
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/oss/pcm_oss.c
3084
int stream;
sound/core/oss/pcm_oss.c
3085
for (stream = 0; stream < 2; ++stream) {
sound/core/oss/pcm_oss.c
3086
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/oss/pcm_oss.c
991
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_plugin.c
154
plugin->stream = snd_pcm_plug_stream(plug);
sound/core/oss/pcm_plugin.c
162
if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/oss/pcm_plugin.c
366
int stream = snd_pcm_plug_stream(plug);
sound/core/oss/pcm_plugin.c
370
switch (stream) {
sound/core/oss/pcm_plugin.c
42
if (plugin->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_plugin.c
551
int stream = snd_pcm_plug_stream(plug);
sound/core/oss/pcm_plugin.c
555
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/oss/pcm_plugin.c
574
v->wanted = (stream == SNDRV_PCM_STREAM_CAPTURE);
sound/core/oss/pcm_plugin.h
12
#define snd_pcm_plug_stream(plug) ((plug)->stream)
sound/core/oss/pcm_plugin.h
41
int stream;
sound/core/pcm.c
104
int stream;
sound/core/pcm.c
112
if (get_user(stream, &info->stream))
sound/core/pcm.c
114
if (stream < 0 || stream > 1)
sound/core/pcm.c
116
stream = array_index_nospec(stream, 2);
sound/core/pcm.c
123
pstr = &pcm->streams[stream];
sound/core/pcm.c
271
static const char *snd_pcm_stream_name(int stream)
sound/core/pcm.c
273
return snd_pcm_stream_names[stream];
sound/core/pcm.c
349
snd_iprintf(buffer, "stream: %s\n", snd_pcm_stream_name(info->stream));
sound/core/pcm.c
503
pstr->stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
sound/core/pcm.c
627
int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count)
sound/core/pcm.c
630
struct snd_pcm_str *pstr = &pcm->streams[stream];
sound/core/pcm.c
636
pstr->stream = stream;
sound/core/pcm.c
646
stream == SNDRV_PCM_STREAM_PLAYBACK ? 'p' : 'c');
sound/core/pcm.c
666
substream->stream = stream;
sound/core/pcm.c
875
int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
sound/core/pcm.c
888
if (snd_BUG_ON(stream != SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm.c
889
stream != SNDRV_PCM_STREAM_CAPTURE))
sound/core/pcm.c
892
pstr = &pcm->streams[stream];
sound/core/pcm.c
900
int opposite = !stream;
sound/core/pcm_compat.c
294
if (substream->stream != dir)
sound/core/pcm_compat.c
339
if (substream->stream != dir)
sound/core/pcm_dmaengine.c
111
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/pcm_dmaengine.c
428
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_dmaengine.c
75
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/pcm_lib.c
144
substream->stream ? 'c' : 'p',
sound/core/pcm_lib.c
1953
int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/core/pcm_lib.c
2075
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_lib.c
2106
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_lib.c
2289
is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/core/pcm_lib.c
2567
info->pcm->streams[info->stream].chmap_kctl = NULL;
sound/core/pcm_lib.c
2583
int snd_pcm_add_chmap_ctls(struct snd_pcm *pcm, int stream,
sound/core/pcm_lib.c
259
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_lib.c
2602
if (WARN_ON(pcm->streams[stream].chmap_kctl))
sound/core/pcm_lib.c
2608
info->stream = stream;
sound/core/pcm_lib.c
2611
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_lib.c
2616
knew.count = pcm->streams[stream].substream_count;
sound/core/pcm_lib.c
2627
pcm->streams[stream].chmap_kctl = info->kctl;
sound/core/pcm_lib.c
404
substream->stream, (long)pos,
sound/core/pcm_lib.c
458
substream->stream, (long)delta,
sound/core/pcm_lib.c
470
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm_lib.c
513
struct snd_pcm_str *stream = &pcm->streams[direction];
sound/core/pcm_lib.c
516
for (substream = stream->substream; substream != NULL; substream = substream->next)
sound/core/pcm_local.h
38
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_local.h
47
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_memory.c
108
substream->stream, size, dmab);
sound/core/pcm_memory.c
118
substream->stream ? 'c' : 'p', substream->number,
sound/core/pcm_memory.c
143
int stream;
sound/core/pcm_memory.c
145
for_each_pcm_substream(pcm, stream, substream)
sound/core/pcm_memory.c
212
substream->stream,
sound/core/pcm_memory.c
217
substream->stream ? 'c' : 'p', substream->number,
sound/core/pcm_memory.c
302
int stream, err;
sound/core/pcm_memory.c
304
for_each_pcm_substream(pcm, stream, substream) {
sound/core/pcm_memory.c
458
substream->stream,
sound/core/pcm_memory.c
463
substream->stream ? 'c' : 'p', substream->number,
sound/core/pcm_native.c
1024
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_native.c
1444
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm_native.c
1484
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm_native.c
1771
int stream, err = 0;
sound/core/pcm_native.c
1776
for_each_pcm_substream(pcm, stream, substream) {
sound/core/pcm_native.c
1793
for_each_pcm_substream(pcm, stream, substream)
sound/core/pcm_native.c
1823
substream->stream != SNDRV_PCM_STREAM_PLAYBACK))
sound/core/pcm_native.c
1929
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm_native.c
2046
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/pcm_native.c
2159
if (s->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_native.c
229
info->stream = substream->stream;
sound/core/pcm_native.c
2767
int snd_pcm_open_substream(struct snd_pcm *pcm, int stream,
sound/core/pcm_native.c
2774
err = snd_pcm_attach_substream(pcm, stream, file, &substream);
sound/core/pcm_native.c
2818
int stream)
sound/core/pcm_native.c
2824
err = snd_pcm_open_substream(pcm, stream, file, &substream);
sound/core/pcm_native.c
2869
static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream)
sound/core/pcm_native.c
2889
err = snd_pcm_open_file(file, pcm, stream);
sound/core/pcm_native.c
2958
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/core/pcm_native.c
3293
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_native.c
3322
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_native.c
3511
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/core/pcm_native.c
3676
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/core/pcm_native.c
3700
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/core/pcm_native.c
3978
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/core/pcm_native.c
70
static int snd_pcm_open(struct file *file, struct snd_pcm *pcm, int stream);
sound/core/pcm_native.c
997
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/core/pcm_param_trace.h
46
__entry->direction = substream->stream;
sound/core/pcm_param_trace.h
96
__entry->direction = substream->stream;
sound/core/pcm_timer.c
107
tid.subdevice = (substream->number << 1) | (substream->stream & 1);
sound/core/pcm_timer.c
111
snd_pcm_direction_name(substream->stream),
sound/core/pcm_trace.h
102
__entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
sound/core/pcm_trace.h
113
__field( unsigned int, stream )
sound/core/pcm_trace.h
124
__entry->stream = (substream)->stream;
sound/core/pcm_trace.h
127
__entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playback_avail(substream->runtime);
sound/core/pcm_trace.h
134
__entry->stream ? "c" : "p",
sound/core/pcm_trace.h
19
__field( unsigned int, stream )
sound/core/pcm_trace.h
31
__entry->stream = (substream)->stream;
sound/core/pcm_trace.h
40
__entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
sound/core/pcm_trace.h
57
__field( unsigned int, stream )
sound/core/pcm_trace.h
67
__entry->stream = (substream)->stream;
sound/core/pcm_trace.h
75
__entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
sound/core/pcm_trace.h
90
__field( unsigned int, stream )
sound/core/pcm_trace.h
97
__entry->stream = (substream)->stream;
sound/core/rawmidi.c
171
if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
sound/core/rawmidi.c
1798
struct snd_rawmidi_str *stream,
sound/core/rawmidi.c
1809
substream->stream = direction;
sound/core/rawmidi.c
1812
substream->pstr = stream;
sound/core/rawmidi.c
1814
list_add_tail(&substream->list, &stream->substreams);
sound/core/rawmidi.c
1815
stream->substream_count++;
sound/core/rawmidi.c
1909
static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream)
sound/core/rawmidi.c
1913
while (!list_empty(&stream->substreams)) {
sound/core/rawmidi.c
1914
substream = list_entry(stream->substreams.next, struct snd_rawmidi_substream, list);
sound/core/rawmidi.c
2093
void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
sound/core/rawmidi.c
2098
list_for_each_entry(substream, &rmidi->streams[stream].substreams, list)
sound/core/rawmidi.c
307
int stream, int mode,
sound/core/rawmidi.c
311
struct snd_rawmidi_str *s = &rmidi->streams[stream];
sound/core/rawmidi.c
317
if (!(rmidi->info_flags & info_flags[stream]))
sound/core/rawmidi.c
324
if (stream == SNDRV_RAWMIDI_STREAM_INPUT ||
sound/core/rawmidi.c
359
rmidi->streams[substream->stream].substream_opened++;
sound/core/rawmidi.c
54
s32 stream;
sound/core/rawmidi.c
541
if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
sound/core/rawmidi.c
566
rmidi->streams[substream->stream].substream_opened--;
sound/core/rawmidi.c
630
info->stream = substream->stream;
sound/core/rawmidi.c
65
int stream;
sound/core/rawmidi.c
668
if (info->stream < 0 || info->stream > 1)
sound/core/rawmidi.c
670
info->stream = array_index_nospec(info->stream, 2);
sound/core/rawmidi.c
671
pstr = &rmidi->streams[info->stream];
sound/core/rawmidi.c
698
if (get_user(info.stream, &_info->stream))
sound/core/rawmidi.c
795
status->stream = SNDRV_RAWMIDI_STREAM_OUTPUT;
sound/core/rawmidi.c
807
status->stream = SNDRV_RAWMIDI_STREAM_INPUT;
sound/core/rawmidi.c
827
switch (status32.stream) {
sound/core/rawmidi.c
845
.stream = status64.stream,
sound/core/rawmidi.c
867
switch (status.stream) {
sound/core/rawmidi.c
903
int stream;
sound/core/rawmidi.c
906
if (get_user(stream, &info->stream))
sound/core/rawmidi.c
908
switch (stream) {
sound/core/rawmidi.c
932
switch (params.stream) {
sound/core/rawmidi_compat.c
12
s32 stream;
sound/core/rawmidi_compat.c
26
if (get_user(params.stream, &src->stream) ||
sound/core/rawmidi_compat.c
33
switch (params.stream) {
sound/core/rawmidi_compat.c
47
s32 stream;
sound/core/rawmidi_compat.c
63
if (get_user(status.stream, &src->stream))
sound/core/rawmidi_compat.c
66
switch (status.stream) {
sound/core/rawmidi_compat.c
84
.stream = status.stream,
sound/core/seq/seq_midi.c
288
info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT;
sound/core/seq/seq_midi.c
292
info->stream = SNDRV_RAWMIDI_STREAM_INPUT;
sound/core/seq/seq_midi.c
343
info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT;
sound/core/seq/seq_midi.c
345
info->stream = SNDRV_RAWMIDI_STREAM_INPUT;
sound/core/ump.c
1149
int dir = substream->stream;
sound/core/ump.c
1178
int dir = substream->stream;
sound/core/ump.c
1195
int dir = substream->stream;
sound/core/ump.c
258
int dir = substream->stream;
sound/core/ump.c
273
int dir = substream->stream;
sound/core/ump.c
284
int dir = substream->stream;
sound/drivers/aloop.c
1056
if (cable->streams[!substream->stream]) {
sound/drivers/aloop.c
1059
cable->streams[substream->stream] = NULL;
sound/drivers/aloop.c
111
int stream;
sound/drivers/aloop.c
1175
cable->snd_timer.stream = dpcm->substream->stream;
sound/drivers/aloop.c
1326
cable->streams[substream->stream] = dpcm;
sound/drivers/aloop.c
197
if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/drivers/aloop.c
337
static int loopback_check_format(struct loopback_cable *cable, int stream)
sound/drivers/aloop.c
351
if (stream == SNDRV_PCM_STREAM_CAPTURE || !dpcm_play)
sound/drivers/aloop.c
367
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/drivers/aloop.c
417
int err = 0, stream = 1 << substream->stream;
sound/drivers/aloop.c
421
err = loopback_check_format(cable, substream->stream);
sound/drivers/aloop.c
428
cable->running |= stream;
sound/drivers/aloop.c
429
cable->pause &= ~stream;
sound/drivers/aloop.c
432
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/drivers/aloop.c
437
cable->running &= ~stream;
sound/drivers/aloop.c
438
cable->pause &= ~stream;
sound/drivers/aloop.c
441
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/drivers/aloop.c
447
cable->pause |= stream;
sound/drivers/aloop.c
450
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/drivers/aloop.c
457
cable->pause &= ~stream;
sound/drivers/aloop.c
460
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/drivers/aloop.c
511
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/drivers/aloop.c
525
if (!(cable->valid & ~(1 << substream->stream)) ||
sound/drivers/aloop.c
527
substream->stream == SNDRV_PCM_STREAM_PLAYBACK))
sound/drivers/aloop.c
529
cable->valid |= 1 << substream->stream;
sound/drivers/aloop.c
717
(1 << dpcm->substream->stream)) {
sound/drivers/aloop.c
914
snd_pcm_direction_name(cable->snd_timer.stream));
sound/drivers/aloop.c
971
cable->valid &= ~(1 << substream->stream);
sound/drivers/aloop.c
978
return substream->stream;
sound/drivers/aloop.c
980
return !substream->stream;
sound/drivers/dummy.c
569
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/drivers/dummy.c
640
return virt_to_page(dummy_page[substream->stream]); /* the same page */
sound/drivers/pcmtest.c
355
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !v_iter->is_buf_corrupted)
sound/drivers/pcmtest.c
357
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/drivers/serial-generic.c
280
static void snd_serial_generic_substreams(struct snd_rawmidi_str *stream, int dev_num)
sound/drivers/serial-generic.c
284
list_for_each_entry(substream, &stream->substreams, list) {
sound/drivers/serial-u16550.c
806
static void snd_uart16550_substreams(struct snd_rawmidi_str *stream)
sound/drivers/serial-u16550.c
810
list_for_each_entry(substream, &stream->substreams, list) {
sound/firewire/amdtp-stream-trace.h
80
#define TRACE_INCLUDE_FILE amdtp-stream-trace
sound/firewire/bebob/bebob_pcm.c
103
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/bebob/bebob_stream.c
406
static int start_stream(struct snd_bebob *bebob, struct amdtp_stream *stream)
sound/firewire/bebob/bebob_stream.c
411
if (stream == &bebob->rx_stream)
sound/firewire/bebob/bebob_stream.c
418
err = map_data_channels(bebob, stream);
sound/firewire/bebob/bebob_stream.c
427
return amdtp_domain_add_stream(&bebob->domain, stream,
sound/firewire/bebob/bebob_stream.c
431
static int init_stream(struct snd_bebob *bebob, struct amdtp_stream *stream)
sound/firewire/bebob/bebob_stream.c
439
if (stream == &bebob->tx_stream) {
sound/firewire/bebob/bebob_stream.c
449
if (stream == &bebob->tx_stream) {
sound/firewire/bebob/bebob_stream.c
458
err = amdtp_am824_init(stream, bebob->unit, dir_stream, flags);
sound/firewire/bebob/bebob_stream.c
467
static void destroy_stream(struct snd_bebob *bebob, struct amdtp_stream *stream)
sound/firewire/bebob/bebob_stream.c
469
amdtp_stream_destroy(stream);
sound/firewire/bebob/bebob_stream.c
471
if (stream == &bebob->tx_stream)
sound/firewire/bebob/bebob_stream.c
500
static int keep_resources(struct snd_bebob *bebob, struct amdtp_stream *stream,
sound/firewire/bebob/bebob_stream.c
508
if (stream == &bebob->tx_stream) {
sound/firewire/bebob/bebob_stream.c
518
err = amdtp_am824_set_parameters(stream, rate, pcm_channels, midi_ports, false);
sound/firewire/bebob/bebob_stream.c
522
return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream));
sound/firewire/dice/dice-pcm.c
132
struct amdtp_stream *stream;
sound/firewire/dice/dice-pcm.c
135
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/dice/dice-pcm.c
138
stream = &dice->tx_stream[index];
sound/firewire/dice/dice-pcm.c
142
stream = &dice->rx_stream[index];
sound/firewire/dice/dice-pcm.c
161
return amdtp_am824_add_pcm_hw_constraints(stream, runtime);
sound/firewire/dice/dice-pcm.c
29
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/firewire/dice/dice-pcm.c
298
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
305
amdtp_stream_pcm_prepare(stream);
sound/firewire/dice/dice-pcm.c
312
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
319
amdtp_stream_pcm_prepare(stream);
sound/firewire/dice/dice-pcm.c
327
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
331
amdtp_stream_pcm_trigger(stream, substream);
sound/firewire/dice/dice-pcm.c
334
amdtp_stream_pcm_trigger(stream, NULL);
sound/firewire/dice/dice-pcm.c
345
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
349
amdtp_stream_pcm_trigger(stream, substream);
sound/firewire/dice/dice-pcm.c
352
amdtp_stream_pcm_trigger(stream, NULL);
sound/firewire/dice/dice-pcm.c
364
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
366
return amdtp_domain_stream_pcm_pointer(&dice->domain, stream);
sound/firewire/dice/dice-pcm.c
371
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
373
return amdtp_domain_stream_pcm_pointer(&dice->domain, stream);
sound/firewire/dice/dice-pcm.c
379
struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
381
return amdtp_domain_stream_pcm_ack(&dice->domain, stream);
sound/firewire/dice/dice-pcm.c
387
struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
sound/firewire/dice/dice-pcm.c
389
return amdtp_domain_stream_pcm_ack(&dice->domain, stream);
sound/firewire/dice/dice-pcm.c
67
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/firewire/dice/dice-proc.c
115
unsigned int quadlets, stream, i;
sound/firewire/dice/dice-proc.c
173
for (stream = 0; stream < tx_rx_header.number; ++stream) {
sound/firewire/dice/dice-proc.c
175
stream * tx_rx_header.size,
sound/firewire/dice/dice-proc.c
178
snd_iprintf(buffer, "tx %u:\n", stream);
sound/firewire/dice/dice-proc.c
199
for (stream = 0; stream < tx_rx_header.number; ++stream) {
sound/firewire/dice/dice-proc.c
201
stream * tx_rx_header.size,
sound/firewire/dice/dice-proc.c
204
snd_iprintf(buffer, "rx %u:\n", stream);
sound/firewire/dice/dice-stream.c
155
static int keep_resources(struct snd_dice *dice, struct amdtp_stream *stream,
sound/firewire/dice/dice-stream.c
177
err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports,
sound/firewire/dice/dice-stream.c
186
amdtp_am824_set_pcm_position(stream, i, i * 2);
sound/firewire/dice/dice-stream.c
187
amdtp_am824_set_pcm_position(stream, i + pcm_chs,
sound/firewire/dice/dice-stream.c
193
amdtp_stream_get_max_payload(stream),
sound/firewire/dice/dice-stream.c
211
struct amdtp_stream *stream;
sound/firewire/dice/dice-stream.c
218
stream = &dice->tx_stream[i];
sound/firewire/dice/dice-stream.c
226
stream = &dice->rx_stream[i];
sound/firewire/dice/dice-stream.c
247
err = keep_resources(dice, stream, resources, rate, pcm_chs,
sound/firewire/dice/dice-stream.c
334
struct amdtp_stream *stream;
sound/firewire/dice/dice-stream.c
339
stream = dice->tx_stream + i;
sound/firewire/dice/dice-stream.c
342
stream = dice->rx_stream + i;
sound/firewire/dice/dice-stream.c
368
err = amdtp_domain_add_stream(&dice->domain, stream,
sound/firewire/dice/dice-stream.c
491
struct amdtp_stream *stream;
sound/firewire/dice/dice-stream.c
496
stream = &dice->tx_stream[index];
sound/firewire/dice/dice-stream.c
499
stream = &dice->rx_stream[index];
sound/firewire/dice/dice-stream.c
508
err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING);
sound/firewire/dice/dice-stream.c
510
amdtp_stream_destroy(stream);
sound/firewire/dice/dice-stream.c
525
struct amdtp_stream *stream;
sound/firewire/dice/dice-stream.c
529
stream = &dice->tx_stream[index];
sound/firewire/dice/dice-stream.c
532
stream = &dice->rx_stream[index];
sound/firewire/dice/dice-stream.c
536
amdtp_stream_destroy(stream);
sound/firewire/digi00x/digi00x-pcm.c
66
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/digi00x/digi00x-stream.c
188
static int keep_resources(struct snd_dg00x *dg00x, struct amdtp_stream *stream,
sound/firewire/digi00x/digi00x-stream.c
203
if (stream == &dg00x->tx_stream)
sound/firewire/digi00x/digi00x-stream.c
208
err = amdtp_dot_set_parameters(stream, rate,
sound/firewire/digi00x/digi00x-stream.c
214
amdtp_stream_get_max_payload(stream),
sound/firewire/fireface/ff-midi.c
110
stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/fireface/ff-midi.c
111
set_midi_substream_names(stream, ff->card->shortname);
sound/firewire/fireface/ff-midi.c
116
stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/fireface/ff-midi.c
117
set_midi_substream_names(stream, ff->card->shortname);
sound/firewire/fireface/ff-midi.c
70
static void set_midi_substream_names(struct snd_rawmidi_str *stream,
sound/firewire/fireface/ff-midi.c
75
list_for_each_entry(substream, &stream->substreams, list) {
sound/firewire/fireface/ff-midi.c
94
struct snd_rawmidi_str *stream;
sound/firewire/fireface/ff-pcm.c
112
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/fireworks/fireworks_pcm.c
140
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/fireworks/fireworks_stream.c
11
static int init_stream(struct snd_efw *efw, struct amdtp_stream *stream)
sound/firewire/fireworks/fireworks_stream.c
159
static int keep_resources(struct snd_efw *efw, struct amdtp_stream *stream,
sound/firewire/fireworks/fireworks_stream.c
167
if (stream == &efw->tx_stream) {
sound/firewire/fireworks/fireworks_stream.c
177
err = amdtp_am824_set_parameters(stream, rate, pcm_channels,
sound/firewire/fireworks/fireworks_stream.c
18
if (stream == &efw->tx_stream) {
sound/firewire/fireworks/fireworks_stream.c
182
return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream));
sound/firewire/fireworks/fireworks_stream.c
32
err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING | CIP_UNAWARE_SYT);
sound/firewire/fireworks/fireworks_stream.c
34
amdtp_stream_destroy(stream);
sound/firewire/fireworks/fireworks_stream.c
39
if (stream == &efw->tx_stream) {
sound/firewire/fireworks/fireworks_stream.c
65
static int start_stream(struct snd_efw *efw, struct amdtp_stream *stream,
sound/firewire/fireworks/fireworks_stream.c
71
if (stream == &efw->tx_stream)
sound/firewire/fireworks/fireworks_stream.c
82
err = amdtp_domain_add_stream(&efw->domain, stream,
sound/firewire/fireworks/fireworks_stream.c
94
static void destroy_stream(struct snd_efw *efw, struct amdtp_stream *stream)
sound/firewire/fireworks/fireworks_stream.c
96
amdtp_stream_destroy(stream);
sound/firewire/fireworks/fireworks_stream.c
98
if (stream == &efw->tx_stream)
sound/firewire/motu/motu-pcm.c
100
struct amdtp_stream *stream;
sound/firewire/motu/motu-pcm.c
104
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/motu/motu-pcm.c
106
stream = &motu->tx_stream;
sound/firewire/motu/motu-pcm.c
110
stream = &motu->rx_stream;
sound/firewire/motu/motu-pcm.c
127
return amdtp_motu_add_pcm_hw_constraints(stream, runtime);
sound/firewire/motu/motu-stream.c
29
struct amdtp_stream *stream)
sound/firewire/motu/motu-stream.c
36
if (stream == &motu->rx_stream) {
sound/firewire/motu/motu-stream.c
52
err = amdtp_motu_set_parameters(stream, rate, midi_ports,
sound/firewire/motu/motu-stream.c
58
amdtp_stream_get_max_payload(stream),
sound/firewire/oxfw/oxfw-pcm.c
114
struct amdtp_stream *stream;
sound/firewire/oxfw/oxfw-pcm.c
117
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/oxfw/oxfw-pcm.c
119
stream = &oxfw->tx_stream;
sound/firewire/oxfw/oxfw-pcm.c
123
stream = &oxfw->rx_stream;
sound/firewire/oxfw/oxfw-pcm.c
141
err = amdtp_am824_add_pcm_hw_constraints(stream, runtime);
sound/firewire/oxfw/oxfw-pcm.c
153
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/firewire/oxfw/oxfw-scs1x.c
100
struct snd_rawmidi_substream *stream;
sound/firewire/oxfw/oxfw-scs1x.c
114
stream = READ_ONCE(scs->input);
sound/firewire/oxfw/oxfw-scs1x.c
115
if (stream)
sound/firewire/oxfw/oxfw-scs1x.c
116
midi_input_packet(scs, stream, data, length);
sound/firewire/oxfw/oxfw-scs1x.c
177
struct snd_rawmidi_substream *stream;
sound/firewire/oxfw/oxfw-scs1x.c
185
stream = READ_ONCE(scs->output);
sound/firewire/oxfw/oxfw-scs1x.c
186
if (!stream || scs->error) {
sound/firewire/oxfw/oxfw-scs1x.c
197
if (snd_rawmidi_transmit(stream, &byte, 1) != 1) {
sound/firewire/oxfw/oxfw-scs1x.c
277
static int midi_capture_open(struct snd_rawmidi_substream *stream)
sound/firewire/oxfw/oxfw-scs1x.c
282
static int midi_capture_close(struct snd_rawmidi_substream *stream)
sound/firewire/oxfw/oxfw-scs1x.c
287
static void midi_capture_trigger(struct snd_rawmidi_substream *stream, int up)
sound/firewire/oxfw/oxfw-scs1x.c
289
struct fw_scs1x *scs = stream->rmidi->private_data;
sound/firewire/oxfw/oxfw-scs1x.c
293
WRITE_ONCE(scs->input, stream);
sound/firewire/oxfw/oxfw-scs1x.c
299
static int midi_playback_open(struct snd_rawmidi_substream *stream)
sound/firewire/oxfw/oxfw-scs1x.c
304
static int midi_playback_close(struct snd_rawmidi_substream *stream)
sound/firewire/oxfw/oxfw-scs1x.c
309
static void midi_playback_trigger(struct snd_rawmidi_substream *stream, int up)
sound/firewire/oxfw/oxfw-scs1x.c
311
struct fw_scs1x *scs = stream->rmidi->private_data;
sound/firewire/oxfw/oxfw-scs1x.c
321
WRITE_ONCE(scs->output, stream);
sound/firewire/oxfw/oxfw-scs1x.c
327
static void midi_playback_drain(struct snd_rawmidi_substream *stream)
sound/firewire/oxfw/oxfw-scs1x.c
329
struct fw_scs1x *scs = stream->rmidi->private_data;
sound/firewire/oxfw/oxfw-scs1x.c
44
static void midi_input_escaped_byte(struct snd_rawmidi_substream *stream,
sound/firewire/oxfw/oxfw-scs1x.c
51
snd_rawmidi_receive(stream, nibbles, 2);
sound/firewire/oxfw/oxfw-scs1x.c
55
struct snd_rawmidi_substream *stream, u8 byte)
sound/firewire/oxfw/oxfw-scs1x.c
60
midi_input_escaped_byte(stream, byte);
sound/firewire/oxfw/oxfw-scs1x.c
63
snd_rawmidi_receive(stream, &eox, sizeof(eox));
sound/firewire/oxfw/oxfw-scs1x.c
65
snd_rawmidi_receive(stream, sysex_escape_prefix,
sound/firewire/oxfw/oxfw-scs1x.c
67
midi_input_escaped_byte(stream, 0x00);
sound/firewire/oxfw/oxfw-scs1x.c
68
midi_input_escaped_byte(stream, 0xf9);
sound/firewire/oxfw/oxfw-scs1x.c
71
snd_rawmidi_receive(stream, &byte, 1);
sound/firewire/oxfw/oxfw-scs1x.c
76
struct snd_rawmidi_substream *stream,
sound/firewire/oxfw/oxfw-scs1x.c
84
midi_input_byte(scs, stream, data[i]);
sound/firewire/oxfw/oxfw-scs1x.c
86
snd_rawmidi_receive(stream, sysex_escape_prefix,
sound/firewire/oxfw/oxfw-scs1x.c
89
midi_input_escaped_byte(stream, data[i]);
sound/firewire/oxfw/oxfw-scs1x.c
90
snd_rawmidi_receive(stream, &eox, sizeof(eox));
sound/firewire/oxfw/oxfw-stream.c
103
static int start_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
sound/firewire/oxfw/oxfw-stream.c
108
if (stream == &oxfw->rx_stream)
sound/firewire/oxfw/oxfw-stream.c
117
err = amdtp_domain_add_stream(&oxfw->domain, stream,
sound/firewire/oxfw/oxfw-stream.c
128
struct amdtp_stream *stream)
sound/firewire/oxfw/oxfw-stream.c
134
if (stream == &oxfw->tx_stream)
sound/firewire/oxfw/oxfw-stream.c
140
if ((err >= 0) && used && !amdtp_stream_running(stream)) {
sound/firewire/oxfw/oxfw-stream.c
151
static int init_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
sound/firewire/oxfw/oxfw-stream.c
171
if (stream == &oxfw->tx_stream) {
sound/firewire/oxfw/oxfw-stream.c
192
err = amdtp_am824_init(stream, oxfw->unit, s_dir, flags);
sound/firewire/oxfw/oxfw-stream.c
201
static int keep_resources(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
sound/firewire/oxfw/oxfw-stream.c
210
if (stream == &oxfw->rx_stream) {
sound/firewire/oxfw/oxfw-stream.c
245
err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm,
sound/firewire/oxfw/oxfw-stream.c
250
return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream));
sound/firewire/oxfw/oxfw-stream.c
254
struct amdtp_stream *stream,
sound/firewire/oxfw/oxfw-stream.c
274
if (stream == &oxfw->tx_stream)
sound/firewire/oxfw/oxfw-stream.c
300
err = set_stream_format(oxfw, stream, rate, pcm_channels);
sound/firewire/oxfw/oxfw-stream.c
421
static void destroy_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
sound/firewire/oxfw/oxfw-stream.c
425
if (stream == &oxfw->tx_stream)
sound/firewire/oxfw/oxfw-stream.c
430
amdtp_stream_destroy(stream);
sound/firewire/oxfw/oxfw.h
130
struct amdtp_stream *stream,
sound/firewire/tascam/tascam-midi.c
101
list_for_each_entry(subs, &stream->substreams, list) {
sound/firewire/tascam/tascam-midi.c
114
stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT];
sound/firewire/tascam/tascam-midi.c
117
list_for_each_entry(subs, &stream->substreams, list) {
sound/firewire/tascam/tascam-midi.c
80
struct snd_rawmidi_str *stream;
sound/firewire/tascam/tascam-midi.c
98
stream = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT];
sound/firewire/tascam/tascam-pcm.c
15
struct amdtp_stream *stream;
sound/firewire/tascam/tascam-pcm.c
18
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/firewire/tascam/tascam-pcm.c
20
stream = &tscm->tx_stream;
sound/firewire/tascam/tascam-pcm.c
24
stream = &tscm->rx_stream;
sound/firewire/tascam/tascam-pcm.c
40
return amdtp_tscm_add_pcm_hw_constraints(stream, runtime);
sound/firewire/tascam/tascam-stream.c
282
struct amdtp_stream *stream)
sound/firewire/tascam/tascam-stream.c
288
if (stream == &tscm->tx_stream) {
sound/firewire/tascam/tascam-stream.c
296
err = amdtp_tscm_set_parameters(stream, rate);
sound/firewire/tascam/tascam-stream.c
300
return fw_iso_resources_allocate(resources, amdtp_stream_get_max_payload(stream), speed);
sound/hda/codecs/ca0132.c
1545
hda_nid_t nid, unsigned char stream,
sound/hda/codecs/ca0132.c
1550
converter_stream_channel = (stream << 4) | (channel & 0x0f);
sound/hda/codecs/ca0132.c
6898
&pcm->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/codecs/ca0132.c
7245
info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap
sound/hda/codecs/ca0132.c
7248
info->stream[SNDRV_PCM_STREAM_PLAYBACK] = ca0132_pcm_analog_playback;
sound/hda/codecs/ca0132.c
7249
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dacs[0];
sound/hda/codecs/ca0132.c
7250
info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max =
sound/hda/codecs/ca0132.c
7252
info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture;
sound/hda/codecs/ca0132.c
7253
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1;
sound/hda/codecs/ca0132.c
7254
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
sound/hda/codecs/ca0132.c
7261
info->stream[SNDRV_PCM_STREAM_CAPTURE] =
sound/hda/codecs/ca0132.c
7263
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1;
sound/hda/codecs/ca0132.c
7264
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[1];
sound/hda/codecs/ca0132.c
7270
info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture;
sound/hda/codecs/ca0132.c
7271
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1;
sound/hda/codecs/ca0132.c
7272
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[2];
sound/hda/codecs/ca0132.c
7282
info->stream[SNDRV_PCM_STREAM_PLAYBACK] =
sound/hda/codecs/ca0132.c
7284
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out;
sound/hda/codecs/ca0132.c
7287
info->stream[SNDRV_PCM_STREAM_CAPTURE] =
sound/hda/codecs/ca0132.c
7289
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in;
sound/hda/codecs/ca0132.c
7303
info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0132_pcm_analog_capture;
sound/hda/codecs/ca0132.c
7304
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = 1;
sound/hda/codecs/ca0132.c
7305
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
sound/hda/codecs/ca0132.c
7316
info->stream[SNDRV_PCM_STREAM_PLAYBACK] =
sound/hda/codecs/ca0132.c
7318
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out;
sound/hda/codecs/ca0132.c
7321
info->stream[SNDRV_PCM_STREAM_CAPTURE] =
sound/hda/codecs/ca0132.c
7323
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in;
sound/hda/codecs/generic.c
5752
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK],
sound/hda/codecs/generic.c
5756
info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max =
sound/hda/codecs/generic.c
5760
info->stream[SNDRV_PCM_STREAM_PLAYBACK].chmap =
sound/hda/codecs/generic.c
5764
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE],
sound/hda/codecs/generic.c
5788
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK],
sound/hda/codecs/generic.c
5793
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE],
sound/hda/codecs/generic.c
5818
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK],
sound/hda/codecs/generic.c
5823
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_PLAYBACK],
sound/hda/codecs/generic.c
5826
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE],
sound/hda/codecs/generic.c
5830
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams =
sound/hda/codecs/generic.c
5833
setup_pcm_stream(&info->stream[SNDRV_PCM_STREAM_CAPTURE],
sound/hda/codecs/hdmi/hdmi.c
100
per_pin->pcm->pcm->stream == hinfo)
sound/hda/codecs/hdmi/hdmi.c
1085
hinfo = pcm->stream;
sound/hda/codecs/hdmi/hdmi.c
1863
pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/codecs/hdmi/hdmi.c
83
if (get_pcm_rec(spec, pcm_idx)->stream == hinfo)
sound/hda/codecs/hdmi/simplehdmi.c
28
pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/codecs/hdmi/tegrahdmi.c
179
struct hda_pcm_stream *stream;
sound/hda/codecs/hdmi/tegrahdmi.c
195
stream = &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK];
sound/hda/codecs/hdmi/tegrahdmi.c
196
stream->ops.prepare = tegra_hdmi_pcm_prepare;
sound/hda/codecs/hdmi/tegrahdmi.c
197
stream->ops.cleanup = tegra_hdmi_pcm_cleanup;
sound/hda/codecs/realtek/realtek.c
1092
spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps;
sound/hda/codecs/si3054.c
145
val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK));
sound/hda/codecs/si3054.c
146
val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK));
sound/hda/codecs/si3054.c
192
info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm;
sound/hda/codecs/si3054.c
193
info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm;
sound/hda/codecs/si3054.c
194
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg;
sound/hda/codecs/si3054.c
195
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg;
sound/hda/codecs/via.c
561
if (!info->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams ||
sound/hda/codecs/via.c
564
info->stream[SNDRV_PCM_STREAM_PLAYBACK].formats =
sound/hda/common/codec.c
3029
struct hda_pcm_stream *hinfo = &pcm->stream[str];
sound/hda/common/codec.c
3168
unsigned int stream,
sound/hda/common/codec.c
3176
ret = hinfo->ops.prepare(hinfo, codec, stream, format,
sound/hda/common/codec.c
3278
int stream;
sound/hda/common/codec.c
3280
for_each_pcm_streams(stream) {
sound/hda/common/codec.c
3281
struct hda_pcm_stream *info = &cpcm->stream[stream];
sound/hda/common/codec.c
3314
if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams)
sound/hda/common/controller.c
291
int stream = substream->stream;
sound/hda/common/controller.c
294
if (chip->get_position[stream])
sound/hda/common/controller.c
295
pos = chip->get_position[stream](chip, azx_dev);
sound/hda/common/controller.c
306
if (chip->get_delay[stream])
sound/hda/common/controller.c
307
delay += chip->get_delay[stream](chip, azx_dev, pos);
sound/hda/common/controller.c
378
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/hda/common/controller.c
64
return &apcm->info->stream[substream->stream];
sound/hda/common/controller.c
652
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/hda/common/controller.c
712
cpcm->stream[SNDRV_PCM_STREAM_PLAYBACK].substreams,
sound/hda/common/controller.c
713
cpcm->stream[SNDRV_PCM_STREAM_CAPTURE].substreams,
sound/hda/common/controller.c
734
if (cpcm->stream[s].substreams)
sound/hda/common/controller.c
81
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/hda/common/proc.c
203
unsigned int stream = param_read(codec, nid, AC_PAR_STREAM);
sound/hda/common/proc.c
204
if (pcm == -1 || stream == -1) {
sound/hda/common/proc.c
210
print_pcm_formats(buffer, stream);
sound/hda/common/proc.c
82
if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL)
sound/hda/controllers/intel.c
586
int stream = substream->stream;
sound/hda/controllers/intel.c
590
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/hda/controllers/intel.c
607
chip->get_delay[stream] = NULL;
sound/hda/controllers/intel.c
651
int stream = substream->stream;
sound/hda/controllers/intel.c
667
if (chip->get_position[stream])
sound/hda/controllers/intel.c
668
pos = chip->get_position[stream](chip, azx_dev);
sound/hda/controllers/intel.c
674
chip->get_position[stream] = azx_get_pos_lpib;
sound/hda/controllers/intel.c
679
chip->get_delay[stream] = NULL;
sound/hda/controllers/intel.c
681
chip->get_position[stream] = azx_get_pos_posbuf;
sound/hda/controllers/intel.c
683
chip->get_delay[stream] = azx_get_delay_from_lpib;
sound/hda/controllers/intel.c
813
if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/hda/controllers/intel.c
882
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/hda/core/device.c
1001
unsigned int val = 0, rate, stream;
sound/hda/core/device.c
1017
stream = query_stream_param(codec, nid);
sound/hda/core/device.c
1018
if (!stream)
sound/hda/core/device.c
1021
if (stream & AC_SUPFMT_PCM) {
sound/hda/core/ext/controller.c
279
int stream)
sound/hda/core/ext/controller.c
281
snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream);
sound/hda/core/ext/controller.c
291
int stream)
sound/hda/core/ext/controller.c
293
snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0);
sound/hda/core/ext/stream.c
271
if (hstream->direction != substream->stream)
sound/hda/core/ext/stream.c
306
if (hstream->direction != substream->stream)
sound/hda/core/stream.c
199
struct hdac_stream *stream;
sound/hda/core/stream.c
201
list_for_each_entry(stream, &bus->stream_list, list)
sound/hda/core/stream.c
202
snd_hdac_stream_stop(stream);
sound/hda/core/stream.c
368
int key = (substream->number << 2) | (substream->stream + 1);
sound/hda/core/stream.c
375
if (azx_dev->direction != substream->stream)
sound/isa/sb/sb8_main.c
466
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/isa/sb/sb8_main.c
494
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/isa/sb/sb8_main.c
524
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/mips/sgio2audio.c
443
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/mips/sgio2audio.c
589
switch (substream->stream) {
sound/pci/ac97/ac97_pcm.c
153
if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/ac97/ac97_pcm.c
472
rpcm->stream = pcm->stream;
sound/pci/ac97/ac97_pcm.c
483
if (pcm->spdif && pcm->stream == 0)
sound/pci/ac97/ac97_pcm.c
486
tmp = avail_slots[pcm->stream][j];
sound/pci/ac97/ac97_pcm.c
491
if (rpcm->stream == rpcms[k].stream)
sound/pci/ac97/ac97_pcm.c
501
rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j];
sound/pci/ac97/ac97_pcm.c
507
avail_slots[pcm->stream][j] &= ~tmp;
sound/pci/ac97/ac97_pcm.c
514
if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/pci/ac97/ac97_pcm.c
516
rate_table[pcm->stream][0] == 0) {
sound/pci/ac97/ac97_pcm.c
525
avail_slots[pcm->stream][0] &= ~tmp;
sound/pci/ac97/ac97_pcm.c
579
if (bus->used_slots[pcm->stream][cidx] & (1 << i)) {
sound/pci/ac97/ac97_pcm.c
584
bus->used_slots[pcm->stream][cidx] |= (1 << i);
sound/pci/ac97/ac97_pcm.c
670
bus->used_slots[pcm->stream][cidx] &= ~(1 << i);
sound/pci/asihpi/asihpi.c
443
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/pci/asihpi/asihpi.c
574
if (substream->stream != s->stream)
sound/pci/asihpi/asihpi.c
578
if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/asihpi/asihpi.c
611
if ((substream->stream == SNDRV_PCM_STREAM_CAPTURE) ||
sound/pci/asihpi/asihpi.c
623
if (substream->stream != s->stream)
sound/pci/asihpi/asihpi.c
639
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/asihpi/asihpi.c
737
if (substream->stream != s->stream)
sound/pci/asihpi/asihpi.c
751
if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/asihpi/asihpi.c
825
if (substream->stream != s->stream)
sound/pci/asihpi/asihpi.c
834
(s->stream == SNDRV_PCM_STREAM_CAPTURE)))
sound/pci/asihpi/asihpi.c
850
if (s->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/asihpi/hpi6000.c
1744
hm.obj_index = phm->u.d.u.stream.stream_index;
sound/pci/asihpi/hpi6000.c
1745
hm.object = phm->u.d.u.stream.object_type;
sound/pci/asihpi/hpi_internal.h
724
struct hpi_streamid stream;
sound/pci/asihpi/hpifunc.c
1147
&hm.u.d.u.stream.stream_index))
sound/pci/asihpi/hpifunc.c
1155
hm.u.d.u.stream.object_type = c_obj_type;
sound/pci/asihpi/hpifunc.c
791
&hm.u.d.u.stream.stream_index))
sound/pci/asihpi/hpifunc.c
798
hm.u.d.u.stream.object_type = c_obj_type;
sound/pci/atiixp.c
1174
.stream = 1,
sound/pci/au88x0/au88x0_core.c
2112
stream_t *stream;
sound/pci/au88x0/au88x0_core.c
2129
stream = &vortex->dma_adb[dma];
sound/pci/au88x0/au88x0_core.c
2130
stream->dma = dma;
sound/pci/au88x0/au88x0_core.c
2131
stream->dir = dir;
sound/pci/au88x0/au88x0_core.c
2132
stream->type = type;
sound/pci/au88x0/au88x0_core.c
2141
if (stream->type != VORTEX_PCM_SPDIF) {
sound/pci/au88x0/au88x0_core.c
2144
stream->resources, en,
sound/pci/au88x0/au88x0_core.c
2147
memset(stream->resources, 0,
sound/pci/au88x0/au88x0_core.c
2148
sizeof(stream->resources));
sound/pci/au88x0/au88x0_core.c
2151
if (stream->type != VORTEX_PCM_A3D) {
sound/pci/au88x0/au88x0_core.c
2153
stream->resources,
sound/pci/au88x0/au88x0_core.c
2157
memset(stream->resources,
sound/pci/au88x0/au88x0_core.c
2159
sizeof(stream->resources));
sound/pci/au88x0/au88x0_core.c
2166
if (stream->type == VORTEX_PCM_A3D) {
sound/pci/au88x0/au88x0_core.c
2168
stream->resources, en,
sound/pci/au88x0/au88x0_core.c
2171
memset(stream->resources, 0,
sound/pci/au88x0/au88x0_core.c
2172
sizeof(stream->resources));
sound/pci/au88x0/au88x0_core.c
2182
if ((stream->type == VORTEX_PCM_SPDIF) && (en)) {
sound/pci/au88x0/au88x0_core.c
2193
if (stream->type == VORTEX_PCM_ADB) {
sound/pci/au88x0/au88x0_core.c
2215
if (stream->type == VORTEX_PCM_A3D) {
sound/pci/au88x0/au88x0_core.c
2225
if (stream->type == VORTEX_PCM_SPDIF)
sound/pci/au88x0/au88x0_core.c
2227
ADB_DMA(stream->dma),
sound/pci/au88x0/au88x0_core.c
2231
if (stream->type != VORTEX_PCM_SPDIF && stream->type != VORTEX_PCM_A3D) {
sound/pci/au88x0/au88x0_core.c
2248
if (stream->type == VORTEX_PCM_ADB && en) {
sound/pci/au88x0/au88x0_core.c
2259
if (nr_ch == 1 && stream->type == VORTEX_PCM_SPDIF)
sound/pci/au88x0/au88x0_core.c
2261
ADB_DMA(stream->dma),
sound/pci/au88x0/au88x0_core.c
2265
if ((stream->type == VORTEX_PCM_SPDIF) && (!en)) {
sound/pci/au88x0/au88x0_core.c
2284
stream->resources, en,
sound/pci/au88x0/au88x0_core.c
2287
memset(stream->resources, 0,
sound/pci/au88x0/au88x0_core.c
2288
sizeof(stream->resources));
sound/pci/au88x0/au88x0_core.c
2292
stream->resources, en,
sound/pci/au88x0/au88x0_core.c
2295
memset(stream->resources, 0,
sound/pci/au88x0/au88x0_core.c
2296
sizeof(stream->resources));
sound/pci/au88x0/au88x0_core.c
2350
stream_t *stream = &(vortex->dma_adb[adbdma]);
sound/pci/au88x0/au88x0_core.c
2361
if (stream->resources[VORTEX_RESOURCE_SRC] & (1 << i))
sound/pci/au88x0/au88x0_pcm.c
170
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/pci/au88x0/au88x0_pcm.c
194
stream_t *stream = (stream_t *) substream->runtime->private_data;
sound/pci/au88x0/au88x0_pcm.c
197
if (stream != NULL) {
sound/pci/au88x0/au88x0_pcm.c
198
stream->substream = NULL;
sound/pci/au88x0/au88x0_pcm.c
199
stream->nr_ch = 0;
sound/pci/au88x0/au88x0_pcm.c
211
stream_t *stream = (stream_t *) (substream->runtime->private_data);
sound/pci/au88x0/au88x0_pcm.c
222
if (stream != NULL)
sound/pci/au88x0/au88x0_pcm.c
223
vortex_adb_allocroute(chip, stream->dma,
sound/pci/au88x0/au88x0_pcm.c
224
stream->nr_ch, stream->dir,
sound/pci/au88x0/au88x0_pcm.c
225
stream->type,
sound/pci/au88x0/au88x0_pcm.c
231
substream->stream, type,
sound/pci/au88x0/au88x0_pcm.c
237
stream = substream->runtime->private_data = &chip->dma_adb[dma];
sound/pci/au88x0/au88x0_pcm.c
238
stream->substream = substream;
sound/pci/au88x0/au88x0_pcm.c
255
stream = substream->runtime->private_data =
sound/pci/au88x0/au88x0_pcm.c
257
stream->dma = substream->number;
sound/pci/au88x0/au88x0_pcm.c
258
stream->substream = substream;
sound/pci/au88x0/au88x0_pcm.c
272
stream_t *stream = (stream_t *) (substream->runtime->private_data);
sound/pci/au88x0/au88x0_pcm.c
277
if (stream != NULL) {
sound/pci/au88x0/au88x0_pcm.c
284
vortex_adb_allocroute(chip, stream->dma,
sound/pci/au88x0/au88x0_pcm.c
285
stream->nr_ch, stream->dir,
sound/pci/au88x0/au88x0_pcm.c
286
stream->type,
sound/pci/au88x0/au88x0_pcm.c
292
if (stream != NULL)
sound/pci/au88x0/au88x0_pcm.c
293
vortex_wt_allocroute(chip, stream->dma, 0);
sound/pci/au88x0/au88x0_pcm.c
307
stream_t *stream = (stream_t *) substream->runtime->private_data;
sound/pci/au88x0/au88x0_pcm.c
308
int dma = stream->dma, fmt, dir;
sound/pci/au88x0/au88x0_pcm.c
311
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/au88x0/au88x0_pcm.c
339
stream_t *stream = (stream_t *) substream->runtime->private_data;
sound/pci/au88x0/au88x0_pcm.c
340
int dma = stream->dma;
sound/pci/au88x0/au88x0_pcm.c
347
stream->fifo_enabled = 1;
sound/pci/au88x0/au88x0_pcm.c
362
stream->fifo_enabled = 0;
sound/pci/au88x0/au88x0_pcm.c
402
stream_t *stream = (stream_t *) substream->runtime->private_data;
sound/pci/au88x0/au88x0_pcm.c
403
int dma = stream->dma;
sound/pci/ca0106/ca0106_main.c
937
s->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/echoaudio/echoaudio.c
875
int stream;
sound/pci/echoaudio/echoaudio.c
877
for (stream = 0; stream < 2; stream++)
sound/pci/echoaudio/echoaudio.c
878
for (ss = pcm->streams[stream].substream; ss; ss = ss->next)
sound/pci/emu10k1/p16v.c
421
s->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/ice1712/ice1712.c
902
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/ice1712/ice1724.c
231
get_rawmidi_substream(struct snd_ice1712 *ice, unsigned int stream)
sound/pci/ice1712/ice1724.c
233
return list_first_entry(&ice->rmidi[0]->streams[stream].substreams,
sound/pci/ice1712/juli.c
173
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/pci/intel8x0.c
1658
.stream = 1,
sound/pci/intel8x0.c
1668
.stream = 1,
sound/pci/intel8x0.c
1687
.stream = 1,
sound/pci/intel8x0.c
1697
.stream = 1,
sound/pci/intel8x0.c
837
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/korg1212/korg1212.c
1435
if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/lola/lola_pcm.c
24
return &chip->pcm[substream->stream];
sound/pci/lx6464es/lx6464es.c
101
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
127
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
158
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
189
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
269
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
287
const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
344
chip->capture_stream.stream = substream;
sound/pci/lx6464es/lx6464es.c
346
chip->playback_stream.stream = substream;
sound/pci/lx6464es/lx6464es.c
367
int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
391
chip->capture_stream.stream = NULL;
sound/pci/lx6464es/lx6464es.c
393
chip->playback_stream.stream = NULL;
sound/pci/lx6464es/lx6464es.c
400
struct snd_pcm_substream *substream = lx_stream->stream;
sound/pci/lx6464es/lx6464es.c
505
const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/lx6464es/lx6464es.c
506
struct lx_stream *stream = is_capture ? &chip->capture_stream :
sound/pci/lx6464es/lx6464es.c
511
return lx_pcm_trigger_dispatch(chip, stream, cmd);
sound/pci/lx6464es/lx6464es.h
43
struct snd_pcm_substream *stream;
sound/pci/lx6464es/lx_core.c
1081
snd_pcm_period_elapsed(lx_stream->stream);
sound/pci/lx6464es/lx_core.c
1093
snd_pcm_period_elapsed(lx_stream->stream);
sound/pci/lx6464es/lx_core.c
968
struct snd_pcm_substream *substream = lx_stream->stream;
sound/pci/maestro3.c
1045
switch (subs->stream) {
sound/pci/maestro3.c
1074
switch (subs->stream) {
sound/pci/maestro3.c
1132
if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/maestro3.c
1418
if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/maestro3.c
1720
if (subs->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/mixart/mixart.c
380
static int mixart_set_stream_state(struct mixart_stream *stream, int start)
sound/pci/mixart/mixart.c
386
if(!stream->substream)
sound/pci/mixart/mixart.c
391
stream_state_req.stream_info.stream_desc.uid_pipe = stream->pipe->group_uid;
sound/pci/mixart/mixart.c
392
stream_state_req.stream_info.stream_desc.stream_idx = stream->substream->number;
sound/pci/mixart/mixart.c
394
if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/mixart/mixart.c
403
stream->abs_period_elapsed = 0; /* reset stream pos */
sound/pci/mixart/mixart.c
404
stream->buf_periods = 0;
sound/pci/mixart/mixart.c
405
stream->buf_period_frag = 0;
sound/pci/mixart/mixart.c
407
chip = snd_pcm_substream_chip(stream->substream);
sound/pci/mixart/mixart.c
418
struct mixart_stream *stream = subs->runtime->private_data;
sound/pci/mixart/mixart.c
426
if( mixart_set_stream_state(stream, 1) )
sound/pci/mixart/mixart.c
429
stream->status = MIXART_STREAM_STATUS_RUNNING;
sound/pci/mixart/mixart.c
435
if( mixart_set_stream_state(stream, 0) )
sound/pci/mixart/mixart.c
438
stream->status = MIXART_STREAM_STATUS_OPEN;
sound/pci/mixart/mixart.c
446
stream->status = MIXART_STREAM_STATUS_PAUSE;
sound/pci/mixart/mixart.c
451
stream->status = MIXART_STREAM_STATUS_RUNNING;
sound/pci/mixart/mixart.c
480
struct mixart_stream *stream = subs->runtime->private_data;
sound/pci/mixart/mixart.c
494
if(stream->pipe->references == 1) {
sound/pci/mixart/mixart.c
495
if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) )
sound/pci/mixart/mixart.c
503
static int mixart_set_format(struct mixart_stream *stream, snd_pcm_format_t format)
sound/pci/mixart/mixart.c
511
chip = snd_pcm_substream_chip(stream->substream);
sound/pci/mixart/mixart.c
516
stream_param.number_of_channel = stream->channels;
sound/pci/mixart/mixart.c
559
stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels);
sound/pci/mixart/mixart.c
568
stream_param.stream_desc.uid_pipe = stream->pipe->group_uid;
sound/pci/mixart/mixart.c
569
stream_param.stream_desc.stream_idx = stream->substream->number;
sound/pci/mixart/mixart.c
595
struct mixart_stream *stream = subs->runtime->private_data;
sound/pci/mixart/mixart.c
609
if( stream->pcm_number <= MIXART_PCM_DIGITAL ) {
sound/pci/mixart/mixart.c
610
int is_aes = stream->pcm_number > MIXART_PCM_ANALOG;
sound/pci/mixart/mixart.c
611
if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK )
sound/pci/mixart/mixart.c
617
stream->channels = channels;
sound/pci/mixart/mixart.c
620
err = mixart_set_format(stream, format);
sound/pci/mixart/mixart.c
626
int i = (chip->chip_idx * MIXART_MAX_STREAM_PER_CARD) + (stream->pcm_number * (MIXART_PLAYBACK_STREAMS+MIXART_CAPTURE_STREAMS)) + subs->number;
sound/pci/mixart/mixart.c
627
if( subs->stream == SNDRV_PCM_STREAM_CAPTURE ) {
sound/pci/mixart/mixart.c
707
struct mixart_stream *stream;
sound/pci/mixart/mixart.c
727
stream = &(chip->playback_stream[pcm_number][subs->number]);
sound/pci/mixart/mixart.c
729
if (stream->status != MIXART_STREAM_STATUS_FREE){
sound/pci/mixart/mixart.c
751
stream->pipe = pipe;
sound/pci/mixart/mixart.c
752
stream->pcm_number = pcm_number;
sound/pci/mixart/mixart.c
753
stream->status = MIXART_STREAM_STATUS_OPEN;
sound/pci/mixart/mixart.c
754
stream->substream = subs;
sound/pci/mixart/mixart.c
755
stream->channels = 0; /* not configured yet */
sound/pci/mixart/mixart.c
757
runtime->private_data = stream;
sound/pci/mixart/mixart.c
779
struct mixart_stream *stream;
sound/pci/mixart/mixart.c
801
stream = &(chip->capture_stream[pcm_number]);
sound/pci/mixart/mixart.c
803
if (stream->status != MIXART_STREAM_STATUS_FREE){
sound/pci/mixart/mixart.c
825
stream->pipe = pipe;
sound/pci/mixart/mixart.c
826
stream->pcm_number = pcm_number;
sound/pci/mixart/mixart.c
827
stream->status = MIXART_STREAM_STATUS_OPEN;
sound/pci/mixart/mixart.c
828
stream->substream = subs;
sound/pci/mixart/mixart.c
829
stream->channels = 0; /* not configured yet */
sound/pci/mixart/mixart.c
831
runtime->private_data = stream;
sound/pci/mixart/mixart.c
852
struct mixart_stream *stream = subs->runtime->private_data;
sound/pci/mixart/mixart.c
857
chip->chip_idx, stream->pcm_number, subs->number);
sound/pci/mixart/mixart.c
865
if (snd_mixart_kill_ref_pipe(mgr, stream->pipe, 0 ) < 0) {
sound/pci/mixart/mixart.c
869
chip->chip_idx, stream->pcm_number);
sound/pci/mixart/mixart.c
872
stream->pipe = NULL;
sound/pci/mixart/mixart.c
873
stream->status = MIXART_STREAM_STATUS_FREE;
sound/pci/mixart/mixart.c
874
stream->substream = NULL;
sound/pci/mixart/mixart.c
883
struct mixart_stream *stream = runtime->private_data;
sound/pci/mixart/mixart.c
885
return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag);
sound/pci/mixart/mixart.c
914
int stream;
sound/pci/mixart/mixart.c
916
for (stream = 0; stream < 2; stream++) {
sound/pci/mixart/mixart.c
918
for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
sound/pci/mixart/mixart.c
921
subs->stream << 8 | (subs->number + 1) |
sound/pci/mixart/mixart_core.c
454
struct mixart_stream *stream;
sound/pci/mixart/mixart_core.c
464
stream = &chip->capture_stream[pcm_number];
sound/pci/mixart/mixart_core.c
466
stream = &chip->playback_stream[pcm_number][sub_number];
sound/pci/mixart/mixart_core.c
468
if (stream->substream && (stream->status == MIXART_STREAM_STATUS_RUNNING)) {
sound/pci/mixart/mixart_core.c
469
struct snd_pcm_runtime *runtime = stream->substream->runtime;
sound/pci/mixart/mixart_core.c
475
u64 new_elapse_pos = stream->abs_period_elapsed + runtime->period_size;
sound/pci/mixart/mixart_core.c
482
stream->buf_periods++;
sound/pci/mixart/mixart_core.c
483
if (stream->buf_periods >= runtime->periods)
sound/pci/mixart/mixart_core.c
484
stream->buf_periods = 0;
sound/pci/mixart/mixart_core.c
486
stream->abs_period_elapsed = new_elapse_pos;
sound/pci/mixart/mixart_core.c
489
stream->buf_period_frag = (u32)( sample_count - stream->abs_period_elapsed );
sound/pci/mixart/mixart_core.c
493
snd_pcm_period_elapsed(stream->substream);
sound/pci/mixart/mixart_core.h
174
struct mixart_stream_desc stream[32];
sound/pci/nm256/nm256.c
326
snd_nm256_load_one_coefficient(struct nm256 *chip, int stream, u32 port, int which)
sound/pci/nm256/nm256.c
328
u32 coeff_buf = chip->coeff_buf[stream];
sound/pci/nm256/nm256.c
335
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/nm256/nm256.c
341
snd_nm256_load_coefficient(struct nm256 *chip, int stream, int number)
sound/pci/nm256/nm256.c
344
u32 poffset = (stream == SNDRV_PCM_STREAM_CAPTURE ?
sound/pci/nm256/nm256.c
348
addr += (stream == SNDRV_PCM_STREAM_CAPTURE ?
sound/pci/nm256/nm256.c
359
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/nm256/nm256.c
363
snd_nm256_load_one_coefficient(chip, stream, addr, number);
sound/pci/nm256/nm256.c
375
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/nm256/nm256.c
430
switch (substream->stream) {
sound/pci/pcxhr/pcxhr.c
1001
if (stream->status != PCXHR_STREAM_STATUS_FREE){
sound/pci/pcxhr/pcxhr.c
1037
stream->status = PCXHR_STREAM_STATUS_OPEN;
sound/pci/pcxhr/pcxhr.c
1038
stream->substream = subs;
sound/pci/pcxhr/pcxhr.c
1039
stream->channels = 0; /* not configured yet */
sound/pci/pcxhr/pcxhr.c
1041
runtime->private_data = stream;
sound/pci/pcxhr/pcxhr.c
1060
struct pcxhr_stream *stream = subs->runtime->private_data;
sound/pci/pcxhr/pcxhr.c
1073
stream->status = PCXHR_STREAM_STATUS_FREE;
sound/pci/pcxhr/pcxhr.c
1074
stream->substream = NULL;
sound/pci/pcxhr/pcxhr.c
1086
struct pcxhr_stream *stream = runtime->private_data;
sound/pci/pcxhr/pcxhr.c
1091
timer_period_frag = stream->timer_period_frag;
sound/pci/pcxhr/pcxhr.c
1092
timer_buf_periods = stream->timer_buf_periods;
sound/pci/pcxhr/pcxhr.c
491
struct pcxhr_stream *stream)
sound/pci/pcxhr/pcxhr.c
497
if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN)
sound/pci/pcxhr/pcxhr.c
500
if (stream->status != PCXHR_STREAM_STATUS_SCHEDULE_STOP) {
sound/pci/pcxhr/pcxhr.c
507
if (!stream->substream)
sound/pci/pcxhr/pcxhr.c
510
stream->timer_abs_periods = 0;
sound/pci/pcxhr/pcxhr.c
511
stream->timer_period_frag = 0; /* reset theoretical stream pos */
sound/pci/pcxhr/pcxhr.c
512
stream->timer_buf_periods = 0;
sound/pci/pcxhr/pcxhr.c
513
stream->timer_is_synced = 0;
sound/pci/pcxhr/pcxhr.c
516
stream->pipe->is_capture ? 1 : 1<<stream->substream->number;
sound/pci/pcxhr/pcxhr.c
519
pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture,
sound/pci/pcxhr/pcxhr.c
520
stream->pipe->first_audio, 0, stream_mask);
sound/pci/pcxhr/pcxhr.c
522
chip = snd_pcm_substream_chip(stream->substream);
sound/pci/pcxhr/pcxhr.c
528
stream->status =
sound/pci/pcxhr/pcxhr.c
542
static int pcxhr_set_format(struct pcxhr_stream *stream)
sound/pci/pcxhr/pcxhr.c
549
chip = snd_pcm_substream_chip(stream->substream);
sound/pci/pcxhr/pcxhr.c
550
switch (stream->format) {
sound/pci/pcxhr/pcxhr.c
584
if (stream->channels == 1)
sound/pci/pcxhr/pcxhr.c
587
is_capture = stream->pipe->is_capture;
sound/pci/pcxhr/pcxhr.c
588
stream_num = is_capture ? 0 : stream->substream->number;
sound/pci/pcxhr/pcxhr.c
592
pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio,
sound/pci/pcxhr/pcxhr.c
606
rmh.cmd[1] = stream->channels;
sound/pci/pcxhr/pcxhr.c
609
rmh.cmd[2] = (stream->channels == 1) ? 0x01 : 0x03;
sound/pci/pcxhr/pcxhr.c
622
static int pcxhr_update_r_buffer(struct pcxhr_stream *stream)
sound/pci/pcxhr/pcxhr.c
626
struct snd_pcm_substream *subs = stream->substream;
sound/pci/pcxhr/pcxhr.c
629
is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/pci/pcxhr/pcxhr.c
639
pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio,
sound/pci/pcxhr/pcxhr.c
662
static int pcxhr_pipe_sample_count(struct pcxhr_stream *stream,
sound/pci/pcxhr/pcxhr.c
667
pcxhr_t *chip = snd_pcm_substream_chip(stream->substream);
sound/pci/pcxhr/pcxhr.c
669
pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0,
sound/pci/pcxhr/pcxhr.c
670
1<<stream->pipe->first_audio);
sound/pci/pcxhr/pcxhr.c
681
static inline int pcxhr_stream_scheduled_get_pipe(struct pcxhr_stream *stream,
sound/pci/pcxhr/pcxhr.c
684
if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN) {
sound/pci/pcxhr/pcxhr.c
685
*pipe = stream->pipe;
sound/pci/pcxhr/pcxhr.c
741
struct pcxhr_stream *stream;
sound/pci/pcxhr/pcxhr.c
744
stream = &chip->capture_stream[j];
sound/pci/pcxhr/pcxhr.c
745
if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) {
sound/pci/pcxhr/pcxhr.c
746
err = pcxhr_set_format(stream);
sound/pci/pcxhr/pcxhr.c
747
err = pcxhr_update_r_buffer(stream);
sound/pci/pcxhr/pcxhr.c
751
stream = &chip->playback_stream[j];
sound/pci/pcxhr/pcxhr.c
752
if (pcxhr_stream_scheduled_get_pipe(stream, &pipe)) {
sound/pci/pcxhr/pcxhr.c
753
err = pcxhr_set_format(stream);
sound/pci/pcxhr/pcxhr.c
754
err = pcxhr_update_r_buffer(stream);
sound/pci/pcxhr/pcxhr.c
760
struct pcxhr_stream *stream;
sound/pci/pcxhr/pcxhr.c
763
stream = &chip->capture_stream[j];
sound/pci/pcxhr/pcxhr.c
764
if (pcxhr_stream_scheduled_get_pipe(stream, &pipe))
sound/pci/pcxhr/pcxhr.c
765
err = pcxhr_set_stream_state(chip, stream);
sound/pci/pcxhr/pcxhr.c
768
stream = &chip->playback_stream[j];
sound/pci/pcxhr/pcxhr.c
769
if (pcxhr_stream_scheduled_get_pipe(stream, &pipe))
sound/pci/pcxhr/pcxhr.c
770
err = pcxhr_set_stream_state(chip, stream);
sound/pci/pcxhr/pcxhr.c
788
struct pcxhr_stream *stream;
sound/pci/pcxhr/pcxhr.c
791
stream = &chip->capture_stream[j];
sound/pci/pcxhr/pcxhr.c
792
if(stream->status == PCXHR_STREAM_STATUS_STARTED)
sound/pci/pcxhr/pcxhr.c
793
stream->status = PCXHR_STREAM_STATUS_RUNNING;
sound/pci/pcxhr/pcxhr.c
796
stream = &chip->playback_stream[j];
sound/pci/pcxhr/pcxhr.c
797
if (stream->status == PCXHR_STREAM_STATUS_STARTED) {
sound/pci/pcxhr/pcxhr.c
799
stream->timer_period_frag += mgr->granularity;
sound/pci/pcxhr/pcxhr.c
800
stream->status = PCXHR_STREAM_STATUS_RUNNING;
sound/pci/pcxhr/pcxhr.c
819
struct pcxhr_stream *stream;
sound/pci/pcxhr/pcxhr.c
830
stream = s->runtime->private_data;
sound/pci/pcxhr/pcxhr.c
831
stream->status =
sound/pci/pcxhr/pcxhr.c
837
stream = subs->runtime->private_data;
sound/pci/pcxhr/pcxhr.c
839
stream->pipe->is_capture ? 'C' : 'P',
sound/pci/pcxhr/pcxhr.c
840
stream->pipe->first_audio);
sound/pci/pcxhr/pcxhr.c
841
if (pcxhr_set_format(stream))
sound/pci/pcxhr/pcxhr.c
843
if (pcxhr_update_r_buffer(stream))
sound/pci/pcxhr/pcxhr.c
846
stream->status = PCXHR_STREAM_STATUS_SCHEDULE_RUN;
sound/pci/pcxhr/pcxhr.c
847
if (pcxhr_set_stream_state(chip, stream))
sound/pci/pcxhr/pcxhr.c
849
stream->status = PCXHR_STREAM_STATUS_RUNNING;
sound/pci/pcxhr/pcxhr.c
855
stream = s->runtime->private_data;
sound/pci/pcxhr/pcxhr.c
856
stream->status = PCXHR_STREAM_STATUS_SCHEDULE_STOP;
sound/pci/pcxhr/pcxhr.c
857
if (pcxhr_set_stream_state(chip, stream))
sound/pci/pcxhr/pcxhr.c
932
struct pcxhr_stream *stream = subs->runtime->private_data;
sound/pci/pcxhr/pcxhr.c
937
stream->channels = params_channels(hw);
sound/pci/pcxhr/pcxhr.c
939
stream->format = params_format(hw);
sound/pci/pcxhr/pcxhr.c
980
struct pcxhr_stream *stream;
sound/pci/pcxhr/pcxhr.c
988
if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) {
sound/pci/pcxhr/pcxhr.c
991
stream = &chip->playback_stream[subs->number];
sound/pci/pcxhr/pcxhr.c
999
stream = &chip->capture_stream[subs->number];
sound/pci/pcxhr/pcxhr_core.c
1110
struct pcxhr_stream *stream)
sound/pci/pcxhr/pcxhr_core.c
1116
stream_mask = stream->pipe->is_capture ? 1 : 1<<stream->substream->number;
sound/pci/pcxhr/pcxhr_core.c
1120
pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture,
sound/pci/pcxhr/pcxhr_core.c
1121
stream->pipe->first_audio, 0, stream_mask);
sound/pci/pcxhr/pcxhr_core.c
1133
stream->pipe->is_capture ? 'C' : 'P',
sound/pci/pcxhr/pcxhr_core.c
1134
stream->substream->number,
sound/pci/pcxhr/pcxhr_core.c
1136
stream->timer_abs_periods + stream->timer_period_frag +
sound/pci/pcxhr/pcxhr_core.c
1142
struct pcxhr_stream *stream,
sound/pci/pcxhr/pcxhr_core.c
1145
if (stream->substream &&
sound/pci/pcxhr/pcxhr_core.c
1146
(stream->status == PCXHR_STREAM_STATUS_RUNNING)) {
sound/pci/pcxhr/pcxhr_core.c
1150
struct snd_pcm_runtime *runtime = stream->substream->runtime;
sound/pci/pcxhr/pcxhr_core.c
1153
stream->timer_is_synced = 0;
sound/pci/pcxhr/pcxhr_core.c
1158
if (!stream->timer_is_synced) {
sound/pci/pcxhr/pcxhr_core.c
1159
if ((stream->timer_abs_periods != 0) ||
sound/pci/pcxhr/pcxhr_core.c
1160
((stream->timer_period_frag + samples_to_add) >=
sound/pci/pcxhr/pcxhr_core.c
1163
pcxhr_stream_read_position(mgr, stream);
sound/pci/pcxhr/pcxhr_core.c
1171
stream->timer_is_synced = 1;
sound/pci/pcxhr/pcxhr_core.c
1179
new_sample_count = stream->timer_abs_periods +
sound/pci/pcxhr/pcxhr_core.c
1180
stream->timer_period_frag + samples_to_add;
sound/pci/pcxhr/pcxhr_core.c
1183
u_int64_t new_elapse_pos = stream->timer_abs_periods +
sound/pci/pcxhr/pcxhr_core.c
1188
stream->timer_buf_periods++;
sound/pci/pcxhr/pcxhr_core.c
1189
if (stream->timer_buf_periods >= runtime->periods)
sound/pci/pcxhr/pcxhr_core.c
1190
stream->timer_buf_periods = 0;
sound/pci/pcxhr/pcxhr_core.c
1191
stream->timer_abs_periods = new_elapse_pos;
sound/pci/pcxhr/pcxhr_core.c
1193
if (new_sample_count >= stream->timer_abs_periods) {
sound/pci/pcxhr/pcxhr_core.c
1194
stream->timer_period_frag =
sound/pci/pcxhr/pcxhr_core.c
1196
stream->timer_abs_periods);
sound/pci/pcxhr/pcxhr_core.c
1205
snd_pcm_period_elapsed(stream->substream);
sound/pci/rme32.c
1023
rme32->running |= (1 << s->stream);
sound/pci/rme32.c
1036
rme32->running &= ~(1 << s->stream);
sound/pci/rme9652/hdsp.c
3903
int stream,
sound/pci/rme9652/hdsp.c
3916
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/rme9652/hdsp.c
3932
channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
sound/pci/rme9652/hdsp.c
3950
channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
sound/pci/rme9652/hdsp.c
3965
channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
sound/pci/rme9652/hdsp.c
3977
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdsp.c
4014
if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/hdsp.c
4117
running |= 1 << substream->stream;
sound/pci/rme9652/hdsp.c
4120
running &= ~(1 << substream->stream);
sound/pci/rme9652/hdsp.c
4126
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdsp.c
4137
running |= 1 << s->stream;
sound/pci/rme9652/hdsp.c
4139
running &= ~(1 << s->stream);
sound/pci/rme9652/hdsp.c
4145
substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/rme9652/hdsp.c
4149
substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdsp.c
4153
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/rme9652/hdspm.c
5428
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdspm.c
5462
if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/hdspm.c
5530
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/hdspm.c
5616
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/hdspm.c
5642
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/hdspm.c
5715
running |= 1 << substream->stream;
sound/pci/rme9652/hdspm.c
5718
running &= ~(1 << substream->stream);
sound/pci/rme9652/hdspm.c
5724
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdspm.c
5735
running |= 1 << s->stream;
sound/pci/rme9652/hdspm.c
5737
running &= ~(1 << s->stream);
sound/pci/rme9652/hdspm.c
5743
&& substream->stream ==
sound/pci/rme9652/hdspm.c
5748
substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/hdspm.c
5752
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/rme9652/hdspm.c
5992
bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/pci/rme9652/hdspm.c
6064
bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/pci/rme9652/rme9652.c
1795
int stream,
sound/pci/rme9652/rme9652.c
1808
if (stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/pci/rme9652/rme9652.c
1828
substream->pstr->stream,
sound/pci/rme9652/rme9652.c
1848
substream->pstr->stream,
sound/pci/rme9652/rme9652.c
1865
substream->pstr->stream,
sound/pci/rme9652/rme9652.c
1878
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/rme9652.c
1909
if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/pci/rme9652/rme9652.c
2016
running |= 1 << substream->stream;
sound/pci/rme9652/rme9652.c
2019
running &= ~(1 << substream->stream);
sound/pci/rme9652/rme9652.c
2025
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/rme9652.c
2036
running |= 1 << s->stream;
sound/pci/rme9652/rme9652.c
2038
running &= ~(1 << s->stream);
sound/pci/rme9652/rme9652.c
2044
substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/rme9652/rme9652.c
2048
substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/pci/rme9652/rme9652.c
2052
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/pci/via82xx.c
1232
unsigned int stream;
sound/pci/via82xx.c
1239
stream = viadev->reg_offset / 0x10;
sound/pci/via82xx.c
1240
if (chip->dxs_controls[stream]) {
sound/pci/via82xx.c
1241
chip->playback_volume[stream][0] =
sound/pci/via82xx.c
1243
chip->playback_volume[stream][1] =
sound/pci/via82xx.c
1245
chip->dxs_controls[stream]->vd[0].access &=
sound/pci/via82xx.c
1249
&chip->dxs_controls[stream]->id);
sound/pci/via82xx.c
1332
unsigned int stream;
sound/pci/via82xx.c
1334
stream = viadev->reg_offset / 0x10;
sound/pci/via82xx.c
1335
if (chip->dxs_controls[stream]) {
sound/pci/via82xx.c
1336
chip->dxs_controls[stream]->vd[0].access |=
sound/pci/via82xx.c
1339
&chip->dxs_controls[stream]->id);
sound/ppc/pmac.c
104
static inline int another_stream(int stream)
sound/ppc/pmac.c
106
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/ppc/pmac.c
113
static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream)
sound/ppc/pmac.c
115
switch (stream) {
sound/ppc/pmac.c
1154
chip->playback.stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/ppc/pmac.c
1155
chip->capture.stream = SNDRV_PCM_STREAM_CAPTURE;
sound/ppc/pmac.c
195
astr = snd_pmac_get_stream(chip, another_stream(rec->stream));
sound/ppc/pmac.c
254
command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/ppc/pmac.c
585
snd_pmac_hw_rule_rate, chip, rec->stream, -1);
sound/ppc/pmac.c
587
snd_pmac_hw_rule_format, chip, rec->stream, -1);
sound/ppc/pmac.c
604
astr = snd_pmac_get_stream(chip, another_stream(rec->stream));
sound/ppc/pmac.h
54
int stream; /* PLAYBACK/CAPTURE */
sound/soc/adi/axi-i2s.c
113
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/adi/axi-i2s.c
63
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/acp-pcm-dma.c
1013
rtd->direction = substream->stream;
sound/soc/amd/acp-pcm-dma.c
1046
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/amd/acp-pcm-dma.c
1128
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/amd/acp-pcm-dma.c
1193
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp-pcm-dma.c
782
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp-pcm-dma.c
822
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp-pcm-dma.c
864
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp-pcm-dma.c
874
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp-pcm-dma.c
901
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp/acp-i2s.c
159
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp-i2s.c
160
if (dai->id != stream->dai_id)
sound/soc/amd/acp/acp-i2s.c
165
if (tx_mask && stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-i2s.c
166
chip->tdm_tx_fmt[stream->dai_id - 1] =
sound/soc/amd/acp/acp-i2s.c
168
else if (rx_mask && stream->dir == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/acp/acp-i2s.c
169
chip->tdm_rx_fmt[stream->dai_id - 1] =
sound/soc/amd/acp/acp-i2s.c
176
if (tx_mask && stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-i2s.c
177
chip->tdm_tx_fmt[stream->dai_id - 1] =
sound/soc/amd/acp/acp-i2s.c
179
else if (rx_mask && stream->dir == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/acp/acp-i2s.c
180
chip->tdm_rx_fmt[stream->dai_id - 1] =
sound/soc/amd/acp/acp-i2s.c
226
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp/acp-i2s.c
274
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-i2s.c
389
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-i2s.c
402
stream->bytescount = acp_get_byte_count(chip, stream->dai_id, substream->stream);
sound/soc/amd/acp/acp-i2s.c
403
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp/acp-i2s.c
465
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp/acp-i2s.c
523
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-i2s.c
526
unsigned int dir = substream->stream;
sound/soc/amd/acp/acp-i2s.c
540
phy_addr = I2S_SP_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
552
phy_addr = I2S_SP_RX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
567
phy_addr = I2S_BT_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
579
phy_addr = I2S_BT_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
594
phy_addr = I2S_HS_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
606
phy_addr = I2S_HS_RX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-i2s.c
634
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-i2s.c
638
unsigned int dir = substream->stream;
sound/soc/amd/acp/acp-i2s.c
645
stream->pte_offset = ACP_SRAM_SP_PB_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
646
stream->fifo_offset = SP_PB_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
649
stream->pte_offset = ACP_SRAM_SP_CP_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
650
stream->fifo_offset = SP_CAPT_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
656
stream->pte_offset = ACP_SRAM_BT_PB_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
657
stream->fifo_offset = BT_PB_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
660
stream->pte_offset = ACP_SRAM_BT_CP_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
661
stream->fifo_offset = BT_CAPT_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
667
stream->pte_offset = ACP_SRAM_HS_PB_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
668
stream->fifo_offset = HS_PB_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
671
stream->pte_offset = ACP_SRAM_HS_CP_PTE_OFFSET;
sound/soc/amd/acp/acp-i2s.c
672
stream->fifo_offset = HS_CAPT_FIFO_ADDR_OFFSET;
sound/soc/amd/acp/acp-i2s.c
681
stream->id = dai->driver->id + dir;
sound/soc/amd/acp/acp-i2s.c
682
stream->dai_id = dai->driver->id;
sound/soc/amd/acp/acp-i2s.c
683
stream->irq_bit = irq_bit;
sound/soc/amd/acp/acp-i2s.c
684
stream->dir = substream->stream;
sound/soc/amd/acp/acp-i2s.c
98
struct acp_stream *stream;
sound/soc/amd/acp/acp-legacy-common.c
103
if (ext_intr_stat1 & stream->irq_bit) {
sound/soc/amd/acp/acp-legacy-common.c
104
writel(stream->irq_bit, ACP_EXTERNAL_INTR_STAT(chip,
sound/soc/amd/acp/acp-legacy-common.c
106
snd_pcm_period_elapsed(stream->substream);
sound/soc/amd/acp/acp-legacy-common.c
149
struct acp_stream *stream = runtime->private_data;
sound/soc/amd/acp/acp-legacy-common.c
157
physical_addr = stream->reg_offset + MEM_WINDOW_START;
sound/soc/amd/acp/acp-legacy-common.c
209
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-legacy-common.c
212
unsigned int dir = substream->stream;
sound/soc/amd/acp/acp-legacy-common.c
225
phy_addr = I2S_SP_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
236
phy_addr = I2S_SP_RX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
250
phy_addr = I2S_BT_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
261
phy_addr = I2S_BT_RX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
275
phy_addr = I2S_HS_TX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
286
phy_addr = I2S_HS_RX_MEM_WINDOW_START + stream->reg_offset;
sound/soc/amd/acp/acp-legacy-common.c
313
struct acp_stream *stream)
sound/soc/amd/acp/acp-legacy-common.c
321
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/acp/acp-legacy-common.c
322
tdm_fmt = chip->tdm_tx_fmt[stream->dai_id - 1];
sound/soc/amd/acp/acp-legacy-common.c
323
switch (stream->dai_id) {
sound/soc/amd/acp/acp-legacy-common.c
337
pr_err("Invalid dai id %x\n", stream->dai_id);
sound/soc/amd/acp/acp-legacy-common.c
340
val = chip->xfer_tx_resolution[stream->dai_id - 1] << 3;
sound/soc/amd/acp/acp-legacy-common.c
342
tdm_fmt = chip->tdm_rx_fmt[stream->dai_id - 1];
sound/soc/amd/acp/acp-legacy-common.c
343
switch (stream->dai_id) {
sound/soc/amd/acp/acp-legacy-common.c
357
pr_err("Invalid dai id %x\n", stream->dai_id);
sound/soc/amd/acp/acp-legacy-common.c
360
val = chip->xfer_rx_resolution[stream->dai_id - 1] << 3;
sound/soc/amd/acp/acp-legacy-common.c
85
struct acp_stream *stream;
sound/soc/amd/acp/acp-legacy-common.c
95
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp-legacy-common.c
96
if (ext_intr_stat & stream->irq_bit) {
sound/soc/amd/acp/acp-legacy-common.c
97
writel(stream->irq_bit,
sound/soc/amd/acp/acp-legacy-common.c
99
snd_pcm_period_elapsed(stream->substream);
sound/soc/amd/acp/acp-pdm.c
145
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-pdm.c
150
stream->dai_id = DMIC_INSTANCE;
sound/soc/amd/acp/acp-pdm.c
151
stream->irq_bit = BIT(PDM_DMA_STAT);
sound/soc/amd/acp/acp-pdm.c
152
stream->pte_offset = ACP_SRAM_PDM_PTE_OFFSET;
sound/soc/amd/acp/acp-pdm.c
153
stream->reg_offset = ACP_REGION2_OFFSET;
sound/soc/amd/acp/acp-pdm.c
31
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-pdm.c
52
physical_addr = stream->reg_offset + MEM_WINDOW_START;
sound/soc/amd/acp/acp-platform.c
110
void config_pte_for_stream(struct acp_chip_info *chip, struct acp_stream *stream)
sound/soc/amd/acp/acp-platform.c
116
stream->reg_offset = 0x02000000;
sound/soc/amd/acp/acp-platform.c
131
void config_acp_dma(struct acp_chip_info *chip, struct acp_stream *stream, int size)
sound/soc/amd/acp/acp-platform.c
133
struct snd_pcm_substream *substream = stream->substream;
sound/soc/amd/acp/acp-platform.c
144
switch (stream->dai_id) {
sound/soc/amd/acp/acp-platform.c
146
if (stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-platform.c
152
if (stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-platform.c
158
if (stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-platform.c
167
dev_err(chip->dev, "Invalid dai id %x\n", stream->dai_id);
sound/soc/amd/acp/acp-platform.c
172
val = stream->pte_offset;
sound/soc/amd/acp/acp-platform.c
196
struct acp_stream *stream;
sound/soc/amd/acp/acp-platform.c
199
stream = kzalloc_obj(*stream);
sound/soc/amd/acp/acp-platform.c
200
if (!stream)
sound/soc/amd/acp/acp-platform.c
203
stream->substream = substream;
sound/soc/amd/acp/acp-platform.c
210
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-platform.c
216
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/acp/acp-platform.c
226
kfree(stream);
sound/soc/amd/acp/acp-platform.c
233
kfree(stream);
sound/soc/amd/acp/acp-platform.c
240
kfree(stream);
sound/soc/amd/acp/acp-platform.c
243
runtime->private_data = stream;
sound/soc/amd/acp/acp-platform.c
248
list_add_tail(&stream->list, &chip->stream_list);
sound/soc/amd/acp/acp-platform.c
260
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-platform.c
264
config_pte_for_stream(chip, stream);
sound/soc/amd/acp/acp-platform.c
265
config_acp_dma(chip, stream, size);
sound/soc/amd/acp/acp-platform.c
275
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-platform.c
282
bytescount = acp_get_byte_count(chip, stream->dai_id, substream->stream);
sound/soc/amd/acp/acp-platform.c
284
if (bytescount > stream->bytescount)
sound/soc/amd/acp/acp-platform.c
285
bytescount -= stream->bytescount;
sound/soc/amd/acp/acp-platform.c
307
struct acp_stream *stream = substream->runtime->private_data;
sound/soc/amd/acp/acp-platform.c
311
list_del(&stream->list);
sound/soc/amd/acp/acp-platform.c
313
kfree(stream);
sound/soc/amd/acp/acp-rembrandt.c
203
struct acp_stream *stream;
sound/soc/amd/acp/acp-rembrandt.c
212
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp-rembrandt.c
213
substream = stream->substream;
sound/soc/amd/acp/acp-rembrandt.c
217
config_pte_for_stream(chip, stream);
sound/soc/amd/acp/acp-rembrandt.c
218
config_acp_dma(chip, stream, buf_size);
sound/soc/amd/acp/acp-rembrandt.c
219
if (stream->dai_id)
sound/soc/amd/acp/acp-rembrandt.c
220
restore_acp_i2s_params(substream, chip, stream);
sound/soc/amd/acp/acp-renoir.c
150
struct acp_stream *stream;
sound/soc/amd/acp/acp-renoir.c
156
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp-renoir.c
157
substream = stream->substream;
sound/soc/amd/acp/acp-renoir.c
161
config_pte_for_stream(chip, stream);
sound/soc/amd/acp/acp-renoir.c
162
config_acp_dma(chip, stream, buf_size);
sound/soc/amd/acp/acp-renoir.c
163
if (stream->dai_id)
sound/soc/amd/acp/acp-renoir.c
164
restore_acp_i2s_params(substream, chip, stream);
sound/soc/amd/acp/acp-sdw-legacy-mach.c
163
int stream;
sound/soc/amd/acp/acp-sdw-legacy-mach.c
180
for_each_pcm_streams(stream) {
sound/soc/amd/acp/acp-sdw-legacy-mach.c
190
int num_cpus = hweight32(soc_dai->link_mask[stream]);
sound/soc/amd/acp/acp-sdw-legacy-mach.c
191
int num_codecs = soc_dai->num_devs[stream];
sound/soc/amd/acp/acp-sdw-legacy-mach.c
196
if (!soc_dai->num_devs[stream])
sound/soc/amd/acp/acp-sdw-legacy-mach.c
202
*be_id = soc_end->dai_info->dailink[stream];
sound/soc/amd/acp/acp-sdw-legacy-mach.c
229
sdw_stream_name[stream + 2],
sound/soc/amd/acp/acp-sdw-legacy-mach.c
235
sdw_stream_name[stream],
sound/soc/amd/acp/acp-sdw-legacy-mach.c
255
if (!soc_end->dai_info->direction[stream])
sound/soc/amd/acp/acp-sdw-legacy-mach.c
277
playback = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/amd/acp/acp-sdw-legacy-mach.c
278
capture = (stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/amd/acp/acp-sdw-sof-mach.c
106
int num_cpus = hweight32(sof_dai->link_mask[stream]);
sound/soc/amd/acp/acp-sdw-sof-mach.c
107
int num_codecs = sof_dai->num_devs[stream];
sound/soc/amd/acp/acp-sdw-sof-mach.c
112
if (!sof_dai->num_devs[stream])
sound/soc/amd/acp/acp-sdw-sof-mach.c
118
*be_id = sof_end->dai_info->dailink[stream];
sound/soc/amd/acp/acp-sdw-sof-mach.c
145
sdw_stream_name[stream + 2],
sound/soc/amd/acp/acp-sdw-sof-mach.c
151
sdw_stream_name[stream],
sound/soc/amd/acp/acp-sdw-sof-mach.c
171
if (!sof_end->dai_info->direction[stream])
sound/soc/amd/acp/acp-sdw-sof-mach.c
193
playback = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/amd/acp/acp-sdw-sof-mach.c
194
capture = (stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/amd/acp/acp-sdw-sof-mach.c
79
int stream;
sound/soc/amd/acp/acp-sdw-sof-mach.c
96
for_each_pcm_streams(stream) {
sound/soc/amd/acp/acp63.c
254
struct acp_stream *stream;
sound/soc/amd/acp/acp63.c
263
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp63.c
264
substream = stream->substream;
sound/soc/amd/acp/acp63.c
268
config_pte_for_stream(chip, stream);
sound/soc/amd/acp/acp63.c
269
config_acp_dma(chip, stream, buf_size);
sound/soc/amd/acp/acp63.c
270
if (stream->dai_id)
sound/soc/amd/acp/acp63.c
271
restore_acp_i2s_params(substream, chip, stream);
sound/soc/amd/acp/acp70.c
187
struct acp_stream *stream;
sound/soc/amd/acp/acp70.c
193
list_for_each_entry(stream, &chip->stream_list, list) {
sound/soc/amd/acp/acp70.c
194
substream = stream->substream;
sound/soc/amd/acp/acp70.c
198
config_pte_for_stream(chip, stream);
sound/soc/amd/acp/acp70.c
199
config_acp_dma(chip, stream, buf_size);
sound/soc/amd/acp/acp70.c
200
if (stream->dai_id)
sound/soc/amd/acp/acp70.c
201
restore_acp_i2s_params(substream, chip, stream);
sound/soc/amd/acp/amd.h
276
void config_pte_for_stream(struct acp_chip_info *chip, struct acp_stream *stream);
sound/soc/amd/acp/amd.h
277
void config_acp_dma(struct acp_chip_info *chip, struct acp_stream *stream, int size);
sound/soc/amd/acp/amd.h
282
struct acp_chip_info *chip, struct acp_stream *stream);
sound/soc/amd/ps/ps-pdm-dma.c
196
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/ps/ps-pdm-dma.c
209
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/ps/ps-pdm-dma.c
231
acp63_config_dma(rtd, substream->stream);
sound/soc/amd/ps/ps-pdm-dma.c
251
struct snd_pcm_substream *stream)
sound/soc/amd/ps/ps-pdm-dma.c
257
rtd = stream->runtime->private_data;
sound/soc/amd/ps/ps-pdm-dma.c
258
buffersize = frames_to_bytes(stream->runtime,
sound/soc/amd/ps/ps-pdm-dma.c
259
stream->runtime->buffer_size);
sound/soc/amd/ps/ps-pdm-dma.c
260
bytescount = acp63_pdm_get_byte_count(rtd, stream->stream);
sound/soc/amd/ps/ps-pdm-dma.c
264
return bytes_to_frames(stream->runtime, pos);
sound/soc/amd/ps/ps-pdm-dma.c
312
rtd->bytescount = acp63_pdm_get_byte_count(rtd, substream->stream);
sound/soc/amd/ps/ps-sdw-dma.c
206
static void acp63_config_dma(struct acp_sdw_dma_stream *stream, void __iomem *acp_base,
sound/soc/amd/ps/ps-sdw-dma.c
214
addr = stream->dma_addr;
sound/soc/amd/ps/ps-sdw-dma.c
215
sdw_dma_pte_offset = SDW_PTE_OFFSET(stream->instance);
sound/soc/amd/ps/ps-sdw-dma.c
221
for (page_idx = 0; page_idx < stream->num_pages; page_idx++) {
sound/soc/amd/ps/ps-sdw-dma.c
312
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
321
stream = kzalloc_obj(*stream);
sound/soc/amd/ps/ps-sdw-dma.c
322
if (!stream)
sound/soc/amd/ps/ps-sdw-dma.c
325
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/ps/ps-sdw-dma.c
333
kfree(stream);
sound/soc/amd/ps/ps-sdw-dma.c
337
stream->stream_id = cpu_dai->id;
sound/soc/amd/ps/ps-sdw-dma.c
338
stream->instance = amd_manager->instance;
sound/soc/amd/ps/ps-sdw-dma.c
339
runtime->private_data = stream;
sound/soc/amd/ps/ps-sdw-dma.c
347
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
358
stream = substream->runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
359
if (!stream)
sound/soc/amd/ps/ps-sdw-dma.c
361
stream_id = stream->stream_id;
sound/soc/amd/ps/ps-sdw-dma.c
364
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
369
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/ps/ps-sdw-dma.c
387
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
392
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/ps/ps-sdw-dma.c
401
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/ps/ps-sdw-dma.c
416
stream->dma_addr = substream->runtime->dma_addr;
sound/soc/amd/ps/ps-sdw-dma.c
417
stream->num_pages = (PAGE_ALIGN(size) >> PAGE_SHIFT);
sound/soc/amd/ps/ps-sdw-dma.c
418
acp63_config_dma(stream, sdw_data->acp_base, stream_id);
sound/soc/amd/ps/ps-sdw-dma.c
420
stream->instance, sdw_data->acp_rev);
sound/soc/amd/ps/ps-sdw-dma.c
432
static u64 acp63_sdw_get_byte_count(struct acp_sdw_dma_stream *stream, void __iomem *acp_base,
sound/soc/amd/ps/ps-sdw-dma.c
441
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
443
pos_low_reg = acp63_sdw0_dma_reg[stream->stream_id].pos_low_reg;
sound/soc/amd/ps/ps-sdw-dma.c
444
pos_high_reg = acp63_sdw0_dma_reg[stream->stream_id].pos_high_reg;
sound/soc/amd/ps/ps-sdw-dma.c
447
pos_low_reg = acp63_sdw1_dma_reg[stream->stream_id].pos_low_reg;
sound/soc/amd/ps/ps-sdw-dma.c
448
pos_high_reg = acp63_sdw1_dma_reg[stream->stream_id].pos_high_reg;
sound/soc/amd/ps/ps-sdw-dma.c
457
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
459
pos_low_reg = acp70_sdw0_dma_reg[stream->stream_id].pos_low_reg;
sound/soc/amd/ps/ps-sdw-dma.c
460
pos_high_reg = acp70_sdw0_dma_reg[stream->stream_id].pos_high_reg;
sound/soc/amd/ps/ps-sdw-dma.c
463
pos_low_reg = acp70_sdw1_dma_reg[stream->stream_id].pos_low_reg;
sound/soc/amd/ps/ps-sdw-dma.c
464
pos_high_reg = acp70_sdw1_dma_reg[stream->stream_id].pos_high_reg;
sound/soc/amd/ps/ps-sdw-dma.c
485
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
490
stream = substream->runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
493
bytescount = acp63_sdw_get_byte_count(stream, sdw_data->acp_base, sdw_data->acp_rev);
sound/soc/amd/ps/ps-sdw-dma.c
494
if (bytescount > stream->bytescount)
sound/soc/amd/ps/ps-sdw-dma.c
495
bytescount -= stream->bytescount;
sound/soc/amd/ps/ps-sdw-dma.c
514
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
517
stream = substream->runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
518
if (!stream)
sound/soc/amd/ps/ps-sdw-dma.c
522
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
524
sdw_data->acp63_sdw0_dma_stream[stream->stream_id] = NULL;
sound/soc/amd/ps/ps-sdw-dma.c
527
sdw_data->acp63_sdw1_dma_stream[stream->stream_id] = NULL;
sound/soc/amd/ps/ps-sdw-dma.c
536
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
538
sdw_data->acp70_sdw0_dma_stream[stream->stream_id] = NULL;
sound/soc/amd/ps/ps-sdw-dma.c
541
sdw_data->acp70_sdw1_dma_stream[stream->stream_id] = NULL;
sound/soc/amd/ps/ps-sdw-dma.c
550
kfree(stream);
sound/soc/amd/ps/ps-sdw-dma.c
557
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
564
stream = substream->runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
565
stream_id = stream->stream_id;
sound/soc/amd/ps/ps-sdw-dma.c
568
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
582
switch (stream->instance) {
sound/soc/amd/ps/ps-sdw-dma.c
691
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
717
stream = runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
720
acp63_config_dma(stream, sdw_data->acp_base, index);
sound/soc/amd/ps/ps-sdw-dma.c
736
struct acp_sdw_dma_stream *stream;
sound/soc/amd/ps/ps-sdw-dma.c
758
stream = runtime->private_data;
sound/soc/amd/ps/ps-sdw-dma.c
761
acp63_config_dma(stream, sdw_data->acp_base, index);
sound/soc/amd/raven/acp3x-i2s.c
113
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/raven/acp3x-i2s.c
166
substream->stream);
sound/soc/amd/raven/acp3x-i2s.c
167
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/raven/acp3x-i2s.c
213
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/raven/acp3x-i2s.c
89
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/raven/acp3x-pcm-dma.c
225
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/raven/acp3x-pcm-dma.c
264
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/raven/acp3x-pcm-dma.c
291
config_acp3x_dma(rtd, substream->stream);
sound/soc/amd/raven/acp3x-pcm-dma.c
307
bytescount = acp_get_byte_count(rtd, substream->stream);
sound/soc/amd/raven/acp3x-pcm-dma.c
337
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/renoir/acp3x-pdm-dma.c
218
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/renoir/acp3x-pdm-dma.c
231
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/renoir/acp3x-pdm-dma.c
253
config_acp_dma(rtd, substream->stream);
sound/soc/amd/renoir/acp3x-pdm-dma.c
274
struct snd_pcm_substream *stream)
sound/soc/amd/renoir/acp3x-pdm-dma.c
280
rtd = stream->runtime->private_data;
sound/soc/amd/renoir/acp3x-pdm-dma.c
281
buffersize = frames_to_bytes(stream->runtime,
sound/soc/amd/renoir/acp3x-pdm-dma.c
282
stream->runtime->buffer_size);
sound/soc/amd/renoir/acp3x-pdm-dma.c
283
bytescount = acp_pdm_get_byte_count(rtd, stream->stream);
sound/soc/amd/renoir/acp3x-pdm-dma.c
287
return bytes_to_frames(stream->runtime, pos);
sound/soc/amd/renoir/acp3x-pdm-dma.c
337
substream->stream);
sound/soc/amd/vangogh/acp5x-i2s.c
104
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/vangogh/acp5x-i2s.c
128
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/vangogh/acp5x-i2s.c
252
substream->stream);
sound/soc/amd/vangogh/acp5x-i2s.c
253
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/vangogh/acp5x-i2s.c
301
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/vangogh/acp5x-pcm-dma.c
220
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/amd/vangogh/acp5x-pcm-dma.c
258
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/vangogh/acp5x-pcm-dma.c
286
config_acp5x_dma(rtd, substream->stream);
sound/soc/amd/vangogh/acp5x-pcm-dma.c
301
bytescount = acp_get_byte_count(rtd, substream->stream);
sound/soc/amd/vangogh/acp5x-pcm-dma.c
331
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/amd/yc/acp6x-pdm-dma.c
194
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/yc/acp6x-pdm-dma.c
207
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/amd/yc/acp6x-pdm-dma.c
229
acp6x_config_dma(rtd, substream->stream);
sound/soc/amd/yc/acp6x-pdm-dma.c
248
struct snd_pcm_substream *stream)
sound/soc/amd/yc/acp6x-pdm-dma.c
254
rtd = stream->runtime->private_data;
sound/soc/amd/yc/acp6x-pdm-dma.c
255
buffersize = frames_to_bytes(stream->runtime,
sound/soc/amd/yc/acp6x-pdm-dma.c
256
stream->runtime->buffer_size);
sound/soc/amd/yc/acp6x-pdm-dma.c
257
bytescount = acp6x_pdm_get_byte_count(rtd, stream->stream);
sound/soc/amd/yc/acp6x-pdm-dma.c
261
return bytes_to_frames(stream->runtime, pos);
sound/soc/amd/yc/acp6x-pdm-dma.c
308
rtd->bytescount = acp6x_pdm_get_byte_count(rtd, substream->stream);
sound/soc/apple/mca.c
196
bool is_tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/apple/mca.c
233
bool is_tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/apple/mca.c
308
int stream, i;
sound/soc/apple/mca.c
317
for_each_pcm_streams(stream) {
sound/soc/apple/mca.c
318
if (be_cl->clocks_in_use[stream]) {
sound/soc/apple/mca.c
353
cl->clocks_in_use[substream->stream] = true;
sound/soc/apple/mca.c
377
cl->clocks_in_use[substream->stream] = false;
sound/soc/apple/mca.c
474
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/apple/mca.c
576
for_each_dpcm_be(fe, substream->stream, dpcm) {
sound/soc/apple/mca.c
595
bool is_tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/apple/mca.c
715
int stream;
sound/soc/apple/mca.c
717
for_each_pcm_streams(stream)
sound/soc/apple/mca.c
718
if (cl->port_started[stream])
sound/soc/apple/mca.c
735
for_each_dpcm_fe(be, substream->stream, dpcm) {
sound/soc/apple/mca.c
758
cl->port_started[substream->stream] = true;
sound/soc/apple/mca.c
771
cl->port_started[substream->stream] = true;
sound/soc/apple/mca.c
782
cl->port_started[substream->stream] = false;
sound/soc/apple/mca.c
839
struct dma_chan *chan = cl->dma_chans[substream->stream];
sound/soc/apple/mca.c
870
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/apple/mca.c
919
static struct dma_chan *mca_request_dma_channel(struct mca_cluster *cl, unsigned int stream)
sound/soc/apple/mca.c
921
bool is_tx = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/atmel-i2s.c
275
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/atmel-i2s.c
327
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/atmel-i2s.c
480
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/atmel-pcm-dma.c
63
substream->stream == SNDRV_PCM_STREAM_PLAYBACK
sound/soc/atmel/atmel-pcm-pdc.c
99
substream->stream == SNDRV_PCM_STREAM_PLAYBACK
sound/soc/atmel/atmel_ssc_dai.c
293
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/atmel/atmel_ssc_dai.c
340
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/atmel/atmel_ssc_dai.c
479
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/atmel/atmel_ssc_dai.c
720
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/atmel/atmel_ssc_dai.c
744
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/atmel/mchp-i2s-mcc.c
547
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/mchp-i2s-mcc.c
764
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/mchp-i2s-mcc.c
820
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/atmel/mchp-spdifrx.c
439
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/atmel/mchp-spdiftx.c
361
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/au1x/dbdma2.c
189
return &pcd[ss->stream];
sound/soc/au1x/dbdma2.c
200
stype = substream->stream;
sound/soc/au1x/dbdma2.c
238
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/au1x/dbdma2.c
282
int stype = substream->stream, *dmaids;
sound/soc/au1x/dma.c
100
pointer->next = stream->buffer;
sound/soc/au1x/dma.c
104
static void au1000_dma_stop(struct audio_stream *stream)
sound/soc/au1x/dma.c
106
if (stream->buffer)
sound/soc/au1x/dma.c
107
disable_dma(stream->dma);
sound/soc/au1x/dma.c
110
static void au1000_dma_start(struct audio_stream *stream)
sound/soc/au1x/dma.c
112
if (!stream->buffer)
sound/soc/au1x/dma.c
115
init_dma(stream->dma);
sound/soc/au1x/dma.c
116
if (get_dma_active_buffer(stream->dma) == 0) {
sound/soc/au1x/dma.c
117
clear_dma_done0(stream->dma);
sound/soc/au1x/dma.c
118
set_dma_addr0(stream->dma, stream->buffer->start);
sound/soc/au1x/dma.c
119
set_dma_count0(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
120
set_dma_addr1(stream->dma, stream->buffer->next->start);
sound/soc/au1x/dma.c
121
set_dma_count1(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
123
clear_dma_done1(stream->dma);
sound/soc/au1x/dma.c
124
set_dma_addr1(stream->dma, stream->buffer->start);
sound/soc/au1x/dma.c
125
set_dma_count1(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
126
set_dma_addr0(stream->dma, stream->buffer->next->start);
sound/soc/au1x/dma.c
127
set_dma_count0(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
129
enable_dma_buffers(stream->dma);
sound/soc/au1x/dma.c
130
start_dma(stream->dma);
sound/soc/au1x/dma.c
135
struct audio_stream *stream = (struct audio_stream *)ptr;
sound/soc/au1x/dma.c
136
struct snd_pcm_substream *substream = stream->substream;
sound/soc/au1x/dma.c
138
switch (get_dma_buffer_done(stream->dma)) {
sound/soc/au1x/dma.c
140
stream->buffer = stream->buffer->next;
sound/soc/au1x/dma.c
141
clear_dma_done0(stream->dma);
sound/soc/au1x/dma.c
142
set_dma_addr0(stream->dma, stream->buffer->next->start);
sound/soc/au1x/dma.c
143
set_dma_count0(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
144
enable_dma_buffer0(stream->dma);
sound/soc/au1x/dma.c
147
stream->buffer = stream->buffer->next;
sound/soc/au1x/dma.c
148
clear_dma_done1(stream->dma);
sound/soc/au1x/dma.c
149
set_dma_addr1(stream->dma, stream->buffer->next->start);
sound/soc/au1x/dma.c
150
set_dma_count1(stream->dma, stream->period_size >> 1);
sound/soc/au1x/dma.c
151
enable_dma_buffer1(stream->dma);
sound/soc/au1x/dma.c
154
pr_debug("DMA %d missed interrupt.\n", stream->dma);
sound/soc/au1x/dma.c
155
au1000_dma_stop(stream);
sound/soc/au1x/dma.c
156
au1000_dma_start(stream);
sound/soc/au1x/dma.c
159
pr_debug("DMA %d empty irq.\n", stream->dma);
sound/soc/au1x/dma.c
186
return &(ctx->stream[ss->stream]);
sound/soc/au1x/dma.c
194
int *dmaids, s = substream->stream;
sound/soc/au1x/dma.c
203
ctx->stream[s].dma = request_au1000_dma(dmaids[s], name,
sound/soc/au1x/dma.c
205
&ctx->stream[s]);
sound/soc/au1x/dma.c
206
set_dma_mode(ctx->stream[s].dma,
sound/soc/au1x/dma.c
207
get_dma_mode(ctx->stream[s].dma) & ~DMA_NC);
sound/soc/au1x/dma.c
209
ctx->stream[s].substream = substream;
sound/soc/au1x/dma.c
210
ctx->stream[s].buffer = NULL;
sound/soc/au1x/dma.c
220
int stype = substream->stream;
sound/soc/au1x/dma.c
222
ctx->stream[stype].substream = NULL;
sound/soc/au1x/dma.c
223
free_au1000_dma(ctx->stream[stype].dma);
sound/soc/au1x/dma.c
232
struct audio_stream *stream = ss_to_as(substream, component);
sound/soc/au1x/dma.c
234
return au1000_setup_dma_link(stream,
sound/soc/au1x/dma.c
242
struct audio_stream *stream = ss_to_as(substream, component);
sound/soc/au1x/dma.c
243
au1000_release_dma_link(stream);
sound/soc/au1x/dma.c
250
struct audio_stream *stream = ss_to_as(substream, component);
sound/soc/au1x/dma.c
255
au1000_dma_start(stream);
sound/soc/au1x/dma.c
258
au1000_dma_stop(stream);
sound/soc/au1x/dma.c
270
struct audio_stream *stream = ss_to_as(ss, component);
sound/soc/au1x/dma.c
273
location = get_dma_residue(stream->dma);
sound/soc/au1x/dma.c
274
location = stream->buffer->relative_end - location;
sound/soc/au1x/dma.c
42
struct audio_stream stream[2]; /* playback & capture */
sound/soc/au1x/dma.c
45
static void au1000_release_dma_link(struct audio_stream *stream)
sound/soc/au1x/dma.c
50
stream->period_size = 0;
sound/soc/au1x/dma.c
51
stream->periods = 0;
sound/soc/au1x/dma.c
52
pointer = stream->buffer;
sound/soc/au1x/dma.c
59
} while (pointer != stream->buffer);
sound/soc/au1x/dma.c
60
stream->buffer = NULL;
sound/soc/au1x/dma.c
63
static int au1000_setup_dma_link(struct audio_stream *stream,
sound/soc/au1x/dma.c
67
struct snd_pcm_substream *substream = stream->substream;
sound/soc/au1x/dma.c
75
if (stream->period_size == period_bytes &&
sound/soc/au1x/dma.c
76
stream->periods == periods)
sound/soc/au1x/dma.c
79
au1000_release_dma_link(stream);
sound/soc/au1x/dma.c
81
stream->period_size = period_bytes;
sound/soc/au1x/dma.c
82
stream->periods = periods;
sound/soc/au1x/dma.c
84
stream->buffer = kmalloc_obj(struct pcm_period);
sound/soc/au1x/dma.c
85
if (!stream->buffer)
sound/soc/au1x/dma.c
87
pointer = stream->buffer;
sound/soc/au1x/dma.c
94
au1000_release_dma_link(stream);
sound/soc/au1x/psc-ac97.c
213
int chans, t, stype = substream->stream;
sound/soc/au1x/psc-ac97.c
292
int ret, stype = substream->stream;
sound/soc/au1x/psc-i2s.c
240
int ret, stype = substream->stream;
sound/soc/bcm/bcm2835-i2s.c
631
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK
sound/soc/bcm/bcm2835-i2s.c
634
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE
sound/soc/bcm/bcm2835-i2s.c
647
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/bcm/bcm2835-i2s.c
672
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/bcm/bcm63xx-i2s-whistler.c
149
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/bcm63xx-i2s-whistler.c
96
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/bcm63xx-pcm-whistler.c
156
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/bcm63xx-pcm-whistler.c
84
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-pcm.c
255
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-pcm.c
302
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-pcm.c
320
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-pcm.c
357
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-pcm.c
407
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-pcm.c
600
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-pcm.c
618
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-pcm.c
655
is_play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0;
sound/soc/bcm/cygnus-pcm.c
677
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-ssp.c
645
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-ssp.c
739
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-ssp.c
757
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-ssp.c
773
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/bcm/cygnus-ssp.c
935
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/bcm/cygnus-ssp.c
946
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
122
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
130
stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
138
static void ep93xx_i2s_disable(struct ep93xx_i2s_info *info, int stream)
sound/soc/cirrus/ep93xx-i2s.c
144
stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
148
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
212
return ep93xx_i2s_enable(info, substream->stream);
sound/soc/cirrus/ep93xx-i2s.c
220
ep93xx_i2s_disable(info, substream->stream);
sound/soc/cirrus/ep93xx-i2s.c
324
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/cirrus/ep93xx-i2s.c
94
static int ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream)
sound/soc/codecs/ac97.c
39
int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/codecs/ad193x.c
319
bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/adau1701.c
470
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/adau17x1.c
193
unsigned int stream = e->shift_l;
sound/soc/codecs/adau17x1.c
203
adau->dsp_bypass[stream] = false;
sound/soc/codecs/adau17x1.c
206
val = (adau->tdm_slot[stream] * 2) + 1;
sound/soc/codecs/adau17x1.c
207
adau->dsp_bypass[stream] = true;
sound/soc/codecs/adau17x1.c
211
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/adau17x1.c
236
unsigned int stream = e->shift_l;
sound/soc/codecs/adau17x1.c
240
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/adau1977.c
603
static int adau1977_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/adav80x.c
524
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/ak4613.c
437
int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/ak4613.c
742
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/ak4619.c
541
bool is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/ak4642.c
280
int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/ak4642.c
323
int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/cpcap.c
1274
int direction = substream->stream;
sound/soc/codecs/cs35l35.c
515
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs35l36.c
892
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs35l41.c
780
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs35l45.c
735
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs35l45.c
809
static int cs35l45_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs35l56.c
521
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs35l56.c
611
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs4234.c
414
if (sub->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/cs4234.c
481
if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs4265.c
410
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/codecs/cs4271.c
356
if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/codecs/cs4271.c
358
(substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/codecs/cs4271.c
405
static int cs4271_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs4271.c
413
if (stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/cs42l42-sdw.c
81
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/cs42l42.c
1026
int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs42l42.c
1035
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/cs42l42.c
1042
cs42l42->stream_use &= ~(1 << stream);
sound/soc/codecs/cs42l42.c
1106
cs42l42->stream_use |= 1 << stream;
sound/soc/codecs/cs42l42.c
1108
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/cs42l42.c
940
switch (substream->stream) {
sound/soc/codecs/cs42l42.h
71
int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream);
sound/soc/codecs/cs42l43.c
419
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/codecs/cs42l84.c
524
switch (substream->stream) {
sound/soc/codecs/cs42l84.c
567
static int cs42l84_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/cs42l84.c
576
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/cs42l84.c
579
cs42l84->stream_use &= ~(1 << stream);
sound/soc/codecs/cs42l84.c
644
cs42l84->stream_use |= 1 << stream;
sound/soc/codecs/cs42l84.c
646
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/cs42xx8.c
265
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/cs42xx8.c
353
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/cs47l15.c
1239
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l15.c
1241
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l15.c
1256
return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
sound/soc/codecs/cs47l24.c
1076
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l24.c
1078
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l24.c
1094
return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream);
sound/soc/codecs/cs47l35.c
1505
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l35.c
1507
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l35.c
1524
return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
sound/soc/codecs/cs47l85.c
2447
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l85.c
2449
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l85.c
2466
return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
sound/soc/codecs/cs47l90.c
2366
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l90.c
2368
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l90.c
2385
return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
sound/soc/codecs/cs47l92.c
1843
struct snd_compr_stream *stream)
sound/soc/codecs/cs47l92.c
1845
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs47l92.c
1860
return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
sound/soc/codecs/cs48l32.c
3284
struct snd_compr_stream *stream)
sound/soc/codecs/cs48l32.c
3286
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/cs48l32.c
3296
return wm_adsp_compr_open(&cs48l32_codec->dsp, stream);
sound/soc/codecs/cs53l30.c
820
static int cs53l30_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/es8311.c
511
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/es8323.c
619
static int es8323_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/es8328.c
469
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/es8328.c
524
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/es8375.c
472
static int es8375_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/es8375.c
478
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/es8375.c
483
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/framer-codec.c
195
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/codecs/fs210x.c
758
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/fs210x.c
782
static int fs210x_dai_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/fs210x.c
787
if (stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/hda-dai.c
21
pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]);
sound/soc/codecs/hda-dai.c
47
pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]);
sound/soc/codecs/hda-dai.c
76
struct hdac_stream *stream;
sound/soc/codecs/hda-dai.c
83
stream = substream->runtime->private_data;
sound/soc/codecs/hda-dai.c
90
ret = snd_hda_codec_prepare(codec, stream_info, stream->stream_tag, format, substream);
sound/soc/codecs/hda.c
117
snd_soc_dai_init_dma_data(dai, &pcm->stream[0], &pcm->stream[1]);
sound/soc/codecs/hda.c
131
int stream;
sound/soc/codecs/hda.c
137
for_each_pcm_streams(stream)
sound/soc/codecs/hda.c
138
snd_soc_dapm_free_widget(snd_soc_dai_get_widget(dai, stream));
sound/soc/codecs/hda.c
31
struct snd_soc_pcm_stream *stream;
sound/soc/codecs/hda.c
40
stream = &drvs[i].playback;
sound/soc/codecs/hda.c
41
if (!pcm->stream[dir].substreams) {
sound/soc/codecs/hda.c
46
stream->stream_name =
sound/soc/codecs/hda.c
49
if (!stream->stream_name)
sound/soc/codecs/hda.c
51
stream->channels_min = pcm->stream[dir].channels_min;
sound/soc/codecs/hda.c
52
stream->channels_max = pcm->stream[dir].channels_max;
sound/soc/codecs/hda.c
53
stream->rates = pcm->stream[dir].rates;
sound/soc/codecs/hda.c
54
stream->formats = pcm->stream[dir].formats;
sound/soc/codecs/hda.c
55
stream->subformats = pcm->stream[dir].subformats;
sound/soc/codecs/hda.c
56
stream->sig_bits = pcm->stream[dir].maxbps;
sound/soc/codecs/hda.c
60
stream = &drvs[i].capture;
sound/soc/codecs/hda.c
61
if (!pcm->stream[dir].substreams) {
sound/soc/codecs/hda.c
66
stream->stream_name =
sound/soc/codecs/hda.c
69
if (!stream->stream_name)
sound/soc/codecs/hda.c
71
stream->channels_min = pcm->stream[dir].channels_min;
sound/soc/codecs/hda.c
72
stream->channels_max = pcm->stream[dir].channels_max;
sound/soc/codecs/hda.c
73
stream->rates = pcm->stream[dir].rates;
sound/soc/codecs/hda.c
74
stream->formats = pcm->stream[dir].formats;
sound/soc/codecs/hda.c
75
stream->subformats = pcm->stream[dir].subformats;
sound/soc/codecs/hda.c
76
stream->sig_bits = pcm->stream[dir].maxbps;
sound/soc/codecs/hdac_hda.c
194
void *stream, int direction)
sound/soc/codecs/hdac_hda.c
201
if (!stream)
sound/soc/codecs/hdac_hda.c
206
hstream = (struct hdac_stream *)stream;
sound/soc/codecs/hdac_hda.c
223
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/hdac_hda.c
241
hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val;
sound/soc/codecs/hdac_hda.c
258
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
272
unsigned int stream;
sound/soc/codecs/hdac_hda.c
280
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
282
stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream];
sound/soc/codecs/hdac_hda.c
283
format_val = hda_pvt->pcm[dai->id].format_val[substream->stream];
sound/soc/codecs/hdac_hda.c
286
stream, format_val, substream);
sound/soc/codecs/hdac_hda.c
309
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
331
hda_stream = &pcm->stream[substream->stream];
sound/soc/codecs/hdac_hda.c
57
static int hdac_hda_dai_set_stream(struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/hdac_hdmi.c
439
void *stream, int direction)
sound/soc/codecs/hdac_hdmi.c
447
if (!stream)
sound/soc/codecs/hdac_hdmi.c
450
hstream = (struct hdac_stream *)stream;
sound/soc/codecs/hdac_hdmi.c
685
void *priv, const char *wname, const char *stream,
sound/soc/codecs/hdac_hdmi.c
695
w->sname = stream;
sound/soc/codecs/hdmi-codec.c
447
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/hdmi-codec.c
496
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/idt821034.c
842
max_ch = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/codecs/jz4725b.c
479
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/jz4760.c
208
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4760.c
219
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4760.c
235
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4760.c
673
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/jz4770.c
227
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4770.c
239
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4770.c
255
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/jz4770.c
705
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/lpass-rx-macro.c
1826
switch (substream->stream) {
sound/soc/codecs/lpass-rx-macro.c
1904
static int rx_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-rx-macro.c
1912
if (stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/lpass-tx-macro.c
1189
static int tx_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-va-macro.c
923
static int va_macro_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/lpass-wsa-macro.c
1280
switch (substream->stream) {
sound/soc/codecs/max98363.c
210
struct sdw_stream_runtime *stream;
sound/soc/codecs/max98363.c
215
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/codecs/max98363.c
217
if (!stream)
sound/soc/codecs/max98363.c
223
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/max98363.c
242
&port_config, 1, stream);
sound/soc/codecs/max98363.c
259
struct sdw_stream_runtime *stream =
sound/soc/codecs/max98363.c
265
sdw_stream_remove_slave(max98363->slave, stream);
sound/soc/codecs/max98373-sdw.c
536
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/mc13783.c
141
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/ml26124.c
380
switch (priv->substream->stream) {
sound/soc/codecs/msm8916-wcd-digital.c
890
switch (substream->stream) {
sound/soc/codecs/mt6351.c
271
__func__, substream->stream, rate);
sound/soc/codecs/mt6351.c
273
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/mt6351.c
275
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/mt6358.c
2257
substream->stream,
sound/soc/codecs/mt6358.c
2261
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/mt6358.c
2263
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/mt6359.c
2652
__func__, id, substream->stream, rate, substream->number);
sound/soc/codecs/mt6359.c
2654
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/mt6359.c
2656
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/mt6359.c
2668
dev_dbg(priv->dev, "%s stream %d\n", __func__, substream->stream);
sound/soc/codecs/mt6359.c
2669
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/mt6359.c
2671
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/mt6359.c
2683
dev_dbg(priv->dev, "%s stream %d\n", __func__, substream->stream);
sound/soc/codecs/mt6359.c
2684
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/mt6359.c
2686
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/nau8821.c
803
nau8821_get_osr(struct nau8821 *nau8821, int stream)
sound/soc/codecs/nau8821.c
807
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/nau8821.c
833
osr = nau8821_get_osr(nau8821, substream->stream);
sound/soc/codecs/nau8821.c
857
osr = nau8821_get_osr(nau8821, substream->stream);
sound/soc/codecs/nau8821.c
862
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/nau8824.c
1037
nau8824_get_osr(struct nau8824 *nau8824, int stream)
sound/soc/codecs/nau8824.c
1041
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/nau8824.c
1065
osr = nau8824_get_osr(nau8824, substream->stream);
sound/soc/codecs/nau8824.c
1092
osr = nau8824_get_osr(nau8824, substream->stream);
sound/soc/codecs/nau8824.c
1097
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/nau8825.c
1237
nau8825_get_osr(struct nau8825 *nau8825, int stream)
sound/soc/codecs/nau8825.c
1241
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/nau8825.c
1265
osr = nau8825_get_osr(nau8825, substream->stream);
sound/soc/codecs/nau8825.c
1292
osr = nau8825_get_osr(nau8825, substream->stream);
sound/soc/codecs/nau8825.c
1297
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/ntp8918.c
300
static int ntp8918_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/pcm1754.c
72
static int pcm1754_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/pcm6240.c
1883
static int pcmdevice_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/peb2466.c
799
max_ch = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/codecs/pm4125.c
1418
static int pm4125_codec_set_sdw_stream(struct snd_soc_dai *dai, void *stream, int direction)
sound/soc/codecs/pm4125.c
1423
sdw_priv->sruntime = stream;
sound/soc/codecs/pm4125.h
226
int pm4125_sdw_set_sdw_stream(struct pm4125_sdw_priv *pm4125, struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/pm4125.h
239
struct snd_soc_dai *dai, void *stream, int direction)
sound/soc/codecs/rk3308_codec.c
677
return (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/codecs/rk817_codec.c
350
static int rk817_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/rt1017-sdca-sdw.c
595
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt1308-sdw.c
552
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/rt1316-sdw.c
531
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/rt1318-sdw.c
586
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt1320-sdw.c
2647
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt5682-sdw.c
127
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/rt5682-sdw.c
207
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt700.c
914
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/rt711-sdca.c
1350
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt711.c
1002
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt712-sdca.c
1474
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt721-sdca.c
1294
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rt722-sdca.c
1144
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/rtq9128.c
614
static int rtq9128_dai_hw_params(struct snd_pcm_substream *stream, struct snd_pcm_hw_params *param,
sound/soc/codecs/rtq9128.c
718
static int rtq9128_dai_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/rtq9128.c
724
dev_dbg(dev, "%s: mute (%d), stream (%d)\n", __func__, mute, stream);
sound/soc/codecs/sdw-mockup.c
75
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/sgtl5000.c
1064
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/sma1303.c
1184
static int sma1303_dai_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/sma1303.c
1190
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/sma1303.c
992
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/sma1307.c
1180
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/sma1307.c
1526
int stream)
sound/soc/codecs/sma1307.c
1531
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/codecs/sta529.c
236
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/stac9766.c
174
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/sti-sas.c
174
static int stih407_sas_dac_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/tas2783-sdw.c
943
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/tas5086.c
450
static int tas5086_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/tlv320aic23.c
345
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/tlv320aic23.c
401
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/tscs42xx.c
1173
static int tscs42xx_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/tscs42xx.c
1179
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/tscs42xx.c
1184
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/tscs454.c
3221
substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/codecs/tscs454.c
3241
substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/codecs/twl4030.c
1690
twl4030_tdm_enable(component, substream->stream, 0);
sound/soc/codecs/twl4030.c
1710
twl4030_tdm_enable(component, substream->stream, 1);
sound/soc/codecs/twl4030.c
1963
twl4030_voice_enable(component, substream->stream, 0);
sound/soc/codecs/twl4030.c
1975
twl4030_voice_enable(component, substream->stream, 1);
sound/soc/codecs/uda1334.c
183
static int uda1334_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/uda1380.c
559
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/uda1380.c
580
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wcd9335.c
1880
switch (substream->stream) {
sound/soc/codecs/wcd9335.c
1947
substream->stream);
sound/soc/codecs/wcd9335.c
1952
wcd9335_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream);
sound/soc/codecs/wcd934x.c
1781
switch (substream->stream) {
sound/soc/codecs/wcd934x.c
1848
substream->stream);
sound/soc/codecs/wcd934x.c
1854
return wcd934x_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream);
sound/soc/codecs/wcd937x.c
2646
void *stream, int direction)
sound/soc/codecs/wcd937x.c
2651
wcd->sruntime = stream;
sound/soc/codecs/wcd937x.h
534
void *stream, int direction);
sound/soc/codecs/wcd937x.h
550
void *stream, int direction)
sound/soc/codecs/wcd938x-sdw.c
135
void *stream, int direction)
sound/soc/codecs/wcd938x-sdw.c
137
wcd->sruntime = stream;
sound/soc/codecs/wcd938x.c
3293
void *stream, int direction)
sound/soc/codecs/wcd938x.c
3298
return wcd938x_sdw_set_sdw_stream(wcd, dai, stream, direction);
sound/soc/codecs/wcd938x.h
656
void *stream, int direction);
sound/soc/codecs/wcd938x.h
672
void *stream, int direction)
sound/soc/codecs/wcd939x-sdw.c
179
struct snd_soc_dai *dai, void *stream,
sound/soc/codecs/wcd939x-sdw.c
182
wcd->sruntime = stream;
sound/soc/codecs/wcd939x.c
3262
void *stream, int direction)
sound/soc/codecs/wcd939x.c
3267
return wcd939x_sdw_set_sdw_stream(wcd, dai, stream, direction);
sound/soc/codecs/wcd939x.h
916
void *stream, int direction);
sound/soc/codecs/wcd939x.h
932
void *stream, int direction)
sound/soc/codecs/wm2200.c
1752
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm2200.c
1761
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm5100.c
1481
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm5100.c
1490
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm5102.c
1928
struct snd_compr_stream *stream)
sound/soc/codecs/wm5102.c
1932
return wm_adsp_compr_open(&priv->core.adsp[0], stream);
sound/soc/codecs/wm5110.c
2249
struct snd_compr_stream *stream)
sound/soc/codecs/wm5110.c
2251
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/wm5110.c
2267
return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream);
sound/soc/codecs/wm8350.c
934
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/wm8524.c
151
static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wm8580.c
579
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/wm8770.c
436
switch (substream->stream) {
sound/soc/codecs/wm8900.c
652
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/wm8940.c
411
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE
sound/soc/codecs/wm8960.c
836
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/wm8960.c
894
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/wm8961.c
534
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && target < 64) {
sound/soc/codecs/wm8961.c
539
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && target < 256) {
sound/soc/codecs/wm8994.c
2938
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm8994.c
2951
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm8994.c
3073
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/codecs/wm8995.c
1566
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* ||
sound/soc/codecs/wm8995.c
1578
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* ||
sound/soc/codecs/wm8996.c
1744
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm8996.c
1755
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
sound/soc/codecs/wm9705.c
239
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm9712.c
528
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm9712.c
545
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm9713.c
1031
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm9713.c
1048
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/codecs/wm_adsp.c
1222
if (compr->stream)
sound/soc/codecs/wm_adsp.c
1223
snd_compr_fragment_elapsed(compr->stream);
sound/soc/codecs/wm_adsp.c
1231
int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream)
sound/soc/codecs/wm_adsp.c
1234
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/codecs/wm_adsp.c
1246
if (wm_adsp_fw[dsp->fw].compr_direction != stream->direction) {
sound/soc/codecs/wm_adsp.c
1269
compr->stream = stream;
sound/soc/codecs/wm_adsp.c
1274
stream->runtime->private_data = compr;
sound/soc/codecs/wm_adsp.c
1284
struct snd_compr_stream *stream)
sound/soc/codecs/wm_adsp.c
1286
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
1303
static int wm_adsp_compr_check_params(struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.c
1306
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
1331
if (stream->direction == SND_COMPRESS_PLAYBACK) {
sound/soc/codecs/wm_adsp.c
1359
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.c
1362
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
1366
ret = wm_adsp_compr_check_params(stream, params);
sound/soc/codecs/wm_adsp.c
1387
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.c
1390
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
1698
struct snd_compr_stream *stream, int cmd)
sound/soc/codecs/wm_adsp.c
1700
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
172
struct snd_compr_stream *stream;
sound/soc/codecs/wm_adsp.c
1837
if (compr && compr->stream)
sound/soc/codecs/wm_adsp.c
1838
snd_compr_fragment_elapsed(compr->stream);
sound/soc/codecs/wm_adsp.c
1862
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.c
1865
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
1877
snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN);
sound/soc/codecs/wm_adsp.c
1897
snd_compr_stop_error(stream,
sound/soc/codecs/wm_adsp.c
1987
snd_compr_stop_error(compr->stream, SNDRV_PCM_STATE_XRUN);
sound/soc/codecs/wm_adsp.c
2021
struct snd_compr_stream *stream, char __user *buf,
sound/soc/codecs/wm_adsp.c
2024
struct wm_adsp_compr *compr = stream->runtime->private_data;
sound/soc/codecs/wm_adsp.c
2030
if (stream->direction == SND_COMPRESS_CAPTURE)
sound/soc/codecs/wm_adsp.c
2049
if (compr->stream)
sound/soc/codecs/wm_adsp.c
2050
snd_compr_fragment_elapsed(compr->stream);
sound/soc/codecs/wm_adsp.h
120
int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream);
sound/soc/codecs/wm_adsp.h
122
struct snd_compr_stream *stream);
sound/soc/codecs/wm_adsp.h
124
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.h
127
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.h
130
struct snd_compr_stream *stream, int cmd);
sound/soc/codecs/wm_adsp.h
133
struct snd_compr_stream *stream,
sound/soc/codecs/wm_adsp.h
136
struct snd_compr_stream *stream,
sound/soc/codecs/wsa881x.c
1012
void *stream, int direction)
sound/soc/codecs/wsa881x.c
1016
wsa881x->sruntime = stream;
sound/soc/codecs/wsa881x.c
1021
static int wsa881x_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa883x.c
1372
void *stream, int direction)
sound/soc/codecs/wsa883x.c
1376
wsa883x->sruntime = stream;
sound/soc/codecs/wsa883x.c
1381
static int wsa883x_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa884x.c
1804
static int wsa884x_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/codecs/wsa884x.c
1829
void *stream, int direction)
sound/soc/codecs/wsa884x.c
1833
wsa884x->sruntime = stream;
sound/soc/codecs/zl38060.c
274
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/codecs/zl38060.c
320
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/dwc/dwc-i2s.c
154
static void i2s_enable_dma(struct dw_i2s_dev *dev, u32 stream)
sound/soc/dwc/dwc-i2s.c
159
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/dwc/dwc-i2s.c
167
static void i2s_disable_dma(struct dw_i2s_dev *dev, u32 stream)
sound/soc/dwc/dwc-i2s.c
172
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-i2s.c
197
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/dwc/dwc-i2s.c
203
i2s_enable_dma(dev, substream->stream);
sound/soc/dwc/dwc-i2s.c
205
i2s_enable_irqs(dev, substream->stream, config->chan_nr);
sound/soc/dwc/dwc-i2s.c
213
i2s_clear_irqs(dev, substream->stream);
sound/soc/dwc/dwc-i2s.c
214
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/dwc/dwc-i2s.c
220
i2s_disable_dma(dev, substream->stream);
sound/soc/dwc/dwc-i2s.c
222
i2s_disable_irqs(dev, substream->stream, 8);
sound/soc/dwc/dwc-i2s.c
246
static void dw_i2s_config(struct dw_i2s_dev *dev, int stream)
sound/soc/dwc/dwc-i2s.c
252
i2s_disable_channels(dev, stream);
sound/soc/dwc/dwc-i2s.c
255
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-i2s.c
321
dw_i2s_config(dev, substream->stream);
sound/soc/dwc/dwc-i2s.c
354
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/dwc/dwc-i2s.c
41
static inline void i2s_disable_channels(struct dw_i2s_dev *dev, u32 stream)
sound/soc/dwc/dwc-i2s.c
45
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-i2s.c
516
int stream, ret;
sound/soc/dwc/dwc-i2s.c
525
for_each_pcm_streams(stream)
sound/soc/dwc/dwc-i2s.c
526
if (snd_soc_dai_stream_active(dai, stream))
sound/soc/dwc/dwc-i2s.c
527
dw_i2s_config(dev, stream);
sound/soc/dwc/dwc-i2s.c
54
static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream)
sound/soc/dwc/dwc-i2s.c
58
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-i2s.c
67
static inline void i2s_disable_irqs(struct dw_i2s_dev *dev, u32 stream,
sound/soc/dwc/dwc-i2s.c
72
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-i2s.c
85
static inline void i2s_enable_irqs(struct dw_i2s_dev *dev, u32 stream,
sound/soc/dwc/dwc-i2s.c
90
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-pcm.c
203
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/dwc/dwc-pcm.c
214
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/dwc/dwc-pcm.c
234
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/fsl-asoc-card.c
176
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl-asoc-card.c
187
priv->streams |= BIT(substream->stream);
sound/soc/fsl/fsl-asoc-card.c
252
priv->streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl-asoc-card.c
266
priv->streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_asrc.c
729
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_asrc_dma.c
134
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_asrc_dma.c
147
int stream = substream->stream;
sound/soc/fsl/fsl_asrc_dma.c
156
for_each_dpcm_be(rtd, stream, dpcm) {
sound/soc/fsl/fsl_asrc_dma.c
177
substream_be = snd_soc_dpcm_get_substream(be, stream);
sound/soc/fsl/fsl_asrc_dma.c
222
be_chan = soc_component_to_pcm(component_be)->chan[substream->stream];
sound/soc/fsl/fsl_asrc_dma.c
324
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_asrc_dma.c
345
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_asrc_dma.c
58
u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN;
sound/soc/fsl/fsl_asrc_m2m.c
294
static int fsl_asrc_m2m_comp_open(struct snd_compr_stream *stream)
sound/soc/fsl/fsl_asrc_m2m.c
296
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_asrc_m2m.c
297
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
340
static int fsl_asrc_m2m_comp_release(struct snd_compr_stream *stream)
sound/soc/fsl/fsl_asrc_m2m.c
342
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_asrc_m2m.c
343
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
357
static int fsl_asrc_m2m_comp_set_params(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
360
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_asrc_m2m.c
361
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
460
static int fsl_asrc_m2m_comp_task_create(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
465
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_asrc_m2m.c
466
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
532
static int fsl_asrc_m2m_comp_task_start(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
535
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
541
static int fsl_asrc_m2m_comp_task_stop(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
547
static int fsl_asrc_m2m_comp_task_free(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
550
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_asrc_m2m.c
551
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/fsl/fsl_asrc_m2m.c
617
static int fsl_asrc_m2m_get_codec_caps(struct snd_compr_stream *stream,
sound/soc/fsl/fsl_asrc_m2m.c
620
struct fsl_asrc *asrc = stream->private_data;
sound/soc/fsl/fsl_audmix.c
286
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/fsl_dma.c
169
if (dma_private->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_dma.c
398
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/fsl_dma.c
476
mr |= (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/fsl/fsl_dma.c
636
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_dma.c
686
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_easrc.c
1464
ctx_priv->ctx_streams |= BIT(substream->stream);
sound/soc/fsl/fsl_easrc.c
1470
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_easrc.c
1532
if (ctx_priv->ctx_streams & BIT(substream->stream)) {
sound/soc/fsl/fsl_easrc.c
1533
ctx_priv->ctx_streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_esai.c
540
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_esai.c
761
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_qmc_audio.c
215
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_qmc_audio.c
472
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/fsl/fsl_qmc_audio.c
525
frame_bits = (substream->stream == SNDRV_PCM_STREAM_CAPTURE) ?
sound/soc/fsl/fsl_qmc_audio.c
596
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/fsl/fsl_qmc_audio.c
631
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_rpmsg.c
73
if (!(rpmsg->mclk_streams & BIT(substream->stream))) {
sound/soc/fsl/fsl_rpmsg.c
80
rpmsg->mclk_streams |= BIT(substream->stream);
sound/soc/fsl/fsl_rpmsg.c
91
if (rpmsg->mclk_streams & BIT(substream->stream)) {
sound/soc/fsl/fsl_rpmsg.c
93
rpmsg->mclk_streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_sai.c
560
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_sai.c
626
if (!(sai->mclk_streams & BIT(substream->stream))) {
sound/soc/fsl/fsl_sai.c
631
sai->mclk_streams |= BIT(substream->stream);
sound/soc/fsl/fsl_sai.c
759
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_sai.c
769
sai->mclk_streams & BIT(substream->stream)) {
sound/soc/fsl/fsl_sai.c
771
sai->mclk_streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_sai.c
823
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_sai.c
908
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_spdif.c
1002
int stream;
sound/soc/fsl/fsl_spdif.c
1035
for_each_pcm_streams(stream)
sound/soc/fsl/fsl_spdif.c
1036
rtd->pcm->streams[stream].substream_count = (set ? 0 : 1);
sound/soc/fsl/fsl_spdif.c
625
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_spdif.c
653
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_spdif.c
709
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/fsl_spdif.c
740
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_ssi.c
1112
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_ssi.c
683
bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_ssi.c
723
baudclk_is_used = ssi->baudclk_streams & ~(BIT(substream->stream));
sound/soc/fsl/fsl_ssi.c
808
bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_ssi.c
823
if (!(ssi->baudclk_streams & BIT(substream->stream))) {
sound/soc/fsl/fsl_ssi.c
828
ssi->baudclk_streams |= BIT(substream->stream);
sound/soc/fsl/fsl_ssi.c
897
ssi->baudclk_streams & BIT(substream->stream)) {
sound/soc/fsl/fsl_ssi.c
899
ssi->baudclk_streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_xcvr.c
500
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_xcvr.c
625
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_xcvr.c
628
if (xcvr->streams & BIT(substream->stream)) {
sound/soc/fsl/fsl_xcvr.c
661
xcvr->streams |= BIT(substream->stream);
sound/soc/fsl/fsl_xcvr.c
681
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/fsl_xcvr.c
685
xcvr->streams &= ~BIT(substream->stream);
sound/soc/fsl/fsl_xcvr.c
729
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/imx-audmix.c
53
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/imx-audmix.c
92
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/imx-hdmi.c
37
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/fsl/imx-pcm-fiq.c
118
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-fiq.c
130
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-fiq.c
56
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-fiq.c
96
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-rpmsg.c
130
info->msg_drop_count[substream->stream]++;
sound/soc/fsl/imx-pcm-rpmsg.c
145
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
198
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-rpmsg.c
217
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
240
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
264
pcm_hardware.buffer_bytes_max = rpmsg->buffer_size[substream->stream];
sound/soc/fsl/imx-pcm-rpmsg.c
274
info->msg_drop_count[substream->stream] = 0;
sound/soc/fsl/imx-pcm-rpmsg.c
277
info->stream_timer[substream->stream].info = info;
sound/soc/fsl/imx-pcm-rpmsg.c
278
info->stream_timer[substream->stream].substream = substream;
sound/soc/fsl/imx-pcm-rpmsg.c
279
timer_setup(&info->stream_timer[substream->stream].timer,
sound/soc/fsl/imx-pcm-rpmsg.c
294
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
304
timer_delete(&info->stream_timer[substream->stream].timer);
sound/soc/fsl/imx-pcm-rpmsg.c
308
if (info->msg_drop_count[substream->stream])
sound/soc/fsl/imx-pcm-rpmsg.c
310
info->msg_drop_count[substream->stream]);
sound/soc/fsl/imx-pcm-rpmsg.c
356
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
370
info->num_period[substream->stream] = msg->s_msg.param.buffer_size /
sound/soc/fsl/imx-pcm-rpmsg.c
373
info->callback[substream->stream] = imx_rpmsg_pcm_dma_complete;
sound/soc/fsl/imx-pcm-rpmsg.c
374
info->callback_param[substream->stream] = substream;
sound/soc/fsl/imx-pcm-rpmsg.c
385
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
402
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
419
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
437
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
455
timer_delete(&info->stream_timer[substream->stream].timer);
sound/soc/fsl/imx-pcm-rpmsg.c
533
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/imx-pcm-rpmsg.c
556
spin_lock_irqsave(&info->lock[substream->stream], flags);
sound/soc/fsl/imx-pcm-rpmsg.c
557
memcpy(&info->notify[substream->stream], msg,
sound/soc/fsl/imx-pcm-rpmsg.c
559
info->notify_updated[substream->stream] = true;
sound/soc/fsl/imx-pcm-rpmsg.c
560
spin_unlock_irqrestore(&info->lock[substream->stream], flags);
sound/soc/fsl/imx-pcm-rpmsg.c
562
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/imx-pcm-rpmsg.c
567
timer = &info->stream_timer[substream->stream].timer;
sound/soc/fsl/lpc3xxx-i2s.c
110
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/lpc3xxx-i2s.c
191
dev_dbg(dev, "Stream : %s\n", snd_pcm_direction_name(substream->stream));
sound/soc/fsl/lpc3xxx-i2s.c
200
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/fsl/lpc3xxx-i2s.c
226
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/lpc3xxx-i2s.c
237
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/lpc3xxx-i2s.c
78
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/fsl/mpc5200_dma.c
125
substream->pstr->stream, runtime->frame_bits,
sound/soc/fsl/mpc5200_dma.c
140
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_dma.c
158
substream->pstr->stream, s->period_count);
sound/soc/fsl/mpc5200_dma.c
163
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_dma.c
173
substream->pstr->stream, cmd);
sound/soc/fsl/mpc5200_dma.c
222
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_dma.c
236
s->stream = substream;
sound/soc/fsl/mpc5200_dma.c
249
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_dma.c
261
s->stream = NULL;
sound/soc/fsl/mpc5200_dma.c
274
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_dma.c
96
snd_pcm_period_elapsed(s->stream);
sound/soc/fsl/mpc5200_dma.h
28
struct snd_pcm_substream *stream;
sound/soc/fsl/mpc5200_dma.h
80
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_psc_ac97.c
154
if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/fsl/mpc5200_psc_ac97.c
184
substream->pstr->stream);
sound/soc/fsl/mpc5200_psc_ac97.c
193
substream->pstr->stream);
sound/soc/generic/simple-card-utils.c
608
int i, ret, stream;
sound/soc/generic/simple-card-utils.c
625
for_each_pcm_streams(stream) {
sound/soc/generic/simple-card-utils.c
626
ret = snd_soc_runtime_calc_hw(rtd, &hw, stream);
sound/soc/generic/test-component.c
152
static int test_dai_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/google/chv3-i2s.c
145
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/google/chv3-i2s.c
158
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/google/chv3-i2s.c
211
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/google/chv3-i2s.c
240
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/google/chv3-i2s.c
262
if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/hisilicon/hi6210-i2s.c
424
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/hisilicon/hi6210-i2s.c
481
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/hisilicon/hi6210-i2s.c
488
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/intel/atom/sst-atom-controls.c
1327
int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
sound/soc/intel/atom/sst-atom-controls.c
1330
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/intel/atom/sst-atom-controls.c
1333
dev_dbg(dai->dev, "enter, dai-name=%s dir=%d\n", dai->name, stream);
sound/soc/intel/atom/sst-atom-controls.c
1336
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/atom/sst-mfld-platform-compress.c
100
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
106
stream = cstream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-compress.c
160
retval = stream->compr_ops->open(sst->dev, &str_params, &cb);
sound/soc/intel/atom/sst-mfld-platform-compress.c
166
stream->id = retval;
sound/soc/intel/atom/sst-mfld-platform-compress.c
173
struct sst_runtime_stream *stream = cstream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-compress.c
177
if (stream->compr_ops->stream_start)
sound/soc/intel/atom/sst-mfld-platform-compress.c
178
return stream->compr_ops->stream_start(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
181
if (stream->compr_ops->stream_drop)
sound/soc/intel/atom/sst-mfld-platform-compress.c
182
return stream->compr_ops->stream_drop(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
185
if (stream->compr_ops->stream_drain)
sound/soc/intel/atom/sst-mfld-platform-compress.c
186
return stream->compr_ops->stream_drain(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
189
if (stream->compr_ops->stream_partial_drain)
sound/soc/intel/atom/sst-mfld-platform-compress.c
190
return stream->compr_ops->stream_partial_drain(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
193
if (stream->compr_ops->stream_pause)
sound/soc/intel/atom/sst-mfld-platform-compress.c
194
return stream->compr_ops->stream_pause(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
197
if (stream->compr_ops->stream_pause_release)
sound/soc/intel/atom/sst-mfld-platform-compress.c
198
return stream->compr_ops->stream_pause_release(sst->dev, stream->id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
208
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
211
stream = cstream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-compress.c
212
stream->compr_ops->tstamp(sst->dev, stream->id, tstamp);
sound/soc/intel/atom/sst-mfld-platform-compress.c
223
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
225
stream = cstream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-compress.c
226
stream->compr_ops->ack(sst->dev, stream->id, (unsigned long)bytes);
sound/soc/intel/atom/sst-mfld-platform-compress.c
227
stream->bytes_written += bytes;
sound/soc/intel/atom/sst-mfld-platform-compress.c
236
struct sst_runtime_stream *stream =
sound/soc/intel/atom/sst-mfld-platform-compress.c
239
return stream->compr_ops->get_caps(caps);
sound/soc/intel/atom/sst-mfld-platform-compress.c
246
struct sst_runtime_stream *stream =
sound/soc/intel/atom/sst-mfld-platform-compress.c
249
return stream->compr_ops->get_codec_caps(codec);
sound/soc/intel/atom/sst-mfld-platform-compress.c
256
struct sst_runtime_stream *stream =
sound/soc/intel/atom/sst-mfld-platform-compress.c
259
return stream->compr_ops->set_metadata(sst->dev, stream->id, metadata);
sound/soc/intel/atom/sst-mfld-platform-compress.c
48
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
50
stream = kzalloc_obj(*stream);
sound/soc/intel/atom/sst-mfld-platform-compress.c
51
if (!stream)
sound/soc/intel/atom/sst-mfld-platform-compress.c
54
spin_lock_init(&stream->status_lock);
sound/soc/intel/atom/sst-mfld-platform-compress.c
62
stream->compr_ops = sst->compr_ops;
sound/soc/intel/atom/sst-mfld-platform-compress.c
63
stream->id = 0;
sound/soc/intel/atom/sst-mfld-platform-compress.c
68
sst_set_stream_status(stream, SST_PLATFORM_INIT);
sound/soc/intel/atom/sst-mfld-platform-compress.c
69
runtime->private_data = stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
72
kfree(stream);
sound/soc/intel/atom/sst-mfld-platform-compress.c
79
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-compress.c
82
stream = cstream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-compress.c
87
str_id = stream->id;
sound/soc/intel/atom/sst-mfld-platform-compress.c
89
ret_val = stream->compr_ops->close(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-compress.c
91
kfree(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
103
void sst_set_stream_status(struct sst_runtime_stream *stream,
sound/soc/intel/atom/sst-mfld-platform-pcm.c
107
spin_lock_irqsave(&stream->status_lock, flags);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
108
stream->stream_status = state;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
109
spin_unlock_irqrestore(&stream->status_lock, flags);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
112
static inline int sst_get_stream_status(struct sst_runtime_stream *stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
117
spin_lock_irqsave(&stream->status_lock, flags);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
118
state = stream->stream_status;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
119
spin_unlock_irqrestore(&stream->status_lock, flags);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
195
pstream->number, pstream->stream,
sound/soc/intel/atom/sst-mfld-platform-pcm.c
204
str_params->ops = (u8)pstream->stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
225
struct sst_runtime_stream *stream =
sound/soc/intel/atom/sst-mfld-platform-pcm.c
245
stream->stream_info.str_id = str_params.stream_id;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
247
ret_val = stream->ops->open(sst->dev, &str_params);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
258
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
263
stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
264
if (!stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
266
status = sst_get_stream_status(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
274
struct sst_runtime_stream *stream =
sound/soc/intel/atom/sst-mfld-platform-pcm.c
280
sst_set_stream_status(stream, SST_PLATFORM_INIT);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
281
stream->stream_info.period_elapsed = sst_period_elapsed;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
282
stream->stream_info.arg = substream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
283
stream->stream_info.buffer_ptr = 0;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
284
stream->stream_info.sfreq = substream->runtime->rate;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
285
ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
292
static int power_up_sst(struct sst_runtime_stream *stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
294
return stream->ops->power(sst->dev, true);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
297
static void power_down_sst(struct sst_runtime_stream *stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
299
stream->ops->power(sst->dev, false);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
307
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
309
stream = kzalloc_obj(*stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
310
if (!stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
312
spin_lock_init(&stream->status_lock);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
322
stream->ops = sst->ops;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
325
stream->stream_info.str_id = 0;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
327
stream->stream_info.arg = substream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
329
runtime->private_data = stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
331
ret_val = power_up_sst(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
355
kfree(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
362
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
365
stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
366
power_down_sst(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
368
str_id = stream->stream_info.str_id;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
370
stream->ops->close(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
372
kfree(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
378
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
381
stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
382
str_id = stream->stream_info.str_id;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
383
if (stream->stream_info.str_id) {
sound/soc/intel/atom/sst-mfld-platform-pcm.c
384
ret_val = stream->ops->stream_drop(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
392
"%d", stream->stream_info.str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
594
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
601
stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
602
str_id = stream->stream_info.str_id;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
607
stream->stream_info.arg = substream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
608
ret_val = stream->ops->stream_start(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
613
ret_val = stream->ops->stream_drop(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
619
ret_val = stream->ops->stream_pause(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
625
ret_val = stream->ops->stream_pause_release(sst->dev, str_id);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
632
sst_set_stream_status(stream, status);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
641
struct sst_runtime_stream *stream;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
646
stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
647
status = sst_get_stream_status(stream);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
650
str_info = &stream->stream_info;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
651
ret_val = stream->ops->stream_read_tstamp(sst->dev, str_info);
sound/soc/intel/atom/sst-mfld-platform-pcm.c
662
struct sst_runtime_stream *stream = substream->runtime->private_data;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
663
struct pcm_stream_info *str_info = &stream->stream_info;
sound/soc/intel/atom/sst-mfld-platform-pcm.c
665
if (sst_get_stream_status(stream) == SST_PLATFORM_INIT)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
96
static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
sound/soc/intel/atom/sst-mfld-platform-pcm.c
99
return sst_send_pipe_gains(dai, stream, mute);
sound/soc/intel/atom/sst-mfld-platform.h
153
int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute);
sound/soc/intel/atom/sst-mfld-platform.h
157
void sst_set_stream_status(struct sst_runtime_stream *stream, int state);
sound/soc/intel/atom/sst/sst.c
308
struct stream_info *stream = &ctx->streams[i];
sound/soc/intel/atom/sst/sst.c
310
memset(stream, 0, sizeof(*stream));
sound/soc/intel/atom/sst/sst.c
311
stream->pipe_id = PIPE_RSVD;
sound/soc/intel/atom/sst/sst.c
312
mutex_init(&stream->lock);
sound/soc/intel/atom/sst/sst.c
441
struct stream_info *stream = &ctx->streams[i];
sound/soc/intel/atom/sst/sst.c
443
if (stream->status == STREAM_RUNNING) {
sound/soc/intel/atom/sst/sst.c
449
stream->resume_status = stream->status;
sound/soc/intel/atom/sst/sst.c
450
stream->resume_prev = stream->prev;
sound/soc/intel/atom/sst/sst.c
451
if (stream->status != STREAM_UN_INIT)
sound/soc/intel/atom/sst/sst.c
557
struct stream_info *stream = &ctx->streams[i];
sound/soc/intel/atom/sst/sst.c
559
if (stream->resume_status != STREAM_UN_INIT) {
sound/soc/intel/atom/sst/sst.c
561
i, stream->resume_status,
sound/soc/intel/atom/sst/sst.c
562
stream->resume_prev);
sound/soc/intel/atom/sst/sst.c
564
stream->status = stream->resume_status;
sound/soc/intel/atom/sst/sst.c
565
stream->prev = stream->resume_prev;
sound/soc/intel/atom/sst/sst.h
465
void sst_clean_stream(struct stream_info *stream);
sound/soc/intel/atom/sst/sst_drv_interface.c
179
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
189
stream = &ctx->streams[str_id];
sound/soc/intel/atom/sst/sst_drv_interface.c
190
stream->compr_cb = cb->compr_cb;
sound/soc/intel/atom/sst/sst_drv_interface.c
191
stream->compr_cb_param = cb->param;
sound/soc/intel/atom/sst/sst_drv_interface.c
192
stream->drain_notify = cb->drain_notify;
sound/soc/intel/atom/sst/sst_drv_interface.c
193
stream->drain_cb_param = cb->drain_cb_param;
sound/soc/intel/atom/sst/sst_drv_interface.c
205
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
208
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
209
if (!stream) {
sound/soc/intel/atom/sst/sst_drv_interface.c
215
stream->compr_cb_param = NULL;
sound/soc/intel/atom/sst/sst_drv_interface.c
216
stream->compr_cb = NULL;
sound/soc/intel/atom/sst/sst_drv_interface.c
228
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
234
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
235
if (!stream)
sound/soc/intel/atom/sst/sst_drv_interface.c
239
stream->cumm_bytes += bytes;
sound/soc/intel/atom/sst/sst_drv_interface.c
240
dev_dbg(dev, "bytes copied %d inc by %ld\n", stream->cumm_bytes, bytes);
sound/soc/intel/atom/sst/sst_drv_interface.c
247
fw_tstamp.bytes_copied = stream->cumm_bytes;
sound/soc/intel/atom/sst/sst_drv_interface.c
332
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
341
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
342
if (!stream)
sound/soc/intel/atom/sst/sst_drv_interface.c
349
(u64)stream->num_ch * SST_GET_BYTES_PER_SAMPLE(24));
sound/soc/intel/atom/sst/sst_drv_interface.c
42
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
431
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
435
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
436
if (!stream) {
sound/soc/intel/atom/sst/sst_drv_interface.c
442
stream->pcm_substream = NULL;
sound/soc/intel/atom/sst/sst_drv_interface.c
443
stream->status = STREAM_UN_INIT;
sound/soc/intel/atom/sst/sst_drv_interface.c
444
stream->period_elapsed = NULL;
sound/soc/intel/atom/sst/sst_drv_interface.c
45
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
46
if (stream) {
sound/soc/intel/atom/sst/sst_drv_interface.c
467
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/atom/sst/sst_drv_interface.c
490
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
498
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
499
if (!stream)
sound/soc/intel/atom/sst/sst_drv_interface.c
502
if (!stream->pcm_substream)
sound/soc/intel/atom/sst/sst_drv_interface.c
504
substream = stream->pcm_substream;
sound/soc/intel/atom/sst/sst_drv_interface.c
579
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_drv_interface.c
587
stream = get_stream_info(ctx, str_id);
sound/soc/intel/atom/sst/sst_drv_interface.c
588
if (!stream)
sound/soc/intel/atom/sst/sst_drv_interface.c
592
stream->pcm_substream = str_info->arg;
sound/soc/intel/atom/sst/sst_drv_interface.c
593
stream->period_elapsed = str_info->period_elapsed;
sound/soc/intel/atom/sst/sst_drv_interface.c
594
stream->sfreq = str_info->sfreq;
sound/soc/intel/atom/sst/sst_drv_interface.c
595
stream->prev = stream->status;
sound/soc/intel/atom/sst/sst_drv_interface.c
596
stream->status = STREAM_INIT;
sound/soc/intel/atom/sst/sst_drv_interface.c
599
stream->pcm_substream, stream->period_elapsed,
sound/soc/intel/atom/sst/sst_drv_interface.c
600
stream->sfreq, stream->status);
sound/soc/intel/atom/sst/sst_ipc.c
255
struct stream_info *stream;
sound/soc/intel/atom/sst/sst_ipc.c
271
stream = &sst_drv_ctx->streams[str_id];
sound/soc/intel/atom/sst/sst_ipc.c
273
if (stream->status == STREAM_INIT)
sound/soc/intel/atom/sst/sst_ipc.c
275
if (stream->period_elapsed)
sound/soc/intel/atom/sst/sst_ipc.c
276
stream->period_elapsed(stream->pcm_substream);
sound/soc/intel/atom/sst/sst_ipc.c
277
if (stream->compr_cb)
sound/soc/intel/atom/sst/sst_ipc.c
278
stream->compr_cb(stream->compr_cb_param);
sound/soc/intel/atom/sst/sst_ipc.c
286
stream = &sst_drv_ctx->streams[str_id];
sound/soc/intel/atom/sst/sst_ipc.c
287
if (stream->drain_notify)
sound/soc/intel/atom/sst/sst_ipc.c
288
stream->drain_notify(stream->drain_cb_param);
sound/soc/intel/atom/sst/sst_pvt.c
178
void sst_clean_stream(struct stream_info *stream)
sound/soc/intel/atom/sst/sst_pvt.c
180
stream->status = STREAM_UN_INIT;
sound/soc/intel/atom/sst/sst_pvt.c
181
stream->prev = STREAM_UN_INIT;
sound/soc/intel/atom/sst/sst_pvt.c
182
mutex_lock(&stream->lock);
sound/soc/intel/atom/sst/sst_pvt.c
183
stream->cumm_bytes = 0;
sound/soc/intel/atom/sst/sst_pvt.c
184
mutex_unlock(&stream->lock);
sound/soc/intel/avs/boards/nau8825.c
229
int stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/intel/avs/boards/nau8825.c
236
if (snd_soc_dai_stream_active(codec_dai, stream) &&
sound/soc/intel/avs/boards/nau8825.c
237
snd_soc_dai_get_widget(codec_dai, stream)->active)
sound/soc/intel/avs/core.c
239
static void hdac_stream_update_pos(struct hdac_stream *stream, u64 buffer_size)
sound/soc/intel/avs/core.c
243
div64_u64_rem(stream->curr_pos, buffer_size, &prev_pos);
sound/soc/intel/avs/core.c
244
pos = snd_hdac_stream_get_pos_posbuf(stream);
sound/soc/intel/avs/core.c
251
stream->curr_pos += num_bytes;
sound/soc/intel/avs/core.c
255
static void hdac_update_stream(struct hdac_bus *bus, struct hdac_stream *stream)
sound/soc/intel/avs/core.c
257
if (stream->substream) {
sound/soc/intel/avs/core.c
258
avs_period_elapsed(stream->substream);
sound/soc/intel/avs/core.c
259
} else if (stream->cstream) {
sound/soc/intel/avs/core.c
260
u64 buffer_size = stream->cstream->runtime->buffer_size;
sound/soc/intel/avs/core.c
262
hdac_stream_update_pos(stream, buffer_size);
sound/soc/intel/avs/core.c
263
snd_compr_fragment_elapsed(stream->cstream);
sound/soc/intel/avs/icl.c
153
substream.stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/intel/avs/loader.c
372
substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/intel/avs/loader.c
433
struct hdac_stream *stream;
sound/soc/intel/avs/loader.c
440
substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/intel/avs/loader.c
445
stream = hdac_stream(estream);
sound/soc/intel/avs/loader.c
449
ret = snd_hdac_dsp_prepare(stream, sdfmt, lib->size, &dmab);
sound/soc/intel/avs/loader.c
454
snd_hdac_stream_spbcap_enable(bus, true, stream->index);
sound/soc/intel/avs/loader.c
455
snd_hdac_stream_set_spib(bus, stream, lib->size);
sound/soc/intel/avs/loader.c
460
snd_hdac_dsp_trigger(stream, true);
sound/soc/intel/avs/loader.c
461
ret = avs_ipc_load_library(adev, stream->stream_tag - 1, id);
sound/soc/intel/avs/loader.c
462
snd_hdac_dsp_trigger(stream, false);
sound/soc/intel/avs/loader.c
469
snd_hdac_stream_spbcap_enable(bus, false, stream->index);
sound/soc/intel/avs/loader.c
470
snd_hdac_stream_set_spib(bus, stream, 0);
sound/soc/intel/avs/loader.c
472
snd_hdac_dsp_cleanup(stream, &dmab);
sound/soc/intel/avs/pcm.c
1095
ret = dai->driver->ops->hw_params(substream, &rtd->dpcm[substream->stream].hw_params, dai);
sound/soc/intel/avs/pcm.c
126
template = avs_dai_find_path_template(dai, !rtd->dai_link->no_pcm, substream->stream);
sound/soc/intel/avs/pcm.c
1316
static unsigned int avs_hda_stream_dpib_read(struct hdac_ext_stream *stream)
sound/soc/intel/avs/pcm.c
1318
return readl(hdac_stream(stream)->bus->remap_addr + AZX_REG_VS_SDXDPIB_XBASE +
sound/soc/intel/avs/pcm.c
1319
(AZX_REG_VS_SDXDPIB_XINTERVAL * hdac_stream(stream)->index));
sound/soc/intel/avs/pcm.c
1587
int stream;
sound/soc/intel/avs/pcm.c
1592
for_each_pcm_streams(stream)
sound/soc/intel/avs/pcm.c
1593
snd_soc_dapm_free_widget(snd_soc_dai_get_widget(dai, stream));
sound/soc/intel/avs/pcm.c
1642
if (pcm->stream[0].substreams) {
sound/soc/intel/avs/pcm.c
1652
dais[i].playback.formats = pcm->stream[0].formats;
sound/soc/intel/avs/pcm.c
1653
dais[i].playback.subformats = pcm->stream[0].subformats;
sound/soc/intel/avs/pcm.c
1654
dais[i].playback.rates = pcm->stream[0].rates;
sound/soc/intel/avs/pcm.c
1655
dais[i].playback.channels_min = pcm->stream[0].channels_min;
sound/soc/intel/avs/pcm.c
1656
dais[i].playback.channels_max = pcm->stream[0].channels_max;
sound/soc/intel/avs/pcm.c
1657
dais[i].playback.sig_bits = pcm->stream[0].maxbps;
sound/soc/intel/avs/pcm.c
1661
if (pcm->stream[1].substreams) {
sound/soc/intel/avs/pcm.c
1671
dais[i].capture.formats = pcm->stream[1].formats;
sound/soc/intel/avs/pcm.c
1672
dais[i].capture.subformats = pcm->stream[1].subformats;
sound/soc/intel/avs/pcm.c
1673
dais[i].capture.rates = pcm->stream[1].rates;
sound/soc/intel/avs/pcm.c
1674
dais[i].capture.channels_min = pcm->stream[1].channels_min;
sound/soc/intel/avs/pcm.c
1675
dais[i].capture.channels_max = pcm->stream[1].channels_max;
sound/soc/intel/avs/pcm.c
1676
dais[i].capture.sig_bits = pcm->stream[1].maxbps;
sound/soc/intel/avs/pcm.c
1720
int dir = substream->stream;
sound/soc/intel/avs/pcm.c
211
for_each_dpcm_fe(be, substream->stream, dpcm) {
sound/soc/intel/avs/pcm.c
213
fe_hw_params = &fe->dpcm[substream->stream].hw_params;
sound/soc/intel/avs/pcm.c
441
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/avs/pcm.c
461
p = &be->dpcm[substream->stream].hw_params;
sound/soc/intel/avs/pcm.c
466
stream_info = snd_soc_dai_get_pcm_stream(dai, substream->stream);
sound/soc/intel/avs/pcm.c
475
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/avs/pcm.c
681
for_each_dpcm_be(fe, substream->stream, dpcm) {
sound/soc/intel/avs/pcm.c
683
be_hw_params = &be->dpcm[substream->stream].hw_params;
sound/soc/intel/avs/pcm.c
767
stream_info = snd_soc_dai_get_pcm_stream(dai, substream->stream);
sound/soc/intel/boards/bdw-rt5650.c
153
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/intel/boards/sof_es8336.c
143
if (substream->stream == 0) {
sound/soc/intel/boards/sof_maxim_common.c
199
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/intel/boards/sof_sdw.c
887
int stream;
sound/soc/intel/boards/sof_sdw.c
904
for_each_pcm_streams(stream) {
sound/soc/intel/boards/sof_sdw.c
915
int num_cpus = hweight32(sof_dai->link_mask[stream]);
sound/soc/intel/boards/sof_sdw.c
916
int num_codecs = sof_dai->num_devs[stream];
sound/soc/intel/boards/sof_sdw.c
922
if (!sof_dai->num_devs[stream])
sound/soc/intel/boards/sof_sdw.c
928
*be_id = sof_end->dai_info->dailink[stream];
sound/soc/intel/boards/sof_sdw.c
937
sdw_stream_name[stream + 2],
sound/soc/intel/boards/sof_sdw.c
942
sdw_stream_name[stream],
sound/soc/intel/boards/sof_sdw.c
964
if (!sof_end->dai_info->direction[stream])
sound/soc/intel/boards/sof_sdw.c
996
playback = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/intel/boards/sof_sdw.c
997
capture = (stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/intel/catpt/core.h
170
struct catpt_stream_runtime *stream,
sound/soc/intel/catpt/dsp.c
312
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/dsp.c
314
list_for_each_entry(stream, &cdev->stream_list, node)
sound/soc/intel/catpt/dsp.c
315
if (stream->prepared)
sound/soc/intel/catpt/ipc.c
150
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/ipc.c
154
stream = catpt_stream_find(cdev, msg.stream_hw_id);
sound/soc/intel/catpt/ipc.c
155
if (!stream) {
sound/soc/intel/catpt/ipc.c
166
catpt_stream_update_position(cdev, stream, &pos);
sound/soc/intel/catpt/loader.c
100
stream->info.stream_hw_id, off, size);
sound/soc/intel/catpt/loader.c
181
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/loader.c
183
list_for_each_entry(stream, &cdev->stream_list, node) {
sound/soc/intel/catpt/loader.c
187
off = stream->persistent->start;
sound/soc/intel/catpt/loader.c
188
size = resource_size(stream->persistent);
sound/soc/intel/catpt/loader.c
190
stream->info.stream_hw_id, off, size);
sound/soc/intel/catpt/loader.c
91
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/loader.c
93
list_for_each_entry(stream, &cdev->stream_list, node) {
sound/soc/intel/catpt/loader.c
97
off = stream->persistent->start;
sound/soc/intel/catpt/loader.c
98
size = resource_size(stream->persistent);
sound/soc/intel/catpt/pcm.c
1015
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
1021
stream = catpt_stream_find(cdev, CATPT_PIN_ID_REFERENCE);
sound/soc/intel/catpt/pcm.c
1022
if (!stream) {
sound/soc/intel/catpt/pcm.c
1031
ret = catpt_ipc_mute_loopback(cdev, stream->info.stream_hw_id, mute);
sound/soc/intel/catpt/pcm.c
118
struct catpt_stream_runtime *stream, u32 *pos)
sound/soc/intel/catpt/pcm.c
120
memcpy_fromio(pos, cdev->lpe_ba + stream->info.read_pos_regaddr, sizeof(*pos));
sound/soc/intel/catpt/pcm.c
124
struct catpt_stream_runtime *stream, u32 channel)
sound/soc/intel/catpt/pcm.c
131
offset = stream->info.volume_regaddr[channel];
sound/soc/intel/catpt/pcm.c
259
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
266
stream = kzalloc_obj(*stream);
sound/soc/intel/catpt/pcm.c
267
if (!stream)
sound/soc/intel/catpt/pcm.c
271
&stream->pgtbl);
sound/soc/intel/catpt/pcm.c
283
stream->template = template;
sound/soc/intel/catpt/pcm.c
284
stream->persistent = res;
sound/soc/intel/catpt/pcm.c
285
stream->substream = substream;
sound/soc/intel/catpt/pcm.c
286
INIT_LIST_HEAD(&stream->node);
sound/soc/intel/catpt/pcm.c
287
snd_soc_dai_set_dma_data(dai, substream, stream);
sound/soc/intel/catpt/pcm.c
290
list_add_tail(&stream->node, &cdev->stream_list);
sound/soc/intel/catpt/pcm.c
296
snd_dma_free_pages(&stream->pgtbl);
sound/soc/intel/catpt/pcm.c
298
kfree(stream);
sound/soc/intel/catpt/pcm.c
305
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
308
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
311
list_del(&stream->node);
sound/soc/intel/catpt/pcm.c
314
release_resource(stream->persistent);
sound/soc/intel/catpt/pcm.c
315
kfree(stream->persistent);
sound/soc/intel/catpt/pcm.c
318
snd_dma_free_pages(&stream->pgtbl);
sound/soc/intel/catpt/pcm.c
319
kfree(stream);
sound/soc/intel/catpt/pcm.c
326
struct catpt_stream_runtime *stream)
sound/soc/intel/catpt/pcm.c
333
u32 id = stream->info.stream_hw_id;
sound/soc/intel/catpt/pcm.c
361
if (stream->template->type != CATPT_STRM_TYPE_LOOPBACK)
sound/soc/intel/catpt/pcm.c
373
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
379
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
380
if (stream->allocated)
sound/soc/intel/catpt/pcm.c
393
catpt_arrange_page_table(substream, &stream->pgtbl);
sound/soc/intel/catpt/pcm.c
396
rinfo.page_table_addr = stream->pgtbl.addr;
sound/soc/intel/catpt/pcm.c
402
ret = catpt_ipc_alloc_stream(cdev, stream->template->path_id,
sound/soc/intel/catpt/pcm.c
403
stream->template->type,
sound/soc/intel/catpt/pcm.c
405
stream->template->num_entries,
sound/soc/intel/catpt/pcm.c
406
stream->template->entries,
sound/soc/intel/catpt/pcm.c
407
stream->persistent,
sound/soc/intel/catpt/pcm.c
409
&stream->info);
sound/soc/intel/catpt/pcm.c
413
ret = catpt_dai_apply_usettings(dai, stream);
sound/soc/intel/catpt/pcm.c
415
catpt_ipc_free_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
419
stream->allocated = true;
sound/soc/intel/catpt/pcm.c
426
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
429
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
430
if (!stream->allocated)
sound/soc/intel/catpt/pcm.c
433
catpt_ipc_reset_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
434
catpt_ipc_free_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
436
stream->allocated = false;
sound/soc/intel/catpt/pcm.c
443
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
447
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
448
if (stream->prepared)
sound/soc/intel/catpt/pcm.c
451
ret = catpt_ipc_reset_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
455
ret = catpt_ipc_pause_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
459
stream->prepared = true;
sound/soc/intel/catpt/pcm.c
467
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
472
stream = snd_soc_dai_get_dma_data(dai, substream);
sound/soc/intel/catpt/pcm.c
477
if (stream->template->type != CATPT_STRM_TYPE_RENDER)
sound/soc/intel/catpt/pcm.c
485
ret = catpt_ipc_set_write_pos(cdev, stream->info.stream_hw_id,
sound/soc/intel/catpt/pcm.c
494
ret = catpt_ipc_resume_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
500
stream->prepared = false;
sound/soc/intel/catpt/pcm.c
504
ret = catpt_ipc_pause_stream(cdev, stream->info.stream_hw_id);
sound/soc/intel/catpt/pcm.c
518
struct catpt_stream_runtime *stream,
sound/soc/intel/catpt/pcm.c
521
struct snd_pcm_substream *substream = stream->substream;
sound/soc/intel/catpt/pcm.c
528
if (!stream->prepared)
sound/soc/intel/catpt/pcm.c
531
if (stream->template->type != CATPT_STRM_TYPE_RENDER)
sound/soc/intel/catpt/pcm.c
542
ret = catpt_ipc_set_write_pos(cdev, stream->info.stream_hw_id,
sound/soc/intel/catpt/pcm.c
547
stream->info.stream_hw_id, ret);
sound/soc/intel/catpt/pcm.c
606
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
613
stream = snd_soc_dai_get_dma_data(cpu_dai, substream);
sound/soc/intel/catpt/pcm.c
614
catpt_stream_read_position(cdev, stream, &pos);
sound/soc/intel/catpt/pcm.c
86
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/intel/catpt/pcm.c
90
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/intel/catpt/pcm.c
906
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
913
stream = catpt_stream_find(cdev, pin_id);
sound/soc/intel/catpt/pcm.c
914
if (!stream) {
sound/soc/intel/catpt/pcm.c
925
dspvol = catpt_stream_volume(cdev, stream, i);
sound/soc/intel/catpt/pcm.c
939
struct catpt_stream_runtime *stream;
sound/soc/intel/catpt/pcm.c
944
stream = catpt_stream_find(cdev, pin_id);
sound/soc/intel/catpt/pcm.c
945
if (!stream) {
sound/soc/intel/catpt/pcm.c
955
ret = catpt_set_dspvol(cdev, stream->info.stream_hw_id,
sound/soc/intel/keembay/kmb_platform.c
168
u32 stream)
sound/soc/intel/keembay/kmb_platform.c
173
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/keembay/kmb_platform.c
182
static inline void kmb_i2s_clear_irqs(struct kmb_i2s_info *kmb_i2s, u32 stream)
sound/soc/intel/keembay/kmb_platform.c
187
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/keembay/kmb_platform.c
197
u32 stream, int chan_nr, bool trigger)
sound/soc/intel/keembay/kmb_platform.c
202
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
273
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/keembay/kmb_platform.c
282
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
381
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
416
static inline void kmb_i2s_enable_dma(struct kmb_i2s_info *kmb_i2s, u32 stream)
sound/soc/intel/keembay/kmb_platform.c
422
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
430
static inline void kmb_i2s_disable_dma(struct kmb_i2s_info *kmb_i2s, u32 stream)
sound/soc/intel/keembay/kmb_platform.c
436
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/keembay/kmb_platform.c
454
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
460
kmb_i2s_irq_trigger(kmb_i2s, substream->stream,
sound/soc/intel/keembay/kmb_platform.c
463
kmb_i2s_enable_dma(kmb_i2s, substream->stream);
sound/soc/intel/keembay/kmb_platform.c
475
kmb_i2s_clear_irqs(kmb_i2s, substream->stream);
sound/soc/intel/keembay/kmb_platform.c
477
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
482
kmb_i2s_irq_trigger(kmb_i2s, substream->stream, 8, false);
sound/soc/intel/keembay/kmb_platform.c
551
static void kmb_i2s_config(struct kmb_i2s_info *kmb_i2s, int stream)
sound/soc/intel/keembay/kmb_platform.c
556
kmb_i2s_disable_channels(kmb_i2s, stream);
sound/soc/intel/keembay/kmb_platform.c
559
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/intel/keembay/kmb_platform.c
655
kmb_i2s_config(kmb_i2s, substream->stream);
sound/soc/intel/keembay/kmb_platform.c
681
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
698
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
714
kmb_i2s_clear_irqs(kmb_i2s, substream->stream);
sound/soc/intel/keembay/kmb_platform.c
716
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/intel/keembay/kmb_platform.c
722
kmb_i2s_irq_trigger(kmb_i2s, substream->stream, 8, false);
sound/soc/intel/keembay/kmb_platform.c
724
kmb_i2s_disable_dma(kmb_i2s, substream->stream);
sound/soc/jz4740/jz4740-i2s.c
106
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/jz4740/jz4740-i2s.c
151
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/jz4740/jz4740-i2s.c
281
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/kirkwood/kirkwood-dma.c
143
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/kirkwood/kirkwood-dma.c
164
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/kirkwood/kirkwood-dma.c
188
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/kirkwood/kirkwood-dma.c
209
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/kirkwood/kirkwood-dma.c
230
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/kirkwood/kirkwood-i2s.c
261
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/kirkwood/kirkwood-i2s.c
317
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/kirkwood/kirkwood-i2s.c
504
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/loongson/loongson1_ac97.c
204
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/loongson/loongson1_ac97.c
217
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/loongson/loongson_dma.c
178
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/loongson/loongson_i2s.c
42
mask = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/loongson/loongson_i2s.c
49
mask = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/loongson/loongson_i2s.c
98
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/common/mtk-afe-fe-dai.c
271
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/common/mtk-afe-fe-dai.c
64
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/common/mtk-btcvsd.c
1033
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/common/mtk-btcvsd.c
211
bt_stream->stream, state,
sound/soc/mediatek/common/mtk-btcvsd.c
241
bt->tx->stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/mediatek/common/mtk-btcvsd.c
254
bt->rx->stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/mediatek/common/mtk-btcvsd.c
650
if (bt_stream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/common/mtk-btcvsd.c
665
__func__, bt_stream->stream,
sound/soc/mediatek/common/mtk-btcvsd.c
677
bt_stream->stream, max_timeout_trial);
sound/soc/mediatek/common/mtk-btcvsd.c
686
bt_stream->stream, max_timeout_trial);
sound/soc/mediatek/common/mtk-btcvsd.c
84
int stream;
sound/soc/mediatek/common/mtk-btcvsd.c
853
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/common/mtk-btcvsd.c
878
__func__, substream->stream, substream);
sound/soc/mediatek/common/mtk-btcvsd.c
882
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/common/mtk-btcvsd.c
899
dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
sound/soc/mediatek/common/mtk-btcvsd.c
912
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/mediatek/common/mtk-btcvsd.c
929
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/common/mtk-btcvsd.c
941
dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
sound/soc/mediatek/common/mtk-btcvsd.c
952
int stream = substream->stream;
sound/soc/mediatek/common/mtk-btcvsd.c
956
__func__, substream->stream, cmd);
sound/soc/mediatek/common/mtk-btcvsd.c
961
hw_packet_ptr = stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/soc/mediatek/common/mtk-btcvsd.c
990
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/common/mtk-btcvsd.c
999
hw_packet_ptr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/soc/mediatek/common/mtk-dsp-sof-common.c
79
int i, stream;
sound/soc/mediatek/common/mtk-dsp-sof-common.c
81
for_each_pcm_streams(stream) {
sound/soc/mediatek/common/mtk-dsp-sof-common.c
83
for_each_dpcm_fe(rtd, stream, dpcm) {
sound/soc/mediatek/common/mtk-dsp-sof-common.c
92
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
155
if (i2s_path->occupied[substream->stream])
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
156
i2s_path->occupied[substream->stream] = 0;
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
160
mt2701_afe_i2s_path_disable(afe, i2s_path, substream->stream);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
163
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
164
mt2701_afe_i2s_path_disable(afe, i2s_path, !substream->stream);
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
243
if (i2s_path->occupied[substream->stream])
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
250
i2s_path->occupied[substream->stream] = 1;
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
253
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
254
mt2701_i2s_path_enable(afe, i2s_path, !substream->stream,
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
257
mt2701_i2s_path_enable(afe, i2s_path, substream->stream,
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
296
afe_priv->mrg_enable[substream->stream] = 1;
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
350
if (!afe_priv->mrg_enable[!substream->stream]) {
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
360
afe_priv->mrg_enable[substream->stream] = 0;
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
368
int stream_dir = substream->stream;
sound/soc/mediatek/mt2701/mt2701-afe-pcm.c
387
int stream_dir = substream->stream;
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
159
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
161
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
195
substream->stream,
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
166
int stream)
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
180
__func__, stream, rate, bit_width);
sound/soc/mediatek/mt7986/mt7986-dai-etdm.c
194
switch (stream) {
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
277
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
279
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c
195
substream->stream,
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
188
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/mediatek/mt8186/mt8186-afe-pcm.c
223
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
566
__func__, id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
568
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c
134
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
820
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-i2s.c
866
__func__, cmd, substream->stream);
sound/soc/mediatek/mt8186/mt8186-dai-pcm.c
235
__func__, dai->id, substream->stream, p->active, c->active);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
560
__func__, id, substream->stream, rate);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
563
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8186/mt8186-dai-src.c
597
__func__, id, substream->stream);
sound/soc/mediatek/mt8186/mt8186-dai-src.c
599
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
400
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
412
__func__, id, substream->stream, rate);
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
416
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8189/mt8189-afe-pcm.c
263
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1091
__func__, id, substream->stream, params_rate(params));
sound/soc/mediatek/mt8189/mt8189-dai-adda.c
1093
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8189/mt8189-dai-pcm.c
240
dai->id, substream->stream, rate, rate_reg,
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
1070
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1539
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c
1596
__func__, cmd, substream->stream);
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c
285
substream->stream,
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
634
__func__, dai->id, substream->stream, rate);
sound/soc/mediatek/mt8195/mt8195-dai-adda.c
641
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8195/mt8195-dai-pcm.c
229
__func__, dai->id, substream->stream,
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
776
if (be->prepared[substream->stream]) {
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
779
be->prepared[substream->stream] = false;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
795
if (be->prepared[substream->stream]) {
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
812
be->prepared[substream->stream] = true;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
138
unsigned int stream = substream->stream;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
142
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
145
} else if (stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
159
unsigned int stream = substream->stream;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
161
if (be->prepared[stream]) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
162
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
168
be->prepared[stream] = false;
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
171
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
174
} else if (stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
195
if (be->prepared[substream->stream]) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
201
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-dai-adda.c
219
be->prepared[substream->stream] = true;
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
524
(substream->stream == SNDRV_PCM_STREAM_CAPTURE) &&
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
530
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
533
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && !i2s_in_slave)
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
549
bool reset_i2s_out_change = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
550
bool reset_i2s_in_change = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
552
(substream->stream == SNDRV_PCM_STREAM_CAPTURE) &&
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
556
if (be->prepared[substream->stream]) {
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
596
bool apply_i2s_out_change = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
597
bool apply_i2s_in_change = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
602
if (be->prepared[substream->stream]) {
sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
678
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/mediatek/mt8365/mt8365-mt6357.c
108
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-mt6357.c
119
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/mediatek/mt8365/mt8365-mt6357.c
77
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mediatek/mt8365/mt8365-mt6357.c
88
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/meson/axg-tdm-formatter.c
121
formatter->stream);
sound/soc/meson/axg-tdm-formatter.c
157
struct axg_tdm_stream *ts = formatter->stream;
sound/soc/meson/axg-tdm-formatter.c
17
struct axg_tdm_stream *stream;
sound/soc/meson/axg-tdm-formatter.c
179
struct axg_tdm_stream *ts = formatter->stream;
sound/soc/meson/axg-tdm-formatter.c
217
formatter->stream = ts;
sound/soc/meson/axg-tdm-formatter.c
233
formatter->stream = NULL;
sound/soc/meson/axg-tdm-formatter.c
82
struct axg_tdm_stream *ts = formatter->stream;
sound/soc/meson/axg-tdm-interface.c
392
int stream;
sound/soc/meson/axg-tdm-interface.c
394
for_each_pcm_streams(stream) {
sound/soc/meson/axg-tdm-interface.c
395
struct axg_tdm_stream *ts = snd_soc_dai_dma_data_get(dai, stream);
sound/soc/meson/axg-tdm-interface.c
407
int stream;
sound/soc/meson/axg-tdm-interface.c
409
for_each_pcm_streams(stream) {
sound/soc/meson/axg-tdm-interface.c
412
if (!snd_soc_dai_get_widget(dai, stream))
sound/soc/meson/axg-tdm-interface.c
420
snd_soc_dai_dma_data_set(dai, stream, ts);
sound/soc/mxs/mxs-saif.c
549
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/mxs/mxs-saif.c
620
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/pxa/mmp-sspa.c
269
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/pxa/mmp-sspa.c
299
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/mmp-sspa.c
310
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa-ssp.c
554
substream->stream == SNDRV_PCM_STREAM_PLAYBACK, dma_data);
sound/soc/pxa/pxa-ssp.c
686
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/pxa/pxa-ssp.c
91
dma->chan_name = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/soc/pxa/pxa2xx-ac97.c
113
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-ac97.c
126
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-ac97.c
98
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-i2s.c
166
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-i2s.c
182
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-i2s.c
221
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/pxa/pxa2xx-i2s.c
243
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/apq8096.c
49
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-cpu.c
116
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-cpu.c
188
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-cpu.c
252
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/lpass-cpu.c
323
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/lpass-cpu.c
348
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/lpass-cpu.c
381
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-platform.c
1240
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/lpass-platform.c
1248
} else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/qcom/lpass-platform.c
200
int ret, dma_ch, dir = substream->stream;
sound/soc/qcom/lpass-platform.c
331
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-platform.c
366
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/lpass-platform.c
587
reg = LPAIF_DMACTL_REG(v, pcm_data->dma_ch, substream->stream, dai_id);
sound/soc/qcom/lpass-platform.c
608
int ret, id, ch, dir = substream->stream;
sound/soc/qcom/lpass-platform.c
869
int ret, ch, dir = substream->stream;
sound/soc/qcom/qdsp6/q6apm-dai.c
225
cfg.direction = substream->stream;
sound/soc/qcom/qdsp6/q6apm-dai.c
235
q6apm_unmap_memory_regions(prtd->graph, substream->stream);
sound/soc/qcom/qdsp6/q6apm-dai.c
250
ret = q6apm_map_memory_regions(prtd->graph, substream->stream, prtd->phys,
sound/soc/qcom/qdsp6/q6apm-dai.c
270
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/qcom/qdsp6/q6apm-dai.c
290
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6apm-dai.c
364
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/qdsp6/q6apm-dai.c
366
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/qcom/qdsp6/q6apm-dai.c
376
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6apm-dai.c
420
q6apm_unmap_memory_regions(prtd->graph, substream->stream);
sound/soc/qcom/qdsp6/q6apm-dai.c
438
ptr = q6apm_get_hw_pointer(prtd->graph, substream->stream) * runtime->period_size;
sound/soc/qcom/qdsp6/q6apm-dai.c
477
struct snd_compr_stream *stream)
sound/soc/qcom/qdsp6/q6apm-dai.c
479
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/qcom/qdsp6/q6apm-dai.c
481
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
497
prtd->cstream = stream;
sound/soc/qcom/qdsp6/q6apm-dai.c
517
snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer);
sound/soc/qcom/qdsp6/q6apm-dai.c
525
struct snd_compr_stream *stream)
sound/soc/qcom/qdsp6/q6apm-dai.c
527
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
542
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
560
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
575
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
578
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
591
struct snd_compr_stream *stream, int cmd)
sound/soc/qcom/qdsp6/q6apm-dai.c
593
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
623
static int q6apm_dai_compr_ack(struct snd_soc_component *component, struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
626
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
636
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
639
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
644
int dir = stream->direction;
sound/soc/qcom/qdsp6/q6apm-dai.c
712
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
715
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
737
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6apm-dai.c
740
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-dai.c
749
struct snd_compr_stream *stream, char __user *buf,
sound/soc/qcom/qdsp6/q6apm-dai.c
752
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
174
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
184
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
194
cfg->direction = substream->stream;
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
216
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
229
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/qcom/qdsp6/q6asm-dai.c
1003
struct snd_compr_stream *stream, int cmd)
sound/soc/qcom/qdsp6/q6asm-dai.c
1005
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
1043
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
1046
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
1060
struct snd_compr_stream *stream, char __user *buf,
sound/soc/qcom/qdsp6/q6asm-dai.c
1063
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
1130
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
1133
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
1143
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
1162
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
231
q6asm_unmap_memory_regions(substream->stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
234
substream->stream);
sound/soc/qcom/qdsp6/q6asm-dai.c
238
ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client,
sound/soc/qcom/qdsp6/q6asm-dai.c
249
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6asm-dai.c
253
} else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/qcom/qdsp6/q6asm-dai.c
266
prtd->session_id, substream->stream);
sound/soc/qcom/qdsp6/q6asm-dai.c
272
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6asm-dai.c
277
} else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/qcom/qdsp6/q6asm-dai.c
299
q6asm_unmap_memory_regions(substream->stream, prtd->audio_client);
sound/soc/qcom/qdsp6/q6asm-dai.c
312
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && prtd->state == Q6ASM_STREAM_RUNNING) {
sound/soc/qcom/qdsp6/q6asm-dai.c
399
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/qdsp6/q6asm-dai.c
401
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/qcom/qdsp6/q6asm-dai.c
410
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6asm-dai.c
436
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/qdsp6/q6asm-dai.c
464
q6asm_unmap_memory_regions(substream->stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
470
substream->stream);
sound/soc/qcom/qdsp6/q6asm-dai.c
483
ptr = q6asm_get_hw_pointer(prtd->audio_client, substream->stream) * runtime->period_size;
sound/soc/qcom/qdsp6/q6asm-dai.c
607
struct snd_compr_stream *stream)
sound/soc/qcom/qdsp6/q6asm-dai.c
609
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/qcom/qdsp6/q6asm-dai.c
610
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
631
prtd->cstream = stream;
sound/soc/qcom/qdsp6/q6asm-dai.c
655
snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer);
sound/soc/qcom/qdsp6/q6asm-dai.c
670
struct snd_compr_stream *stream)
sound/soc/qcom/qdsp6/q6asm-dai.c
672
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
674
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/qcom/qdsp6/q6asm-dai.c
688
q6asm_unmap_memory_regions(stream->direction,
sound/soc/qcom/qdsp6/q6asm-dai.c
693
q6routing_stream_close(rtd->dai_link->id, stream->direction);
sound/soc/qcom/qdsp6/q6asm-dai.c
700
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
704
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
878
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
881
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
883
struct snd_soc_pcm_runtime *rtd = stream->private_data;
sound/soc/qcom/qdsp6/q6asm-dai.c
884
int dir = stream->direction;
sound/soc/qcom/qdsp6/q6asm-dai.c
922
ret = __q6asm_dai_compr_set_codec_params(component, stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
954
struct snd_compr_stream *stream,
sound/soc/qcom/qdsp6/q6asm-dai.c
957
struct snd_compr_runtime *runtime = stream->runtime;
sound/soc/qcom/qdsp6/q6asm-dai.c
978
ret = __q6asm_dai_compr_set_codec_params(component, stream,
sound/soc/qcom/qdsp6/q6routing.c
1063
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/qdsp6/q6usb.c
151
if (dai->stream[0].widget == w)
sound/soc/qcom/qdsp6/q6usb.c
59
int direction = substream->stream;
sound/soc/qcom/sdm845.c
115
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/qcom/sdm845.c
80
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/sdw.c
180
sruntime = snd_soc_dai_get_stream(codec_dai, substream->stream);
sound/soc/qcom/sdw.c
83
substream->stream);
sound/soc/qcom/sdw.h
13
struct sdw_stream_runtime *qcom_snd_sdw_get_stream(struct snd_pcm_substream *stream);
sound/soc/renesas/dma-sh7760.c
123
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
sound/soc/renesas/dma-sh7760.c
157
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
sound/soc/renesas/dma-sh7760.c
179
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
sound/soc/renesas/dma-sh7760.c
201
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/renesas/dma-sh7760.c
245
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
sound/soc/renesas/dma-sh7760.c
273
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
sound/soc/renesas/fsi.c
396
return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/renesas/hac.c
240
int d = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1;
sound/soc/renesas/rcar/core.c
1000
int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/renesas/rcar/core.c
1302
int stream)
sound/soc/renesas/rcar/core.c
1316
for (substream = rtd->pcm->streams[stream].substream;
sound/soc/renesas/rcar/core.c
1577
int stream = substream->stream;
sound/soc/renesas/rcar/core.c
1579
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/renesas/rcar/core.c
1581
struct snd_pcm_hw_params *be_params = &be->dpcm[stream].hw_params;
sound/soc/renesas/rcar/core.c
686
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/rcar/msiof.c
134
#define msiof_is_play(substream) ((substream)->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/rcar/msiof.c
205
priv->err_syc[substream->stream] = -1;
sound/soc/renesas/rcar/msiof.c
206
priv->err_ovf[substream->stream] =
sound/soc/renesas/rcar/msiof.c
207
priv->err_udf[substream->stream] = 0;
sound/soc/renesas/rcar/msiof.c
303
if (priv->err_syc[substream->stream] < 0)
sound/soc/renesas/rcar/msiof.c
304
priv->err_syc[substream->stream] = 0;
sound/soc/renesas/rcar/msiof.c
307
if (priv->err_syc[substream->stream] ||
sound/soc/renesas/rcar/msiof.c
308
priv->err_ovf[substream->stream] ||
sound/soc/renesas/rcar/msiof.c
309
priv->err_udf[substream->stream])
sound/soc/renesas/rcar/msiof.c
311
snd_pcm_direction_name(substream->stream),
sound/soc/renesas/rcar/msiof.c
312
priv->err_syc[substream->stream],
sound/soc/renesas/rcar/msiof.c
313
priv->err_ovf[substream->stream],
sound/soc/renesas/rcar/msiof.c
314
priv->err_udf[substream->stream]);
sound/soc/renesas/rcar/msiof.c
475
priv->substream[substream->stream] = substream;
sound/soc/renesas/rcar/msiof.c
481
priv->substream[substream->stream] = NULL;
sound/soc/renesas/rz-ssi.c
177
return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/renesas/rz-ssi.c
183
return (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? &ssi->playback : &ssi->capture;
sound/soc/renesas/rz-ssi.c
959
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/rz-ssi.c
972
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_dai.c
524
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_dai.c
553
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/renesas/siu_pcm.c
217
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/renesas/siu_pcm.c
309
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/renesas/siu_pcm.c
343
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_pcm.c
366
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_pcm.c
416
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_pcm.c
427
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/siu_pcm.c
458
if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/renesas/ssi.c
138
recv = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 0 : 1;
sound/soc/rockchip/rockchip_i2s.c
416
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_i2s.c
474
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_i2s.c
485
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/rockchip/rockchip_i2s_tdm.c
292
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
306
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
490
int stream;
sound/soc/rockchip/rockchip_i2s_tdm.c
492
stream = SNDRV_PCM_STREAM_LAST - substream->stream;
sound/soc/rockchip/rockchip_i2s_tdm.c
493
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
504
int stream;
sound/soc/rockchip/rockchip_i2s_tdm.c
506
stream = SNDRV_PCM_STREAM_LAST - substream->stream;
sound/soc/rockchip/rockchip_i2s_tdm.c
507
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
535
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/rockchip/rockchip_i2s_tdm.c
606
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
622
static int rockchip_i2s_tdm_set_sysclk(struct snd_soc_dai *cpu_dai, int stream,
sound/soc/rockchip/rockchip_i2s_tdm.c
631
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_i2s_tdm.c
638
stream ? "rx" : "tx", freq);
sound/soc/rockchip/rockchip_i2s_tdm.c
661
} else if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_i2s_tdm.c
730
} else if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_i2s_tdm.c
766
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_i2s_tdm.c
776
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_pdm.c
207
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/rockchip/rockchip_pdm.c
354
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_pdm.c
360
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/rockchip/rockchip_sai.c
281
int stream, bool en)
sound/soc/rockchip/rockchip_sai.c
283
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_sai.c
301
int stream, bool en)
sound/soc/rockchip/rockchip_sai.c
304
rockchip_sai_fifo_xrun_detect(sai, stream, 0);
sound/soc/rockchip/rockchip_sai.c
306
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_sai.c
317
rockchip_sai_fifo_xrun_detect(sai, stream, 1);
sound/soc/rockchip/rockchip_sai.c
361
static void rockchip_sai_xfer_start(struct rk_sai_dev *sai, int stream)
sound/soc/rockchip/rockchip_sai.c
365
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_sai.c
377
static void rockchip_sai_xfer_stop(struct rk_sai_dev *sai, int stream)
sound/soc/rockchip/rockchip_sai.c
380
bool capture = stream == SNDRV_PCM_STREAM_CAPTURE || stream < 0;
sound/soc/rockchip/rockchip_sai.c
381
bool playback = stream == SNDRV_PCM_STREAM_PLAYBACK || stream < 0;
sound/soc/rockchip/rockchip_sai.c
401
static void rockchip_sai_start(struct rk_sai_dev *sai, int stream)
sound/soc/rockchip/rockchip_sai.c
403
rockchip_sai_dma_ctrl(sai, stream, 1);
sound/soc/rockchip/rockchip_sai.c
404
rockchip_sai_xfer_start(sai, stream);
sound/soc/rockchip/rockchip_sai.c
407
static void rockchip_sai_stop(struct rk_sai_dev *sai, int stream)
sound/soc/rockchip/rockchip_sai.c
409
rockchip_sai_dma_ctrl(sai, stream, 0);
sound/soc/rockchip/rockchip_sai.c
410
rockchip_sai_xfer_stop(sai, stream);
sound/soc/rockchip/rockchip_sai.c
580
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/rockchip/rockchip_sai.c
78
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/rockchip/rockchip_sai.c
82
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/rockchip/rockchip_sai.c
851
rockchip_sai_start(sai, substream->stream);
sound/soc/rockchip/rockchip_sai.c
856
rockchip_sai_stop(sai, substream->stream);
sound/soc/rockchip/rockchip_sai.c
882
int stream = substream->stream;
sound/soc/rockchip/rockchip_sai.c
887
if (sai->substreams[stream])
sound/soc/rockchip/rockchip_sai.c
890
if (sai->wait_time[stream])
sound/soc/rockchip/rockchip_sai.c
891
substream->wait_time = sai->wait_time[stream];
sound/soc/rockchip/rockchip_sai.c
893
sai->substreams[stream] = substream;
sound/soc/rockchip/rockchip_sai.c
906
sai->substreams[substream->stream] = NULL;
sound/soc/rockchip/rockchip_sai.c
945
static int rockchip_sai_set_sysclk(struct snd_soc_dai *dai, int stream,
sound/soc/samsung/i2s.c
1029
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/samsung/i2s.c
747
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/samsung/i2s.c
753
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/samsung/i2s.c
939
int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
sound/soc/samsung/idma.c
347
static int preallocate_idma_buffer(struct snd_pcm *pcm, int stream)
sound/soc/samsung/idma.c
349
struct snd_pcm_substream *substream = pcm->streams[stream].substream;
sound/soc/samsung/pcm.c
231
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/samsung/pcm.c
244
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/samsung/spdif.c
190
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sdca/sdca_asoc.c
1096
struct snd_soc_pcm_stream *stream)
sound/soc/sdca/sdca_asoc.c
1149
stream->formats = formats;
sound/soc/sdca/sdca_asoc.c
1150
stream->rates = rates;
sound/soc/sdca/sdca_asoc.c
1178
struct snd_soc_pcm_stream *stream;
sound/soc/sdca/sdca_asoc.c
1183
stream = &dais[j].playback;
sound/soc/sdca/sdca_asoc.c
1187
stream = &dais[j].capture;
sound/soc/sdca/sdca_asoc.c
1198
stream->stream_name = devm_kasprintf(dev, GFP_KERNEL, "%s %s",
sound/soc/sdca/sdca_asoc.c
1200
if (!stream->stream_name)
sound/soc/sdca/sdca_asoc.c
1203
stream->channels_min = 1;
sound/soc/sdca/sdca_asoc.c
1204
stream->channels_max = SDCA_MAX_CHANNEL_COUNT;
sound/soc/sdca/sdca_asoc.c
1206
ret = populate_rate_format(dev, function, entity, stream);
sound/soc/sdw_utils/soc_sdw_maxim.c
49
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/sdw_utils/soc_sdw_utils.c
1040
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1060
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1105
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sdw_utils/soc_sdw_utils.c
1142
sdw_stream = snd_soc_dai_get_stream(dai, substream->stream);
sound/soc/sdw_utils/soc_sdw_utils.c
1552
int stream;
sound/soc/sdw_utils/soc_sdw_utils.c
1608
for_each_pcm_streams(stream) {
sound/soc/sdw_utils/soc_sdw_utils.c
1609
if (dai_info->direction[stream] &&
sound/soc/sdw_utils/soc_sdw_utils.c
1610
dai_info->dailink[stream] < 0) {
sound/soc/sdw_utils/soc_sdw_utils.c
1613
dai_info->dailink[stream],
sound/soc/sdw_utils/soc_sdw_utils.c
1618
if (dai_info->direction[stream]) {
sound/soc/sdw_utils/soc_sdw_utils.c
1619
num_dais += !soc_dai->num_devs[stream];
sound/soc/sdw_utils/soc_sdw_utils.c
1620
soc_dai->num_devs[stream]++;
sound/soc/sdw_utils/soc_sdw_utils.c
1621
soc_dai->link_mask[stream] |= adr_link->mask;
sound/soc/soc-component.c
1171
void *stream)
sound/soc/soc-component.c
1183
soc_component_mark_push(component, stream, pm);
sound/soc/soc-component.c
1190
void *stream, int rollback)
sound/soc/soc-component.c
1196
if (rollback && !soc_component_mark_match(component, stream, pm))
sound/soc/soc-compress.c
102
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
123
snd_soc_runtime_activate(rtd, stream);
sound/soc/soc-compress.c
139
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
144
ret = dpcm_path_get(fe, stream, &list);
sound/soc/soc-compress.c
151
dpcm_add_paths(fe, stream, &list);
sound/soc/soc-compress.c
153
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
sound/soc/soc-compress.c
155
ret = dpcm_be_dai_startup(fe, stream);
sound/soc/soc-compress.c
158
for_each_dpcm_be(fe, stream, dpcm)
sound/soc/soc-compress.c
161
dpcm_be_disconnect(fe, stream);
sound/soc/soc-compress.c
177
dpcm_clear_pending_state(fe, stream);
sound/soc/soc-compress.c
180
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN;
sound/soc/soc-compress.c
181
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-compress.c
183
snd_soc_runtime_activate(fe, stream);
sound/soc/soc-compress.c
198
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-compress.c
208
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
213
snd_soc_runtime_deactivate(fe, stream);
sound/soc/soc-compress.c
215
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
sound/soc/soc-compress.c
217
dpcm_be_dai_hw_free(fe, stream);
sound/soc/soc-compress.c
219
dpcm_be_dai_shutdown(fe, stream);
sound/soc/soc-compress.c
222
for_each_dpcm_be(fe, stream, dpcm)
sound/soc/soc-compress.c
225
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);
sound/soc/soc-compress.c
227
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;
sound/soc/soc-compress.c
228
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-compress.c
230
dpcm_be_disconnect(fe, stream);
sound/soc/soc-compress.c
249
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
264
snd_soc_dai_digital_mute(codec_dai, 0, stream);
sound/soc/soc-compress.c
267
snd_soc_dai_digital_mute(codec_dai, 1, stream);
sound/soc/soc-compress.c
280
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
297
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
sound/soc/soc-compress.c
299
ret = dpcm_be_dai_trigger(fe, stream, cmd);
sound/soc/soc-compress.c
305
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START;
sound/soc/soc-compress.c
309
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
sound/soc/soc-compress.c
312
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED;
sound/soc/soc-compress.c
317
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-compress.c
327
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
351
snd_soc_dapm_stream_event(rtd, stream, SND_SOC_DAPM_STREAM_START);
sound/soc/soc-compress.c
373
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
383
memset(&fe->dpcm[fe_substream->stream].hw_params, 0,
sound/soc/soc-compress.c
386
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
sound/soc/soc-compress.c
389
ret = dpcm_be_dai_hw_params(fe, stream);
sound/soc/soc-compress.c
395
ret = dpcm_be_dai_prepare(fe, stream);
sound/soc/soc-compress.c
412
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_START);
sound/soc/soc-compress.c
414
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE;
sound/soc/soc-compress.c
417
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-compress.c
62
int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
sound/soc/soc-compress.c
67
snd_soc_runtime_deactivate(rtd, stream);
sound/soc/soc-compress.c
69
snd_soc_dai_digital_mute(codec_dai, 1, stream);
sound/soc/soc-compress.c
84
snd_soc_dapm_stream_stop(rtd, stream);
sound/soc/soc-core.c
2824
static void convert_endianness_formats(struct snd_soc_pcm_stream *stream)
sound/soc/soc-core.c
2829
if (stream->formats & endianness_format_map[i])
sound/soc/soc-core.c
2830
stream->formats |= endianness_format_map[i];
sound/soc/soc-core.c
3476
int snd_soc_get_stream_cpu(const struct snd_soc_dai_link *dai_link, int stream)
sound/soc/soc-core.c
3490
return stream;
sound/soc/soc-core.c
3503
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/soc-core.c
504
int stream;
sound/soc/soc-core.c
540
for_each_pcm_streams(stream) {
sound/soc/soc-core.c
541
INIT_LIST_HEAD(&rtd->dpcm[stream].be_clients);
sound/soc/soc-core.c
542
INIT_LIST_HEAD(&rtd->dpcm[stream].fe_clients);
sound/soc/soc-core.c
641
int stream;
sound/soc/soc-core.c
648
for_each_pcm_streams(stream)
sound/soc/soc-core.c
649
snd_soc_dapm_stream_event(rtd, stream, event);
sound/soc/soc-dai.c
257
int stream;
sound/soc/soc-dai.c
273
for_each_pcm_streams(stream)
sound/soc/soc-dai.c
274
snd_soc_dai_tdm_mask_set(dai, stream, *tdm_mask[stream]);
sound/soc/soc-dai.c
359
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
442
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
460
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
491
const struct snd_soc_pcm_stream *stream = snd_soc_dai_get_pcm_stream(dai, dir);
sound/soc/soc-dai.c
494
return stream->channels_min;
sound/soc/soc-dai.c
498
int stream, int action)
sound/soc/soc-dai.c
501
dai->stream[stream].active += action;
sound/soc/soc-dai.c
510
int stream, active;
sound/soc/soc-dai.c
513
for_each_pcm_streams(stream)
sound/soc/soc-dai.c
514
active += dai->stream[stream].active;
sound/soc/soc-dai.c
608
if (!snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-dai.c
635
snd_soc_dai_digital_mute(dai, 0, substream->stream);
sound/soc/soc-dai.c
648
snd_soc_dai_digital_mute(dai, 1, substream->stream);
sound/soc/soc-dapm.c
1596
int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
sound/soc/soc-dapm.c
1602
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
1609
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/soc-dapm.c
1626
trace_snd_soc_dapm_connected(paths, stream);
sound/soc/soc-dapm.c
3046
int dir = substream->stream;
sound/soc/soc-dapm.c
3984
substream->stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/soc-dapm.c
3992
snd_soc_dai_activate(source, substream->stream);
sound/soc/soc-dapm.c
3995
substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-dapm.c
4003
snd_soc_dai_activate(sink, substream->stream);
sound/soc/soc-dapm.c
4038
substream->stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/soc-dapm.c
4049
substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-dapm.c
4074
int ret = 0, saved_stream = substream->stream;
sound/soc/soc-dapm.c
4117
substream->stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/soc-dapm.c
4123
substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-dapm.c
4129
substream->stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/soc-dapm.c
4132
snd_soc_dai_deactivate(source, substream->stream);
sound/soc/soc-dapm.c
4136
substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-dapm.c
4139
snd_soc_dai_deactivate(sink, substream->stream);
sound/soc/soc-dapm.c
4156
substream->stream = saved_stream;
sound/soc/soc-dapm.c
4497
int stream;
sound/soc/soc-dapm.c
4499
for_each_pcm_streams(stream) {
sound/soc/soc-dapm.c
4502
stream_cpu = snd_soc_get_stream_cpu(dai_link, stream);
sound/soc/soc-dapm.c
4503
stream_codec = stream;
sound/soc/soc-dapm.c
4513
if (dai_link->c2c_params && !rtd->c2c_widget[stream]) {
sound/soc/soc-dapm.c
4514
struct snd_pcm_substream *substream = rtd->pcm->streams[stream].substream;
sound/soc/soc-dapm.c
4516
widget_name[stream]);
sound/soc/soc-dapm.c
4521
rtd->c2c_widget[stream] = dai;
sound/soc/soc-dapm.c
4524
dapm_connect_dai_routes(dapm, src_dai[stream], *src[stream],
sound/soc/soc-dapm.c
4525
rtd->c2c_widget[stream],
sound/soc/soc-dapm.c
4526
sink_dai[stream], *sink[stream]);
sound/soc/soc-dapm.c
4530
static void dapm_dai_stream_event(struct snd_soc_dai *dai, int stream, int event)
sound/soc/soc-dapm.c
4534
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-dapm.c
4598
static void dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream, int event)
sound/soc/soc-dapm.c
4604
dapm_dai_stream_event(dai, stream, event);
sound/soc/soc-dapm.c
4620
void snd_soc_dapm_stream_event(struct snd_soc_pcm_runtime *rtd, int stream,
sound/soc/soc-dapm.c
4626
dapm_stream_event(rtd, stream, event);
sound/soc/soc-dapm.c
4630
void snd_soc_dapm_stream_stop(struct snd_soc_pcm_runtime *rtd, int stream)
sound/soc/soc-dapm.c
4632
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/soc-generic-dmaengine-pcm.c
104
struct dma_chan *chan = pcm->chan[substream->stream];
sound/soc/soc-generic-dmaengine-pcm.c
152
struct dma_chan *chan = pcm->chan[substream->stream];
sound/soc/soc-generic-dmaengine-pcm.c
300
bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-generic-dmaengine-pcm.c
31
if (!pcm->chan[substream->stream])
sound/soc/soc-generic-dmaengine-pcm.c
34
return pcm->chan[substream->stream]->device->dev;
sound/soc/soc-pcm.c
100
return snd_soc_dpcm_check_state(fe, be, stream, state, ARRAY_SIZE(state));
sound/soc/soc-pcm.c
1021
if (snd_soc_dai_stream_active(dai, substream->stream) == 1) {
sound/soc/soc-pcm.c
1023
snd_soc_dai_digital_mute(dai, 1, substream->stream);
sound/soc/soc-pcm.c
1028
snd_soc_dapm_stream_stop(rtd, substream->stream);
sound/soc/soc-pcm.c
1038
if (snd_soc_dai_stream_valid(dai, substream->stream))
sound/soc/soc-pcm.c
108
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
1090
unsigned int tdm_mask = snd_soc_dai_tdm_mask_get(codec_dai, substream->stream);
sound/soc/soc-pcm.c
1106
if (!snd_soc_dai_stream_valid(codec_dai, substream->stream))
sound/soc/soc-pcm.c
1134
if (!snd_soc_dai_stream_valid(cpu_dai, substream->stream))
sound/soc/soc-pcm.c
117
return snd_soc_dpcm_check_state(fe, be, stream, state, ARRAY_SIZE(state));
sound/soc/soc-pcm.c
125
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
1300
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
1309
for_each_dpcm_be(fe, stream, dpcm)
sound/soc/soc-pcm.c
1313
fe_substream = snd_soc_dpcm_get_substream(fe, stream);
sound/soc/soc-pcm.c
1314
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
133
return snd_soc_dpcm_check_state(fe, be, stream, state, ARRAY_SIZE(state));
sound/soc/soc-pcm.c
1334
list_add(&dpcm->list_be, &fe->dpcm[stream].be_clients);
sound/soc/soc-pcm.c
1335
list_add(&dpcm->list_fe, &be->dpcm[stream].fe_clients);
sound/soc/soc-pcm.c
1339
snd_pcm_direction_name(stream), fe->dai_link->name,
sound/soc/soc-pcm.c
1340
stream ? "<-" : "->", be->dai_link->name);
sound/soc/soc-pcm.c
1342
dpcm_create_debugfs_state(dpcm, stream);
sound/soc/soc-pcm.c
1349
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
1355
if (!be->dpcm[stream].users)
sound/soc/soc-pcm.c
1358
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
1362
for_each_dpcm_fe(be, stream, dpcm) {
sound/soc/soc-pcm.c
1367
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1369
stream ? "<-" : "->", dpcm->be->dai_link->name);
sound/soc/soc-pcm.c
1371
fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, stream);
sound/soc/soc-pcm.c
1378
void dpcm_be_disconnect(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
1381
struct snd_pcm_substream *substream = snd_soc_dpcm_get_substream(fe, stream);
sound/soc/soc-pcm.c
1387
for_each_dpcm_be_safe(fe, stream, dpcm, d) {
sound/soc/soc-pcm.c
1389
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1396
snd_pcm_direction_name(stream), fe->dai_link->name,
sound/soc/soc-pcm.c
1397
stream ? "<-" : "->", dpcm->be->dai_link->name);
sound/soc/soc-pcm.c
1400
dpcm_be_reparent(fe, dpcm->be, stream);
sound/soc/soc-pcm.c
1418
struct snd_soc_dapm_widget *widget, int stream)
sound/soc/soc-pcm.c
1432
if (!snd_soc_dpcm_get_substream(be, stream))
sound/soc/soc-pcm.c
1436
w = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-pcm.c
1468
int stream;
sound/soc/soc-pcm.c
1472
stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/soc-pcm.c
1474
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/soc-pcm.c
1476
rtd = dpcm_get_be(card, widget, stream);
sound/soc/soc-pcm.c
1485
int stream, struct snd_soc_dapm_widget_list **list)
sound/soc/soc-pcm.c
1495
paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list,
sound/soc/soc-pcm.c
1501
snd_pcm_direction_name(stream));
sound/soc/soc-pcm.c
1504
snd_pcm_direction_name(stream));
sound/soc/soc-pcm.c
1514
static bool dpcm_be_is_active(struct snd_soc_dpcm *dpcm, int stream,
sound/soc/soc-pcm.c
1522
struct snd_soc_dapm_widget *widget = snd_soc_dai_get_widget(dai, stream);
sound/soc/soc-pcm.c
1535
static int dpcm_prune_paths(struct snd_soc_pcm_runtime *fe, int stream,
sound/soc/soc-pcm.c
1542
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1543
if (dpcm_be_is_active(dpcm, stream, *list_))
sound/soc/soc-pcm.c
1547
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1550
dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_BE);
sound/soc/soc-pcm.c
1558
int dpcm_add_paths(struct snd_soc_pcm_runtime *fe, int stream,
sound/soc/soc-pcm.c
1565
struct snd_pcm_substream *fe_substream = snd_soc_dpcm_get_substream(fe, stream);
sound/soc/soc-pcm.c
1577
if (stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/soc-pcm.c
1581
if (stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/soc-pcm.c
1589
be = dpcm_get_be(card, widget, stream);
sound/soc/soc-pcm.c
1603
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) &&
sound/soc/soc-pcm.c
1604
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) &&
sound/soc/soc-pcm.c
1605
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
1606
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE))
sound/soc/soc-pcm.c
1610
err = dpcm_be_connect(fe, be, stream);
sound/soc/soc-pcm.c
1619
dpcm_set_be_update_state(be, stream, SND_SOC_DPCM_UPDATE_BE);
sound/soc/soc-pcm.c
1627
void dpcm_clear_pending_state(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
1631
for_each_dpcm_be(fe, stream, dpcm)
sound/soc/soc-pcm.c
1632
dpcm_set_be_update_state(dpcm->be, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
1635
void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
sound/soc/soc-pcm.c
1641
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1644
snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
1650
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
1653
if (be->dpcm[stream].users == 0) {
sound/soc/soc-pcm.c
1655
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1656
dpcm_state_string(be->dpcm[stream].state));
sound/soc/soc-pcm.c
1660
if (--be->dpcm[stream].users != 0)
sound/soc/soc-pcm.c
1663
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) {
sound/soc/soc-pcm.c
1667
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) {
sound/soc/soc-pcm.c
1669
be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE;
sound/soc/soc-pcm.c
1675
be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;
sound/soc/soc-pcm.c
1679
int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
1681
struct snd_pcm_substream *fe_substream = snd_soc_dpcm_get_substream(fe, stream);
sound/soc/soc-pcm.c
1687
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1691
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
1695
snd_pcm_direction_name(stream));
sound/soc/soc-pcm.c
1700
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
1704
if (be->dpcm[stream].users == DPCM_MAX_BE_USERS) {
sound/soc/soc-pcm.c
1706
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1707
dpcm_state_string(be->dpcm[stream].state));
sound/soc/soc-pcm.c
1711
if (be->dpcm[stream].users++ != 0)
sound/soc/soc-pcm.c
1714
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) &&
sound/soc/soc-pcm.c
1715
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE))
sound/soc/soc-pcm.c
1719
snd_pcm_direction_name(stream), be->dai_link->name);
sound/soc/soc-pcm.c
1724
be->dpcm[stream].users--;
sound/soc/soc-pcm.c
1725
if (be->dpcm[stream].users < 0)
sound/soc/soc-pcm.c
1727
snd_pcm_direction_name(stream),
sound/soc/soc-pcm.c
1728
dpcm_state_string(be->dpcm[stream].state));
sound/soc/soc-pcm.c
1730
be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;
sound/soc/soc-pcm.c
1733
be->dpcm[stream].be_start = 0;
sound/soc/soc-pcm.c
1734
be->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN;
sound/soc/soc-pcm.c
1741
dpcm_be_dai_startup_rollback(fe, stream, dpcm);
sound/soc/soc-pcm.c
1752
int stream = substream->stream;
sound/soc/soc-pcm.c
1764
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1767
cpu_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
177
int stream, char *buf, size_t size)
sound/soc/soc-pcm.c
1783
int stream = substream->stream;
sound/soc/soc-pcm.c
179
struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params;
sound/soc/soc-pcm.c
1793
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1803
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1806
codec_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1819
int stream = substream->stream;
sound/soc/soc-pcm.c
1829
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1840
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
1843
cpu_stream = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1854
snd_soc_rtd_to_codec(be, 0), stream);
sound/soc/soc-pcm.c
186
stream ? "Capture" : "Playback");
sound/soc/soc-pcm.c
1867
int stream = substream->stream;
sound/soc/soc-pcm.c
1877
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
1888
if (!snd_soc_dai_stream_valid(dai, stream))
sound/soc/soc-pcm.c
189
dpcm_state_string(fe->dpcm[stream].state));
sound/soc/soc-pcm.c
1891
pcm = snd_soc_dai_get_pcm_stream(dai, stream);
sound/soc/soc-pcm.c
1899
int stream)
sound/soc/soc-pcm.c
191
if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
1918
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
192
(fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP))
sound/soc/soc-pcm.c
1921
snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
1949
int stream = fe_substream->stream, ret = 0;
sound/soc/soc-pcm.c
1951
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
sound/soc/soc-pcm.c
1953
ret = dpcm_be_dai_startup(fe, stream);
sound/soc/soc-pcm.c
1964
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN;
sound/soc/soc-pcm.c
1972
ret = dpcm_apply_symmetry(fe_substream, stream);
sound/soc/soc-pcm.c
1976
dpcm_be_dai_startup_unwind(fe, stream);
sound/soc/soc-pcm.c
1978
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
1986
int stream = substream->stream;
sound/soc/soc-pcm.c
1990
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
sound/soc/soc-pcm.c
1993
dpcm_be_dai_shutdown(fe, stream);
sound/soc/soc-pcm.c
2001
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_STOP);
sound/soc/soc-pcm.c
2003
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;
sound/soc/soc-pcm.c
2004
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
2008
void dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
2014
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2018
snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
2021
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
2025
if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream))
sound/soc/soc-pcm.c
2029
if (be->dpcm[stream].users > 1)
sound/soc/soc-pcm.c
203
if (list_empty(&fe->dpcm[stream].be_clients)) {
sound/soc/soc-pcm.c
2032
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
2033
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) &&
sound/soc/soc-pcm.c
2034
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) &&
sound/soc/soc-pcm.c
2035
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED) &&
sound/soc/soc-pcm.c
2036
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) &&
sound/soc/soc-pcm.c
2037
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND))
sound/soc/soc-pcm.c
2045
be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE;
sound/soc/soc-pcm.c
2052
int stream = substream->stream;
sound/soc/soc-pcm.c
2055
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
sound/soc/soc-pcm.c
2064
dpcm_be_dai_hw_free(fe, stream);
sound/soc/soc-pcm.c
2066
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE;
sound/soc/soc-pcm.c
2067
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
2073
int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
2080
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2084
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
2087
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
209
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2091
memcpy(&hw_params, &fe->dpcm[stream].hw_params,
sound/soc/soc-pcm.c
2100
memcpy(&be->dpcm[stream].hw_params, &hw_params,
sound/soc/soc-pcm.c
2104
if (!snd_soc_dpcm_can_be_params(fe, be, stream))
sound/soc/soc-pcm.c
2107
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) &&
sound/soc/soc-pcm.c
2108
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
2109
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE))
sound/soc/soc-pcm.c
211
params = &be->dpcm[stream].hw_params;
sound/soc/soc-pcm.c
2119
be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS;
sound/soc/soc-pcm.c
2128
for_each_dpcm_be_rollback(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2130
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
2132
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
2136
if (!snd_soc_dpcm_can_be_free_stop(fe, be, stream))
sound/soc/soc-pcm.c
2139
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) &&
sound/soc/soc-pcm.c
2140
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
2141
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) &&
sound/soc/soc-pcm.c
2142
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP))
sound/soc/soc-pcm.c
2155
int ret, stream = substream->stream;
sound/soc/soc-pcm.c
2158
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
sound/soc/soc-pcm.c
2160
memcpy(&fe->dpcm[stream].hw_params, params,
sound/soc/soc-pcm.c
2162
ret = dpcm_be_dai_hw_params(fe, stream);
sound/soc/soc-pcm.c
2173
dpcm_be_dai_hw_free(fe, stream);
sound/soc/soc-pcm.c
2175
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_PARAMS;
sound/soc/soc-pcm.c
2178
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
218
dpcm_state_string(be->dpcm[stream].state));
sound/soc/soc-pcm.c
2184
int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream,
sound/soc/soc-pcm.c
2193
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2197
be_substream = snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
220
if ((be->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
2202
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
221
(be->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP))
sound/soc/soc-pcm.c
2210
if (!be->dpcm[stream].be_start &&
sound/soc/soc-pcm.c
2211
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PREPARE) &&
sound/soc/soc-pcm.c
2212
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) &&
sound/soc/soc-pcm.c
2213
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED))
sound/soc/soc-pcm.c
2216
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2217
if (be->dpcm[stream].be_start != 1)
sound/soc/soc-pcm.c
2220
if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_PAUSED)
sound/soc/soc-pcm.c
2227
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2231
be->dpcm[stream].state = SND_SOC_DPCM_STATE_START;
sound/soc/soc-pcm.c
2234
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND))
sound/soc/soc-pcm.c
2237
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2238
if (be->dpcm[stream].be_start != 1)
sound/soc/soc-pcm.c
2243
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2247
be->dpcm[stream].state = SND_SOC_DPCM_STATE_START;
sound/soc/soc-pcm.c
2250
if (!be->dpcm[stream].be_start &&
sound/soc/soc-pcm.c
2251
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) &&
sound/soc/soc-pcm.c
2252
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED))
sound/soc/soc-pcm.c
2255
fe->dpcm[stream].fe_pause = false;
sound/soc/soc-pcm.c
2256
be->dpcm[stream].be_pause--;
sound/soc/soc-pcm.c
2258
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2259
if (be->dpcm[stream].be_start != 1)
sound/soc/soc-pcm.c
2264
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2268
be->dpcm[stream].state = SND_SOC_DPCM_STATE_START;
sound/soc/soc-pcm.c
2271
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_START) &&
sound/soc/soc-pcm.c
2272
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED))
sound/soc/soc-pcm.c
2275
if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START)
sound/soc/soc-pcm.c
2276
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2278
if (be->dpcm[stream].be_start != 0)
sound/soc/soc-pcm.c
2282
if (fe->dpcm[stream].fe_pause) {
sound/soc/soc-pcm.c
2284
fe->dpcm[stream].fe_pause = false;
sound/soc/soc-pcm.c
2285
be->dpcm[stream].be_pause--;
sound/soc/soc-pcm.c
2288
if (be->dpcm[stream].be_pause != 0)
sound/soc/soc-pcm.c
2294
if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_START)
sound/soc/soc-pcm.c
2295
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2297
fe->dpcm[stream].fe_pause = true;
sound/soc/soc-pcm.c
2298
be->dpcm[stream].be_pause++;
sound/soc/soc-pcm.c
2303
if (be->dpcm[stream].be_pause != 0)
sound/soc/soc-pcm.c
2304
be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED;
sound/soc/soc-pcm.c
2306
be->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
sound/soc/soc-pcm.c
2310
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START)
sound/soc/soc-pcm.c
2313
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2314
if (be->dpcm[stream].be_start != 0)
sound/soc/soc-pcm.c
2319
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2323
be->dpcm[stream].state = SND_SOC_DPCM_STATE_SUSPEND;
sound/soc/soc-pcm.c
2326
if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_START)
sound/soc/soc-pcm.c
2329
fe->dpcm[stream].fe_pause = true;
sound/soc/soc-pcm.c
2330
be->dpcm[stream].be_pause++;
sound/soc/soc-pcm.c
2332
be->dpcm[stream].be_start--;
sound/soc/soc-pcm.c
2333
if (be->dpcm[stream].be_start != 0)
sound/soc/soc-pcm.c
2338
be->dpcm[stream].be_start++;
sound/soc/soc-pcm.c
2342
be->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED;
sound/soc/soc-pcm.c
2369
ret = dpcm_be_dai_trigger(fe, substream->stream, cmd);
sound/soc/soc-pcm.c
2373
ret = dpcm_be_dai_trigger(fe, substream->stream, cmd);
sound/soc/soc-pcm.c
238
int stream;
sound/soc/soc-pcm.c
2389
int stream = substream->stream;
sound/soc/soc-pcm.c
2392
enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream];
sound/soc/soc-pcm.c
2394
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
sound/soc/soc-pcm.c
2434
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_START;
sound/soc/soc-pcm.c
2438
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_STOP;
sound/soc/soc-pcm.c
2441
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PAUSED;
sound/soc/soc-pcm.c
2446
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
sound/soc/soc-pcm.c
2453
int stream = substream->stream;
sound/soc/soc-pcm.c
2458
if (fe->dpcm[stream].runtime_update != SND_SOC_DPCM_UPDATE_NO) {
sound/soc/soc-pcm.c
2459
fe->dpcm[stream].trigger_pending = cmd + 1;
sound/soc/soc-pcm.c
2467
int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
2472
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2476
snd_soc_dpcm_get_substream(be, stream);
sound/soc/soc-pcm.c
2479
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
2482
if (!snd_soc_dpcm_can_be_prepared(fe, be, stream))
sound/soc/soc-pcm.c
2485
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
sound/soc/soc-pcm.c
2486
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_STOP) &&
sound/soc/soc-pcm.c
2487
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_SUSPEND) &&
sound/soc/soc-pcm.c
2488
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_PAUSED))
sound/soc/soc-pcm.c
2498
be->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE;
sound/soc/soc-pcm.c
250
for_each_pcm_streams(stream)
sound/soc/soc-pcm.c
251
if (snd_soc_dai_stream_valid(snd_soc_rtd_to_cpu(fe, 0), stream))
sound/soc/soc-pcm.c
2513
int stream = substream->stream, ret = 0;
sound/soc/soc-pcm.c
2519
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_FE);
sound/soc/soc-pcm.c
252
offset += dpcm_show_state(fe, stream,
sound/soc/soc-pcm.c
2521
ret = dpcm_be_dai_prepare(fe, stream);
sound/soc/soc-pcm.c
2530
fe->dpcm[stream].state = SND_SOC_DPCM_STATE_PREPARE;
sound/soc/soc-pcm.c
2533
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
2545
static int dpcm_run_update_shutdown(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
2550
snd_pcm_direction_name(stream), fe->dai_link->name);
sound/soc/soc-pcm.c
2552
err = dpcm_be_dai_trigger(fe, stream, SNDRV_PCM_TRIGGER_STOP);
sound/soc/soc-pcm.c
2554
dpcm_be_dai_hw_free(fe, stream);
sound/soc/soc-pcm.c
2556
dpcm_be_dai_shutdown(fe, stream);
sound/soc/soc-pcm.c
2559
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP);
sound/soc/soc-pcm.c
2564
static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
2570
snd_pcm_direction_name(stream), fe->dai_link->name);
sound/soc/soc-pcm.c
2573
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_FREE ||
sound/soc/soc-pcm.c
2574
fe->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE) {
sound/soc/soc-pcm.c
2576
fe->dai_link->name, dpcm_state_string(fe->dpcm[stream].state));
sound/soc/soc-pcm.c
2582
ret = dpcm_be_dai_startup(fe, stream);
sound/soc/soc-pcm.c
2587
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN)
sound/soc/soc-pcm.c
2590
ret = dpcm_be_dai_hw_params(fe, stream);
sound/soc/soc-pcm.c
2595
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS)
sound/soc/soc-pcm.c
2598
ret = dpcm_be_dai_prepare(fe, stream);
sound/soc/soc-pcm.c
2603
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP);
sound/soc/soc-pcm.c
2606
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_PREPARE ||
sound/soc/soc-pcm.c
2607
fe->dpcm[stream].state == SND_SOC_DPCM_STATE_STOP)
sound/soc/soc-pcm.c
2610
ret = dpcm_be_dai_trigger(fe, stream, SNDRV_PCM_TRIGGER_START);
sound/soc/soc-pcm.c
2617
dpcm_be_dai_hw_free(fe, stream);
sound/soc/soc-pcm.c
2619
dpcm_be_dai_shutdown(fe, stream);
sound/soc/soc-pcm.c
2622
for_each_dpcm_be(fe, stream, dpcm) {
sound/soc/soc-pcm.c
2626
if (!snd_soc_dpcm_can_be_update(fe, be, stream))
sound/soc/soc-pcm.c
2629
if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE ||
sound/soc/soc-pcm.c
2630
be->dpcm[stream].state == SND_SOC_DPCM_STATE_NEW)
sound/soc/soc-pcm.c
2640
int stream;
sound/soc/soc-pcm.c
2658
for_each_pcm_streams(stream) {
sound/soc/soc-pcm.c
2661
if (!snd_soc_dai_stream_valid(snd_soc_rtd_to_cpu(fe, 0), stream) ||
sound/soc/soc-pcm.c
2662
!snd_soc_dai_stream_valid(snd_soc_rtd_to_codec(fe, 0), stream))
sound/soc/soc-pcm.c
2666
if (!snd_soc_dai_stream_active(snd_soc_rtd_to_cpu(fe, 0), stream) ||
sound/soc/soc-pcm.c
2667
!snd_soc_dai_stream_active(snd_soc_rtd_to_codec(fe, 0), stream))
sound/soc/soc-pcm.c
2670
paths = dpcm_path_get(fe, stream, &list);
sound/soc/soc-pcm.c
2680
count = dpcm_add_paths(fe, stream, &list);
sound/soc/soc-pcm.c
2682
count = dpcm_prune_paths(fe, stream, &list);
sound/soc/soc-pcm.c
2684
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_BE);
sound/soc/soc-pcm.c
2686
dpcm_run_update_startup(fe, stream);
sound/soc/soc-pcm.c
2688
dpcm_run_update_shutdown(fe, stream);
sound/soc/soc-pcm.c
2689
dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
sound/soc/soc-pcm.c
2691
dpcm_clear_pending_state(fe, stream);
sound/soc/soc-pcm.c
2692
dpcm_be_disconnect(fe, stream);
sound/soc/soc-pcm.c
2735
int stream = fe_substream->stream;
sound/soc/soc-pcm.c
2740
for_each_dpcm_be(fe, stream, dpcm)
sound/soc/soc-pcm.c
2743
dpcm_be_disconnect(fe, stream);
sound/soc/soc-pcm.c
2765
int stream = fe_substream->stream;
sound/soc/soc-pcm.c
2769
ret = dpcm_path_get(fe, stream, &list);
sound/soc/soc-pcm.c
2774
dpcm_add_paths(fe, stream, &list);
sound/soc/soc-pcm.c
2777
if (list_empty(&fe->dpcm[stream].be_clients)) {
sound/soc/soc-pcm.c
2791
dpcm_clear_pending_state(fe, stream);
sound/soc/soc-pcm.c
284
static void dpcm_create_debugfs_state(struct snd_soc_dpcm *dpcm, int stream)
sound/soc/soc-pcm.c
289
snd_pcm_direction_name(stream));
sound/soc/soc-pcm.c
3000
snd_soc_dpcm_get_substream(struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
3002
return be->pcm->streams[stream].substream;
sound/soc/soc-pcm.c
306
int stream)
sound/soc/soc-pcm.c
322
int stream, enum snd_soc_dpcm_update state)
sound/soc/soc-pcm.c
325
snd_soc_dpcm_get_substream(fe, stream);
sound/soc/soc-pcm.c
328
if (state == SND_SOC_DPCM_UPDATE_NO && fe->dpcm[stream].trigger_pending) {
sound/soc/soc-pcm.c
330
fe->dpcm[stream].trigger_pending - 1);
sound/soc/soc-pcm.c
331
fe->dpcm[stream].trigger_pending = 0;
sound/soc/soc-pcm.c
333
fe->dpcm[stream].runtime_update = state;
sound/soc/soc-pcm.c
338
int stream, enum snd_soc_dpcm_update state)
sound/soc/soc-pcm.c
340
be->dpcm[stream].runtime_update = state;
sound/soc/soc-pcm.c
357
int stream, int action)
sound/soc/soc-pcm.c
366
snd_soc_dai_action(dai, stream, action);
sound/soc/soc-pcm.c
39
static int snd_soc_dpcm_can_fe_update(struct snd_soc_pcm_runtime *fe, int stream)
sound/soc/soc-pcm.c
41
if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE)
sound/soc/soc-pcm.c
49
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
51
if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) ||
sound/soc/soc-pcm.c
52
((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) &&
sound/soc/soc-pcm.c
53
be->dpcm[stream].runtime_update))
sound/soc/soc-pcm.c
545
int stream = substream->stream;
sound/soc/soc-pcm.c
550
const struct snd_soc_pcm_stream *pcm_codec = snd_soc_dai_get_pcm_stream(codec_dai, stream);
sound/soc/soc-pcm.c
560
const struct snd_soc_pcm_stream *pcm_cpu = snd_soc_dai_get_pcm_stream(cpu_dai, stream);
sound/soc/soc-pcm.c
60
int stream,
sound/soc/soc-pcm.c
632
struct snd_pcm_hardware *hw, int stream)
sound/soc/soc-pcm.c
652
if (!snd_soc_dai_stream_valid(cpu_dai, stream))
sound/soc/soc-pcm.c
655
cpu_stream = snd_soc_dai_get_pcm_stream(cpu_dai, stream);
sound/soc/soc-pcm.c
673
if (!snd_soc_dai_stream_valid(codec_dai, stream))
sound/soc/soc-pcm.c
676
codec_stream = snd_soc_dai_get_pcm_stream(codec_dai, stream);
sound/soc/soc-pcm.c
69
for_each_dpcm_fe(be, stream, dpcm) {
sound/soc/soc-pcm.c
712
snd_soc_runtime_calc_hw(rtd, hw, substream->stream);
sound/soc/soc-pcm.c
74
state = dpcm->fe->dpcm[stream].state;
sound/soc/soc-pcm.c
765
snd_soc_runtime_deactivate(rtd, substream->stream);
sound/soc/soc-pcm.c
907
snd_soc_runtime_activate(rtd, substream->stream);
sound/soc/soc-pcm.c
92
struct snd_soc_pcm_runtime *be, int stream)
sound/soc/soc-pcm.c
954
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/soc-pcm.c
960
snd_soc_dapm_stream_event(rtd, substream->stream,
sound/soc/soc-pcm.c
965
snd_soc_dai_digital_mute(dai, 0, substream->stream);
sound/soc/soc-topology-test.c
178
.stream = {
sound/soc/soc-topology.c
1324
static int set_stream_info(struct soc_tplg *tplg, struct snd_soc_pcm_stream *stream,
sound/soc/soc-topology.c
1327
stream->stream_name = devm_kstrdup(tplg->dev, caps->name, GFP_KERNEL);
sound/soc/soc-topology.c
1328
if (!stream->stream_name)
sound/soc/soc-topology.c
1331
stream->channels_min = le32_to_cpu(caps->channels_min);
sound/soc/soc-topology.c
1332
stream->channels_max = le32_to_cpu(caps->channels_max);
sound/soc/soc-topology.c
1333
stream->rates = le32_to_cpu(caps->rates);
sound/soc/soc-topology.c
1334
stream->rate_min = le32_to_cpu(caps->rate_min);
sound/soc/soc-topology.c
1335
stream->rate_max = le32_to_cpu(caps->rate_max);
sound/soc/soc-topology.c
1336
stream->formats = le64_to_cpu(caps->formats);
sound/soc/soc-topology.c
1337
stream->sig_bits = le32_to_cpu(caps->sig_bits);
sound/soc/soc-topology.c
1368
struct snd_soc_pcm_stream *stream;
sound/soc/soc-topology.c
1388
stream = &dai_drv->playback;
sound/soc/soc-topology.c
1390
ret = set_stream_info(tplg, stream, caps);
sound/soc/soc-topology.c
1396
stream = &dai_drv->capture;
sound/soc/soc-topology.c
1398
ret = set_stream_info(tplg, stream, caps);
sound/soc/soc-topology.c
1840
struct snd_soc_pcm_stream *stream;
sound/soc/soc-topology.c
1865
stream = &dai_drv->playback;
sound/soc/soc-topology.c
1867
ret = set_stream_info(tplg, stream, caps);
sound/soc/soc-topology.c
1873
stream = &dai_drv->capture;
sound/soc/soc-topology.c
1875
ret = set_stream_info(tplg, stream, caps);
sound/soc/sof/amd/acp-ipc.c
256
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-ipc.c
261
stream = substream->runtime->private_data;
sound/soc/sof/amd/acp-ipc.c
263
if (!stream)
sound/soc/sof/amd/acp-ipc.c
266
acp_mailbox_read(sdev, stream->posn_offset, p, sz);
sound/soc/sof/amd/acp-ipc.c
278
struct acp_dsp_stream *stream = substream->runtime->private_data;
sound/soc/sof/amd/acp-ipc.c
285
stream->posn_offset = sdev->stream_box.offset + posn_offset;
sound/soc/sof/amd/acp-ipc.c
288
substream->stream, stream->posn_offset);
sound/soc/sof/amd/acp-pcm.c
107
stream = &spcm->stream[substream->stream];
sound/soc/sof/amd/acp-pcm.c
108
ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
sound/soc/sof/amd/acp-pcm.c
114
memcpy(&stream->posn, &posn, sizeof(posn));
sound/soc/sof/amd/acp-pcm.c
115
pos = spcm->stream[substream->stream].posn.host_posn;
sound/soc/sof/amd/acp-pcm.c
24
struct acp_dsp_stream *stream = runtime->private_data;
sound/soc/sof/amd/acp-pcm.c
30
stream->num_pages = PFN_UP(runtime->dma_bytes);
sound/soc/sof/amd/acp-pcm.c
31
stream->dmab = substream->runtime->dma_buffer_p;
sound/soc/sof/amd/acp-pcm.c
33
ret = acp_dsp_stream_config(sdev, stream);
sound/soc/sof/amd/acp-pcm.c
40
platform_params->phy_addr = stream->reg_offset;
sound/soc/sof/amd/acp-pcm.c
41
platform_params->stream_tag = stream->stream_tag;
sound/soc/sof/amd/acp-pcm.c
48
index = stream->stream_tag - 1;
sound/soc/sof/amd/acp-pcm.c
59
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-pcm.c
61
stream = acp_dsp_stream_get(sdev, 0);
sound/soc/sof/amd/acp-pcm.c
62
if (!stream)
sound/soc/sof/amd/acp-pcm.c
65
substream->runtime->private_data = stream;
sound/soc/sof/amd/acp-pcm.c
66
stream->substream = substream;
sound/soc/sof/amd/acp-pcm.c
74
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-pcm.c
76
stream = substream->runtime->private_data;
sound/soc/sof/amd/acp-pcm.c
77
if (!stream) {
sound/soc/sof/amd/acp-pcm.c
82
stream->substream = NULL;
sound/soc/sof/amd/acp-pcm.c
85
return acp_dsp_stream_put(sdev, stream);
sound/soc/sof/amd/acp-pcm.c
94
struct snd_sof_pcm_stream *stream;
sound/soc/sof/amd/acp-probes.c
114
struct acp_dsp_stream *stream = cstream->runtime->private_data;
sound/soc/sof/amd/acp-probes.c
118
tstamp->copied_total = stream->cstream_posn;
sound/soc/sof/amd/acp-probes.c
28
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-probes.c
32
stream = acp_dsp_stream_get(sdev, 0);
sound/soc/sof/amd/acp-probes.c
33
if (!stream)
sound/soc/sof/amd/acp-probes.c
36
stream->cstream = cstream;
sound/soc/sof/amd/acp-probes.c
37
cstream->runtime->private_data = stream;
sound/soc/sof/amd/acp-probes.c
39
adata->probe_stream = stream;
sound/soc/sof/amd/acp-probes.c
40
*stream_id = stream->stream_tag;
sound/soc/sof/amd/acp-probes.c
50
struct acp_dsp_stream *stream = cstream->runtime->private_data;
sound/soc/sof/amd/acp-probes.c
54
ret = acp_dsp_stream_put(sdev, stream);
sound/soc/sof/amd/acp-probes.c
61
stream->cstream = NULL;
sound/soc/sof/amd/acp-probes.c
74
struct acp_dsp_stream *stream = cstream->runtime->private_data;
sound/soc/sof/amd/acp-probes.c
79
stream->dmab = cstream->runtime->dma_buffer_p;
sound/soc/sof/amd/acp-probes.c
80
stream->num_pages = PFN_UP(cstream->runtime->dma_bytes);
sound/soc/sof/amd/acp-probes.c
83
ret = acp_dsp_stream_config(sdev, stream);
sound/soc/sof/amd/acp-probes.c
85
acp_dsp_stream_put(sdev, stream);
sound/soc/sof/amd/acp-probes.c
93
index = stream->stream_tag - 1;
sound/soc/sof/amd/acp-stream.c
106
for (page_idx = 0; page_idx < stream->num_pages; page_idx++) {
sound/soc/sof/amd/acp-stream.c
107
addr = snd_sgbuf_get_addr(stream->dmab, page_idx * PAGE_SIZE);
sound/soc/sof/amd/acp-stream.c
130
struct acp_dsp_stream *stream = adata->stream_buf;
sound/soc/sof/amd/acp-stream.c
133
for (i = 0; i < ACP_MAX_STREAM; i++, stream++) {
sound/soc/sof/amd/acp-stream.c
134
if (stream->active)
sound/soc/sof/amd/acp-stream.c
139
stream->active = 1;
sound/soc/sof/amd/acp-stream.c
140
return stream;
sound/soc/sof/amd/acp-stream.c
144
if (stream->stream_tag == tag) {
sound/soc/sof/amd/acp-stream.c
145
stream->active = 1;
sound/soc/sof/amd/acp-stream.c
146
return stream;
sound/soc/sof/amd/acp-stream.c
159
struct acp_dsp_stream *stream = adata->stream_buf;
sound/soc/sof/amd/acp-stream.c
163
for (i = 0; i < ACP_MAX_STREAM; i++, stream++) {
sound/soc/sof/amd/acp-stream.c
164
if (stream == acp_stream) {
sound/soc/sof/amd/acp-stream.c
165
stream->active = 0;
sound/soc/sof/amd/acp-stream.c
27
int acp_dsp_stream_config(struct snd_sof_dev *sdev, struct acp_dsp_stream *stream)
sound/soc/sof/amd/acp-stream.c
31
int stream_tag = stream->stream_tag;
sound/soc/sof/amd/acp-stream.c
41
stream->reg_offset = PTE_GRP1_OFFSET;
sound/soc/sof/amd/acp-stream.c
47
stream->reg_offset = PTE_GRP2_OFFSET;
sound/soc/sof/amd/acp-stream.c
53
stream->reg_offset = PTE_GRP3_OFFSET;
sound/soc/sof/amd/acp-stream.c
59
stream->reg_offset = PTE_GRP4_OFFSET;
sound/soc/sof/amd/acp-stream.c
65
stream->reg_offset = PTE_GRP5_OFFSET;
sound/soc/sof/amd/acp-stream.c
71
stream->reg_offset = PTE_GRP6_OFFSET;
sound/soc/sof/amd/acp-stream.c
77
stream->reg_offset = PTE_GRP7_OFFSET;
sound/soc/sof/amd/acp-stream.c
83
stream->reg_offset = PTE_GRP8_OFFSET;
sound/soc/sof/amd/acp-stream.c
98
phy_addr_offset, stream->reg_offset);
sound/soc/sof/amd/acp-trace.c
20
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-trace.c
25
stream = adata->dtrace_stream;
sound/soc/sof/amd/acp-trace.c
26
ret = acp_dsp_stream_put(sdev, stream);
sound/soc/sof/amd/acp-trace.c
40
struct acp_dsp_stream *stream;
sound/soc/sof/amd/acp-trace.c
45
stream = acp_dsp_stream_get(sdev, ACP_LOGGER_STREAM);
sound/soc/sof/amd/acp-trace.c
46
if (!stream)
sound/soc/sof/amd/acp-trace.c
49
stream->dmab = dmab;
sound/soc/sof/amd/acp-trace.c
50
stream->num_pages = NUM_PAGES;
sound/soc/sof/amd/acp-trace.c
52
ret = acp_dsp_stream_config(sdev, stream);
sound/soc/sof/amd/acp-trace.c
54
acp_dsp_stream_put(sdev, stream);
sound/soc/sof/amd/acp-trace.c
58
adata->dtrace_stream = stream;
sound/soc/sof/amd/acp-trace.c
59
dtrace_params->stream_tag = stream->stream_tag;
sound/soc/sof/amd/acp-trace.c
60
dtrace_params->buffer.phy_addr = stream->reg_offset;
sound/soc/sof/amd/acp.h
315
int acp_dsp_stream_config(struct snd_sof_dev *sdev, struct acp_dsp_stream *stream);
sound/soc/sof/compress.c
116
if (spcm->stream[dir].cstream) {
sound/soc/sof/compress.c
121
spcm->stream[dir].cstream = cstream;
sound/soc/sof/compress.c
122
spcm->stream[dir].posn.host_posn = 0;
sound/soc/sof/compress.c
123
spcm->stream[dir].posn.dai_posn = 0;
sound/soc/sof/compress.c
137
struct sof_ipc_stream stream;
sound/soc/sof/compress.c
145
stream.hdr.size = sizeof(stream);
sound/soc/sof/compress.c
146
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE;
sound/soc/sof/compress.c
147
stream.comp_id = spcm->stream[cstream->direction].comp_id;
sound/soc/sof/compress.c
150
ret = sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream));
sound/soc/sof/compress.c
155
cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work);
sound/soc/sof/compress.c
156
spcm->stream[cstream->direction].cstream = NULL;
sound/soc/sof/compress.c
224
pcm->comp_id = spcm->stream[cstream->direction].comp_id;
sound/soc/sof/compress.c
226
pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr;
sound/soc/sof/compress.c
247
ret = snd_sof_set_stream_data_offset(sdev, &spcm->stream[cstream->direction],
sound/soc/sof/compress.c
281
struct sof_ipc_stream stream;
sound/soc/sof/compress.c
288
stream.hdr.size = sizeof(stream);
sound/soc/sof/compress.c
289
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG;
sound/soc/sof/compress.c
290
stream.comp_id = spcm->stream[cstream->direction].comp_id;
sound/soc/sof/compress.c
294
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START;
sound/soc/sof/compress.c
297
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP;
sound/soc/sof/compress.c
300
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE;
sound/soc/sof/compress.c
303
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
sound/soc/sof/compress.c
310
return sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream));
sound/soc/sof/compress.c
384
tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn,
sound/soc/sof/compress.c
71
sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn,
sound/soc/sof/compress.c
75
schedule_work(&spcm->stream[cstream->direction].period_elapsed_work);
sound/soc/sof/compress.c
92
spcm->stream[dir].page_table.area, size);
sound/soc/sof/intel/hda-ctrl.c
189
struct hdac_stream *stream;
sound/soc/sof/intel/hda-ctrl.c
230
list_for_each_entry(stream, &bus->stream_list, list) {
sound/soc/sof/intel/hda-ctrl.c
231
sd_offset = SOF_STREAM_SD_OFFSET(stream);
sound/soc/sof/intel/hda-ctrl.c
278
struct hdac_stream *stream;
sound/soc/sof/intel/hda-ctrl.c
285
list_for_each_entry(stream, &bus->stream_list, list) {
sound/soc/sof/intel/hda-ctrl.c
286
sd_offset = SOF_STREAM_SD_OFFSET(stream);
sound/soc/sof/intel/hda-ctrl.c
304
list_for_each_entry(stream, &bus->stream_list, list) {
sound/soc/sof/intel/hda-ctrl.c
305
sd_offset = SOF_STREAM_SD_OFFSET(stream);
sound/soc/sof/intel/hda-dai-ops.c
133
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
187
snd_soc_dai_set_stream(codec_dai, hstream, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
200
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sof/intel/hda-dai-ops.c
305
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
382
w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
517
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai-ops.c
54
int stream_dir = substream->stream;
sound/soc/sof/intel/hda-dai-ops.c
65
if (hstream->direction != substream->stream)
sound/soc/sof/intel/hda-dai.c
138
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sof/intel/hda-dai.c
246
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
301
dai->name, substream->stream);
sound/soc/sof/intel/hda-dai.c
349
int stream = substream->stream;
sound/soc/sof/intel/hda-dai.c
351
return hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, dai);
sound/soc/sof/intel/hda-dai.c
378
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
474
int stream = substream->stream;
sound/soc/sof/intel/hda-dai.c
476
return non_hda_dai_hw_params(substream, &rtd->dpcm[stream].hw_params, cpu_dai);
sound/soc/sof/intel/hda-dai.c
499
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
540
0, 0, substream->stream);
sound/soc/sof/intel/hda-dai.c
579
substream->stream);
sound/soc/sof/intel/hda-dai.c
600
w = snd_soc_dai_get_widget(dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
619
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
633
0, 0, substream->stream);
sound/soc/sof/intel/hda-dai.c
64
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dai.c
685
if (rtd->dpcm[hext_stream->link_substream->stream].state !=
sound/soc/sof/intel/hda-dai.c
72
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
sound/soc/sof/intel/hda-dsp.c
539
substream = spcm->stream[dir].substream;
sound/soc/sof/intel/hda-dsp.c
543
if (!spcm->stream[dir].d0i3_compatible)
sound/soc/sof/intel/hda-ipc.c
447
substream->stream, hda_stream->sof_intel_stream.posn_offset);
sound/soc/sof/intel/hda-pcm.c
206
pos = spcm->stream[substream->stream].posn.host_posn;
sound/soc/sof/intel/hda-pcm.c
210
pos = hda_dsp_stream_get_position(hstream, substream->stream, true);
sound/soc/sof/intel/hda-pcm.c
228
int direction = substream->stream;
sound/soc/sof/intel/hda-pcm.c
258
!spcm->stream[substream->stream].pause_supported))
sound/soc/sof/intel/hda-pcm.c
263
spcm->stream[substream->stream].d0i3_compatible)
sound/soc/sof/intel/hda-pcm.c
315
if (spcm->stream[direction].dsp_max_burst_size_in_ms) {
sound/soc/sof/intel/hda-pcm.c
316
unsigned int period_time = spcm->stream[direction].dsp_max_burst_size_in_ms;
sound/soc/sof/intel/hda-pcm.c
349
int direction = substream->stream;
sound/soc/sof/intel/hda-stream.c
1175
for_each_dpcm_be(rtd, substream->stream, dpcm) {
sound/soc/sof/intel/hda.c
65
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(d, params_data->substream->stream);
sound/soc/sof/intel/hda.c
83
struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(d, free_data->substream->stream);
sound/soc/sof/ipc3-pcm.c
120
spcm_dbg(spcm, substream->stream, "stream_tag %d\n",
sound/soc/sof/ipc3-pcm.c
127
spcm_err(spcm, substream->stream,
sound/soc/sof/ipc3-pcm.c
133
ret = snd_sof_set_stream_data_offset(sdev, &spcm->stream[substream->stream],
sound/soc/sof/ipc3-pcm.c
136
spcm_err(spcm, substream->stream, "invalid stream data offset\n");
sound/soc/sof/ipc3-pcm.c
148
struct sof_ipc_stream stream;
sound/soc/sof/ipc3-pcm.c
155
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-pcm.c
156
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG;
sound/soc/sof/ipc3-pcm.c
157
stream.comp_id = spcm->stream[substream->stream].comp_id;
sound/soc/sof/ipc3-pcm.c
161
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE;
sound/soc/sof/ipc3-pcm.c
164
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
sound/soc/sof/ipc3-pcm.c
167
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START;
sound/soc/sof/ipc3-pcm.c
172
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP;
sound/soc/sof/ipc3-pcm.c
175
spcm_err(spcm, substream->stream, "Unhandled trigger cmd %d\n", cmd);
sound/soc/sof/ipc3-pcm.c
180
return sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream));
sound/soc/sof/ipc3-pcm.c
21
struct sof_ipc_stream stream;
sound/soc/sof/ipc3-pcm.c
28
if (!spcm->prepared[substream->stream])
sound/soc/sof/ipc3-pcm.c
31
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-pcm.c
32
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE;
sound/soc/sof/ipc3-pcm.c
33
stream.comp_id = spcm->stream[substream->stream].comp_id;
sound/soc/sof/ipc3-pcm.c
36
return sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream));
sound/soc/sof/ipc3-pcm.c
65
pcm.comp_id = spcm->stream[substream->stream].comp_id;
sound/soc/sof/ipc3-pcm.c
67
pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr;
sound/soc/sof/ipc3-pcm.c
69
pcm.params.direction = substream->stream;
sound/soc/sof/ipc3-topology.c
1963
struct sof_ipc_stream stream;
sound/soc/sof/ipc3-topology.c
1967
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-topology.c
1968
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | cmd;
sound/soc/sof/ipc3-topology.c
1969
stream.comp_id = swidget->comp_id;
sound/soc/sof/ipc3-topology.c
1972
ret = sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream));
sound/soc/sof/ipc3-topology.c
1984
int stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/sof/ipc3-topology.c
2007
if (spcm->stream[stream].suspend_ignored) {
sound/soc/sof/ipc3-topology.c
2013
ret = sof_ipc3_keyword_detect_pcm_params(swidget, stream);
sound/soc/sof/ipc3-topology.c
2027
if (spcm->stream[stream].suspend_ignored) {
sound/soc/sof/ipc3.c
865
struct snd_sof_pcm_stream *stream;
sound/soc/sof/ipc3.c
877
stream = &spcm->stream[direction];
sound/soc/sof/ipc3.c
878
ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
sound/soc/sof/ipc3.c
886
memcpy(&stream->posn, &posn, sizeof(posn));
sound/soc/sof/ipc3.c
889
snd_sof_compr_fragment_elapsed(stream->cstream);
sound/soc/sof/ipc3.c
890
else if (stream->substream->runtime &&
sound/soc/sof/ipc3.c
891
!stream->substream->runtime->no_period_wakeup)
sound/soc/sof/ipc3.c
893
snd_sof_pcm_period_elapsed(stream->substream);
sound/soc/sof/ipc3.c
900
struct snd_sof_pcm_stream *stream;
sound/soc/sof/ipc3.c
912
stream = &spcm->stream[direction];
sound/soc/sof/ipc3.c
913
ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
sound/soc/sof/ipc3.c
924
memcpy(&stream->posn, &posn, sizeof(posn));
sound/soc/sof/ipc3.c
925
snd_pcm_stop_xrun(stream->substream);
sound/soc/sof/ipc4-pcm.c
1050
time_info = sof_ipc4_sps_to_time_info(&spcm->stream[substream->stream]);
sound/soc/sof/ipc4-pcm.c
1058
sof_ipc4_build_time_info(sdev, &spcm->stream[substream->stream]);
sound/soc/sof/ipc4-pcm.c
1179
sps = &spcm->stream[substream->stream];
sound/soc/sof/ipc4-pcm.c
1256
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sof/ipc4-pcm.c
1270
spcm_dbg_ratelimited(spcm, substream->stream,
sound/soc/sof/ipc4-pcm.c
1297
time_info = sof_ipc4_sps_to_time_info(&spcm->stream[substream->stream]);
sound/soc/sof/ipc4-pcm.c
323
stream_priv = spcm->stream[direction].private;
sound/soc/sof/ipc4-pcm.c
434
spcm_dbg(spcm, substream->stream, "cmd: %d, state: %d\n", cmd, state);
sound/soc/sof/ipc4-pcm.c
436
pipeline_list = &spcm->stream[substream->stream].pipeline_list;
sound/soc/sof/ipc4-pcm.c
453
time_info = sof_ipc4_sps_to_time_info(&spcm->stream[substream->stream]);
sound/soc/sof/ipc4-pcm.c
455
ret = sof_ipc4_chain_dma_trigger(sdev, spcm, substream->stream,
sound/soc/sof/ipc4-pcm.c
530
spcm_err(spcm, substream->stream, "failed to pause all pipelines\n");
sound/soc/sof/ipc4-pcm.c
549
time_info = sof_ipc4_sps_to_time_info(&spcm->stream[substream->stream]);
sound/soc/sof/ipc4-pcm.c
559
spcm_err(spcm, substream->stream,
sound/soc/sof/ipc4-pcm.c
894
int stream;
sound/soc/sof/ipc4-pcm.c
896
for_each_pcm_streams(stream) {
sound/soc/sof/ipc4-pcm.c
897
pipeline_list = &spcm->stream[stream].pipeline_list;
sound/soc/sof/ipc4-pcm.c
901
stream_priv = spcm->stream[stream].private;
sound/soc/sof/ipc4-pcm.c
903
kfree(spcm->stream[stream].private);
sound/soc/sof/ipc4-pcm.c
904
spcm->stream[stream].private = NULL;
sound/soc/sof/ipc4-pcm.c
917
int stream;
sound/soc/sof/ipc4-pcm.c
930
for_each_pcm_streams(stream) {
sound/soc/sof/ipc4-pcm.c
931
pipeline_list = &spcm->stream[stream].pipeline_list;
sound/soc/sof/ipc4-pcm.c
947
spcm->stream[stream].private = stream_priv;
sound/soc/sof/ipc4-pcm.c
950
if (!support_info || stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/sof/ipc4-topology.c
671
struct snd_sof_pcm_stream *sps = &spcm->stream[dir];
sound/soc/sof/ipc4-topology.c
687
spcm->stream[dir].dsp_max_burst_size_in_ms = 1;
sound/soc/sof/mediatek/mtk-adsp-common.c
184
struct snd_sof_pcm_stream *stream;
sound/soc/sof/mediatek/mtk-adsp-common.c
197
stream = &spcm->stream[substream->stream];
sound/soc/sof/mediatek/mtk-adsp-common.c
198
ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
sound/soc/sof/mediatek/mtk-adsp-common.c
204
memcpy(&stream->posn, &posn, sizeof(posn));
sound/soc/sof/mediatek/mtk-adsp-common.c
205
pos = spcm->stream[substream->stream].posn.host_posn;
sound/soc/sof/pcm.c
138
spcm_dbg(spcm, substream->stream, "Entry: hw_params\n");
sound/soc/sof/pcm.c
154
if (spcm->prepared[substream->stream] && pcm_ops && pcm_ops->hw_free) {
sound/soc/sof/pcm.c
159
spcm->prepared[substream->stream] = false;
sound/soc/sof/pcm.c
162
platform_params = &spcm->platform_params[substream->stream];
sound/soc/sof/pcm.c
165
spcm_err(spcm, substream->stream, "platform hw params failed\n");
sound/soc/sof/pcm.c
170
if (!spcm->stream[substream->stream].list) {
sound/soc/sof/pcm.c
172
substream->stream);
sound/soc/sof/pcm.c
178
int host_comp_id = spcm->stream[substream->stream].comp_id;
sound/soc/sof/pcm.c
182
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
197
spcm->stream[substream->stream].page_table.area,
sound/soc/sof/pcm.c
204
memcpy(&spcm->params[substream->stream], params, sizeof(*params));
sound/soc/sof/pcm.c
218
if (spcm->prepared[substream->stream]) {
sound/soc/sof/pcm.c
228
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
234
spcm->prepared[substream->stream] = false;
sound/soc/sof/pcm.c
235
spcm->pending_stop[substream->stream] = false;
sound/soc/sof/pcm.c
241
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
251
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
269
substream = spcm->stream[dir].substream;
sound/soc/sof/pcm.c
272
spcm->stream[dir].suspend_ignored)
sound/soc/sof/pcm.c
275
if (spcm->stream[dir].list) {
sound/soc/sof/pcm.c
303
spcm_dbg(spcm, substream->stream, "Entry: hw_free\n");
sound/soc/sof/pcm.c
305
ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, true);
sound/soc/sof/pcm.c
308
sof_widget_list_unprepare(sdev, spcm, substream->stream);
sound/soc/sof/pcm.c
310
cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work);
sound/soc/sof/pcm.c
325
int dir = substream->stream;
sound/soc/sof/pcm.c
336
spcm_dbg(spcm, substream->stream, "Entry: prepare\n");
sound/soc/sof/pcm.c
338
if (spcm->prepared[substream->stream]) {
sound/soc/sof/pcm.c
339
if (!spcm->pending_stop[substream->stream])
sound/soc/sof/pcm.c
346
ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, true);
sound/soc/sof/pcm.c
351
ret = sof_pcm_hw_params(component, substream, &spcm->params[substream->stream]);
sound/soc/sof/pcm.c
353
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
358
list = spcm->stream[dir].list;
sound/soc/sof/pcm.c
359
params = &spcm->params[substream->stream];
sound/soc/sof/pcm.c
360
platform_params = &spcm->platform_params[substream->stream];
sound/soc/sof/pcm.c
365
spcm->stream[dir].list = NULL;
sound/soc/sof/pcm.c
376
spcm->prepared[substream->stream] = true;
sound/soc/sof/pcm.c
404
spcm_dbg(spcm, substream->stream, "Entry: trigger (cmd: %d)\n", cmd);
sound/soc/sof/pcm.c
406
spcm->pending_stop[substream->stream] = false;
sound/soc/sof/pcm.c
417
if (spcm->stream[substream->stream].suspend_ignored) {
sound/soc/sof/pcm.c
423
spcm->stream[substream->stream].suspend_ignored = false;
sound/soc/sof/pcm.c
437
spcm->stream[substream->stream].d0i3_compatible) {
sound/soc/sof/pcm.c
438
spcm->stream[substream->stream].suspend_ignored = true;
sound/soc/sof/pcm.c
453
spcm_err(spcm, substream->stream, "Unhandled trigger cmd %d\n", cmd);
sound/soc/sof/pcm.c
484
spcm->pending_stop[substream->stream] = true;
sound/soc/sof/pcm.c
492
ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, false);
sound/soc/sof/pcm.c
527
spcm->stream[substream->stream].posn.host_posn);
sound/soc/sof/pcm.c
529
spcm->stream[substream->stream].posn.dai_posn);
sound/soc/sof/pcm.c
555
spcm_dbg(spcm, substream->stream, "Entry: open\n");
sound/soc/sof/pcm.c
557
caps = &spcm->pcm.caps[substream->stream];
sound/soc/sof/pcm.c
578
spcm->stream[substream->stream].posn.host_posn = 0;
sound/soc/sof/pcm.c
579
spcm->stream[substream->stream].posn.dai_posn = 0;
sound/soc/sof/pcm.c
580
spcm->stream[substream->stream].substream = substream;
sound/soc/sof/pcm.c
581
spcm->prepared[substream->stream] = false;
sound/soc/sof/pcm.c
585
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
590
spcm_dbg(spcm, substream->stream, "period bytes min %zd, max %zd\n",
sound/soc/sof/pcm.c
592
spcm_dbg(spcm, substream->stream, "period count min %d, max %d\n",
sound/soc/sof/pcm.c
594
spcm_dbg(spcm, substream->stream, "buffer bytes max %zd\n", runtime->hw.buffer_bytes_max);
sound/soc/sof/pcm.c
615
spcm_dbg(spcm, substream->stream, "Entry: close\n");
sound/soc/sof/pcm.c
619
spcm_err(spcm, substream->stream,
sound/soc/sof/pcm.c
627
spcm->stream[substream->stream].substream = NULL;
sound/soc/sof/pcm.c
644
int stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/sof/pcm.c
65
schedule_work(&spcm->stream[substream->stream].period_elapsed_work);
sound/soc/sof/pcm.c
661
caps = &spcm->pcm.caps[stream];
sound/soc/sof/pcm.c
663
if (!pcm->streams[stream].substream) {
sound/soc/sof/pcm.c
664
spcm_err(spcm, stream, "NULL playback substream!\n");
sound/soc/sof/pcm.c
669
spcm_dbg(spcm, stream, "allocate %s playback DMA buffer size 0x%x max 0x%x\n",
sound/soc/sof/pcm.c
672
snd_pcm_set_managed_buffer(pcm->streams[stream].substream,
sound/soc/sof/pcm.c
694
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/sof/pcm.c
700
caps = &spcm->pcm.caps[stream];
sound/soc/sof/pcm.c
702
if (!pcm->streams[stream].substream) {
sound/soc/sof/pcm.c
703
spcm_err(spcm, stream, "NULL capture substream!\n");
sound/soc/sof/pcm.c
708
spcm_dbg(spcm, stream, "allocate %s capture DMA buffer size 0x%x max 0x%x\n",
sound/soc/sof/pcm.c
711
snd_pcm_set_managed_buffer(pcm->streams[stream].substream,
sound/soc/sof/pcm.c
89
spcm->stream[dir].list = list;
sound/soc/sof/pcm.c
94
spcm->stream[dir].list = NULL;
sound/soc/sof/sof-audio.c
554
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
604
struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list;
sound/soc/sof/sof-audio.c
605
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
677
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
753
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
759
spcm->stream[dir].list = NULL;
sound/soc/sof/sof-audio.c
768
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
844
struct snd_sof_pcm_stream_pipeline_list *pipeline_list = &spcm->stream[dir].pipeline_list;
sound/soc/sof/sof-audio.c
845
struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list;
sound/soc/sof/sof-audio.c
874
substream = spcm->stream[dir].substream;
sound/soc/sof/sof-audio.c
883
if (!spcm->stream[dir].d0i3_compatible)
sound/soc/sof/sof-audio.c
899
if (spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].suspend_ignored ||
sound/soc/sof/sof-audio.c
900
spcm->stream[SNDRV_PCM_STREAM_CAPTURE].suspend_ignored)
sound/soc/sof/sof-audio.c
946
if (spcm->stream[dir].comp_id == comp_id) {
sound/soc/sof/sof-audio.h
354
struct snd_sof_pcm_stream stream[2];
sound/soc/sof/stream-ipc.c
102
struct sof_stream *stream = kmalloc_obj(*stream);
sound/soc/sof/stream-ipc.c
104
if (!stream)
sound/soc/sof/stream-ipc.c
108
substream->runtime->private_data = stream;
sound/soc/sof/stream-ipc.c
124
struct sof_stream *stream = substream->runtime->private_data;
sound/soc/sof/stream-ipc.c
127
kfree(stream);
sound/soc/sof/stream-ipc.c
39
struct sof_stream *stream = sps->substream->runtime->private_data;
sound/soc/sof/stream-ipc.c
42
if (!stream)
sound/soc/sof/stream-ipc.c
45
posn_offset = stream->posn_offset;
sound/soc/sof/stream-ipc.c
79
struct sof_stream *stream = sps->substream->runtime->private_data;
sound/soc/sof/stream-ipc.c
81
stream->posn_offset = posn_offset;
sound/soc/sof/stream-ipc.c
83
sps->substream->stream, posn_offset);
sound/soc/sof/topology.c
1076
int stream;
sound/soc/sof/topology.c
1085
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/sof/topology.c
1087
stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/sof/topology.c
1113
if (!snd_soc_dai_get_widget(cpu_dai, stream)) {
sound/soc/sof/topology.c
1114
snd_soc_dai_set_widget(cpu_dai, stream, w);
sound/soc/sof/topology.c
1146
int i, stream;
sound/soc/sof/topology.c
1152
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/sof/topology.c
1154
stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/sof/topology.c
1165
if (snd_soc_dai_get_widget(cpu_dai, stream) == w) {
sound/soc/sof/topology.c
1166
snd_soc_dai_set_widget(cpu_dai, stream, NULL);
sound/soc/sof/topology.c
1190
spcm->stream[dir].comp_id = host_widget->comp_id;
sound/soc/sof/topology.c
1735
int stream;
sound/soc/sof/topology.c
1748
for_each_pcm_streams(stream) {
sound/soc/sof/topology.c
1749
spcm->stream[stream].comp_id = COMP_ID_UNASSIGNED;
sound/soc/sof/topology.c
1751
snd_sof_compr_init_elapsed_work(&spcm->stream[stream].period_elapsed_work);
sound/soc/sof/topology.c
1753
snd_sof_pcm_init_elapsed_work(&spcm->stream[stream].period_elapsed_work);
sound/soc/sof/topology.c
1784
stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/sof/topology.c
1786
caps = &spcm->pcm.caps[stream];
sound/soc/sof/topology.c
1790
PAGE_SIZE, &spcm->stream[stream].page_table);
sound/soc/sof/topology.c
1799
ret = spcm_bind(scomp, spcm, stream);
sound/soc/sof/topology.c
1807
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/sof/topology.c
1813
caps = &spcm->pcm.caps[stream];
sound/soc/sof/topology.c
1817
PAGE_SIZE, &spcm->stream[stream].page_table);
sound/soc/sof/topology.c
1825
ret = spcm_bind(scomp, spcm, stream);
sound/soc/sof/topology.c
1829
snd_dma_free_pages(&spcm->stream[stream].page_table);
sound/soc/sof/topology.c
1837
snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table);
sound/soc/sof/topology.c
1851
snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_PLAYBACK].page_table);
sound/soc/sof/topology.c
1854
snd_dma_free_pages(&spcm->stream[SNDRV_PCM_STREAM_CAPTURE].page_table);
sound/soc/sof/topology.c
411
offsetof(struct snd_sof_pcm, stream[0].d0i3_compatible)},
sound/soc/sof/topology.c
413
offsetof(struct snd_sof_pcm, stream[1].d0i3_compatible)},
sound/soc/sof/topology.c
415
offsetof(struct snd_sof_pcm, stream[0].pause_supported)},
sound/soc/sof/topology.c
417
offsetof(struct snd_sof_pcm, stream[1].pause_supported)},
sound/soc/sophgo/cv1800b-tdm.c
375
bool tx_mode = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0;
sound/soc/sophgo/cv1800b-tdm.c
466
substream->stream);
sound/soc/spacemit/k1_i2s.c
126
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/spear/spdif_in.c
101
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/spear/spdif_in.c
117
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/spear/spdif_in.c
71
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/spear/spdif_out.c
112
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/spear/spdif_out.c
158
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/spear/spdif_out.c
66
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/spear/spdif_out.c
84
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sprd/sprd-pcm-compress.c
107
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
109
memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo));
sound/soc/sprd/sprd-pcm-compress.c
118
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
119
struct sprd_compr_dma *dma = &stream->dma[1];
sound/soc/sprd/sprd-pcm-compress.c
122
stream->copied_total += dma->trans_len;
sound/soc/sprd/sprd-pcm-compress.c
123
if (stream->copied_total > stream->received_total)
sound/soc/sprd/sprd-pcm-compress.c
124
stream->copied_total = stream->received_total;
sound/soc/sprd/sprd-pcm-compress.c
135
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
140
struct sprd_compr_dma *dma = &stream->dma[channel];
sound/soc/sprd/sprd-pcm-compress.c
174
src_addr = stream->iram_buffer.addr;
sound/soc/sprd/sprd-pcm-compress.c
186
src_addr = stream->compr_buffer.addr;
sound/soc/sprd/sprd-pcm-compress.c
187
dst_addr = stream->iram_buffer.addr;
sound/soc/sprd/sprd-pcm-compress.c
269
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
294
compr_params.channels = stream->num_channels;
sound/soc/sprd/sprd-pcm-compress.c
295
compr_params.info_phys = stream->info_phys;
sound/soc/sprd/sprd-pcm-compress.c
296
compr_params.info_size = stream->info_size;
sound/soc/sprd/sprd-pcm-compress.c
300
ret = stream->compr_ops->set_params(cstream->direction, &compr_params);
sound/soc/sprd/sprd-pcm-compress.c
309
dma_release_channel(stream->dma[0].chan);
sound/soc/sprd/sprd-pcm-compress.c
311
dma_release_channel(stream->dma[1].chan);
sound/soc/sprd/sprd-pcm-compress.c
322
struct sprd_compr_stream *stream;
sound/soc/sprd/sprd-pcm-compress.c
330
stream = devm_kzalloc(dev, sizeof(*stream), GFP_KERNEL);
sound/soc/sprd/sprd-pcm-compress.c
331
if (!stream)
sound/soc/sprd/sprd-pcm-compress.c
334
stream->cstream = cstream;
sound/soc/sprd/sprd-pcm-compress.c
335
stream->num_channels = 2;
sound/soc/sprd/sprd-pcm-compress.c
336
stream->compr_ops = data->ops;
sound/soc/sprd/sprd-pcm-compress.c
343
SPRD_COMPR_IRAM_SIZE, &stream->iram_buffer);
sound/soc/sprd/sprd-pcm-compress.c
348
stream->dma[0].virt = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE;
sound/soc/sprd/sprd-pcm-compress.c
349
stream->dma[0].phys = stream->iram_buffer.addr + SPRD_COMPR_IRAM_SIZE;
sound/soc/sprd/sprd-pcm-compress.c
352
stream->info_phys = stream->iram_buffer.addr + SPRD_COMPR_IRAM_SIZE +
sound/soc/sprd/sprd-pcm-compress.c
354
stream->info_area = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE +
sound/soc/sprd/sprd-pcm-compress.c
356
stream->info_size = SPRD_COMPR_IRAM_INFO_SIZE;
sound/soc/sprd/sprd-pcm-compress.c
363
SPRD_COMPR_AREA_SIZE, &stream->compr_buffer);
sound/soc/sprd/sprd-pcm-compress.c
368
stream->dma[1].virt = stream->compr_buffer.area + SPRD_COMPR_AREA_SIZE;
sound/soc/sprd/sprd-pcm-compress.c
369
stream->dma[1].phys = stream->compr_buffer.addr + SPRD_COMPR_AREA_SIZE;
sound/soc/sprd/sprd-pcm-compress.c
373
ret = stream->compr_ops->open(stream_id, &cb);
sound/soc/sprd/sprd-pcm-compress.c
379
runtime->private_data = stream;
sound/soc/sprd/sprd-pcm-compress.c
383
snd_dma_free_pages(&stream->compr_buffer);
sound/soc/sprd/sprd-pcm-compress.c
385
snd_dma_free_pages(&stream->iram_buffer);
sound/soc/sprd/sprd-pcm-compress.c
387
devm_kfree(dev, stream);
sound/soc/sprd/sprd-pcm-compress.c
396
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
400
for (i = 0; i < stream->num_channels; i++) {
sound/soc/sprd/sprd-pcm-compress.c
401
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
409
snd_dma_free_pages(&stream->compr_buffer);
sound/soc/sprd/sprd-pcm-compress.c
410
snd_dma_free_pages(&stream->iram_buffer);
sound/soc/sprd/sprd-pcm-compress.c
412
stream->compr_ops->close(stream_id);
sound/soc/sprd/sprd-pcm-compress.c
414
devm_kfree(dev, stream);
sound/soc/sprd/sprd-pcm-compress.c
423
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
425
int channels = stream->num_channels, ret = 0, i;
sound/soc/sprd/sprd-pcm-compress.c
436
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
451
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
457
ret = stream->compr_ops->start(stream_id);
sound/soc/sprd/sprd-pcm-compress.c
462
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
468
stream->copied_total = 0;
sound/soc/sprd/sprd-pcm-compress.c
469
stream->stage1_pointer = 0;
sound/soc/sprd/sprd-pcm-compress.c
470
stream->received_total = 0;
sound/soc/sprd/sprd-pcm-compress.c
471
stream->received_stage0 = 0;
sound/soc/sprd/sprd-pcm-compress.c
472
stream->received_stage1 = 0;
sound/soc/sprd/sprd-pcm-compress.c
474
ret = stream->compr_ops->stop(stream_id);
sound/soc/sprd/sprd-pcm-compress.c
480
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
486
ret = stream->compr_ops->pause(stream_id);
sound/soc/sprd/sprd-pcm-compress.c
492
struct sprd_compr_dma *dma = &stream->dma[i];
sound/soc/sprd/sprd-pcm-compress.c
498
ret = stream->compr_ops->pause_release(stream_id);
sound/soc/sprd/sprd-pcm-compress.c
503
ret = stream->compr_ops->drain(stream->received_total);
sound/soc/sprd/sprd-pcm-compress.c
519
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
521
(struct sprd_compr_playinfo *)stream->info_area;
sound/soc/sprd/sprd-pcm-compress.c
523
tstamp->copied_total = stream->copied_total;
sound/soc/sprd/sprd-pcm-compress.c
534
struct sprd_compr_stream *stream = runtime->private_data;
sound/soc/sprd/sprd-pcm-compress.c
544
if (stream->received_stage0 < runtime->fragment_size) {
sound/soc/sprd/sprd-pcm-compress.c
545
avail_bytes = runtime->fragment_size - stream->received_stage0;
sound/soc/sprd/sprd-pcm-compress.c
546
dst = stream->iram_buffer.area + stream->received_stage0;
sound/soc/sprd/sprd-pcm-compress.c
556
stream->received_stage0 += data_count;
sound/soc/sprd/sprd-pcm-compress.c
557
stream->copied_total += data_count;
sound/soc/sprd/sprd-pcm-compress.c
570
stream->received_stage0 += avail_bytes;
sound/soc/sprd/sprd-pcm-compress.c
571
stream->copied_total += avail_bytes;
sound/soc/sprd/sprd-pcm-compress.c
580
dst = stream->compr_buffer.area + stream->stage1_pointer;
sound/soc/sprd/sprd-pcm-compress.c
581
if (data_count < stream->compr_buffer.bytes - stream->stage1_pointer) {
sound/soc/sprd/sprd-pcm-compress.c
585
stream->stage1_pointer += data_count;
sound/soc/sprd/sprd-pcm-compress.c
587
avail_bytes = stream->compr_buffer.bytes - stream->stage1_pointer;
sound/soc/sprd/sprd-pcm-compress.c
592
if (copy_from_user(stream->compr_buffer.area, buf + avail_bytes,
sound/soc/sprd/sprd-pcm-compress.c
596
stream->stage1_pointer = data_count - avail_bytes;
sound/soc/sprd/sprd-pcm-compress.c
599
stream->received_stage1 += data_count;
sound/soc/sprd/sprd-pcm-compress.c
603
stream->received_total += count;
sound/soc/sprd/sprd-pcm-dma.c
198
int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/starfive/jh7110_tdm.c
150
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/starfive/jh7110_tdm.c
165
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/starfive/jh7110_tdm.c
176
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/starfive/jh7110_tdm.c
233
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/starfive/jh7110_tdm.c
376
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sti/sti_uniperif.c
26
unsigned int stream;
sound/soc/sti/sti_uniperif.c
34
.stream = SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/sti/sti_uniperif.c
340
if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sti/sti_uniperif.c
361
if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sti/sti_uniperif.c
393
struct snd_soc_pcm_stream *stream;
sound/soc/sti/sti_uniperif.c
42
.stream = SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/sti/sti_uniperif.c
441
dai_data->stream = dev_data->stream;
sound/soc/sti/sti_uniperif.c
443
if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/sti/sti_uniperif.c
445
stream = &dai->playback;
sound/soc/sti/sti_uniperif.c
448
stream = &dai->capture;
sound/soc/sti/sti_uniperif.c
455
stream->stream_name = dai->name;
sound/soc/sti/sti_uniperif.c
456
stream->channels_min = uni->hw->channels_min;
sound/soc/sti/sti_uniperif.c
457
stream->channels_max = uni->hw->channels_max;
sound/soc/sti/sti_uniperif.c
458
stream->rates = uni->hw->rates;
sound/soc/sti/sti_uniperif.c
459
stream->formats = uni->hw->formats;
sound/soc/sti/sti_uniperif.c
50
.stream = SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/sti/sti_uniperif.c
58
.stream = SNDRV_PCM_STREAM_PLAYBACK,
sound/soc/sti/sti_uniperif.c
66
.stream = SNDRV_PCM_STREAM_CAPTURE,
sound/soc/sti/sti_uniperif.c
74
.stream = SNDRV_PCM_STREAM_CAPTURE,
sound/soc/sti/uniperif.h
1340
int stream;
sound/soc/stm/stm32_i2s.c
1008
snd_pcm_direction_name(substream->stream));
sound/soc/stm/stm32_i2s.c
1129
static void stm32_i2s_dai_init(struct snd_soc_pcm_stream *stream,
sound/soc/stm/stm32_i2s.c
1132
stream->stream_name = stream_name;
sound/soc/stm/stm32_i2s.c
1133
stream->channels_min = 1;
sound/soc/stm/stm32_i2s.c
1134
stream->channels_max = 2;
sound/soc/stm/stm32_i2s.c
1135
stream->rates = SNDRV_PCM_RATE_8000_192000;
sound/soc/stm/stm32_i2s.c
1136
stream->formats = SNDRV_PCM_FMTBIT_S16_LE |
sound/soc/stm/stm32_i2s.c
952
bool playback_flg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/stm/stm32_i2s.c
962
snd_pcm_direction_name(substream->stream));
sound/soc/sunxi/sun4i-codec.c
388
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-codec.c
397
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-codec.c
488
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-codec.c
672
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-i2s.c
1039
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-i2s.c
1048
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-spdif.c
259
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun4i-spdif.c
377
if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/sunxi/sun50i-dmic.c
208
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/sunxi/sun50i-dmic.c
93
if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
sound/soc/sunxi/sun8i-codec.c
666
aif->open_streams |= BIT(substream->stream);
sound/soc/sunxi/sun8i-codec.c
678
if (aif->open_streams != BIT(substream->stream))
sound/soc/sunxi/sun8i-codec.c
687
aif->open_streams &= ~BIT(substream->stream);
sound/soc/sunxi/sun8i-codec.c
818
int stream = w->id == snd_soc_dapm_aif_out;
sound/soc/sunxi/sun8i-codec.c
821
aif->active_streams |= BIT(stream);
sound/soc/sunxi/sun8i-codec.c
823
aif->active_streams &= ~BIT(stream);
sound/soc/tegra/tegra20_ac97.c
185
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra20_ac97.c
193
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra20_i2s.c
235
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra20_i2s.c
243
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra210_admaif.c
373
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/tegra/tegra210_admaif.c
486
return tegra_admaif_start(dai, substream->stream);
sound/soc/tegra/tegra210_admaif.c
490
return tegra_admaif_stop(dai, substream->stream);
sound/soc/tegra/tegra210_i2s.c
102
int stream)
sound/soc/tegra/tegra210_i2s.c
112
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/tegra/tegra210_i2s.c
135
snd_pcm_direction_name(stream));
sound/soc/tegra/tegra210_i2s.c
154
int stream;
sound/soc/tegra/tegra210_i2s.c
158
stream = SNDRV_PCM_STREAM_PLAYBACK;
sound/soc/tegra/tegra210_i2s.c
161
stream = SNDRV_PCM_STREAM_CAPTURE;
sound/soc/tegra/tegra210_i2s.c
173
snd_pcm_direction_name(stream));
sound/soc/tegra/tegra210_i2s.c
177
return tegra210_i2s_sw_reset(compnt, stream);
sound/soc/tegra/tegra210_i2s.c
694
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra210_i2s.c
699
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/tegra/tegra30_i2s.c
191
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/tegra/tegra30_i2s.c
247
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra30_i2s.c
255
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/tegra/tegra_isomgr_bw.c
25
u32 type = substream->stream, bandwidth = 0;
sound/soc/tegra/tegra_pcm.c
167
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/ams-delta.c
448
return ams_delta_mute(NULL, 0, substream->stream);
sound/soc/ti/ams-delta.c
453
ams_delta_mute(NULL, 1, substream->stream);
sound/soc/ti/davinci-i2s.c
193
int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/davinci-i2s.c
488
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/ti/davinci-i2s.c
644
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/davinci-i2s.c
659
int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/davinci-i2s.c
703
int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/davinci-i2s.c
726
int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/davinci-i2s.c
738
int stream;
sound/soc/ti/davinci-i2s.c
740
for_each_pcm_streams(stream)
sound/soc/ti/davinci-i2s.c
741
snd_soc_dai_dma_data_set(dai, stream, &dev->dma_data[stream]);
sound/soc/ti/davinci-mcasp.c
1020
if (!mcasp->async_mode || stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
1027
if (!mcasp->async_mode || stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/ti/davinci-mcasp.c
1055
static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream,
sound/soc/ti/davinci-mcasp.c
1058
struct snd_dmaengine_dai_dma_data *dma_data = &mcasp->dma_data[stream];
sound/soc/ti/davinci-mcasp.c
1067
slots = mcasp_get_tdm_slots(mcasp, stream);
sound/soc/ti/davinci-mcasp.c
1079
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
1119
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
1182
mcasp->active_serializers[stream] = active_serializers;
sound/soc/ti/davinci-mcasp.c
1187
static int mcasp_i2s_hw_param(struct davinci_mcasp *mcasp, int stream,
sound/soc/ti/davinci-mcasp.c
1196
total_slots = mcasp_get_tdm_slots(mcasp, stream);
sound/soc/ti/davinci-mcasp.c
1204
if (mcasp->tdm_mask[stream]) {
sound/soc/ti/davinci-mcasp.c
1205
active_slots = hweight32(mcasp->tdm_mask[stream]);
sound/soc/ti/davinci-mcasp.c
1210
if ((1 << i) & mcasp->tdm_mask[stream]) {
sound/soc/ti/davinci-mcasp.c
1235
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
1240
} else if (stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/ti/davinci-mcasp.c
1330
int stream,
sound/soc/ti/davinci-mcasp.c
1340
if (mcasp->async_mode && stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/soc/ti/davinci-mcasp.c
1344
} else if (mcasp->async_mode && stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
1417
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/davinci-mcasp.c
1439
unsigned int sysclk_freq = mcasp_get_sysclk_freq(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1480
if (mcasp->bclk_master && mcasp_get_bclk_div(mcasp, substream->stream) == 0 &&
sound/soc/ti/davinci-mcasp.c
1487
slots = mcasp_get_tdm_slots(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1489
slot_width = mcasp_get_slot_width(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1499
bclk_target, substream->stream, true);
sound/soc/ti/davinci-mcasp.c
1502
ret = mcasp_common_hw_param(mcasp, substream->stream,
sound/soc/ti/davinci-mcasp.c
1510
ret = mcasp_i2s_hw_param(mcasp, substream->stream,
sound/soc/ti/davinci-mcasp.c
1516
davinci_config_channel_size(mcasp, word_length, substream->stream);
sound/soc/ti/davinci-mcasp.c
1538
davinci_mcasp_start(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1543
davinci_mcasp_stop(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1563
slot_width = mcasp_get_slot_width(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1617
slots = mcasp_get_tdm_slots(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1619
slot_width = mcasp_get_slot_width(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1634
ratio = mcasp_get_auxclk_fs_ratio(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1638
sysclk_freq = mcasp_get_sysclk_freq(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1641
bclk_freq, rd->stream, false);
sound/soc/ti/davinci-mcasp.c
1671
slots = mcasp_get_tdm_slots(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1682
ratio = mcasp_get_auxclk_fs_ratio(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1686
sysclk_freq = mcasp_get_sysclk_freq(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1688
slot_width = mcasp_get_slot_width(rd->mcasp, rd->stream);
sound/soc/ti/davinci-mcasp.c
1694
rd->stream, false);
sound/soc/ti/davinci-mcasp.c
1728
&mcasp->ruledata[substream->stream];
sound/soc/ti/davinci-mcasp.c
1735
if (mcasp->substreams[substream->stream])
sound/soc/ti/davinci-mcasp.c
1738
mcasp->substreams[substream->stream] = substream;
sound/soc/ti/davinci-mcasp.c
1740
tdm_slots = mcasp_get_tdm_slots(mcasp, substream->stream);
sound/soc/ti/davinci-mcasp.c
1742
if (mcasp->tdm_mask[substream->stream])
sound/soc/ti/davinci-mcasp.c
1743
tdm_slots = hweight32(mcasp->tdm_mask[substream->stream]);
sound/soc/ti/davinci-mcasp.c
1752
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/davinci-mcasp.c
1763
ruledata->stream = substream->stream;
sound/soc/ti/davinci-mcasp.c
1792
&mcasp->chconstr[substream->stream]);
sound/soc/ti/davinci-mcasp.c
1806
} else if (mcasp_get_slot_width(mcasp, substream->stream)) {
sound/soc/ti/davinci-mcasp.c
1821
if (mcasp->bclk_master && mcasp_get_bclk_div(mcasp, substream->stream) == 0 &&
sound/soc/ti/davinci-mcasp.c
1822
mcasp_get_sysclk_freq(mcasp, substream->stream)) {
sound/soc/ti/davinci-mcasp.c
1839
numevt = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
1855
mcasp->substreams[substream->stream] = NULL;
sound/soc/ti/davinci-mcasp.c
1856
mcasp->active_serializers[substream->stream] = 0;
sound/soc/ti/davinci-mcasp.c
1941
int stream;
sound/soc/ti/davinci-mcasp.c
1943
for_each_pcm_streams(stream)
sound/soc/ti/davinci-mcasp.c
1944
snd_soc_dai_dma_data_set(dai, stream, &mcasp->dma_data[stream]);
sound/soc/ti/davinci-mcasp.c
215
int stream, bool enable)
sound/soc/ti/davinci-mcasp.c
219
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/davinci-mcasp.c
247
static inline int mcasp_get_tdm_slots(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
249
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
253
static inline int mcasp_get_slot_width(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
255
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
259
static inline unsigned int mcasp_get_sysclk_freq(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
261
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
265
static inline unsigned int mcasp_get_bclk_div(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
267
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
271
static inline unsigned int mcasp_get_auxclk_fs_ratio(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
273
return (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/soc/ti/davinci-mcasp.c
360
static void davinci_mcasp_start(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
364
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/davinci-mcasp.c
436
static void davinci_mcasp_stop(struct davinci_mcasp *mcasp, int stream)
sound/soc/ti/davinci-mcasp.c
440
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/davinci-mcasp.c
74
int stream;
sound/soc/ti/davinci-mcasp.c
888
static int davinci_mcasp_ch_constraint(struct davinci_mcasp *mcasp, int stream,
sound/soc/ti/davinci-mcasp.c
891
struct snd_pcm_hw_constraint_list *cl = &mcasp->chconstr[stream];
sound/soc/ti/davinci-mcasp.c
896
slots = mcasp_get_tdm_slots(mcasp, stream);
sound/soc/ti/davinci-mcasp.c
898
if (mcasp->tdm_mask[stream])
sound/soc/ti/davinci-mcasp.c
899
slots = hweight32(mcasp->tdm_mask[stream]);
sound/soc/ti/davinci-mcasp.c
985
int sample_width, int stream)
sound/soc/ti/davinci-mcasp.c
991
slot_width = mcasp_get_slot_width(mcasp, stream);
sound/soc/ti/omap-mcbsp.c
216
unsigned int stream)
sound/soc/ti/omap-mcbsp.c
220
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/omap-mcbsp.c
414
static void omap_mcbsp_start(struct omap_mcbsp *mcbsp, int stream)
sound/soc/ti/omap-mcbsp.c
416
int tx = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/omap-mcbsp.c
473
static void omap_mcbsp_stop(struct omap_mcbsp *mcbsp, int stream)
sound/soc/ti/omap-mcbsp.c
475
int tx = (stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/omap-mcbsp.c
745
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/omap-mcbsp.c
800
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/omap-mcbsp.c
819
int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/omap-mcbsp.c
842
int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/omap-mcbsp.c
869
omap_mcbsp_start(mcbsp, substream->stream);
sound/soc/ti/omap-mcbsp.c
875
omap_mcbsp_stop(mcbsp, substream->stream);
sound/soc/ti/omap-mcbsp.c
899
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/omap-mcbsp.c
947
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ti/omap-mcbsp.c
976
mcbsp->latency[substream->stream] = latency;
sound/soc/ti/omap-mcpdm.c
268
int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ti/omap-mcpdm.c
299
int stream = substream->stream;
sound/soc/ti/omap-mcpdm.c
308
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/ti/omap-mcpdm.c
314
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/ti/omap-mcpdm.c
335
threshold = mcpdm->config[stream].threshold;
sound/soc/ti/omap-mcpdm.c
337
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/ti/omap-mcpdm.c
341
if (!mcpdm->config[!stream].link_mask)
sound/soc/ti/omap-mcpdm.c
342
mcpdm->config[!stream].link_mask = 0x3;
sound/soc/ti/omap-mcpdm.c
349
if (!mcpdm->config[!stream].link_mask)
sound/soc/ti/omap-mcpdm.c
350
mcpdm->config[!stream].link_mask = (0x3 << 3);
sound/soc/ti/omap-mcpdm.c
360
mcpdm->latency[stream] = latency * USEC_PER_SEC / params_rate(params);
sound/soc/ti/omap-mcpdm.c
362
if (!mcpdm->latency[stream])
sound/soc/ti/omap-mcpdm.c
363
mcpdm->latency[stream] = 10;
sound/soc/ti/omap-mcpdm.c
366
if (mcpdm->config[stream].link_mask &&
sound/soc/ti/omap-mcpdm.c
367
mcpdm->config[stream].link_mask != link_mask)
sound/soc/ti/omap-mcpdm.c
370
mcpdm->config[stream].link_mask = link_mask;
sound/soc/ti/omap-mcpdm.c
380
int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/uniphier/aio-compress.c
412
struct snd_compr_stream *stream,
sound/soc/uniphier/aio-cpu.c
258
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-cpu.c
271
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-cpu.c
281
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-cpu.c
319
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-cpu.c
330
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-dma.c
113
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-dma.c
140
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/uniphier/aio-dma.c
176
struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
sound/soc/ux500/mop500_ab8500.c
206
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/ux500/mop500_ab8500.c
294
is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ux500/ux500_msp_dai.c
315
msp_config->direction = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/soc/ux500/ux500_msp_dai.c
426
bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
sound/soc/ux500/ux500_msp_dai.c
514
mask = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/soc/ux500/ux500_msp_dai.c
650
ret = ux500_msp_i2s_trigger(drvdata->msp, cmd, substream->stream);
sound/soc/ux500/ux500_pcm.c
53
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/xilinx/xlnx_formatter_pcm.c
268
static void xlnx_formatter_disable_irqs(void __iomem *mmio_base, int stream)
sound/soc/xilinx/xlnx_formatter_pcm.c
274
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/xilinx/xlnx_formatter_pcm.c
337
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/xilinx/xlnx_formatter_pcm.c
340
else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/xilinx/xlnx_formatter_pcm.c
348
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/soc/xilinx/xlnx_formatter_pcm.c
376
substream->stream, stream_data->interleaved,
sound/soc/xilinx/xlnx_formatter_pcm.c
431
xlnx_formatter_disable_irqs(stream_data->mmio, substream->stream);
sound/soc/xilinx/xlnx_formatter_pcm.c
469
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/soc/xilinx/xlnx_formatter_pcm.c
482
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/soc/xilinx/xlnx_spdif.c
182
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/soc/xilinx/xlnx_spdif.c
87
if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/sparc/dbri.c
567
(substream->stream == \
sound/usb/6fire/pcm.c
122
if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/6fire/pcm.c
124
else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE)
sound/usb/6fire/pcm.c
400
if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/6fire/pcm.c
405
} else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/usb/caiaq/audio.c
182
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/caiaq/audio.c
289
if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/caiaq/audio.c
30
#define MAKE_CHECKBYTE(cdev,stream,i) \
sound/usb/caiaq/audio.c
31
(stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
sound/usb/caiaq/audio.c
310
int stream, pb, *cnt;
sound/usb/caiaq/audio.c
313
for (stream = 0; stream < cdev->n_streams; stream++) {
sound/usb/caiaq/audio.c
314
sub = subs[stream];
sound/usb/caiaq/audio.c
319
cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/usb/caiaq/audio.c
320
&cdev->period_out_count[stream] :
sound/usb/caiaq/audio.c
321
&cdev->period_in_count[stream];
sound/usb/caiaq/audio.c
336
int stream, i;
sound/usb/caiaq/audio.c
342
for (stream = 0; stream < cdev->n_streams; stream++, i++) {
sound/usb/caiaq/audio.c
343
sub = cdev->sub_capture[stream];
sound/usb/caiaq/audio.c
348
audio_buf[cdev->audio_in_buf_pos[stream]++]
sound/usb/caiaq/audio.c
350
cdev->period_in_count[stream]++;
sound/usb/caiaq/audio.c
351
if (cdev->audio_in_buf_pos[stream] == sz)
sound/usb/caiaq/audio.c
352
cdev->audio_in_buf_pos[stream] = 0;
sound/usb/caiaq/audio.c
365
int stream, i;
sound/usb/caiaq/audio.c
369
for (stream = 0;
sound/usb/caiaq/audio.c
370
stream < cdev->n_streams;
sound/usb/caiaq/audio.c
371
stream++, i++) {
sound/usb/caiaq/audio.c
375
check_byte = MAKE_CHECKBYTE(cdev, stream, i);
sound/usb/caiaq/audio.c
386
for (stream = 0; stream < cdev->n_streams; stream++, i++) {
sound/usb/caiaq/audio.c
387
sub = cdev->sub_capture[stream];
sound/usb/caiaq/audio.c
395
audio_buf[cdev->audio_in_buf_pos[stream]++] =
sound/usb/caiaq/audio.c
397
cdev->period_in_count[stream]++;
sound/usb/caiaq/audio.c
398
if (cdev->audio_in_buf_pos[stream] == sz)
sound/usb/caiaq/audio.c
399
cdev->audio_in_buf_pos[stream] = 0;
sound/usb/caiaq/audio.c
411
int stream, i;
sound/usb/caiaq/audio.c
418
for (stream = 0; stream < cdev->n_streams; stream++) {
sound/usb/caiaq/audio.c
419
struct snd_pcm_substream *sub = cdev->sub_capture[stream];
sound/usb/caiaq/audio.c
433
audio_buf[cdev->audio_in_buf_pos[stream]++] = usb_buf[i+n];
sound/usb/caiaq/audio.c
435
if (cdev->audio_in_buf_pos[stream] == sz)
sound/usb/caiaq/audio.c
436
cdev->audio_in_buf_pos[stream] = 0;
sound/usb/caiaq/audio.c
439
cdev->period_in_count[stream] += BYTES_PER_SAMPLE;
sound/usb/caiaq/audio.c
444
if (usb_buf[i] != ((stream << 1) | c) &&
sound/usb/caiaq/audio.c
448
((stream << 1) | c), usb_buf[i], c, stream, i);
sound/usb/caiaq/audio.c
499
int stream, i;
sound/usb/caiaq/audio.c
502
for (stream = 0; stream < cdev->n_streams; stream++, i++) {
sound/usb/caiaq/audio.c
503
sub = cdev->sub_playback[stream];
sound/usb/caiaq/audio.c
509
audio_buf[cdev->audio_out_buf_pos[stream]];
sound/usb/caiaq/audio.c
510
cdev->period_out_count[stream]++;
sound/usb/caiaq/audio.c
511
cdev->audio_out_buf_pos[stream]++;
sound/usb/caiaq/audio.c
512
if (cdev->audio_out_buf_pos[stream] == sz)
sound/usb/caiaq/audio.c
513
cdev->audio_out_buf_pos[stream] = 0;
sound/usb/caiaq/audio.c
522
for (stream = 0; stream < cdev->n_streams; stream++, i++)
sound/usb/caiaq/audio.c
523
usb_buf[i] = MAKE_CHECKBYTE(cdev, stream, i);
sound/usb/caiaq/audio.c
532
int stream, i;
sound/usb/caiaq/audio.c
535
for (stream = 0; stream < cdev->n_streams; stream++) {
sound/usb/caiaq/audio.c
536
struct snd_pcm_substream *sub = cdev->sub_playback[stream];
sound/usb/caiaq/audio.c
549
usb_buf[i+n] = audio_buf[cdev->audio_out_buf_pos[stream]++];
sound/usb/caiaq/audio.c
551
if (cdev->audio_out_buf_pos[stream] == sz)
sound/usb/caiaq/audio.c
552
cdev->audio_out_buf_pos[stream] = 0;
sound/usb/caiaq/audio.c
559
cdev->period_out_count[stream] += BYTES_PER_SAMPLE;
sound/usb/caiaq/audio.c
56
if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/caiaq/audio.c
564
usb_buf[i++] = (stream << 1) | c;
sound/usb/caiaq/audio.c
68
if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/card.h
154
struct snd_usb_stream *stream;
sound/usb/format.c
858
int stream)
sound/usb/format.c
900
int stream)
sound/usb/format.h
13
int stream);
sound/usb/format.h
8
int stream);
sound/usb/hiface/pcm.c
175
if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/hiface/pcm.c
360
if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/implicit.c
438
find_matching_substream(struct snd_usb_audio *chip, int stream, int ep_num,
sound/usb/implicit.c
445
subs = &as->substream[stream];
sound/usb/implicit.c
460
int stream,
sound/usb/implicit.c
472
subs = find_matching_substream(chip, stream, target->sync_ep,
sound/usb/implicit.h
12
int stream, bool *fixed_rate);
sound/usb/line6/pcm.c
240
if (s->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/usb/line6/pcm.c
248
err = line6_stream_start(line6pcm, s->stream,
sound/usb/line6/pcm.c
256
if (s->stream == SNDRV_PCM_STREAM_CAPTURE &&
sound/usb/line6/pcm.c
262
line6_stream_stop(line6pcm, s->stream,
sound/usb/line6/pcm.c
267
if (s->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/line6/pcm.c
273
if (s->stream != SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/line6/pcm.c
290
struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
sound/usb/line6/pcm.c
355
struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
sound/usb/line6/pcm.c
358
ret = line6_buffer_acquire(line6pcm, pstr, substream->stream,
sound/usb/line6/pcm.c
371
struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
sound/usb/line6/pcm.c
587
struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
sound/usb/line6/pcm.h
37
#define get_substream(line6pcm, stream) \
sound/usb/line6/pcm.h
38
(line6pcm->pcm->streams[stream].substream)
sound/usb/media.c
311
struct snd_usb_stream *stream;
sound/usb/media.c
314
list_for_each_entry(stream, &chip->pcm_list, list) {
sound/usb/media.c
315
snd_media_stream_delete(&stream->substream[0]);
sound/usb/media.c
316
snd_media_stream_delete(&stream->substream[1]);
sound/usb/media.c
34
int stream)
sound/usb/media.c
38
struct device *pcm_dev = pcm->streams[stream].dev;
sound/usb/media.c
44
mdev = subs->stream->chip->media_dev;
sound/usb/media.c
57
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/media.h
57
int stream);
sound/usb/media.h
67
struct snd_pcm *pcm, int stream)
sound/usb/midi.c
1582
int stream,
sound/usb/midi.c
1587
list_for_each_entry(substream, &umidi->rmidi->streams[stream].substreams,
sound/usb/midi.c
1842
int stream, int number, int jack_id,
sound/usb/midi.c
1856
snd_usbmidi_find_substream(umidi, stream, number);
sound/usb/midi.c
1858
dev_err(&umidi->dev->dev, "substream %d:%d not found\n", stream,
sound/usb/misc/ua101.c
1000
static int alloc_stream_buffers(struct ua101 *ua, struct ua101_stream *stream)
sound/usb/misc/ua101.c
1005
stream->queue_length = queue_length;
sound/usb/misc/ua101.c
1006
stream->queue_length = max(stream->queue_length,
sound/usb/misc/ua101.c
1008
stream->queue_length = min(stream->queue_length,
sound/usb/misc/ua101.c
1017
remaining_packets = stream->queue_length;
sound/usb/misc/ua101.c
1018
packets_per_page = PAGE_SIZE / stream->max_packet_bytes;
sound/usb/misc/ua101.c
1019
for (i = 0; i < ARRAY_SIZE(stream->buffers); ++i) {
sound/usb/misc/ua101.c
1021
size = packets * stream->max_packet_bytes;
sound/usb/misc/ua101.c
1022
stream->buffers[i].addr =
sound/usb/misc/ua101.c
1024
&stream->buffers[i].dma);
sound/usb/misc/ua101.c
1025
if (!stream->buffers[i].addr)
sound/usb/misc/ua101.c
1027
stream->buffers[i].size = size;
sound/usb/misc/ua101.c
1039
static void free_stream_buffers(struct ua101 *ua, struct ua101_stream *stream)
sound/usb/misc/ua101.c
1043
for (i = 0; i < ARRAY_SIZE(stream->buffers); ++i)
sound/usb/misc/ua101.c
1045
stream->buffers[i].size,
sound/usb/misc/ua101.c
1046
stream->buffers[i].addr,
sound/usb/misc/ua101.c
1047
stream->buffers[i].dma);
sound/usb/misc/ua101.c
1050
static int alloc_stream_urbs(struct ua101 *ua, struct ua101_stream *stream,
sound/usb/misc/ua101.c
1053
unsigned max_packet_size = stream->max_packet_bytes;
sound/usb/misc/ua101.c
1057
for (b = 0; b < ARRAY_SIZE(stream->buffers); ++b) {
sound/usb/misc/ua101.c
1058
unsigned int size = stream->buffers[b].size;
sound/usb/misc/ua101.c
1059
u8 *addr = stream->buffers[b].addr;
sound/usb/misc/ua101.c
1060
dma_addr_t dma = stream->buffers[b].dma;
sound/usb/misc/ua101.c
1063
if (u >= stream->queue_length)
sound/usb/misc/ua101.c
1070
urb->urb.pipe = stream->usb_pipe;
sound/usb/misc/ua101.c
1081
stream->urbs[u++] = urb;
sound/usb/misc/ua101.c
1087
if (u == stream->queue_length)
sound/usb/misc/ua101.c
1094
static void free_stream_urbs(struct ua101_stream *stream)
sound/usb/misc/ua101.c
1098
for (i = 0; i < stream->queue_length; ++i) {
sound/usb/misc/ua101.c
1099
kfree(stream->urbs[i]);
sound/usb/misc/ua101.c
1100
stream->urbs[i] = NULL;
sound/usb/misc/ua101.c
208
static bool copy_playback_data(struct ua101_stream *stream, struct urb *urb,
sound/usb/misc/ua101.c
215
runtime = stream->substream->runtime;
sound/usb/misc/ua101.c
216
frame_bytes = stream->frame_bytes;
sound/usb/misc/ua101.c
217
source = runtime->dma_area + stream->buffer_pos * frame_bytes;
sound/usb/misc/ua101.c
218
if (stream->buffer_pos + frames <= runtime->buffer_size) {
sound/usb/misc/ua101.c
222
frames1 = runtime->buffer_size - stream->buffer_pos;
sound/usb/misc/ua101.c
228
stream->buffer_pos += frames;
sound/usb/misc/ua101.c
229
if (stream->buffer_pos >= runtime->buffer_size)
sound/usb/misc/ua101.c
230
stream->buffer_pos -= runtime->buffer_size;
sound/usb/misc/ua101.c
231
stream->period_pos += frames;
sound/usb/misc/ua101.c
232
if (stream->period_pos >= runtime->period_size) {
sound/usb/misc/ua101.c
233
stream->period_pos -= runtime->period_size;
sound/usb/misc/ua101.c
311
static bool copy_capture_data(struct ua101_stream *stream, struct urb *urb,
sound/usb/misc/ua101.c
318
runtime = stream->substream->runtime;
sound/usb/misc/ua101.c
319
frame_bytes = stream->frame_bytes;
sound/usb/misc/ua101.c
320
dest = runtime->dma_area + stream->buffer_pos * frame_bytes;
sound/usb/misc/ua101.c
321
if (stream->buffer_pos + frames <= runtime->buffer_size) {
sound/usb/misc/ua101.c
325
frames1 = runtime->buffer_size - stream->buffer_pos;
sound/usb/misc/ua101.c
332
stream->buffer_pos += frames;
sound/usb/misc/ua101.c
333
if (stream->buffer_pos >= runtime->buffer_size)
sound/usb/misc/ua101.c
334
stream->buffer_pos -= runtime->buffer_size;
sound/usb/misc/ua101.c
335
stream->period_pos += frames;
sound/usb/misc/ua101.c
336
if (stream->period_pos >= runtime->period_size) {
sound/usb/misc/ua101.c
337
stream->period_pos -= runtime->period_size;
sound/usb/misc/ua101.c
346
struct ua101_stream *stream = &ua->capture;
sound/usb/misc/ua101.c
359
stream->frame_bytes;
sound/usb/misc/ua101.c
366
do_period_elapsed = copy_capture_data(stream, urb, frames);
sound/usb/misc/ua101.c
403
snd_pcm_period_elapsed(stream->substream);
sound/usb/misc/ua101.c
425
static int submit_stream_urbs(struct ua101 *ua, struct ua101_stream *stream)
sound/usb/misc/ua101.c
429
for (i = 0; i < stream->queue_length; ++i) {
sound/usb/misc/ua101.c
430
int err = usb_submit_urb(&stream->urbs[i]->urb, GFP_KERNEL);
sound/usb/misc/ua101.c
440
static void kill_stream_urbs(struct ua101_stream *stream)
sound/usb/misc/ua101.c
444
for (i = 0; i < stream->queue_length; ++i)
sound/usb/misc/ua101.c
445
if (stream->urbs[i])
sound/usb/misc/ua101.c
446
usb_kill_urb(&stream->urbs[i]->urb);
sound/usb/misc/ua101.c
829
struct ua101_stream *stream)
sound/usb/misc/ua101.c
832
return stream->buffer_pos;
sound/usb/pcm.c
1022
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
1067
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
1237
int direction = substream->stream;
sound/usb/pcm.c
1241
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
1267
ret = snd_usb_autoresume(subs->stream->chip);
sound/usb/pcm.c
1277
snd_usb_autosuspend(subs->stream->chip);
sound/usb/pcm.c
1288
int direction = substream->stream;
sound/usb/pcm.c
1291
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
1297
CLASS(snd_usb_lock, pm)(subs->stream->chip);
sound/usb/pcm.c
1306
snd_usb_autosuspend(subs->stream->chip);
sound/usb/pcm.c
1812
void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream)
sound/usb/pcm.c
1816
ops = stream == SNDRV_PCM_STREAM_PLAYBACK ?
sound/usb/pcm.c
1818
snd_pcm_set_ops(pcm, stream, ops);
sound/usb/pcm.c
1823
struct snd_pcm *pcm = subs->stream->pcm;
sound/usb/pcm.c
186
chip = subs->stream->chip;
sound/usb/pcm.c
426
ret = snd_usb_power_domain_set(subs->stream->chip, subs->str_pd, state);
sound/usb/pcm.c
485
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
611
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
650
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
674
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
712
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
sound/usb/pcm.c
78
if (atomic_read(&subs->stream->chip->shutdown))
sound/usb/pcm.c
848
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.c
953
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/pcm.h
5
void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
sound/usb/proc.c
211
struct snd_usb_stream *stream = entry->private_data;
sound/usb/proc.c
212
struct snd_usb_audio *chip = stream->chip;
sound/usb/proc.c
214
snd_iprintf(buffer, "%s : %s\n", chip->card->longname, stream->pcm->name);
sound/usb/proc.c
216
if (stream->substream[SNDRV_PCM_STREAM_PLAYBACK].num_formats) {
sound/usb/proc.c
218
proc_dump_substream_status(chip, &stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer);
sound/usb/proc.c
219
proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer);
sound/usb/proc.c
221
if (stream->substream[SNDRV_PCM_STREAM_CAPTURE].num_formats) {
sound/usb/proc.c
223
proc_dump_substream_status(chip, &stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer);
sound/usb/proc.c
224
proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer);
sound/usb/proc.c
228
void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream)
sound/usb/proc.c
231
struct snd_card *card = stream->chip->card;
sound/usb/proc.c
233
scnprintf(name, sizeof(name), "stream%d", stream->pcm_index);
sound/usb/proc.c
234
snd_card_ro_proc_new(card, name, stream, proc_pcm_format_read);
sound/usb/proc.h
6
void snd_usb_proc_pcm_format_add(struct snd_usb_stream *stream);
sound/usb/qcom/qc_audio_offload.c
1580
if (atomic_read(&chip->shutdown) || !subs->stream || !subs->stream->pcm ||
sound/usb/qcom/qc_audio_offload.c
1581
!subs->stream->chip) {
sound/usb/qcom/qc_audio_offload.c
742
struct snd_usb_audio *chip = subs->stream->chip;
sound/usb/qcom/qc_audio_offload.c
946
chip = subs->stream->chip;
sound/usb/quirks.c
118
int stream, err;
sound/usb/quirks.c
120
stream = (fp->endpoint & USB_DIR_IN) ?
sound/usb/quirks.c
125
err = snd_usb_add_audio_stream(chip, stream, fp);
sound/usb/quirks.c
1738
if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].cur_audiofmt)
sound/usb/quirks.c
1762
snd_emuusb_set_samplerate(subs->stream->chip, emu_samplerate_id);
sound/usb/quirks.c
1777
snd_usb_ctl_msg(subs->stream->chip->dev,
sound/usb/quirks.c
1778
usb_sndctrlpipe(subs->stream->chip->dev, 0),
sound/usb/quirks.c
1849
snd_usb_ctl_msg(subs->stream->chip->dev,
sound/usb/quirks.c
1850
usb_sndctrlpipe(subs->stream->chip->dev, 0),
sound/usb/quirks.c
1858
switch (subs->stream->chip->usb_id) {
sound/usb/quirks.c
2086
int stream)
sound/usb/quirks.c
2110
if (stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/usb/quirks.c
2129
if (stream == SNDRV_PCM_STREAM_CAPTURE)
sound/usb/quirks.h
49
int stream);
sound/usb/stream.c
1086
pd->pd_id = (stream == SNDRV_PCM_STREAM_PLAYBACK) ?
sound/usb/stream.c
1101
if (snd_usb_parse_audio_format_v3(chip, fp, as, stream) < 0) {
sound/usb/stream.c
111
snd_usb_power_domain_set(subs->stream->chip, pd,
sound/usb/stream.c
1122
int i, altno, err, stream;
sound/usb/stream.c
1159
stream = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN) ?
sound/usb/stream.c
1203
stream, bm_quirk);
sound/usb/stream.c
1208
iface_no, i, altno, stream);
sound/usb/stream.c
1231
err = snd_usb_add_audio_stream_v3(chip, stream, fp, pd);
sound/usb/stream.c
1233
err = snd_usb_add_audio_stream(chip, stream, fp);
sound/usb/stream.c
209
static int add_chmap(struct snd_pcm *pcm, int stream,
sound/usb/stream.c
224
err = snd_pcm_add_chmap_ctls(pcm, stream, NULL, 0, 0, &chmap);
sound/usb/stream.c
489
int stream,
sound/usb/stream.c
502
subs = &as->substream[stream];
sound/usb/stream.c
518
subs = &as->substream[stream];
sound/usb/stream.c
521
err = snd_pcm_new_stream(as->pcm, stream, 1);
sound/usb/stream.c
524
snd_usb_init_substream(as, stream, fp, pd);
sound/usb/stream.c
525
return add_chmap(as->pcm, stream, subs);
sound/usb/stream.c
536
stream == SNDRV_PCM_STREAM_PLAYBACK ? 1 : 0,
sound/usb/stream.c
537
stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1,
sound/usb/stream.c
553
snd_usb_init_substream(as, stream, fp, pd);
sound/usb/stream.c
568
return add_chmap(pcm, stream, &as->substream[stream]);
sound/usb/stream.c
572
int stream,
sound/usb/stream.c
575
return __snd_usb_add_audio_stream(chip, stream, fp, NULL);
sound/usb/stream.c
579
int stream,
sound/usb/stream.c
58
static void snd_usb_audio_stream_free(struct snd_usb_stream *stream)
sound/usb/stream.c
583
return __snd_usb_add_audio_stream(chip, stream, fp, pd);
sound/usb/stream.c
60
free_substream(&stream->substream[0]);
sound/usb/stream.c
61
free_substream(&stream->substream[1]);
sound/usb/stream.c
62
list_del(&stream->list);
sound/usb/stream.c
63
kfree(stream);
sound/usb/stream.c
68
struct snd_usb_stream *stream = pcm->private_data;
sound/usb/stream.c
69
if (stream) {
sound/usb/stream.c
70
stream->pcm = NULL;
sound/usb/stream.c
71
snd_usb_audio_stream_free(stream);
sound/usb/stream.c
719
int altno, int stream, int bm_quirk)
sound/usb/stream.c
80
int stream,
sound/usb/stream.c
84
struct snd_usb_substream *subs = &as->substream[stream];
sound/usb/stream.c
853
snd_usb_audioformat_attributes_quirk(chip, fp, stream);
sound/usb/stream.c
857
fmt, stream) < 0) {
sound/usb/stream.c
876
int altno, int stream)
sound/usb/stream.c
89
subs->stream = as;
sound/usb/stream.c
90
subs->direction = stream;
sound/usb/stream.c
98
snd_usb_set_pcm_ops(as->pcm, stream);
sound/usb/stream.h
9
int stream,
sound/usb/usx2y/us144mkii_pcm.c
227
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/usx2y/usbusx2yaudio.c
796
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/usx2y/usbusx2yaudio.c
882
snd_pcm_substream_chip(substream))[substream->stream];
sound/usb/usx2y/usbusx2yaudio.c
920
int stream;
sound/usb/usx2y/usbusx2yaudio.c
922
for_each_pcm_streams(stream) {
sound/usb/usx2y/usbusx2yaudio.c
923
kfree(usx2y_substream[stream]);
sound/usb/usx2y/usbusx2yaudio.c
924
usx2y_substream[stream] = NULL;
sound/usb/usx2y/usx2yhwdeppcm.c
372
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
sound/usb/usx2y/usx2yhwdeppcm.c
412
int p, u, err, stream = subs->pcm_substream->stream;
sound/usb/usx2y/usx2yhwdeppcm.c
417
if (stream == SNDRV_PCM_STREAM_CAPTURE) {
sound/usb/usx2y/usx2yhwdeppcm.c
422
for (p = 0; 3 >= (stream + p); p += 2) {
sound/usb/usx2y/usx2yhwdeppcm.c
423
struct snd_usx2y_substream *subs = usx2y->subs[stream + p];
sound/usb/usx2y/usx2yhwdeppcm.c
442
for (p = 0; 3 >= (stream + p); p += 2) {
sound/usb/usx2y/usx2yhwdeppcm.c
443
struct snd_usx2y_substream *subs = usx2y->subs[stream + p];
sound/usb/usx2y/usx2yhwdeppcm.c
587
snd_pcm_substream_chip(substream))[substream->stream];
sound/usb/usx2y/usx2yhwdeppcm.c
593
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/virtio/virtio_pcm.c
445
struct virtio_pcm_stream *stream = &vpcm->streams[i];
sound/virtio/virtio_pcm.c
447
if (!stream->nsubstreams)
sound/virtio/virtio_pcm.c
450
stream->substreams =
sound/virtio/virtio_pcm.c
451
devm_kcalloc(&vdev->dev, stream->nsubstreams,
sound/virtio/virtio_pcm.c
452
sizeof(*stream->substreams),
sound/virtio/virtio_pcm.c
454
if (!stream->substreams)
sound/virtio/virtio_pcm.c
457
stream->nsubstreams = 0;
sound/virtio/virtio_pcm_ops.c
108
struct virtio_pcm_stream *vs = &vpcm->streams[substream->stream];
sound/xen/xen_snd_front_alsa.c
212
static void stream_clear(struct xen_snd_front_pcm_stream_info *stream)
sound/xen/xen_snd_front_alsa.c
214
stream->is_open = false;
sound/xen/xen_snd_front_alsa.c
215
stream->be_cur_frame = 0;
sound/xen/xen_snd_front_alsa.c
216
stream->out_frames = 0;
sound/xen/xen_snd_front_alsa.c
217
atomic_set(&stream->hw_ptr, 0);
sound/xen/xen_snd_front_alsa.c
218
xen_snd_front_evtchnl_pair_clear(stream->evt_pair);
sound/xen/xen_snd_front_alsa.c
219
memset(&stream->shbuf, 0, sizeof(stream->shbuf));
sound/xen/xen_snd_front_alsa.c
220
stream->buffer = NULL;
sound/xen/xen_snd_front_alsa.c
221
stream->buffer_sz = 0;
sound/xen/xen_snd_front_alsa.c
222
stream->pages = NULL;
sound/xen/xen_snd_front_alsa.c
223
stream->num_pages = 0;
sound/xen/xen_snd_front_alsa.c
226
static void stream_free(struct xen_snd_front_pcm_stream_info *stream)
sound/xen/xen_snd_front_alsa.c
228
xen_front_pgdir_shbuf_unmap(&stream->shbuf);
sound/xen/xen_snd_front_alsa.c
229
xen_front_pgdir_shbuf_free(&stream->shbuf);
sound/xen/xen_snd_front_alsa.c
230
if (stream->buffer)
sound/xen/xen_snd_front_alsa.c
231
free_pages_exact(stream->buffer, stream->buffer_sz);
sound/xen/xen_snd_front_alsa.c
232
kfree(stream->pages);
sound/xen/xen_snd_front_alsa.c
233
stream_clear(stream);
sound/xen/xen_snd_front_alsa.c
241
struct xen_snd_front_pcm_stream_info *stream;
sound/xen/xen_snd_front_alsa.c
243
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
sound/xen/xen_snd_front_alsa.c
244
stream = &pcm_instance->streams_pb[substream->number];
sound/xen/xen_snd_front_alsa.c
246
stream = &pcm_instance->streams_cap[substream->number];
sound/xen/xen_snd_front_alsa.c
248
return stream;
sound/xen/xen_snd_front_alsa.c
254
struct xen_snd_front_pcm_stream_info *stream = rule->private;
sound/xen/xen_snd_front_alsa.c
255
struct device *dev = &stream->front_info->xb_dev->dev;
sound/xen/xen_snd_front_alsa.c
292
ret = xen_snd_front_stream_query_hw_param(&stream->evt_pair->req,
sound/xen/xen_snd_front_alsa.c
352
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
363
runtime->hw = stream->pcm_hw;
sound/xen/xen_snd_front_alsa.c
373
stream->evt_pair = &front_info->evt_pairs[stream->index];
sound/xen/xen_snd_front_alsa.c
375
stream->front_info = front_info;
sound/xen/xen_snd_front_alsa.c
377
stream->evt_pair->evt.u.evt.substream = substream;
sound/xen/xen_snd_front_alsa.c
379
stream_clear(stream);
sound/xen/xen_snd_front_alsa.c
381
xen_snd_front_evtchnl_pair_set_connected(stream->evt_pair, true);
sound/xen/xen_snd_front_alsa.c
384
alsa_hw_rule, stream,
sound/xen/xen_snd_front_alsa.c
392
alsa_hw_rule, stream,
sound/xen/xen_snd_front_alsa.c
400
alsa_hw_rule, stream,
sound/xen/xen_snd_front_alsa.c
408
alsa_hw_rule, stream,
sound/xen/xen_snd_front_alsa.c
416
alsa_hw_rule, stream,
sound/xen/xen_snd_front_alsa.c
428
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
430
xen_snd_front_evtchnl_pair_set_connected(stream->evt_pair, false);
sound/xen/xen_snd_front_alsa.c
434
static int shbuf_setup_backstore(struct xen_snd_front_pcm_stream_info *stream,
sound/xen/xen_snd_front_alsa.c
439
stream->buffer = alloc_pages_exact(buffer_sz, GFP_KERNEL);
sound/xen/xen_snd_front_alsa.c
440
if (!stream->buffer)
sound/xen/xen_snd_front_alsa.c
443
stream->buffer_sz = buffer_sz;
sound/xen/xen_snd_front_alsa.c
444
stream->num_pages = DIV_ROUND_UP(stream->buffer_sz, PAGE_SIZE);
sound/xen/xen_snd_front_alsa.c
445
stream->pages = kzalloc_objs(struct page *, stream->num_pages);
sound/xen/xen_snd_front_alsa.c
446
if (!stream->pages)
sound/xen/xen_snd_front_alsa.c
449
for (i = 0; i < stream->num_pages; i++)
sound/xen/xen_snd_front_alsa.c
450
stream->pages[i] = virt_to_page(stream->buffer + i * PAGE_SIZE);
sound/xen/xen_snd_front_alsa.c
458
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
459
struct xen_snd_front_info *front_info = stream->front_info;
sound/xen/xen_snd_front_alsa.c
467
stream_free(stream);
sound/xen/xen_snd_front_alsa.c
468
ret = shbuf_setup_backstore(stream, params_buffer_bytes(params));
sound/xen/xen_snd_front_alsa.c
474
buf_cfg.pgdir = &stream->shbuf;
sound/xen/xen_snd_front_alsa.c
475
buf_cfg.num_pages = stream->num_pages;
sound/xen/xen_snd_front_alsa.c
476
buf_cfg.pages = stream->pages;
sound/xen/xen_snd_front_alsa.c
482
ret = xen_front_pgdir_shbuf_map(&stream->shbuf);
sound/xen/xen_snd_front_alsa.c
489
stream_free(stream);
sound/xen/xen_snd_front_alsa.c
492
stream->index);
sound/xen/xen_snd_front_alsa.c
498
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
501
ret = xen_snd_front_stream_close(&stream->evt_pair->req);
sound/xen/xen_snd_front_alsa.c
502
stream_free(stream);
sound/xen/xen_snd_front_alsa.c
508
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
510
if (!stream->is_open) {
sound/xen/xen_snd_front_alsa.c
517
dev_err(&stream->front_info->xb_dev->dev,
sound/xen/xen_snd_front_alsa.c
524
ret = xen_snd_front_stream_prepare(&stream->evt_pair->req,
sound/xen/xen_snd_front_alsa.c
525
&stream->shbuf,
sound/xen/xen_snd_front_alsa.c
534
stream->is_open = true;
sound/xen/xen_snd_front_alsa.c
542
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
566
return xen_snd_front_stream_trigger(&stream->evt_pair->req, type);
sound/xen/xen_snd_front_alsa.c
573
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
578
delta = cur_frame - stream->be_cur_frame;
sound/xen/xen_snd_front_alsa.c
579
stream->be_cur_frame = cur_frame;
sound/xen/xen_snd_front_alsa.c
581
new_hw_ptr = (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr);
sound/xen/xen_snd_front_alsa.c
583
atomic_set(&stream->hw_ptr, (int)new_hw_ptr);
sound/xen/xen_snd_front_alsa.c
585
stream->out_frames += delta;
sound/xen/xen_snd_front_alsa.c
586
if (stream->out_frames > substream->runtime->period_size) {
sound/xen/xen_snd_front_alsa.c
587
stream->out_frames %= substream->runtime->period_size;
sound/xen/xen_snd_front_alsa.c
594
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
596
return (snd_pcm_uframes_t)atomic_read(&stream->hw_ptr);
sound/xen/xen_snd_front_alsa.c
603
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
605
if (unlikely(pos + count > stream->buffer_sz))
sound/xen/xen_snd_front_alsa.c
608
if (copy_from_iter(stream->buffer + pos, count, src) != count)
sound/xen/xen_snd_front_alsa.c
611
return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count);
sound/xen/xen_snd_front_alsa.c
618
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
621
if (unlikely(pos + count > stream->buffer_sz))
sound/xen/xen_snd_front_alsa.c
624
ret = xen_snd_front_stream_read(&stream->evt_pair->req, pos, count);
sound/xen/xen_snd_front_alsa.c
628
if (copy_to_iter(stream->buffer + pos, count, dst) != count)
sound/xen/xen_snd_front_alsa.c
637
struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
sound/xen/xen_snd_front_alsa.c
639
if (unlikely(pos + count > stream->buffer_sz))
sound/xen/xen_snd_front_alsa.c
642
memset(stream->buffer + pos, 0, count);
sound/xen/xen_snd_front_alsa.c
644
return xen_snd_front_stream_write(&stream->evt_pair->req, pos, count);
sound/xen/xen_snd_front_cfg.c
338
struct xen_front_cfg_stream *stream;
sound/xen/xen_snd_front_cfg.c
357
stream = &pcm_instance->streams_pb[(*cur_pb)++];
sound/xen/xen_snd_front_cfg.c
360
stream = &pcm_instance->streams_cap[(*cur_cap)++];
sound/xen/xen_snd_front_cfg.c
367
stream->index = (*stream_cnt)++;
sound/xen/xen_snd_front_cfg.c
368
stream->xenstore_path = stream_path;
sound/xen/xen_snd_front_cfg.c
374
cfg_read_pcm_hw(stream->xenstore_path,
sound/xen/xen_snd_front_cfg.c
375
&pcm_instance->pcm_hw, &stream->pcm_hw);
tools/accounting/delaytop.c
65
#define BOOL_FPRINT(stream, fmt, ...) \
tools/accounting/delaytop.c
67
int ret = fprintf(stream, fmt, ##__VA_ARGS__); \
tools/include/nolibc/getopt.h
16
static int fprintf(struct FILE *stream, const char *fmt, ...);
tools/include/nolibc/stdio.h
100
int fflush(FILE *stream)
tools/include/nolibc/stdio.h
102
intptr_t i = (intptr_t)stream;
tools/include/nolibc/stdio.h
116
int fclose(FILE *stream)
tools/include/nolibc/stdio.h
118
intptr_t i = (intptr_t)stream;
tools/include/nolibc/stdio.h
133
#define getc(stream) fgetc(stream)
tools/include/nolibc/stdio.h
136
int fgetc(FILE* stream)
tools/include/nolibc/stdio.h
140
if (read(fileno(stream), &ch, 1) <= 0)
tools/include/nolibc/stdio.h
154
#define putc(c, stream) fputc(c, stream)
tools/include/nolibc/stdio.h
157
int fputc(int c, FILE* stream)
tools/include/nolibc/stdio.h
161
if (write(fileno(stream), &ch, 1) <= 0)
tools/include/nolibc/stdio.h
179
int _fwrite(const void *buf, size_t size, FILE *stream)
tools/include/nolibc/stdio.h
182
int fd = fileno(stream);
tools/include/nolibc/stdio.h
195
size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream)
tools/include/nolibc/stdio.h
200
if (_fwrite(s, size, stream) != 0)
tools/include/nolibc/stdio.h
211
int _fread(void *buf, size_t size, FILE *stream)
tools/include/nolibc/stdio.h
213
int fd = fileno(stream);
tools/include/nolibc/stdio.h
227
size_t fread(void *s, size_t size, size_t nmemb, FILE *stream)
tools/include/nolibc/stdio.h
232
if (_fread(s, size, stream) != 0)
tools/include/nolibc/stdio.h
240
int fputs(const char *s, FILE *stream)
tools/include/nolibc/stdio.h
242
return _fwrite(s, strlen(s), stream);
tools/include/nolibc/stdio.h
256
char *fgets(char *s, int size, FILE *stream)
tools/include/nolibc/stdio.h
262
c = fgetc(stream);
tools/include/nolibc/stdio.h
277
int fseek(FILE *stream, long offset, int whence)
tools/include/nolibc/stdio.h
279
int fd = fileno(stream);
tools/include/nolibc/stdio.h
441
int vfprintf(FILE *stream, const char *fmt, va_list args)
tools/include/nolibc/stdio.h
443
return __nolibc_printf(__nolibc_fprintf_cb, (intptr_t)stream, SIZE_MAX, fmt, args);
tools/include/nolibc/stdio.h
453
int fprintf(FILE *stream, const char *fmt, ...)
tools/include/nolibc/stdio.h
459
ret = vfprintf(stream, fmt, args);
tools/include/nolibc/stdio.h
479
FILE *stream;
tools/include/nolibc/stdio.h
481
stream = fdopen(fd, NULL);
tools/include/nolibc/stdio.h
482
if (!stream)
tools/include/nolibc/stdio.h
485
return vfprintf(stream, fmt, args);
tools/include/nolibc/stdio.h
664
int setvbuf(FILE *stream __attribute__((unused)),
tools/include/nolibc/stdio.h
87
int fileno(FILE *stream)
tools/include/nolibc/stdio.h
89
intptr_t i = (intptr_t)stream;
tools/include/tools/dis-asm-compat.h
40
void *stream,
tools/include/tools/dis-asm-compat.h
45
init_disassemble_info(info, stream,
tools/include/tools/dis-asm-compat.h
50
init_disassemble_info(info, stream,
tools/objtool/disas.c
110
((*(dinfo)->fprintf_func)((dinfo)->stream, __VA_ARGS__))
tools/objtool/disas.c
138
static int disas_fprintf(void *stream, const char *fmt, ...)
tools/objtool/disas.c
144
rv = disas_result_fprintf(stream, fmt, arg);
tools/objtool/disas.c
153
static int disas_fprintf_styled(void *stream,
tools/objtool/disas.c
161
rv = disas_result_fprintf(stream, fmt, arg);
tools/objtool/disas.c
433
static int disas_vprint(FILE *stream, struct section *sec, unsigned long offset,
tools/objtool/disas.c
450
n += fprintf(stream, "%6lx: %-*s ", offset, len, addr_str);
tools/objtool/disas.c
454
n += fprintf(stream, "%-*s", len, "");
tools/objtool/disas.c
459
n += fprintf(stream, "| ");
tools/objtool/disas.c
462
n += vfprintf(stream, format, ap);
tools/objtool/disas.c
467
static int disas_print(FILE *stream, struct section *sec, unsigned long offset,
tools/objtool/disas.c
474
len = disas_vprint(stream, sec, offset, depth, format, args);
tools/objtool/disas.c
486
void disas_print_info(FILE *stream, struct instruction *insn, int depth,
tools/objtool/disas.c
502
disas_vprint(stream, sec, off, depth, format, args);
tools/objtool/disas.c
510
void disas_print_insn(FILE *stream, struct disas_context *dctx,
tools/objtool/disas.c
535
disas_print_info(stream, insn, depth, "%-*s", len, insn_str);
tools/objtool/disas.c
542
fprintf(stream, "\n");
tools/objtool/disas.c
546
fprintf(stream, " - ");
tools/objtool/disas.c
548
vfprintf(stream, format, args);
tools/objtool/include/objtool/disas.h
24
void disas_print_info(FILE *stream, struct instruction *insn, int depth,
tools/objtool/include/objtool/disas.h
26
void disas_print_insn(FILE *stream, struct disas_context *dctx,
tools/objtool/include/objtool/disas.h
64
static inline void disas_print_info(FILE *stream, struct instruction *insn,
tools/objtool/include/objtool/disas.h
66
static inline void disas_print_insn(FILE *stream, struct disas_context *dctx,
tools/perf/builtin-diff.c
1296
OPT_BOOLEAN(0, "stream", &pdiff.stream,
tools/perf/builtin-diff.c
1969
if (pdiff.stream)
tools/perf/builtin-diff.c
47
bool stream;
tools/perf/trace/beauty/include/uapi/sound/asound.h
342
int stream; /* RO/WR (control): stream direction */
tools/perf/trace/beauty/include/uapi/sound/asound.h
738
int stream; /* WR: stream */
tools/perf/trace/beauty/include/uapi/sound/asound.h
776
int stream;
tools/perf/trace/beauty/include/uapi/sound/asound.h
786
int stream;
tools/perf/util/data-convert-bt.c
1353
struct ctf_stream **stream;
tools/perf/util/data-convert-bt.c
1363
stream = zalloc(sizeof(*stream) * ncpus);
tools/perf/util/data-convert-bt.c
1364
if (!stream) {
tools/perf/util/data-convert-bt.c
1369
cw->stream = stream;
tools/perf/util/data-convert-bt.c
1379
ctf_stream__delete(cw->stream[cpu]);
tools/perf/util/data-convert-bt.c
1381
zfree(&cw->stream);
tools/perf/util/data-convert-bt.c
1647
ret = ctf_stream__flush(cw->stream[cpu]);
tools/perf/util/data-convert-bt.c
59
struct bt_ctf_stream *stream;
tools/perf/util/data-convert-bt.c
67
struct ctf_stream **stream;
tools/perf/util/data-convert-bt.c
685
err = bt_ctf_stream_flush(cs->stream);
tools/perf/util/data-convert-bt.c
703
struct bt_ctf_stream *stream = NULL;
tools/perf/util/data-convert-bt.c
712
stream = bt_ctf_writer_create_stream(cw->writer, cw->stream_class);
tools/perf/util/data-convert-bt.c
713
if (!stream) {
tools/perf/util/data-convert-bt.c
718
pkt_ctx = bt_ctf_stream_get_packet_context(stream);
tools/perf/util/data-convert-bt.c
740
cs->stream = stream;
tools/perf/util/data-convert-bt.c
746
if (stream)
tools/perf/util/data-convert-bt.c
747
bt_ctf_stream_put(stream);
tools/perf/util/data-convert-bt.c
756
bt_ctf_stream_put(cs->stream);
tools/perf/util/data-convert-bt.c
763
struct ctf_stream *cs = cw->stream[cpu];
tools/perf/util/data-convert-bt.c
767
cw->stream[cpu] = cs;
tools/perf/util/data-convert-bt.c
872
bt_ctf_stream_append_event(cs->stream, event);
tools/perf/util/data-convert-bt.c
915
bt_ctf_stream_append_event(cs->stream, event); \
tools/perf/util/stream.c
180
static struct stream *stream__callchain_match(struct stream *base_stream,
tools/perf/util/stream.c
184
struct stream *pair_stream = &es_pair->streams[i];
tools/perf/util/stream.c
195
static struct stream *stream__match(struct stream *base_stream,
tools/perf/util/stream.c
201
static void stream__link(struct stream *base_stream, struct stream *pair_stream)
tools/perf/util/stream.c
211
struct stream *base_stream = &es_base->streams[i];
tools/perf/util/stream.c
212
struct stream *pair_stream;
tools/perf/util/stream.c
220
static void print_callchain_pair(struct stream *base_stream, int idx,
tools/perf/util/stream.c
266
static void print_stream_callchain(struct stream *stream, int idx,
tools/perf/util/stream.c
269
struct callchain_node *cnode = stream->cnode;
tools/perf/util/stream.c
304
struct stream *base_stream;
tools/perf/util/stream.c
50
s->streams = calloc(nr_streams_max, sizeof(struct stream));
tools/perf/util/stream.h
15
struct stream *streams;
tools/testing/selftests/alsa/pcm-test.c
107
if (pcm_data->stream != stream)
tools/testing/selftests/alsa/pcm-test.c
117
pcm_data->stream = stream;
tools/testing/selftests/alsa/pcm-test.c
157
snd_pcm_stream_t stream;
tools/testing/selftests/alsa/pcm-test.c
227
stream = direction ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK;
tools/testing/selftests/alsa/pcm-test.c
228
sprintf(key, "pcm.%d.%s", dev, snd_pcm_stream_name(stream));
tools/testing/selftests/alsa/pcm-test.c
231
ksft_print_msg("skipping pcm %d.%d.%s\n", card, dev, snd_pcm_stream_name(stream));
tools/testing/selftests/alsa/pcm-test.c
236
snd_pcm_info_set_stream(pcm_info, stream);
tools/testing/selftests/alsa/pcm-test.c
242
dev, 0, stream);
tools/testing/selftests/alsa/pcm-test.c
249
sprintf(key, "pcm.%d.%d.%s", dev, subdev, snd_pcm_stream_name(stream));
tools/testing/selftests/alsa/pcm-test.c
252
subdev, snd_pcm_stream_name(stream));
tools/testing/selftests/alsa/pcm-test.c
262
pcm_data->stream = stream;
tools/testing/selftests/alsa/pcm-test.c
327
snd_pcm_stream_name(data->stream),
tools/testing/selftests/alsa/pcm-test.c
351
err = snd_pcm_open(&handle, name, data->stream, 0);
tools/testing/selftests/alsa/pcm-test.c
385
snd_pcm_stream_name(data->stream),
tools/testing/selftests/alsa/pcm-test.c
41
snd_pcm_stream_t stream;
tools/testing/selftests/alsa/pcm-test.c
439
if (data->stream == SND_PCM_STREAM_PLAYBACK) {
tools/testing/selftests/alsa/pcm-test.c
463
snd_pcm_stream_name(data->stream),
tools/testing/selftests/alsa/pcm-test.c
475
if (data->stream == SND_PCM_STREAM_PLAYBACK) {
tools/testing/selftests/alsa/pcm-test.c
525
snd_pcm_stream_name(data->stream));
tools/testing/selftests/alsa/pcm-test.c
536
snd_pcm_stream_name(data->stream));
tools/testing/selftests/alsa/pcm-test.c
542
snd_pcm_stream_name(data->stream));
tools/testing/selftests/alsa/pcm-test.c
644
snd_pcm_stream_name(pcm->stream));
tools/testing/selftests/alsa/pcm-test.c
96
static void missing_device(int card, int device, int subdevice, snd_pcm_stream_t stream)
tools/testing/selftests/alsa/test-pcmtest-driver.c
85
int card, snd_pcm_stream_t stream)
tools/testing/selftests/alsa/test-pcmtest-driver.c
91
err = snd_pcm_open(handle, pcm_name, stream, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
756
int err, map, stream = -1, dgram = -1, zero = 0;
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
765
stream = xsocket(AF_UNIX, SOCK_STREAM, 0);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
766
if (stream < 0)
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
773
err = bpf_map_update_elem(map, &zero, &stream, BPF_ANY);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
780
close(stream);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
788
int stream[2], dgram, udp, tcp;
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
818
err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
824
err = bpf_map_update_elem(map, &entry, &stream[0], BPF_ANY);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
844
close(stream[0]);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
845
close(stream[1]);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
856
int stream[2], dgram, udp, tcp;
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
887
err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
893
err = bpf_map_update_elem(map[i], &entry, &stream[0], BPF_ANY);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
916
close(stream[0]);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
917
close(stream[1]);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
928
int stream[2], dgram, udp, tcp;
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
958
err = socketpair(AF_UNIX, SOCK_STREAM, 0, stream);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
966
err = bpf_map_update_elem(map, &zero, &stream[0], BPF_ANY);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
986
close(stream[0]);
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
987
close(stream[1]);
tools/testing/selftests/bpf/prog_tests/stream.c
16
RUN_TESTS(stream);
tools/testing/selftests/bpf/prog_tests/stream.c
24
struct stream *skel;
tools/testing/selftests/bpf/prog_tests/stream.c
90
struct stream *skel;
tools/testing/selftests/kvm/include/kvm_util.h
1162
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu,
tools/testing/selftests/kvm/include/kvm_util.h
1165
static inline void vcpu_dump(FILE *stream, struct kvm_vcpu *vcpu,
tools/testing/selftests/kvm/include/kvm_util.h
1168
vcpu_arch_dump(stream, vcpu, indent);
tools/testing/selftests/kvm/include/kvm_util.h
1271
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
tools/testing/selftests/kvm/include/kvm_util.h
1273
static inline void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/include/kvm_util.h
1275
virt_arch_dump(stream, vm, indent);
tools/testing/selftests/kvm/include/kvm_util.h
477
void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
tools/testing/selftests/kvm/include/sparsebit.h
65
void sparsebit_dump(FILE *stream, const struct sparsebit *sbit,
tools/testing/selftests/kvm/lib/arm64/processor.c
240
static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent, uint64_t page, int level)
tools/testing/selftests/kvm/lib/arm64/processor.c
253
fprintf(stream, "%*s%s: %lx: %lx at %p\n", indent, "", type[level], pte, *ptep, ptep);
tools/testing/selftests/kvm/lib/arm64/processor.c
254
pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level + 1);
tools/testing/selftests/kvm/lib/arm64/processor.c
259
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/arm64/processor.c
271
fprintf(stream, "%*spgd: %lx: %lx at %p\n", indent, "", pgd, *ptep, ptep);
tools/testing/selftests/kvm/lib/arm64/processor.c
272
pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level);
tools/testing/selftests/kvm/lib/arm64/processor.c
400
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu, uint8_t indent)
tools/testing/selftests/kvm/lib/arm64/processor.c
407
fprintf(stream, "%*spstate: 0x%.16lx pc: 0x%.16lx\n",
tools/testing/selftests/kvm/lib/kvm_util.c
1966
void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/kvm_util.c
1972
fprintf(stream, "%*smode: 0x%x\n", indent, "", vm->mode);
tools/testing/selftests/kvm/lib/kvm_util.c
1973
fprintf(stream, "%*sfd: %i\n", indent, "", vm->fd);
tools/testing/selftests/kvm/lib/kvm_util.c
1974
fprintf(stream, "%*spage_size: 0x%x\n", indent, "", vm->page_size);
tools/testing/selftests/kvm/lib/kvm_util.c
1975
fprintf(stream, "%*sMem Regions:\n", indent, "");
tools/testing/selftests/kvm/lib/kvm_util.c
1977
fprintf(stream, "%*sguest_phys: 0x%lx size: 0x%lx "
tools/testing/selftests/kvm/lib/kvm_util.c
1982
fprintf(stream, "%*sunused_phy_pages: ", indent + 2, "");
tools/testing/selftests/kvm/lib/kvm_util.c
1983
sparsebit_dump(stream, region->unused_phy_pages, 0);
tools/testing/selftests/kvm/lib/kvm_util.c
1985
fprintf(stream, "%*sprotected_phy_pages: ", indent + 2, "");
tools/testing/selftests/kvm/lib/kvm_util.c
1986
sparsebit_dump(stream, region->protected_phy_pages, 0);
tools/testing/selftests/kvm/lib/kvm_util.c
1989
fprintf(stream, "%*sMapped Virtual Pages:\n", indent, "");
tools/testing/selftests/kvm/lib/kvm_util.c
1990
sparsebit_dump(stream, vm->vpages_mapped, indent + 2);
tools/testing/selftests/kvm/lib/kvm_util.c
1991
fprintf(stream, "%*spgd_created: %u\n", indent, "",
tools/testing/selftests/kvm/lib/kvm_util.c
1994
fprintf(stream, "%*sVirtual Translation Tables:\n",
tools/testing/selftests/kvm/lib/kvm_util.c
1996
virt_dump(stream, vm, indent + 4);
tools/testing/selftests/kvm/lib/kvm_util.c
1998
fprintf(stream, "%*sVCPUs:\n", indent, "");
tools/testing/selftests/kvm/lib/kvm_util.c
2001
vcpu_dump(stream, vcpu, indent + 2);
tools/testing/selftests/kvm/lib/loongarch/processor.c
142
static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent, uint64_t page, int level)
tools/testing/selftests/kvm/lib/loongarch/processor.c
154
fprintf(stream, "%*s%s: %lx: %lx at %p\n",
tools/testing/selftests/kvm/lib/loongarch/processor.c
156
pte_dump(stream, vm, indent + 1, pte_addr(vm, *ptep), level--);
tools/testing/selftests/kvm/lib/loongarch/processor.c
160
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/loongarch/processor.c
168
pte_dump(stream, vm, indent, vm->mmu.pgd, level);
tools/testing/selftests/kvm/lib/loongarch/processor.c
171
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu, uint8_t indent)
tools/testing/selftests/kvm/lib/riscv/processor.c
151
static void pte_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent,
tools/testing/selftests/kvm/lib/riscv/processor.c
165
fprintf(stream, "%*s%s: %lx: %lx at %p\n", indent, "",
tools/testing/selftests/kvm/lib/riscv/processor.c
167
pte_dump(stream, vm, indent + 1,
tools/testing/selftests/kvm/lib/riscv/processor.c
173
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/riscv/processor.c
186
fprintf(stream, "%*spgd: %lx: %lx at %p\n", indent, "",
tools/testing/selftests/kvm/lib/riscv/processor.c
188
pte_dump(stream, vm, indent + 1,
tools/testing/selftests/kvm/lib/riscv/processor.c
236
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu, uint8_t indent)
tools/testing/selftests/kvm/lib/riscv/processor.c
274
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
276
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
279
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
282
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
285
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
288
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
291
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
294
fprintf(stream,
tools/testing/selftests/kvm/lib/riscv/processor.c
297
fprintf(stream,
tools/testing/selftests/kvm/lib/s390/processor.c
114
static void virt_dump_ptes(FILE *stream, struct kvm_vm *vm, uint8_t indent,
tools/testing/selftests/kvm/lib/s390/processor.c
123
fprintf(stream, "%*spte @ 0x%lx: 0x%016lx\n",
tools/testing/selftests/kvm/lib/s390/processor.c
128
static void virt_dump_region(FILE *stream, struct kvm_vm *vm, uint8_t indent,
tools/testing/selftests/kvm/lib/s390/processor.c
137
fprintf(stream, "%*srt%lde @ 0x%lx: 0x%016lx\n",
tools/testing/selftests/kvm/lib/s390/processor.c
141
virt_dump_region(stream, vm, indent + 2,
tools/testing/selftests/kvm/lib/s390/processor.c
144
virt_dump_ptes(stream, vm, indent + 2,
tools/testing/selftests/kvm/lib/s390/processor.c
150
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/s390/processor.c
155
virt_dump_region(stream, vm, indent, vm->mmu.pgd);
tools/testing/selftests/kvm/lib/s390/processor.c
215
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu, uint8_t indent)
tools/testing/selftests/kvm/lib/s390/processor.c
217
fprintf(stream, "%*spstate: psw: 0x%.16llx:0x%.16llx\n",
tools/testing/selftests/kvm/lib/sparsebit.c
1548
static size_t display_range(FILE *stream, sparsebit_idx_t low,
tools/testing/selftests/kvm/lib/sparsebit.c
1564
if (!stream)
tools/testing/selftests/kvm/lib/sparsebit.c
1567
sz = fprintf(stream, fmt_str, low, high);
tools/testing/selftests/kvm/lib/sparsebit.c
1586
void sparsebit_dump(FILE *stream, const struct sparsebit *s,
tools/testing/selftests/kvm/lib/sparsebit.c
1597
fprintf(stream, "%*s", indent, "");
tools/testing/selftests/kvm/lib/sparsebit.c
1632
fputs("\n", stream);
tools/testing/selftests/kvm/lib/sparsebit.c
1633
fprintf(stream, "%*s", indent, "");
tools/testing/selftests/kvm/lib/sparsebit.c
1638
sz = display_range(stream, low, high,
tools/testing/selftests/kvm/lib/sparsebit.c
1666
fputs("\n", stream);
tools/testing/selftests/kvm/lib/sparsebit.c
1667
fprintf(stream, "%*s", indent, "");
tools/testing/selftests/kvm/lib/sparsebit.c
1672
sz = display_range(stream, low, high,
tools/testing/selftests/kvm/lib/sparsebit.c
1677
fputs("\n", stream);
tools/testing/selftests/kvm/lib/sparsebit.c
871
static void dump_nodes(FILE *stream, struct node *nodep,
tools/testing/selftests/kvm/lib/sparsebit.c
885
fprintf(stream, "%*s---- %s nodep: %p\n", indent, "", node_type, nodep);
tools/testing/selftests/kvm/lib/sparsebit.c
886
fprintf(stream, "%*s parent: %p left: %p right: %p\n", indent, "",
tools/testing/selftests/kvm/lib/sparsebit.c
888
fprintf(stream, "%*s idx: 0x%lx mask: 0x%x num_after: 0x%lx\n",
tools/testing/selftests/kvm/lib/sparsebit.c
893
dump_nodes(stream, nodep->left, indent + 2);
tools/testing/selftests/kvm/lib/sparsebit.c
897
dump_nodes(stream, nodep->right, indent + 2);
tools/testing/selftests/kvm/lib/sparsebit.c
924
static void sparsebit_dump_internal(FILE *stream, const struct sparsebit *s,
tools/testing/selftests/kvm/lib/sparsebit.c
928
fprintf(stream, "%*sroot: %p\n", indent, "", s->root);
tools/testing/selftests/kvm/lib/sparsebit.c
929
fprintf(stream, "%*snum_set: 0x%lx\n", indent, "", s->num_set);
tools/testing/selftests/kvm/lib/sparsebit.c
932
dump_nodes(stream, s->root, indent);
tools/testing/selftests/kvm/lib/x86/processor.c
103
static void dtable_dump(FILE *stream, struct kvm_dtable *dtable,
tools/testing/selftests/kvm/lib/x86/processor.c
106
fprintf(stream, "%*sbase: 0x%.16llx limit: 0x%.4x "
tools/testing/selftests/kvm/lib/x86/processor.c
112
static void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent)
tools/testing/selftests/kvm/lib/x86/processor.c
1126
void vcpu_arch_dump(FILE *stream, struct kvm_vcpu *vcpu, uint8_t indent)
tools/testing/selftests/kvm/lib/x86/processor.c
1131
fprintf(stream, "%*svCPU ID: %u\n", indent, "", vcpu->id);
tools/testing/selftests/kvm/lib/x86/processor.c
1133
fprintf(stream, "%*sregs:\n", indent + 2, "");
tools/testing/selftests/kvm/lib/x86/processor.c
1135
regs_dump(stream, &regs, indent + 4);
tools/testing/selftests/kvm/lib/x86/processor.c
1137
fprintf(stream, "%*ssregs:\n", indent + 2, "");
tools/testing/selftests/kvm/lib/x86/processor.c
1139
sregs_dump(stream, &sregs, indent + 4);
tools/testing/selftests/kvm/lib/x86/processor.c
116
fprintf(stream, "%*scs:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
117
segment_dump(stream, &sregs->cs, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
118
fprintf(stream, "%*sds:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
119
segment_dump(stream, &sregs->ds, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
120
fprintf(stream, "%*ses:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
121
segment_dump(stream, &sregs->es, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
122
fprintf(stream, "%*sfs:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
123
segment_dump(stream, &sregs->fs, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
124
fprintf(stream, "%*sgs:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
125
segment_dump(stream, &sregs->gs, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
126
fprintf(stream, "%*sss:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
127
segment_dump(stream, &sregs->ss, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
128
fprintf(stream, "%*str:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
129
segment_dump(stream, &sregs->tr, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
130
fprintf(stream, "%*sldt:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
131
segment_dump(stream, &sregs->ldt, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
133
fprintf(stream, "%*sgdt:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
134
dtable_dump(stream, &sregs->gdt, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
135
fprintf(stream, "%*sidt:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
136
dtable_dump(stream, &sregs->idt, indent + 2);
tools/testing/selftests/kvm/lib/x86/processor.c
138
fprintf(stream, "%*scr0: 0x%.16llx cr2: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
142
fprintf(stream, "%*scr8: 0x%.16llx efer: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
147
fprintf(stream, "%*sinterrupt_bitmap:\n", indent, "");
tools/testing/selftests/kvm/lib/x86/processor.c
149
fprintf(stream, "%*s%.16llx\n", indent + 2, "",
tools/testing/selftests/kvm/lib/x86/processor.c
408
void virt_arch_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent)
tools/testing/selftests/kvm/lib/x86/processor.c
419
fprintf(stream, "%*s "
tools/testing/selftests/kvm/lib/x86/processor.c
421
fprintf(stream, "%*s index hvaddr gpaddr "
tools/testing/selftests/kvm/lib/x86/processor.c
429
fprintf(stream, "%*spml4e 0x%-3zx %p 0x%-12lx 0x%-10llx %u "
tools/testing/selftests/kvm/lib/x86/processor.c
441
fprintf(stream, "%*spdpe 0x%-3zx %p 0x%-12lx 0x%-10llx "
tools/testing/selftests/kvm/lib/x86/processor.c
454
fprintf(stream, "%*spde 0x%-3zx %p "
tools/testing/selftests/kvm/lib/x86/processor.c
466
fprintf(stream, "%*spte 0x%-3zx %p "
tools/testing/selftests/kvm/lib/x86/processor.c
63
static void regs_dump(FILE *stream, struct kvm_regs *regs, uint8_t indent)
tools/testing/selftests/kvm/lib/x86/processor.c
65
fprintf(stream, "%*srax: 0x%.16llx rbx: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
69
fprintf(stream, "%*srsi: 0x%.16llx rdi: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
73
fprintf(stream, "%*sr8: 0x%.16llx r9: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
77
fprintf(stream, "%*sr12: 0x%.16llx r13: 0x%.16llx "
tools/testing/selftests/kvm/lib/x86/processor.c
81
fprintf(stream, "%*srip: 0x%.16llx rfl: 0x%.16llx\n",
tools/testing/selftests/kvm/lib/x86/processor.c
86
static void segment_dump(FILE *stream, struct kvm_segment *segment,
tools/testing/selftests/kvm/lib/x86/processor.c
89
fprintf(stream, "%*sbase: 0x%.16llx limit: 0x%.8x "
tools/testing/selftests/kvm/lib/x86/processor.c
93
fprintf(stream, "%*spresent: 0x%.2x dpl: 0x%.2x "
tools/testing/selftests/kvm/lib/x86/processor.c
97
fprintf(stream, "%*sg: 0x%.2x avl: 0x%.2x "
tools/testing/selftests/mqueue/mq_open_tests.c
118
static inline int get(FILE *stream)
tools/testing/selftests/mqueue/mq_open_tests.c
121
rewind(stream);
tools/testing/selftests/mqueue/mq_open_tests.c
122
if (fscanf(stream, "%d", &value) != 1)
tools/testing/selftests/mqueue/mq_open_tests.c
127
static inline void set(FILE *stream, int value)
tools/testing/selftests/mqueue/mq_open_tests.c
131
rewind(stream);
tools/testing/selftests/mqueue/mq_open_tests.c
132
if (fprintf(stream, "%d", value) < 0)
tools/testing/selftests/mqueue/mq_open_tests.c
135
new_value = get(stream);
tools/testing/selftests/mqueue/mq_open_tests.c
61
static inline void __set(FILE *stream, int value, char *err_msg);
tools/testing/selftests/mqueue/mq_open_tests.c
63
static inline int get(FILE *stream);
tools/testing/selftests/mqueue/mq_open_tests.c
64
static inline void set(FILE *stream, int value);
tools/testing/selftests/mqueue/mq_open_tests.c
71
static inline void __set(FILE *stream, int value, char *err_msg)
tools/testing/selftests/mqueue/mq_open_tests.c
73
rewind(stream);
tools/testing/selftests/mqueue/mq_open_tests.c
74
if (fprintf(stream, "%d", value) < 0)
tools/testing/selftests/mqueue/mq_perf_tests.c
153
static inline void __set(FILE *stream, int value, char *err_msg);
tools/testing/selftests/mqueue/mq_perf_tests.c
157
static inline int get(FILE *stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
158
static inline void set(FILE *stream, int value);
tools/testing/selftests/mqueue/mq_perf_tests.c
159
static inline int try_set(FILE *stream, int value);
tools/testing/selftests/mqueue/mq_perf_tests.c
165
static inline void __set(FILE *stream, int value, char *err_msg)
tools/testing/selftests/mqueue/mq_perf_tests.c
167
rewind(stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
168
if (fprintf(stream, "%d", value) < 0)
tools/testing/selftests/mqueue/mq_perf_tests.c
238
static inline int get(FILE *stream)
tools/testing/selftests/mqueue/mq_perf_tests.c
241
rewind(stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
242
if (fscanf(stream, "%d", &value) != 1)
tools/testing/selftests/mqueue/mq_perf_tests.c
247
static inline void set(FILE *stream, int value)
tools/testing/selftests/mqueue/mq_perf_tests.c
251
rewind(stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
252
if (fprintf(stream, "%d", value) < 0)
tools/testing/selftests/mqueue/mq_perf_tests.c
254
new_value = get(stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
260
static inline int try_set(FILE *stream, int value)
tools/testing/selftests/mqueue/mq_perf_tests.c
264
rewind(stream);
tools/testing/selftests/mqueue/mq_perf_tests.c
265
fprintf(stream, "%d", value);
tools/testing/selftests/mqueue/mq_perf_tests.c
266
new_value = get(stream);
tools/testing/selftests/net/af_unix/scm_inq.c
24
FIXTURE_VARIANT_ADD(scm_inq, stream)
tools/testing/selftests/net/af_unix/scm_rights.c
47
FIXTURE_VARIANT_ADD(scm_rights, stream)
tools/testing/selftests/net/af_unix/so_peek_off.c
21
FIXTURE_VARIANT_ADD(so_peek_off, stream)
tools/testing/selftests/net/af_unix/unix_connreset.c
45
FIXTURE_VARIANT_ADD(unix_sock, stream) {
tools/testing/vsock/vsock_test.c
907
static void test_inv_buf_client(const struct test_opts *opts, bool stream)
tools/testing/vsock/vsock_test.c
913
if (stream)
tools/testing/vsock/vsock_test.c
928
if (stream) {
tools/testing/vsock/vsock_test.c
943
static void test_inv_buf_server(const struct test_opts *opts, bool stream)
tools/testing/vsock/vsock_test.c
948
if (stream)