/linux/sound/soc/intel/atom/sst/ |
H A D | sst_drv_interface.c | 40 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id) in free_stream_context() argument 45 stream = get_stream_info(ctx, str_id); in free_stream_context() 48 ret = sst_free_stream(ctx, str_id); in free_stream_context() 50 sst_clean_stream(&ctx->streams[str_id]); in free_stream_context() 53 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); in free_stream_context() 191 int str_id, retval; in sst_cdev_open() local 199 str_id = sst_get_stream(ctx, str_params); in sst_cdev_open() 200 if (str_id > 0) { in sst_cdev_open() 201 dev_dbg(dev, "stream allocated in sst_cdev_open %d\n", str_id); in sst_cdev_open() 202 stream = &ctx->streams[str_id]; in sst_cdev_open() [all …]
|
H A D | sst_stream.c | 32 int i, num_ch, str_id; in sst_alloc_stream_mrfld() local 37 str_id = str_params->stream_id; in sst_alloc_stream_mrfld() 38 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_alloc_stream_mrfld() 70 sst_drv_ctx->streams[str_id].status = STREAM_INIT; in sst_alloc_stream_mrfld() 71 sst_drv_ctx->streams[str_id].prev = STREAM_UN_INIT; in sst_alloc_stream_mrfld() 72 sst_drv_ctx->streams[str_id].pipe_id = str_params->device_type; in sst_alloc_stream_mrfld() 73 sst_drv_ctx->streams[str_id].task_id = str_params->task; in sst_alloc_stream_mrfld() 74 sst_drv_ctx->streams[str_id].num_ch = num_ch; in sst_alloc_stream_mrfld() 78 sst_drv_ctx->tstamp + (str_id * sizeof(fw_tstamp)); in sst_alloc_stream_mrfld() 81 sst_drv_ctx->tstamp + (str_id * sizeof(fw_tstamp)); in sst_alloc_stream_mrfld() [all …]
|
H A D | sst.h | 434 int sst_realloc_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 435 int sst_pause_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 436 int sst_resume_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 437 int sst_drop_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 438 int sst_free_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 439 int sst_start_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 442 int sst_set_stream_param(int str_id, struct snd_sst_params *str_param); 443 int sst_set_metadata(int str_id, char *params); 450 int str_id, bool partial_drain); 469 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id); [all …]
|
H A D | sst_ipc.c | 252 int str_id; in process_fw_async_msg() local 266 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 267 if (str_id > 0) { in process_fw_async_msg() 271 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg() 284 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 285 if (str_id > 0) { in process_fw_async_msg() 286 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg() 305 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 306 if (str_id > 0) in process_fw_async_msg() 309 pipe_id, str_id); in process_fw_async_msg()
|
H A D | sst_pvt.c | 355 struct intel_sst_drv *sst_drv_ctx, int str_id) in sst_validate_strid() argument 357 if (str_id <= 0 || str_id > sst_drv_ctx->info.max_streams) { in sst_validate_strid() 360 str_id, sst_drv_ctx->info.max_streams); in sst_validate_strid() 368 struct intel_sst_drv *sst_drv_ctx, int str_id) in get_stream_info() argument 370 if (sst_validate_strid(sst_drv_ctx, str_id)) in get_stream_info() 372 return &sst_drv_ctx->streams[str_id]; in get_stream_info()
|
/linux/sound/soc/intel/atom/ |
H A D | sst-mfld-platform.h | 37 int str_id; member 100 int (*stream_start)(struct device *dev, unsigned int str_id); 101 int (*stream_drop)(struct device *dev, unsigned int str_id); 102 int (*stream_drain)(struct device *dev, unsigned int str_id); 103 int (*stream_partial_drain)(struct device *dev, unsigned int str_id); 104 int (*stream_pause)(struct device *dev, unsigned int str_id); 105 int (*stream_pause_release)(struct device *dev, unsigned int str_id); 107 int (*tstamp)(struct device *dev, unsigned int str_id, 109 int (*ack)(struct device *dev, unsigned int str_id, 111 int (*close)(struct device *dev, unsigned int str_id); [all …]
|
H A D | sst-mfld-platform-pcm.c | 245 stream->stream_info.str_id = str_params.stream_id; in sst_platform_alloc_stream() 325 stream->stream_info.str_id = 0; in sst_media_open() 363 int str_id; in sst_media_close() local 368 str_id = stream->stream_info.str_id; in sst_media_close() 369 if (str_id) in sst_media_close() 370 stream->ops->close(sst->dev, str_id); in sst_media_close() 379 int ret_val, str_id; in sst_media_prepare() local 382 str_id = stream->stream_info.str_id; in sst_media_prepare() 383 if (stream->stream_info.str_id) { in sst_media_prepare() 384 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare() [all …]
|
H A D | sst-mfld-platform-compress.c | 79 int ret_val = 0, str_id; in sst_platform_compr_free() local 86 str_id = stream->id; in sst_platform_compr_free() 87 if (str_id) in sst_platform_compr_free() 88 ret_val = stream->compr_ops->close(sst->dev, str_id); in sst_platform_compr_free()
|
H A D | sst-mfld-dsp.h | 217 u32 str_id:5; member 465 u8 str_id; member
|
/linux/sound/soc/sprd/ |
H A D | sprd-pcm-dma.h | 43 int (*open)(int str_id, struct sprd_compr_callback *cb); 44 int (*close)(int str_id); 45 int (*start)(int str_id); 46 int (*stop)(int str_id); 47 int (*pause)(int str_id); 48 int (*pause_release)(int str_id); 50 int (*set_params)(int str_id, struct sprd_compr_params *params);
|
/linux/samples/hid/ |
H A D | hid_mouse.c | 56 const char *str_id, *dir; in get_hid_id() local 71 str_id = dir + sizeof("0003:0001:0A37."); in get_hid_id() 72 return (int)strtol(str_id, NULL, 16); in get_hid_id()
|
H A D | hid_surface_dial.c | 69 const char *str_id, *dir; in get_hid_id() local 84 str_id = dir + sizeof("0003:0001:0A37."); in get_hid_id() 85 return (int)strtol(str_id, NULL, 16); in get_hid_id()
|
/linux/tools/testing/selftests/hid/ |
H A D | hid_common.h | 348 const char *str_id; in get_hid_id() local 363 str_id = dir->d_name + sizeof("0000:0000:0000."); in get_hid_id() 364 found = (int)strtol(str_id, NULL, 16); in get_hid_id()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_debugfs.c | 2301 char str_id[HCLGE_DBG_ID_LEN]; in hclge_dbg_dump_fd_counter() local 2325 hclge_dbg_get_func_id_str(str_id, i); in hclge_dbg_dump_fd_counter() 2327 "%s\t%llu\n", str_id, cnt); in hclge_dbg_dump_fd_counter() 2646 char content[HCLGE_DBG_INFO_LEN], str_id[HCLGE_DBG_ID_LEN]; in hclge_dbg_dump_mac_list() local 2670 result[i++] = hclge_dbg_get_func_id_str(str_id, in hclge_dbg_dump_mac_list() 2883 char content[HCLGE_DBG_VLAN_FLTR_INFO_LEN], str_id[HCLGE_DBG_ID_LEN]; in hclge_dbg_dump_vlan_filter_config() local 2917 result[j++] = hclge_dbg_get_func_id_str(str_id, i); in hclge_dbg_dump_vlan_filter_config() 2936 char str_id[HCLGE_DBG_ID_LEN], str_pvid[HCLGE_DBG_ID_LEN]; in hclge_dbg_dump_vlan_offload_config() local 2959 result[j++] = hclge_dbg_get_func_id_str(str_id, i); in hclge_dbg_dump_vlan_offload_config()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 12209 char str_id[VENDOR_ID_LEN + 1]; in bnx2x_read_fwinfo() local 12226 snprintf(str_id, VENDOR_ID_LEN + 1, "%04x", PCI_VENDOR_ID_DELL); in bnx2x_read_fwinfo() 12227 if (!strncasecmp(str_id, &vpd_data[rodi], VENDOR_ID_LEN)) { in bnx2x_read_fwinfo()
|