| /kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
| D | visl-debugfs.c | 43 struct visl_blob *blob; in visl_trace_bitstream() local 48 blob = kzalloc(sizeof(*blob), GFP_KERNEL); in visl_trace_bitstream() 49 if (!blob) in visl_trace_bitstream() 52 blob->blob.data = vzalloc(data_sz); in visl_trace_bitstream() 53 if (!blob->blob.data) in visl_trace_bitstream() 56 blob->blob.size = data_sz; in visl_trace_bitstream() 59 memcpy(blob->blob.data, vaddr, data_sz); in visl_trace_bitstream() 62 &blob->blob); in visl_trace_bitstream() 66 blob->dentry = dentry; in visl_trace_bitstream() 69 list_add_tail(&blob->list, &ctx->dev->bitstream_blobs); in visl_trace_bitstream() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_property.c | 528 struct drm_property_blob *blob = in drm_property_free_blob() local 531 mutex_lock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 532 list_del(&blob->head_global); in drm_property_free_blob() 533 mutex_unlock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 535 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob() 537 kvfree(blob); in drm_property_free_blob() 558 struct drm_property_blob *blob; in drm_property_create_blob() local 564 blob = kvzalloc(sizeof(struct drm_property_blob)+length, GFP_KERNEL); in drm_property_create_blob() 565 if (!blob) in drm_property_create_blob() 570 INIT_LIST_HEAD(&blob->head_file); in drm_property_create_blob() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_property.c | 531 struct drm_property_blob *blob = in drm_property_free_blob() local 534 mutex_lock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 535 list_del(&blob->head_global); in drm_property_free_blob() 536 mutex_unlock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 538 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob() 540 kvfree(blob); in drm_property_free_blob() 561 struct drm_property_blob *blob; in drm_property_create_blob() local 567 blob = kvzalloc(sizeof(struct drm_property_blob)+length, GFP_KERNEL); in drm_property_create_blob() 568 if (!blob) in drm_property_create_blob() 573 INIT_LIST_HEAD(&blob->head_file); in drm_property_create_blob() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
| D | intel_guc_ads.c | 123 struct __guc_ads_blob *blob = guc->ads_blob; in __guc_ads_init() local 129 guc_policies_init(&blob->policies); in __guc_ads_init() 146 blob->ads.golden_context_lrca[engine_class] = 0; in __guc_ads_init() 147 blob->ads.eng_state_size[engine_class] = in __guc_ads_init() 154 blob->system_info.engine_enabled_masks[RENDER_CLASS] = 1; in __guc_ads_init() 155 blob->system_info.engine_enabled_masks[COPY_ENGINE_CLASS] = 1; in __guc_ads_init() 156 blob->system_info.engine_enabled_masks[VIDEO_DECODE_CLASS] = VDBOX_MASK(gt); in __guc_ads_init() 157 blob->system_info.engine_enabled_masks[VIDEO_ENHANCEMENT_CLASS] = VEBOX_MASK(gt); in __guc_ads_init() 159 blob->system_info.generic_gt_sysinfo[GUC_GENERIC_GT_SYSINFO_SLICE_ENABLED] = in __guc_ads_init() 161 blob->system_info.generic_gt_sysinfo[GUC_GENERIC_GT_SYSINFO_VDBOX_SFC_SUPPORT_MASK] = in __guc_ads_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | sh_css_firmware.c | 90 blob_data = fw_data + fw->blob.offset; in setup_binary() 94 sh_css_fw->blob.code = vmalloc(fw->blob.size); in setup_binary() 95 if (!sh_css_fw->blob.code) in setup_binary() 98 memcpy((void *)sh_css_fw->blob.code, blob_data, fw->blob.size); in setup_binary() 99 sh_css_fw->blob.data = (char *)sh_css_fw->blob.code + fw->blob.data_source; in setup_binary() 100 fw_minibuffer[binary_id].buffer = sh_css_fw->blob.code; in setup_binary() 111 const unsigned char *blob; in sh_css_load_blob_info() local 120 name = fw + bi->blob.prog_name_offset; in sh_css_load_blob_info() 121 blob = (const unsigned char *)fw + bi->blob.offset; in sh_css_load_blob_info() 124 if (bi->blob.size != in sh_css_load_blob_info() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
| D | sh_css_firmware.c | 90 blob_data = fw_data + fw->blob.offset; in setup_binary() 94 sh_css_fw->blob.code = vmalloc(fw->blob.size); in setup_binary() 95 if (!sh_css_fw->blob.code) in setup_binary() 98 memcpy((void *)sh_css_fw->blob.code, blob_data, fw->blob.size); in setup_binary() 99 sh_css_fw->blob.data = (char *)sh_css_fw->blob.code + fw->blob.data_source; in setup_binary() 100 fw_minibuffer[binary_id].buffer = sh_css_fw->blob.code; in setup_binary() 111 const unsigned char *blob; in sh_css_load_blob_info() local 120 name = fw + bi->blob.prog_name_offset; in sh_css_load_blob_info() 121 blob = (const unsigned char *)fw + bi->blob.offset; in sh_css_load_blob_info() 124 if (bi->blob.size != in sh_css_load_blob_info() [all …]
|
| /kernel/linux/linux-6.6/drivers/of/ |
| D | fdt_address.c | 40 void (*count_cells)(const void *blob, int parentoffset, 48 static void __init fdt_bus_default_count_cells(const void *blob, int parentoffset, in fdt_bus_default_count_cells() argument 54 prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL); in fdt_bus_default_count_cells() 62 prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL); in fdt_bus_default_count_cells() 109 static int __init fdt_translate_one(const void *blob, int parent, in fdt_translate_one() argument 119 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one() 163 static u64 __init fdt_translate_address(const void *blob, int node_offset) in fdt_translate_address() argument 173 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() 175 reg = fdt_getprop(blob, node_offset, "reg", &len); in fdt_translate_address() 178 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() [all …]
|
| D | fdt.c | 83 static bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 85 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 108 static void populate_properties(const void *blob, in populate_properties() argument 120 for (cur = fdt_first_property_offset(blob, offset); in populate_properties() 122 cur = fdt_next_property_offset(blob, cur)) { in populate_properties() 127 val = fdt_getprop_by_offset(blob, cur, &pname, &sz); in populate_properties() 205 static int populate_node(const void *blob, in populate_node() argument 216 pathp = fdt_get_name(blob, offset, &len); in populate_node() 240 populate_properties(blob, offset, mem, np, pathp, dryrun); in populate_node() 284 static int unflatten_dt_nodes(const void *blob, in unflatten_dt_nodes() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/of/ |
| D | fdt_address.c | 40 void (*count_cells)(const void *blob, int parentoffset, 48 static void __init fdt_bus_default_count_cells(const void *blob, int parentoffset, in fdt_bus_default_count_cells() argument 54 prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL); in fdt_bus_default_count_cells() 62 prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL); in fdt_bus_default_count_cells() 109 static int __init fdt_translate_one(const void *blob, int parent, in fdt_translate_one() argument 119 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one() 163 static u64 __init fdt_translate_address(const void *blob, int node_offset) in fdt_translate_address() argument 173 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() 175 reg = fdt_getprop(blob, node_offset, "reg", &len); in fdt_translate_address() 178 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() [all …]
|
| D | fdt.c | 82 static bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 84 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 107 static void populate_properties(const void *blob, in populate_properties() argument 119 for (cur = fdt_first_property_offset(blob, offset); in populate_properties() 121 cur = fdt_next_property_offset(blob, cur)) { in populate_properties() 126 val = fdt_getprop_by_offset(blob, cur, &pname, &sz); in populate_properties() 208 static bool populate_node(const void *blob, in populate_node() argument 219 pathp = fdt_get_name(blob, offset, &l); in populate_node() 243 populate_properties(blob, offset, mem, np, pathp, dryrun); in populate_node() 287 static int unflatten_dt_nodes(const void *blob, in unflatten_dt_nodes() argument [all …]
|
| /kernel/linux/linux-6.6/scripts/dtc/ |
| D | fdtput.c | 120 static int store_key_value(void *blob, const char *node_name, in store_key_value() argument 126 node = fdt_path_offset(blob, node_name); in store_key_value() 132 err = fdt_setprop(blob, node, property, buf, len); in store_key_value() 150 static int create_paths(void *blob, const char *in_path) in create_paths() argument 166 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 169 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths() 192 static int create_node(void *blob, const char *node_name) in create_node() argument 205 node = fdt_path_offset(blob, node_name); in create_node() 212 node = fdt_add_subnode(blob, node, p + 1); in create_node() 225 char *blob; in do_fdtput() local [all …]
|
| D | fdtget.c | 108 static int list_properties(const void *blob, int node) in list_properties() argument 114 prop = fdt_first_property_offset(blob, node); in list_properties() 119 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties() 120 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties() 123 prop = fdt_next_property_offset(blob, prop); in list_properties() 136 static int list_subnodes(const void *blob, int node) in list_subnodes() argument 145 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes() 148 pathp = fdt_get_name(blob, node, NULL); in list_subnodes() 192 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument 200 err = list_properties(blob, node); in show_data_for_item() [all …]
|
| D | fdtoverlay.c | 97 char *blob = NULL; in do_fdtoverlay() local 102 blob = utilfdt_read(input_filename, &buf_len); in do_fdtoverlay() 103 if (!blob) { in do_fdtoverlay() 107 if (fdt_totalsize(blob) > buf_len) { in do_fdtoverlay() 110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay() 135 buf_len = fdt_totalsize(blob); in do_fdtoverlay() 139 blob = apply_one(blob, ovblob[i], &buf_len, argv[i]); in do_fdtoverlay() 140 if (!blob) in do_fdtoverlay() 144 fdt_pack(blob); in do_fdtoverlay() 145 ret = utilfdt_write(output_filename, blob); in do_fdtoverlay() [all …]
|
| /kernel/linux/linux-5.10/scripts/dtc/ |
| D | fdtput.c | 120 static int store_key_value(void *blob, const char *node_name, in store_key_value() argument 126 node = fdt_path_offset(blob, node_name); in store_key_value() 132 err = fdt_setprop(blob, node, property, buf, len); in store_key_value() 150 static int create_paths(void *blob, const char *in_path) in create_paths() argument 166 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 169 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths() 192 static int create_node(void *blob, const char *node_name) in create_node() argument 205 node = fdt_path_offset(blob, node_name); in create_node() 212 node = fdt_add_subnode(blob, node, p + 1); in create_node() 225 char *blob; in do_fdtput() local [all …]
|
| D | fdtget.c | 108 static int list_properties(const void *blob, int node) in list_properties() argument 114 prop = fdt_first_property_offset(blob, node); in list_properties() 119 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties() 120 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties() 123 prop = fdt_next_property_offset(blob, prop); in list_properties() 136 static int list_subnodes(const void *blob, int node) in list_subnodes() argument 145 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes() 148 pathp = fdt_get_name(blob, node, NULL); in list_subnodes() 192 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument 200 err = list_properties(blob, node); in show_data_for_item() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/falcon/ |
| D | fw.c | 210 const struct firmware *blob; in nvkm_falcon_fw_ctor_hs() local 218 ret = nvkm_firmware_load_name(subdev, img, "", ver, &blob); in nvkm_falcon_fw_ctor_hs() 222 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs() 223 hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs() 226 blob->data + hdr->data_offset, hdr->data_size, falcon, fw); in nvkm_falcon_fw_ctor_hs() 236 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs() 237 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs() 249 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size, blob->data, in nvkm_falcon_fw_ctor_hs() 255 lhdr = nvfw_hs_load_header(subdev, blob->data + hshdr->hdr_offset); in nvkm_falcon_fw_ctor_hs() 271 nvkm_firmware_put(blob); in nvkm_falcon_fw_ctor_hs() [all …]
|
| /kernel/linux/linux-6.6/security/keys/trusted-keys/ |
| D | trusted_tpm2.c | 79 work1 = payload->blob; in tpm2_key_encode() 80 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode() 85 return work1 - payload->blob; in tpm2_key_encode() 102 u8 *blob; in tpm2_key_decode() local 106 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode() 114 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode() 115 if (!blob) in tpm2_key_decode() 118 *buf = blob; in tpm2_key_decode() 121 memcpy(blob, ctx.priv, ctx.priv_len); in tpm2_key_decode() 122 blob += ctx.priv_len; in tpm2_key_decode() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| D | gp102.c | 39 struct nvkm_blob *blob = &fb->vpr_scrubber; in gp102_fb_vpr_scrub() local 49 hsbin_hdr = nvfw_bin_hdr(subdev, blob->data); in gp102_fb_vpr_scrub() 50 fw_hdr = nvfw_hs_header(subdev, blob->data + hsbin_hdr->header_offset); in gp102_fb_vpr_scrub() 51 lhdr = nvfw_hs_load_header(subdev, blob->data + fw_hdr->hdr_offset); in gp102_fb_vpr_scrub() 52 scrub_data = blob->data + hsbin_hdr->data_offset; in gp102_fb_vpr_scrub() 54 patch_loc = *(u32 *)(blob->data + fw_hdr->patch_loc); in gp102_fb_vpr_scrub() 55 patch_sig = *(u32 *)(blob->data + fw_hdr->patch_sig); in gp102_fb_vpr_scrub() 58 blob->data + fw_hdr->sig_dbg_offset + patch_sig, in gp102_fb_vpr_scrub() 62 blob->data + fw_hdr->sig_prod_offset + patch_sig, in gp102_fb_vpr_scrub()
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| D | gk20a.c | 37 gk20a_gr_av_to_init_(struct nvkm_blob *blob, u8 count, u32 pitch, struct gf100_gr_pack **ppack) in gk20a_gr_av_to_init_() argument 44 nent = (blob->size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_init_() 54 struct gk20a_fw_av *av = &((struct gk20a_fw_av *)blob->data)[i]; in gk20a_gr_av_to_init_() 67 gk20a_gr_av_to_init(struct nvkm_blob *blob, struct gf100_gr_pack **ppack) in gk20a_gr_av_to_init() argument 69 return gk20a_gr_av_to_init_(blob, 1, 1, ppack); in gk20a_gr_av_to_init() 80 gk20a_gr_aiv_to_init(struct nvkm_blob *blob, struct gf100_gr_pack **ppack) in gk20a_gr_aiv_to_init() argument 87 nent = (blob->size / sizeof(struct gk20a_fw_aiv)); in gk20a_gr_aiv_to_init() 97 struct gk20a_fw_aiv *av = &((struct gk20a_fw_aiv *)blob->data)[i]; in gk20a_gr_aiv_to_init() 110 gk20a_gr_av_to_method(struct nvkm_blob *blob, struct gf100_gr_pack **ppack) in gk20a_gr_av_to_method() argument 120 nent = (blob->size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_method() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/ipu3/ |
| D | ipu3-css-fw.c | 19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary() 150 const char *name = (void *)css->fwp + bi->blob.prog_name_offset; in imgu_css_fw_init() 153 if (bi->blob.prog_name_offset >= css->fw->size) in imgu_css_fw_init() 155 len = strnlen(name, css->fw->size - bi->blob.prog_name_offset); in imgu_css_fw_init() 156 if (len + 1 > css->fw->size - bi->blob.prog_name_offset || in imgu_css_fw_init() 160 if (bi->blob.size != bi->blob.text_size + bi->blob.icache_size in imgu_css_fw_init() 161 + bi->blob.data_size + bi->blob.padding_size) in imgu_css_fw_init() 163 if (bi->blob.offset + bi->blob.size > css->fw->size) in imgu_css_fw_init() 218 if (bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_PARAM] in imgu_css_fw_init() 221 bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_CONFIG] in imgu_css_fw_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/ipu3/ |
| D | ipu3-css-fw.c | 19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary() 148 const char *name = (void *)css->fwp + bi->blob.prog_name_offset; in imgu_css_fw_init() 151 if (bi->blob.prog_name_offset >= css->fw->size) in imgu_css_fw_init() 153 len = strnlen(name, css->fw->size - bi->blob.prog_name_offset); in imgu_css_fw_init() 154 if (len + 1 > css->fw->size - bi->blob.prog_name_offset || in imgu_css_fw_init() 158 if (bi->blob.size != bi->blob.text_size + bi->blob.icache_size in imgu_css_fw_init() 159 + bi->blob.data_size + bi->blob.padding_size) in imgu_css_fw_init() 161 if (bi->blob.offset + bi->blob.size > css->fw->size) in imgu_css_fw_init() 216 if (bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_PARAM] in imgu_css_fw_init() 219 bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_CONFIG] in imgu_css_fw_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| D | gk20a.c | 41 struct nvkm_blob blob; in gk20a_gr_av_to_init() local 48 ret = nvkm_firmware_load_blob(subdev, path, name, ver, &blob); in gk20a_gr_av_to_init() 52 nent = (blob.size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_init() 64 struct gk20a_fw_av *av = &((struct gk20a_fw_av *)blob.data)[i]; in gk20a_gr_av_to_init() 75 nvkm_blob_dtor(&blob); in gk20a_gr_av_to_init() 91 struct nvkm_blob blob; in gk20a_gr_aiv_to_init() local 98 ret = nvkm_firmware_load_blob(subdev, path, name, ver, &blob); in gk20a_gr_aiv_to_init() 102 nent = (blob.size / sizeof(struct gk20a_fw_aiv)); in gk20a_gr_aiv_to_init() 114 struct gk20a_fw_aiv *av = &((struct gk20a_fw_aiv *)blob.data)[i]; in gk20a_gr_aiv_to_init() 125 nvkm_blob_dtor(&blob); in gk20a_gr_aiv_to_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_color.c | 352 const struct drm_property_blob *blob) in chv_load_cgm_csc() argument 355 const struct drm_color_ctm *ctm = blob->data; in chv_load_cgm_csc() 540 const struct drm_property_blob *blob) in i9xx_load_lut_8() argument 547 if (!blob) in i9xx_load_lut_8() 550 lut = blob->data; in i9xx_load_lut_8() 569 const struct drm_property_blob *blob) in i965_load_lut_10p6() argument 572 const struct drm_color_lut *lut = blob->data; in i965_load_lut_10p6() 573 int i, lut_size = drm_color_lut_size(blob); in i965_load_lut_10p6() 606 const struct drm_property_blob *blob) in ilk_load_lut_8() argument 613 if (!blob) in ilk_load_lut_8() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_color.c | 1088 struct drm_property_blob *blob; in create_linear_lut() local 1092 blob = drm_property_create_blob(&i915->drm, in create_linear_lut() 1095 if (IS_ERR(blob)) in create_linear_lut() 1096 return blob; in create_linear_lut() 1098 lut = blob->data; in create_linear_lut() 1108 return blob; in create_linear_lut() 1155 const struct drm_property_blob *blob) in i9xx_load_lut_8() argument 1162 if (!blob) in i9xx_load_lut_8() 1165 lut = blob->data; in i9xx_load_lut_8() 1173 const struct drm_property_blob *blob) in i9xx_load_lut_10() argument [all …]
|
| /kernel/linux/linux-6.6/security/apparmor/include/ |
| D | cred.h | 24 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in cred_label() local 26 AA_BUG(!blob); in cred_label() 27 return *blob; in cred_label() 33 struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred; in set_cred_label() local 35 AA_BUG(!blob); in set_cred_label() 36 *blob = label; in set_cred_label()
|