• Home
  • Raw
  • Download

Lines Matching refs:dfse

100 	struct snd_sof_dfsentry *dfse = file->private_data;  in probe_points_read()  local
101 struct snd_sof_dev *sdev = dfse->sdev; in probe_points_read()
140 struct snd_sof_dfsentry *dfse = file->private_data; in probe_points_write() local
141 struct snd_sof_dev *sdev = dfse->sdev; in probe_points_write()
181 struct snd_sof_dfsentry *dfse = file->private_data; in probe_points_remove_write() local
182 struct snd_sof_dev *sdev = dfse->sdev; in probe_points_remove_write()
218 struct snd_sof_dfsentry *dfse; in snd_sof_debugfs_probe_item() local
220 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_probe_item()
221 if (!dfse) in snd_sof_debugfs_probe_item()
224 dfse->type = SOF_DFSENTRY_TYPE_BUF; in snd_sof_debugfs_probe_item()
225 dfse->sdev = sdev; in snd_sof_debugfs_probe_item()
227 debugfs_create_file(name, mode, sdev->debugfs_root, dfse, fops); in snd_sof_debugfs_probe_item()
229 list_add(&dfse->list, &sdev->dfsentry_list); in snd_sof_debugfs_probe_item()
241 struct snd_sof_dfsentry *dfse, in sof_debug_ipc_flood_test() argument
305 memset(dfse->cache_buf, 0, IPC_FLOOD_TEST_RESULT_LEN); in sof_debug_ipc_flood_test()
310 snprintf(dfse->cache_buf, IPC_FLOOD_TEST_RESULT_LEN, in sof_debug_ipc_flood_test()
323 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
324 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
328 snprintf(dfse->cache_buf + strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
329 IPC_FLOOD_TEST_RESULT_LEN - strlen(dfse->cache_buf), in sof_debug_ipc_flood_test()
341 struct snd_sof_dfsentry *dfse = file->private_data; in sof_dfsentry_write() local
342 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_write()
417 ret = sof_debug_ipc_flood_test(sdev, dfse, flood_duration_test, in sof_dfsentry_write()
439 struct snd_sof_dfsentry *dfse = file->private_data; in sof_dfsentry_read() local
440 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read()
453 dfse->cache_buf) { in sof_dfsentry_read()
457 count = strlen(dfse->cache_buf); in sof_dfsentry_read()
458 size_ret = copy_to_user(buffer, dfse->cache_buf, count); in sof_dfsentry_read()
466 size = dfse->size; in sof_dfsentry_read()
486 if (pos + size + 4 < dfse->size) in sof_dfsentry_read()
494 if (dfse->type == SOF_DFSENTRY_TYPE_IOMEM) { in sof_dfsentry_read()
503 dfse->access_type == SOF_DEBUGFS_ACCESS_ALWAYS) { in sof_dfsentry_read()
504 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
508 memcpy(buf, dfse->cache_buf + pos, size); in sof_dfsentry_read()
513 dfse->access_type == SOF_DEBUGFS_ACCESS_D0_ONLY) { in sof_dfsentry_read()
520 memcpy_fromio(buf, dfse->io_mem + pos, size); in sof_dfsentry_read()
523 memcpy(buf, ((u8 *)(dfse->buf) + pos), size); in sof_dfsentry_read()
553 struct snd_sof_dfsentry *dfse; in snd_sof_debugfs_io_item() local
558 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_io_item()
559 if (!dfse) in snd_sof_debugfs_io_item()
562 dfse->type = SOF_DFSENTRY_TYPE_IOMEM; in snd_sof_debugfs_io_item()
563 dfse->io_mem = base; in snd_sof_debugfs_io_item()
564 dfse->size = size; in snd_sof_debugfs_io_item()
565 dfse->sdev = sdev; in snd_sof_debugfs_io_item()
566 dfse->access_type = access_type; in snd_sof_debugfs_io_item()
574 dfse->cache_buf = devm_kzalloc(sdev->dev, size, GFP_KERNEL); in snd_sof_debugfs_io_item()
575 if (!dfse->cache_buf) in snd_sof_debugfs_io_item()
580 debugfs_create_file(name, 0444, sdev->debugfs_root, dfse, in snd_sof_debugfs_io_item()
584 list_add(&dfse->list, &sdev->dfsentry_list); in snd_sof_debugfs_io_item()
595 struct snd_sof_dfsentry *dfse; in snd_sof_debugfs_buf_item() local
600 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_buf_item()
601 if (!dfse) in snd_sof_debugfs_buf_item()
604 dfse->type = SOF_DFSENTRY_TYPE_BUF; in snd_sof_debugfs_buf_item()
605 dfse->buf = base; in snd_sof_debugfs_buf_item()
606 dfse->size = size; in snd_sof_debugfs_buf_item()
607 dfse->sdev = sdev; in snd_sof_debugfs_buf_item()
614 dfse->cache_buf = devm_kzalloc(sdev->dev, IPC_FLOOD_TEST_RESULT_LEN, in snd_sof_debugfs_buf_item()
616 if (!dfse->cache_buf) in snd_sof_debugfs_buf_item()
620 debugfs_create_file(name, mode, sdev->debugfs_root, dfse, in snd_sof_debugfs_buf_item()
623 list_add(&dfse->list, &sdev->dfsentry_list); in snd_sof_debugfs_buf_item()