| /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-5.10/drivers/gpu/drm/ |
| D | drm_property.c | 516 * NOTE: The idea seems to have been to use this to read all the blob in drm_mode_getproperty_ioctl() 519 * read the value for a blob property. It also doesn't make a lot of in drm_mode_getproperty_ioctl() 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() 544 * drm_property_create_blob - Create new blob property 546 * @length: Length to allocate for blob data [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_property.c | 513 * NOTE: The idea seems to have been to use this to read all the blob in drm_mode_getproperty_ioctl() 516 * read the value for a blob property. It also doesn't make a lot of in drm_mode_getproperty_ioctl() 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() 541 * drm_property_create_blob - Create new blob property 543 * @length: Length to allocate for blob data [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
| D | sh_css_firmware.c | 66 struct ia_css_blob_descr *sh_css_blob_info; /* Only ISP blob info (no SP) */ 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | sh_css_firmware.c | 66 struct ia_css_blob_descr *sh_css_blob_info; /* Only ISP blob info (no SP) */ 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
| D | intel_guc_ads.c | 16 * Layout of the ADS blob allocated for the GuC: 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() [all …]
|
| /kernel/linux/linux-6.6/scripts/dtc/ |
| D | fdtoverlay.c | 25 "apply a number of overlays to a base blob\n" 37 "Input base DT blob", 38 "Output DT blob", 54 * both the base blob and the overlay in apply_one() 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() 109 "\nBase blob is incomplete (%lu / %" PRIu32 " bytes read)\n", in do_fdtoverlay() 110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay() [all …]
|
| D | fdtget.c | 104 * @param blob FDT blob 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() 132 * @param blob FDT blob 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() [all …]
|
| D | flattree.c | 350 struct data blob = empty_data; in dt_to_blob() local 362 die("Unknown device tree blob version %d\n", version); in dt_to_blob() 382 "Warning: blob size %"PRIu32" >= minimum size %d\n", in dt_to_blob() 401 * Assemble the blob: start with the header, add with alignment in dt_to_blob() 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() [all …]
|
| 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() 146 * @param blob FDT blob to write into 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() 188 * @param blob FDT blob to write into 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() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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() 280 * @blob: The parent device tree blob [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 …]
|
| /kernel/linux/linux-5.10/scripts/dtc/ |
| D | fdtget.c | 104 * @param blob FDT blob 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() 132 * @param blob FDT blob 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() [all …]
|
| D | flattree.c | 349 struct data blob = empty_data; in dt_to_blob() local 361 die("Unknown device tree blob version %d\n", version); in dt_to_blob() 381 "Warning: blob size %"PRIu32" >= minimum size %d\n", in dt_to_blob() 400 * Assemble the blob: start with the header, add with alignment in dt_to_blob() 404 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob() 405 blob = data_append_align(blob, 8); in dt_to_blob() 406 blob = data_merge(blob, reservebuf); in dt_to_blob() 407 blob = data_append_zeroes(blob, sizeof(struct fdt_reserve_entry)); in dt_to_blob() 408 blob = data_merge(blob, dtbuf); in dt_to_blob() 409 blob = data_merge(blob, strbuf); in dt_to_blob() [all …]
|
| 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() 146 * @param blob FDT blob to write into 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() 188 * @param blob FDT blob to write into 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() [all …]
|
| /kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
| D | libfdt.h | 130 * External helpers to access words from a device tree blob. They're built 197 * @fdt: FDT blob 206 * @fdt: FDT blob 221 * @fdt: FDT blob (const void *) 318 * fdt_move() relocates, if possible, the device tree blob located at 320 * with the existing device tree blob at fdt. Therefore, 341 * @fdt: pointer to the device tree blob 346 * strings block of the device tree blob at fdt, and optionally also 357 * @fdt: pointer to the device tree blob 361 * strings block of the device tree blob at fdt. [all …]
|
| /kernel/linux/linux-5.10/arch/s390/include/uapi/asm/ |
| D | pkey.h | 23 #define SECKEYBLOBSIZE 64 /* secure key blob size is always 64 bytes */ 24 #define PROTKEYBLOBSIZE 80 /* protected key blob size is always 80 bytes */ 25 #define MAXPROTKEYSIZE 64 /* a protected key blob may be up to 64 bytes */ 28 #define MINEP11AESKEYBLOBSIZE 256 /* min EP11 AES key blob size */ 29 #define MAXEP11AESKEYBLOBSIZE 320 /* max EP11 AES key blob size */ 31 /* Minimum size of a key blob */ 78 /* Struct to hold a CCA AES secure key blob */ 80 __u8 seckey[SECKEYBLOBSIZE]; /* the secure key blob */ 87 __u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ 116 struct pkey_seckey seckey; /* out: the secure key blob */ [all …]
|
| /kernel/linux/linux-6.6/arch/s390/include/uapi/asm/ |
| D | pkey.h | 23 #define SECKEYBLOBSIZE 64 /* secure key blob size is always 64 bytes */ 24 #define PROTKEYBLOBSIZE 80 /* protected key blob size is always 80 bytes */ 25 #define MAXPROTKEYSIZE 64 /* a protected key blob may be up to 64 bytes */ 28 #define MINEP11AESKEYBLOBSIZE 256 /* min EP11 AES key blob size */ 29 #define MAXEP11AESKEYBLOBSIZE 336 /* max EP11 AES key blob size */ 31 /* Minimum size of a key blob */ 83 /* Struct to hold a CCA AES secure key blob */ 85 __u8 seckey[SECKEYBLOBSIZE]; /* the secure key blob */ 92 __u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ 121 struct pkey_seckey seckey; /* out: the secure key blob */ [all …]
|
| /kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
| D | libfdt.h | 126 * These helpers access words from a device tree blob. They're 188 * @fdt: FDT blob 200 * @fdt: FDT blob 211 * @fdt: FDT blob (const void *) 305 * fdt_move() relocates, if possible, the device tree blob located at 307 * with the existing device tree blob at fdt. Therefore, 328 * @fdt: pointer to the device tree blob 333 * strings block of the device tree blob at fdt, and optionally also 344 * @fdt: pointer to the device tree blob 348 * strings block of the device tree blob at fdt. [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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/crypto/asymmetric_keys/ |
| D | tpm_parser.c | 14 const void *blob; member 19 * Note the key data of the ASN.1 blob. 27 ctx->blob = value; in tpm_note_key() 34 * Parse a TPM-encrypted private key blob. 48 return tpm_key_create(ctx.blob, ctx.blob_len); in tpm_parse() 54 * Attempt to parse a data blob for a key as a TPM private key blob. 61 * TPM 1.2 keys are max 2048 bits long, so assume the blob is no in tpm_key_preparse() 101 MODULE_DESCRIPTION("TPM private key-blob parser");
|
| /kernel/linux/linux-5.10/include/drm/ |
| D | drm_property.h | 126 * Object properties work like blob properties, but in a more 131 * Blob properties store a binary blob without any format restriction. 132 * The binary blobs are created as KMS standalone objects, and blob 133 * property instance values store the ID of their associated blob 134 * object. Blob properties are created by calling 137 * Actual blob objects to contain blob data are created using 140 * Besides the built-in limit to only accept blob objects blob 142 * blob properties exist is backwards compatibility with existing 194 * struct drm_property_blob - Blob data for &drm_property 197 * @head_global: entry on the global blob list in [all …]
|