Lines Matching defs:data

222 	struct sof_abi_hdr *data = cdata->data;
225 if (be->max > sizeof(ucontrol->value.bytes.data)) {
227 "error: data max %d exceeds ucontrol data array size\n",
233 if (data->size > be->max - sizeof(*data)) {
235 "error: %u bytes of control data is invalid, max is %zu\n",
236 data->size, be->max - sizeof(*data));
240 size = data->size + sizeof(*data);
243 memcpy(ucontrol->value.bytes.data, data, size);
256 struct sof_abi_hdr *data = cdata->data;
259 if (be->max > sizeof(ucontrol->value.bytes.data)) {
261 "error: data max %d exceeds ucontrol data array size\n",
267 if (data->size > be->max - sizeof(*data)) {
269 "error: data size too big %u bytes max is %zu\n",
270 data->size, be->max - sizeof(*data));
274 size = data->size + sizeof(*data);
277 memcpy(data, ucontrol->value.bytes.data, size);
308 * The beginning of bytes data contains a header from where
310 * length of data from tlvd->tlv.
317 dev_err_ratelimited(scomp->dev, "error: inconsistent TLV, data %d + header %zu > %d\n",
324 dev_err_ratelimited(scomp->dev, "error: Bytes data size %d exceeds max %d.\n",
337 if (copy_from_user(cdata->data, tlvd->tlv, header.length))
340 if (cdata->data->magic != SOF_ABI_MAGIC) {
343 cdata->data->magic);
347 if (SOF_ABI_VERSION_INCOMPATIBLE(SOF_ABI_VERSION, cdata->data->abi)) {
349 cdata->data->abi);
354 if (cdata->data->size > be->max - sizeof(const struct sof_abi_hdr)) {
355 dev_err_ratelimited(scomp->dev, "error: Mismatch in ABI data size (truncated?).\n");
399 cdata->data->magic = SOF_ABI_MAGIC;
400 cdata->data->abi = SOF_ABI_VERSION;
401 /* get all the component data from DSP */
407 /* check data size doesn't exceed max coming from topology */
408 if (cdata->data->size > be->max - sizeof(const struct sof_abi_hdr)) {
409 dev_err_ratelimited(scomp->dev, "error: user data size %d exceeds max size %zu.\n",
410 cdata->data->size,
416 data_size = cdata->data->size + sizeof(const struct sof_abi_hdr);
418 /* make sure we don't exceed size provided by user space for data */
431 if (copy_to_user(tlvd->tlv, cdata->data, data_size))
465 cdata->data->magic = SOF_ABI_MAGIC;
466 cdata->data->abi = SOF_ABI_VERSION;
468 /* check data size doesn't exceed max coming from topology */
469 if (cdata->data->size > be->max - sizeof(const struct sof_abi_hdr)) {
470 dev_err_ratelimited(scomp->dev, "error: user data size %d exceeds max size %zu.\n",
471 cdata->data->size,
476 data_size = cdata->data->size + sizeof(const struct sof_abi_hdr);
478 /* make sure we don't exceed size provided by user space for data */
487 if (copy_to_user(tlvd->tlv, cdata->data, data_size))