Lines Matching refs:comp_data
535 struct mlxfw_mfa2_comp_data *comp_data; in mlxfw_mfa2_file_component_get() local
551 comp_data = kmalloc(sizeof(*comp_data) + comp_buf_size, GFP_KERNEL); in mlxfw_mfa2_file_component_get()
552 if (!comp_data) in mlxfw_mfa2_file_component_get()
554 comp_data->comp.data_size = comp_size; in mlxfw_mfa2_file_component_get()
555 comp_data->comp.index = be16_to_cpu(comp->identifier); in mlxfw_mfa2_file_component_get()
557 comp_data->buff); in mlxfw_mfa2_file_component_get()
563 if (memcmp(comp_data->buff, mlxfw_mfa2_comp_magic, in mlxfw_mfa2_file_component_get()
570 comp_data->comp.data = comp_data->buff + mlxfw_mfa2_comp_magic_len; in mlxfw_mfa2_file_component_get()
571 return &comp_data->comp; in mlxfw_mfa2_file_component_get()
573 kfree(comp_data); in mlxfw_mfa2_file_component_get()
579 const struct mlxfw_mfa2_comp_data *comp_data; in mlxfw_mfa2_file_component_put() local
581 comp_data = container_of(comp, struct mlxfw_mfa2_comp_data, comp); in mlxfw_mfa2_file_component_put()
582 kfree(comp_data); in mlxfw_mfa2_file_component_put()