/linux-6.14.4/fs/xfs/scrub/ |
D | xfblob.c | 36 struct xfblob *blob; in xfblob_create() local 44 blob = kmalloc(sizeof(struct xfblob), XCHK_GFP_FLAGS); in xfblob_create() 45 if (!blob) { in xfblob_create() 50 blob->xfile = xfile; in xfblob_create() 51 blob->last_offset = PAGE_SIZE; in xfblob_create() 53 *blobp = blob; in xfblob_create() 64 struct xfblob *blob) in xfblob_destroy() argument 66 xfile_destroy(blob->xfile); in xfblob_destroy() 67 kfree(blob); in xfblob_destroy() 73 struct xfblob *blob, in xfblob_load() argument [all …]
|
D | xfblob.h | 17 void xfblob_destroy(struct xfblob *blob); 18 int xfblob_load(struct xfblob *blob, xfblob_cookie cookie, void *ptr, 20 int xfblob_store(struct xfblob *blob, xfblob_cookie *cookie, const void *ptr, 22 int xfblob_free(struct xfblob *blob, xfblob_cookie cookie); 23 unsigned long long xfblob_bytes(struct xfblob *blob); 24 void xfblob_truncate(struct xfblob *blob); 28 struct xfblob *blob, in xfblob_storename() argument 32 return xfblob_store(blob, cookie, xname->name, xname->len); in xfblob_storename() 37 struct xfblob *blob, in xfblob_loadname() argument 42 int ret = xfblob_load(blob, cookie, (void *)xname->name, size); in xfblob_loadname()
|
/linux-6.14.4/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 …]
|
/linux-6.14.4/arch/powerpc/platforms/pseries/ |
D | papr-vpd.c | 130 static bool vpd_blob_has_data(const struct vpd_blob *blob) in vpd_blob_has_data() argument 132 return blob->data && blob->len; in vpd_blob_has_data() 135 static void vpd_blob_free(const struct vpd_blob *blob) in vpd_blob_free() argument 137 if (blob) { in vpd_blob_free() 138 kvfree(blob->data); in vpd_blob_free() 139 kfree(blob); in vpd_blob_free() 152 static int vpd_blob_extend(struct vpd_blob *blob, const char *data, size_t len) in vpd_blob_extend() argument 154 const size_t new_len = blob->len + len; in vpd_blob_extend() 155 const size_t old_len = blob->len; in vpd_blob_extend() 156 const char *old_ptr = blob->data; in vpd_blob_extend() [all …]
|
/linux-6.14.4/drivers/gpu/drm/ |
D | drm_property.c | 529 struct drm_property_blob *blob = in drm_property_free_blob() local 532 mutex_lock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 533 list_del(&blob->head_global); in drm_property_free_blob() 534 mutex_unlock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob() 536 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob() 538 kvfree(blob); in drm_property_free_blob() 559 struct drm_property_blob *blob; in drm_property_create_blob() local 565 blob = kvzalloc(sizeof(struct drm_property_blob)+length, GFP_KERNEL); in drm_property_create_blob() 566 if (!blob) in drm_property_create_blob() 571 INIT_LIST_HEAD(&blob->head_file); in drm_property_create_blob() [all …]
|
/linux-6.14.4/drivers/staging/media/atomisp/pci/ |
D | sh_css_firmware.c | 81 blob_data = fw_data + fw->blob.offset; in setup_binary() 85 sh_css_fw->blob.code = vmalloc(fw->blob.size); in setup_binary() 86 if (!sh_css_fw->blob.code) in setup_binary() 89 memcpy((void *)sh_css_fw->blob.code, blob_data, fw->blob.size); in setup_binary() 90 sh_css_fw->blob.data = (char *)sh_css_fw->blob.code + fw->blob.data_source; in setup_binary() 91 fw_minibuffer[binary_id].buffer = sh_css_fw->blob.code; in setup_binary() 102 const unsigned char *blob; in sh_css_load_blob_info() local 111 name = fw + bi->blob.prog_name_offset; in sh_css_load_blob_info() 112 blob = (const unsigned char *)fw + bi->blob.offset; in sh_css_load_blob_info() 115 if (bi->blob.size != in sh_css_load_blob_info() [all …]
|
/linux-6.14.4/drivers/of/ |
D | fdt_address.c | 27 void (*count_cells)(const void *blob, int parentoffset, 35 static void __init fdt_bus_default_count_cells(const void *blob, int parentoffset, in fdt_bus_default_count_cells() argument 41 prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL); in fdt_bus_default_count_cells() 49 prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL); in fdt_bus_default_count_cells() 96 static int __init fdt_translate_one(const void *blob, int parent, in fdt_translate_one() argument 106 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one() 150 static u64 __init fdt_translate_address(const void *blob, int node_offset) in fdt_translate_address() argument 160 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() 162 reg = fdt_getprop(blob, node_offset, "reg", &len); in fdt_translate_address() 165 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address() [all …]
|
D | fdt.c | 68 bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 70 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 93 static void populate_properties(const void *blob, in populate_properties() argument 105 for (cur = fdt_first_property_offset(blob, offset); in populate_properties() 107 cur = fdt_next_property_offset(blob, cur)) { in populate_properties() 112 val = fdt_getprop_by_offset(blob, cur, &pname, &sz); in populate_properties() 190 static int populate_node(const void *blob, in populate_node() argument 201 pathp = fdt_get_name(blob, offset, &len); in populate_node() 225 populate_properties(blob, offset, mem, np, pathp, dryrun); in populate_node() 269 static int unflatten_dt_nodes(const void *blob, in unflatten_dt_nodes() argument [all …]
|
/linux-6.14.4/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 | 95 char *blob = NULL; in do_fdtoverlay() local 100 blob = utilfdt_read(input_filename, &buf_len); in do_fdtoverlay() 101 if (!blob) { in do_fdtoverlay() 105 if (fdt_totalsize(blob) > buf_len) { in do_fdtoverlay() 108 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay() 133 buf_len = fdt_totalsize(blob); in do_fdtoverlay() 137 blob = apply_one(blob, ovblob[i], &buf_len, argv[i]); in do_fdtoverlay() 138 if (!blob) in do_fdtoverlay() 142 fdt_pack(blob); in do_fdtoverlay() 143 ret = utilfdt_write(output_filename, blob); in do_fdtoverlay() [all …]
|
D | flattree.c | 350 struct data blob = empty_data; in dt_to_blob() local 405 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob() 406 blob = data_append_align(blob, 8); in dt_to_blob() 407 blob = data_merge(blob, reservebuf); in dt_to_blob() 408 blob = data_append_zeroes(blob, sizeof(struct fdt_reserve_entry)); in dt_to_blob() 409 blob = data_merge(blob, dtbuf); in dt_to_blob() 410 blob = data_merge(blob, strbuf); in dt_to_blob() 416 blob = data_append_zeroes(blob, padlen); in dt_to_blob() 418 if (fwrite(blob.val, blob.len, 1, f) != 1) { in dt_to_blob() 430 data_free(blob); in dt_to_blob() [all …]
|
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/falcon/ |
D | fw.c | 217 const struct firmware *blob; in nvkm_falcon_fw_ctor_hs() local 225 ret = nvkm_firmware_load_name(subdev, img, "", ver, &blob); in nvkm_falcon_fw_ctor_hs() 229 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs() 230 hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs() 233 blob->data + hdr->data_offset, hdr->data_size, falcon, fw); in nvkm_falcon_fw_ctor_hs() 243 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs() 244 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs() 256 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size, blob->data, in nvkm_falcon_fw_ctor_hs() 262 lhdr = nvfw_hs_load_header(subdev, blob->data + hshdr->hdr_offset); in nvkm_falcon_fw_ctor_hs() 278 nvkm_firmware_put(blob); in nvkm_falcon_fw_ctor_hs() [all …]
|
/linux-6.14.4/security/ipe/ |
D | hooks.c | 205 struct ipe_bdev *blob = ipe_bdev(bdev); in ipe_bdev_free_security() local 207 ipe_digest_free(blob->root_hash); in ipe_bdev_free_security() 211 static void ipe_set_dmverity_signature(struct ipe_bdev *blob, in ipe_set_dmverity_signature() argument 215 blob->dm_verity_signed = size > 0 && value; in ipe_set_dmverity_signature() 218 static inline void ipe_set_dmverity_signature(struct ipe_bdev *blob, in ipe_set_dmverity_signature() argument 242 struct ipe_bdev *blob = ipe_bdev(bdev); in ipe_bdev_setintegrity() local 246 ipe_set_dmverity_signature(blob, value, size); in ipe_bdev_setintegrity() 255 ipe_digest_free(blob->root_hash); in ipe_bdev_setintegrity() 256 blob->root_hash = NULL; in ipe_bdev_setintegrity() 276 ipe_digest_free(blob->root_hash); in ipe_bdev_setintegrity() [all …]
|
/linux-6.14.4/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 …]
|
D | ga102.c | 241 ga102_gr_av64_to_init(struct nvkm_blob *blob, struct gf100_gr_pack **ppack) in ga102_gr_av64_to_init() argument 248 nent = (blob->size / sizeof(struct netlist_av64)); in ga102_gr_av64_to_init() 259 struct netlist_av64 *av = &((struct netlist_av64 *)blob->data)[i]; in ga102_gr_av64_to_init() 293 struct nvkm_blob blob = { in ga102_gr_load() local 306 case 4: gk20a_gr_av_to_init(&blob, &gr->bundle); break; in ga102_gr_load() 307 case 5: gk20a_gr_aiv_to_init(&blob, &gr->sw_ctx); break; in ga102_gr_load() 308 case 7: gk20a_gr_av_to_method(&blob, &gr->method); break; in ga102_gr_load() 309 case 28: tu102_gr_av_to_init_veid(&blob, &gr->bundle_veid); break; in ga102_gr_load() 310 case 34: ga102_gr_av64_to_init(&blob, &gr->bundle64); break; in ga102_gr_load() 311 case 48: gk20a_gr_av_to_init(&blob, &gr->sw_nonctx1); break; in ga102_gr_load() [all …]
|
/linux-6.14.4/security/keys/trusted-keys/ |
D | trusted_tpm2.c | 84 work1 = payload->blob; in tpm2_key_encode() 85 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode() 94 return work1 - payload->blob; in tpm2_key_encode() 115 u8 *blob; in tpm2_key_decode() local 119 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode() 127 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode() 128 if (!blob) in tpm2_key_decode() 131 *buf = blob; in tpm2_key_decode() 134 memcpy(blob, ctx.priv, ctx.priv_len); in tpm2_key_decode() 135 blob += ctx.priv_len; in tpm2_key_decode() [all …]
|
/linux-6.14.4/drivers/staging/media/ipu3/ |
D | ipu3-css-fw.c | 19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary() 152 const char *name = (void *)css->fwp + bi->blob.prog_name_offset; in imgu_css_fw_init() 155 if (bi->blob.prog_name_offset >= css->fw->size) in imgu_css_fw_init() 157 len = strnlen(name, css->fw->size - bi->blob.prog_name_offset); in imgu_css_fw_init() 158 if (len + 1 > css->fw->size - bi->blob.prog_name_offset || in imgu_css_fw_init() 162 if (bi->blob.size != bi->blob.text_size + bi->blob.icache_size in imgu_css_fw_init() 163 + bi->blob.data_size + bi->blob.padding_size) in imgu_css_fw_init() 165 if (bi->blob.offset + bi->blob.size > css->fw->size) in imgu_css_fw_init() 220 if (bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_PARAM] in imgu_css_fw_init() 223 bi->blob.memory_offsets.offsets[IMGU_ABI_PARAM_CLASS_CONFIG] in imgu_css_fw_init() [all …]
|
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
D | ga102.c | 42 ga102_gsp_booter_ctor(struct nvkm_gsp *gsp, const char *name, const struct firmware *blob, in ga102_gsp_booter_ctor() argument 53 hdr = nvfw_bin_hdr(subdev, blob->data); in ga102_gsp_booter_ctor() 54 hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset); in ga102_gsp_booter_ctor() 55 meta = (u32 *)(blob->data + hshdr->meta_data_offset); in ga102_gsp_booter_ctor() 56 loc = *(u32 *)(blob->data + hshdr->patch_loc); in ga102_gsp_booter_ctor() 57 sig = *(u32 *)(blob->data + hshdr->patch_sig); in ga102_gsp_booter_ctor() 58 cnt = *(u32 *)(blob->data + hshdr->num_sig); in ga102_gsp_booter_ctor() 61 blob->data + hdr->data_offset, hdr->data_size, falcon, fw); in ga102_gsp_booter_ctor() 65 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size / cnt, blob->data, in ga102_gsp_booter_ctor() 70 lhdr = nvfw_hs_load_header_v2(subdev, blob->data + hshdr->header_offset); in ga102_gsp_booter_ctor()
|
D | tu102.c | 31 tu102_gsp_booter_ctor(struct nvkm_gsp *gsp, const char *name, const struct firmware *blob, in tu102_gsp_booter_ctor() argument 42 hdr = nvfw_bin_hdr(subdev, blob->data); in tu102_gsp_booter_ctor() 43 hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset); in tu102_gsp_booter_ctor() 44 loc = *(u32 *)(blob->data + hshdr->patch_loc); in tu102_gsp_booter_ctor() 45 sig = *(u32 *)(blob->data + hshdr->patch_sig); in tu102_gsp_booter_ctor() 46 cnt = *(u32 *)(blob->data + hshdr->num_sig); in tu102_gsp_booter_ctor() 49 blob->data + hdr->data_offset, hdr->data_size, falcon, fw); in tu102_gsp_booter_ctor() 53 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size / cnt, blob->data, in tu102_gsp_booter_ctor() 58 lhdr = nvfw_hs_load_header_v2(subdev, blob->data + hshdr->header_offset); in tu102_gsp_booter_ctor()
|
/linux-6.14.4/drivers/gpu/drm/i915/display/ |
D | intel_color.c | 1176 struct drm_property_blob *blob; in create_linear_lut() local 1180 blob = drm_property_create_blob(display->drm, in create_linear_lut() 1183 if (IS_ERR(blob)) in create_linear_lut() 1184 return blob; in create_linear_lut() 1186 lut = blob->data; in create_linear_lut() 1196 return blob; in create_linear_lut() 1243 const struct drm_property_blob *blob) in i9xx_load_lut_8() argument 1250 if (!blob) in i9xx_load_lut_8() 1253 lut = blob->data; in i9xx_load_lut_8() 1261 const struct drm_property_blob *blob) in i9xx_load_lut_10() argument [all …]
|
/linux-6.14.4/drivers/gpu/drm/i915/gt/uc/ |
D | intel_uc_fw.c | 250 const struct uc_fw_blob blob; member 257 .blob = uc_, \ 308 const struct uc_fw_blob *blob = &fw_blobs[i].blob; in __uc_fw_auto_select() local 322 if (uc_fw->file_selected.path == blob->path) in __uc_fw_auto_select() 328 uc_fw->file_selected.path = blob->path; in __uc_fw_auto_select() 329 uc_fw->file_wanted.path = blob->path; in __uc_fw_auto_select() 330 uc_fw->file_wanted.ver.major = blob->major; in __uc_fw_auto_select() 331 uc_fw->file_wanted.ver.minor = blob->minor; in __uc_fw_auto_select() 332 uc_fw->file_wanted.ver.patch = blob->patch; in __uc_fw_auto_select() 333 uc_fw->has_gsc_headers = blob->has_gsc_headers; in __uc_fw_auto_select() [all …]
|
/linux-6.14.4/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()
|
/linux-6.14.4/drivers/ata/ |
D | pata_octeon_cf.c | 381 u16 blob; in octeon_cf_tf_read16() local 385 blob = __raw_readw(base + 0xc); in octeon_cf_tf_read16() 386 tf->error = blob >> 8; in octeon_cf_tf_read16() 388 blob = __raw_readw(base + 2); in octeon_cf_tf_read16() 389 tf->nsect = blob & 0xff; in octeon_cf_tf_read16() 390 tf->lbal = blob >> 8; in octeon_cf_tf_read16() 392 blob = __raw_readw(base + 4); in octeon_cf_tf_read16() 393 tf->lbam = blob & 0xff; in octeon_cf_tf_read16() 394 tf->lbah = blob >> 8; in octeon_cf_tf_read16() 396 blob = __raw_readw(base + 6); in octeon_cf_tf_read16() [all …]
|
/linux-6.14.4/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | os.h | 12 nvkm_blob_dtor(struct nvkm_blob *blob) in nvkm_blob_dtor() argument 14 kfree(blob->data); in nvkm_blob_dtor() 15 blob->data = NULL; in nvkm_blob_dtor() 16 blob->size = 0; in nvkm_blob_dtor()
|