/sof-2.7.6/test/cmocka/src/list/ |
D | list_item_del.c | 24 struct test_data *data = malloc(sizeof(struct test_data)); in setup() local 26 if (!data) in setup() 29 data->head = malloc(sizeof(struct list_item)); in setup() 30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup() 31 data->tail = malloc(sizeof(struct list_item)); in setup() 33 if (!data->head || !data->tail_minus_1 in setup() 34 || !data->tail) { in setup() 35 free(data->head); in setup() 36 free(data->tail_minus_1); in setup() 37 free(data->tail); in setup() [all …]
|
D | list_item_append.c | 24 struct test_data *data = malloc(sizeof(struct test_data)); in setup() local 26 if (!data) in setup() 29 data->head = malloc(sizeof(struct list_item)); in setup() 30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup() 31 data->tail = malloc(sizeof(struct list_item)); in setup() 33 if (!data->head || !data->tail_minus_1 in setup() 34 || !data->tail) { in setup() 35 free(data->head); in setup() 36 free(data->tail_minus_1); in setup() 37 free(data->tail); in setup() [all …]
|
D | list_item_prepend.c | 24 struct test_data *data = malloc(sizeof(struct test_data)); in setup() local 26 if (!data) in setup() 29 data->head = malloc(sizeof(struct list_item)); in setup() 30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup() 31 data->tail = malloc(sizeof(struct list_item)); in setup() 33 if (!data->head || !data->tail_minus_1 in setup() 34 || !data->tail) { in setup() 35 free(data->head); in setup() 36 free(data->tail_minus_1); in setup() 37 free(data->tail); in setup() [all …]
|
D | list_item_is_last.c | 24 struct test_data *data = malloc(sizeof(struct test_data)); in setup() local 26 if (!data) in setup() 29 data->head = malloc(sizeof(struct list_item)); in setup() 30 data->tail_minus_1 = malloc(sizeof(struct list_item)); in setup() 31 data->tail = malloc(sizeof(struct list_item)); in setup() 33 if (!data->head || !data->tail_minus_1 in setup() 34 || !data->tail) { in setup() 35 free(data->head); in setup() 36 free(data->tail_minus_1); in setup() 37 free(data->tail); in setup() [all …]
|
/sof-2.7.6/src/schedule/ |
D | dma_single_chan_domain.c | 44 struct dma_domain_data data[CONFIG_CORE_COUNT]; member 51 static void dma_domain_changed(void *arg, enum notify_id type, void *data); 67 dma_domain->data[dma_domain->owner].channel) in dma_chan_min_period() 68 channel = dma_domain->data[dma_domain->owner].channel; in dma_chan_min_period() 118 struct dma_domain_data *data, in dma_single_chan_domain_irq_register() argument 127 data->irq = interrupt_get_irq(irq, dma_irq_name(channel->dma)); in dma_single_chan_domain_irq_register() 128 if (data->irq < 0) { in dma_single_chan_domain_irq_register() 129 ret = data->irq; in dma_single_chan_domain_irq_register() 133 ret = interrupt_register(data->irq, handler, arg); in dma_single_chan_domain_irq_register() 137 interrupt_enable(data->irq, arg); in dma_single_chan_domain_irq_register() [all …]
|
D | dma_multi_chan_domain.c | 58 struct dma_domain_data data[PLATFORM_NUM_DMACS][PLATFORM_MAX_DMA_CHAN]; member 67 static void dma_multi_chan_domain_irq_handler(void *data) in dma_multi_chan_domain_irq_handler() argument 69 struct dma_domain_data *domain_data = data; in dma_multi_chan_domain_irq_handler() 82 static int dma_multi_chan_domain_irq_register(struct dma_domain_data *data, in dma_multi_chan_domain_irq_register() argument 92 ret = interrupt_register(data->irq, dma_multi_chan_domain_irq_handler, in dma_multi_chan_domain_irq_register() 93 data); in dma_multi_chan_domain_irq_register() 97 interrupt_enable(data->irq, data); in dma_multi_chan_domain_irq_register() 156 &dma_domain->data[i][j], in dma_multi_chan_domain_register() 161 dma_domain->data[i][j].handler = handler; in dma_multi_chan_domain_register() 162 dma_domain->data[i][j].arg = arg; in dma_multi_chan_domain_register() [all …]
|
D | edf_schedule.c | 40 static int schedule_edf_task_complete(void *data, struct task *task); 41 static int schedule_edf_task_running(void *data, struct task *task); 44 static void schedule_edf_task_run(struct task *task, void *data) in schedule_edf_task_run() argument 51 schedule_edf_task_complete(data, task); in schedule_edf_task_run() 54 schedule_edf(data); in schedule_edf_task_run() 58 static void edf_scheduler_run(void *data) in edf_scheduler_run() argument 60 struct edf_schedule_data *edf_sch = data; in edf_scheduler_run() 100 schedule_edf_task_running(data, task_next); in edf_scheduler_run() 103 static int schedule_edf_task(void *data, struct task *task, uint64_t start, in schedule_edf_task() argument 106 struct edf_schedule_data *edf_sch = data; in schedule_edf_task() [all …]
|
D | schedule.c | 27 uint16_t priority, enum task_state (*run)(void *data), in schedule_task_init() argument 28 void *data, uint16_t core, uint32_t flags) in schedule_task_init() 42 task->data = data; in schedule_task_init() 61 void scheduler_init(int type, const struct scheduler_ops *ops, void *data) in scheduler_init() argument 69 sch->data = data; in scheduler_init()
|
/sof-2.7.6/tools/fuzzer/platform/ |
D | imx8-host.c | 176 struct imx8_data *data = fuzzer->platform_data; in imx_mu_read() local 178 return *((uint64_t *)(data->bar[bar] + reg)); in imx_mu_read() 184 struct imx8_data *data = fuzzer->platform_data; in imx_mu_write() local 187 *((uint64_t *)(data->bar[bar] + reg)) = value; in imx_mu_write() 196 struct imx8_data *data = fuzzer->platform_data; in imx_mu_xcr_rmw() local 212 struct imx8_data *data = fuzzer->platform_data; in imx_mu_xsr_rmw() local 227 struct imx8_data *data = fuzzer->platform_data; in mailbox_read() local 229 memcpy(mbox_data, (void *)(data->bar[IMX8_MBOX_BAR] + offset), size); in mailbox_read() 235 struct imx8_data *data = fuzzer->platform_data; in mailbox_write() local 237 memcpy((void *)(data->bar[IMX8_MBOX_BAR] + offset), mbox_data, size); in mailbox_write() [all …]
|
D | byt-host.c | 110 struct byt_data *data = fuzzer->platform_data; in dsp_read64() local 112 return *((uint64_t *)(data->bar[bar] + reg)); in dsp_read64() 118 struct byt_data *data = fuzzer->platform_data; in dsp_write64() local 124 *((uint64_t *)(data->bar[bar] + reg)) = value; in dsp_write64() 194 struct byt_data *data = fuzzer->platform_data; in dsp_update_bits64_unlocked() local 213 struct byt_data *data = fuzzer->platform_data; in mailbox_read() local 215 memcpy(mbox_data, (void *)(data->bar[BYT_MBOX_BAR] + offset), size); in mailbox_read() 221 struct byt_data *data = fuzzer->platform_data; in mailbox_write() local 223 memcpy((void *)(data->bar[BYT_MBOX_BAR] + offset), mbox_data, size); in mailbox_write() 272 struct byt_data *data = fuzzer->platform_data; in byt_irq_thread() local [all …]
|
D | hsw-host.c | 137 struct hsw_data *data = fuzzer->platform_data; in dsp_read() local 139 return *((uint32_t *)(data->bar[bar] + reg)); in dsp_read() 145 struct hsw_data *data = fuzzer->platform_data; in dsp_write() local 151 *((uint32_t *)(data->bar[bar] + reg)) = value; in dsp_write() 218 struct hsw_data *data = fuzzer->platform_data; in dsp_update_bits_unlocked() local 237 struct hsw_data *data = fuzzer->platform_data; in mailbox_read() local 240 memcpy(mbox_data, (void *)(data->bar[HSW_MBOX_BAR] + offset), size); in mailbox_read() 246 struct hsw_data *data = fuzzer->platform_data; in mailbox_write() local 248 memcpy((void *)(data->bar[HSW_MBOX_BAR] + offset), mbox_data, size); in mailbox_write() 297 struct hsw_data *data = fuzzer->platform_data; in hsw_irq_thread() local [all …]
|
/sof-2.7.6/src/math/ |
D | fir_generic.c | 59 void fir_init_delay(struct fir_state_32x16 *fir, int32_t **data) in fir_init_delay() argument 61 fir->delay = *data; in fir_init_delay() 62 *data += fir->length; /* Point to next delay line start */ in fir_init_delay() 68 int32_t *data = &fir->delay[fir->rwi]; in fir_32x16() local 79 *data = x; in fir_32x16() 92 y += (int64_t)(*coef) * (*data); in fir_32x16() 94 data--; in fir_32x16() 103 y += (int64_t)(*coef) * (*data); in fir_32x16() 105 data--; in fir_32x16() 110 data = &fir->delay[fir->length - 1]; in fir_32x16() [all …]
|
/sof-2.7.6/src/audio/ |
D | component.c | 156 void *data; /**< pointer to data blob */ member 168 if (!blob_handler->data) in comp_free_data_blob() 171 rfree(blob_handler->data); in comp_free_data_blob() 173 blob_handler->data = NULL; in comp_free_data_blob() 193 rfree(blob_handler->data); in comp_get_data_blob() 194 blob_handler->data = blob_handler->data_new; in comp_get_data_blob() 200 if (blob_handler->data) { in comp_get_data_blob() 202 *crc = crc32(0, blob_handler->data, in comp_get_data_blob() 215 return blob_handler->data; in comp_get_data_blob() 248 blob_handler->data = rballoc(0, SOF_MEM_CAPS_RAM, size); in comp_init_data_blob() [all …]
|
/sof-2.7.6/src/audio/src/ |
D | src_generic.c | 30 int32_t *data; in fir_filter_generic() local 48 data = d - 1; in fir_filter_generic() 54 frames = fir_end - data; /* Frames until wrap */ in fir_filter_generic() 63 y0 += (int64_t)(*coef) * (*data); in fir_filter_generic() 64 data++; in fir_filter_generic() 65 y1 += (int64_t)(*coef) * (*data); in fir_filter_generic() 66 data++; in fir_filter_generic() 69 if (data == fir_end) in fir_filter_generic() 70 data = fir_start; in fir_filter_generic() 73 y0 += (int64_t)(*coef) * (*data); in fir_filter_generic() [all …]
|
/sof-2.7.6/src/include/sof/schedule/ |
D | schedule.h | 56 int (*schedule_task)(void *data, struct task *task, uint64_t start, 68 int (*schedule_task_running)(void *data, struct task *task); 79 int (*schedule_task_complete)(void *data, struct task *task); 90 int (*reschedule_task)(void *data, struct task *task, uint64_t start); 100 int (*schedule_task_cancel)(void *data, struct task *task); 110 int (*schedule_task_free)(void *data, struct task *task); 119 void (*scheduler_free)(void *data); 128 void *data; /**< pointer to private data */ member 156 return sch->data; in scheduler_get_data() 176 return sch->ops->schedule_task_running(sch->data, task); in schedule_task_running() [all …]
|
D | task.h | 52 enum task_state (*run)(void *data); /**< task's main operation */ 53 void (*complete)(void *data); /**< executed on completion */ 54 uint64_t (*get_deadline)(void *data); /**< returns current deadline */ 66 void *data; /**< custom data passed to all ops */ member 91 return task->ops.run(task->data); in task_run() 97 task->ops.complete(task->data); in task_complete() 104 return task->ops.get_deadline(task->data); in task_get_deadline() 107 enum task_state task_main_primary_core(void *data); 109 enum task_state task_main_secondary_core(void *data);
|
D | ll_schedule.h | 26 #define ll_sch_set_pdata(task, data) \ argument 27 do { (task)->priv_data = (data); } while (0) 42 uint16_t priority, enum task_state (*run)(void *data), 43 void *data, uint16_t core, uint32_t flags); 49 uint16_t priority, enum task_state (*run)(void *data), 50 void *data, uint16_t core, uint32_t flags);
|
/sof-2.7.6/src/platform/library/schedule/ |
D | edf_schedule.c | 40 static int schedule_edf_task(void *data, struct task *task, uint64_t start, in schedule_edf_task() argument 43 struct edf_schedule_data *sched = data; in schedule_edf_task() 49 task->ops.run(task->data); in schedule_edf_task() 57 const struct task_ops *ops, void *data, in schedule_task_init_edf() argument 64 data, core, flags); in schedule_task_init_edf() 88 static void edf_scheduler_free(void *data) in edf_scheduler_free() argument 90 free(data); in edf_scheduler_free() 93 static int schedule_edf_task_cancel(void *data, struct task *task) in schedule_edf_task_cancel() argument 104 static int schedule_edf_task_free(void *data, struct task *task) in schedule_edf_task_free() argument 108 task->data = NULL; in schedule_edf_task_free()
|
D | schedule.c | 25 uint16_t priority, enum task_state (*run)(void *data), in schedule_task_init() argument 26 void *data, uint16_t core, uint32_t flags) in schedule_task_init() 38 task->data = data; in schedule_task_init() 56 void scheduler_init(int type, const struct scheduler_ops *ops, void *data) in scheduler_init() argument 64 sch->data = data; in scheduler_init()
|
/sof-2.7.6/zephyr/ |
D | edf_schedule.c | 37 static int schedule_edf_task(void *data, struct task *task, uint64_t start, in schedule_edf_task() argument 51 static int schedule_edf_task_cancel(void *data, struct task *task) in schedule_edf_task_cancel() argument 63 static int schedule_edf_task_complete(void *data, struct task *task) in schedule_edf_task_complete() argument 69 static int schedule_edf_task_running(void *data, struct task *task) in schedule_edf_task_running() argument 75 static int schedule_edf_task_free(void *data, struct task *task) in schedule_edf_task_free() argument 79 task->data = NULL; in schedule_edf_task_free() 116 void *data, uint16_t core, uint32_t flags) in schedule_task_init_edf() argument 120 ret = schedule_task_init(task, uid, SOF_SCHEDULE_EDF, 0, ops->run, data, in schedule_task_init_edf() 135 void *data, uint16_t core, in schedule_task_init_edf_with_budget() argument 138 return schedule_task_init_edf(task, uid, ops, data, core, flags); in schedule_task_init_edf_with_budget()
|
/sof-2.7.6/test/cmocka/src/audio/pipeline/ |
D | pipeline_connection_mocks.c | 16 void cleanup_test_data(struct pipeline_connect_data *data) in cleanup_test_data() argument 18 list_init(&data->first->bsource_list); in cleanup_test_data() 19 list_init(&data->second->bsource_list); in cleanup_test_data() 20 list_init(&data->b1->sink_list); in cleanup_test_data() 21 list_init(&data->b1->source_list); in cleanup_test_data() 22 list_init(&data->first->bsink_list); in cleanup_test_data() 23 list_init(&data->second->bsink_list); in cleanup_test_data() 24 list_init(&data->b2->sink_list); in cleanup_test_data() 25 list_init(&data->b2->source_list); in cleanup_test_data()
|
/sof-2.7.6/src/audio/pipeline/ |
D | pipeline-stream.c | 146 struct pipeline_data data; in pipeline_copy() local 149 .comp_data = &data, in pipeline_copy() 164 data.start = start; in pipeline_copy() 165 data.p = p; in pipeline_copy() 178 struct pipeline_data data; in pipeline_trigger() local 181 .comp_data = &data, in pipeline_trigger() 201 data.start = host; in pipeline_trigger() 202 data.cmd = cmd; in pipeline_trigger() 244 struct pipeline_data data; in pipeline_get_timestamp() local 247 .comp_data = &data, in pipeline_get_timestamp() [all …]
|
/sof-2.7.6/src/lib/ |
D | notifier.c | 33 void (*cb)(void *arg, enum notify_id, void *data); 39 void (*cb)(void *arg, enum notify_id type, void *data), in notifier_register() argument 124 static void notifier_notify(const void *caller, enum notify_id type, void *data) in notifier_notify() argument 137 handle->cb(handle->receiver, type, data); in notifier_notify() 147 dcache_invalidate_region(notify_data->data, in notifier_notify_remote() 150 notify_data->data); in notifier_notify_remote() 156 void *data, uint32_t data_size) in notifier_event() argument 166 notifier_notify(caller, type, data); in notifier_event() 176 notify_data->data = data; in notifier_event() 179 dcache_writeback_region(notify_data->data, in notifier_event()
|
/sof-2.7.6/src/arch/host/include/arch/ |
D | string.h | 24 void *memset(void *dest, int data, size_t count); 26 int data, size_t count); 31 void *__vec_memset(void *dest, int data, size_t src_size); 52 int data, size_t count) in arch_memset_s() argument 60 if (!memset(dest, data, count)) in arch_memset_s()
|
/sof-2.7.6/src/audio/codec_adapter/codec/ |
D | generic.c | 41 if (!dst->data) { in codec_load_config() 43 dst->data = rballoc(0, SOF_MEM_CAPS_RAM, size); in codec_load_config() 48 rfree(dst->data); in codec_load_config() 49 dst->data = rballoc(0, SOF_MEM_CAPS_RAM, size); in codec_load_config() 51 if (!dst->data) { in codec_load_config() 57 ret = memcpy_s(dst->data, size, cfg, size); in codec_load_config() 59 ret = validate_config(dst->data); in codec_load_config() 73 if (dst->data && type == CODEC_CFG_RUNTIME) in codec_load_config() 74 rfree(dst->data); in codec_load_config() 75 dst->data = NULL; in codec_load_config() [all …]
|