Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 262) sorted by relevance

1234567891011

/sof-2.7.6/test/cmocka/src/list/
Dlist_item_del.c24 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 …]
Dlist_item_append.c24 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 …]
Dlist_item_prepend.c24 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 …]
Dlist_item_is_last.c24 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/
Ddma_single_chan_domain.c44 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 …]
Ddma_multi_chan_domain.c58 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 …]
Dedf_schedule.c40 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 …]
Dschedule.c27 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/
Dimx8-host.c176 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 …]
Dbyt-host.c110 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 …]
Dhsw-host.c137 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/
Dfir_generic.c59 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/
Dcomponent.c156 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/
Dsrc_generic.c30 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/
Dschedule.h56 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 …]
Dtask.h52 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);
Dll_schedule.h26 #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/
Dedf_schedule.c40 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()
Dschedule.c25 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/
Dedf_schedule.c37 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/
Dpipeline_connection_mocks.c16 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/
Dpipeline-stream.c146 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/
Dnotifier.c33 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/
Dstring.h24 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/
Dgeneric.c41 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 …]

1234567891011