| /linux/drivers/media/test-drivers/visl/ |
| H A 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/drivers/gpu/drm/ |
| H A 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 …]
|
| H A D | drm_plane.c | 186 formats_ptr(struct drm_format_modifier_blob *blob) in formats_ptr() argument 188 return (u32 *)(((char *)blob) + blob->formats_offset); in formats_ptr() 192 modifiers_ptr(struct drm_format_modifier_blob *blob) in modifiers_ptr() argument 194 return (struct drm_format_modifier *)(((char *)blob) + blob->modifiers_offset); in modifiers_ptr() 204 struct drm_property_blob *blob; in create_in_format_blob() local 227 blob = drm_property_create_blob(dev, blob_size, NULL); in create_in_format_blob() 228 if (IS_ERR(blob)) in create_in_format_blob() 229 return blob; in create_in_format_blob() 231 blob_data = blob->data; in create_in_format_blob() 259 return blob; in create_in_format_blob() [all …]
|
| H A D | drm_writeback.c | 247 struct drm_property_blob *blob; in __drm_writeback_connector_init() local 259 blob = drm_property_create_blob(dev, n_formats * sizeof(*formats), in __drm_writeback_connector_init() 261 if (IS_ERR(blob)) { in __drm_writeback_connector_init() 262 ret = PTR_ERR(blob); in __drm_writeback_connector_init() 283 blob->base.id); in __drm_writeback_connector_init() 284 wb_connector->pixel_formats_blob_ptr = blob; in __drm_writeback_connector_init()
|
| /linux/scripts/dtc/ |
| H A 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 …]
|
| H A 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 …]
|
| H A D | fdtoverlay.c | 25 "apply a number of overlays to a base blob\n" 35 "Input base DT blob", 36 "Output DT blob", 53 * both the base blob and the overlay in apply_one() 82 "base blob does not have a '/__symbols__' node, " in apply_one() 83 "make sure you have compiled the base blob with '-@' option\n"); in apply_one() 103 char *blob = NULL; in do_fdtoverlay() 108 blob = utilfdt_read(input_filename, &buf_len); in do_fdtoverlay() 109 if (!blob) { in do_fdtoverlay() 113 if (fdt_totalsize(blob) > buf_le in do_fdtoverlay() 95 char *blob = NULL; do_fdtoverlay() local [all...] |
| H A 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, reservebu in dt_to_blob() 800 char *blob; dt_from_blob() local [all...] |
| /linux/drivers/gpu/drm/nouveau/nvkm/falcon/ |
| H A D | fw.c | 219 const struct firmware *blob; in nvkm_falcon_fw_ctor_hs() local 227 ret = nvkm_firmware_load_name(subdev, img, "", ver, &blob); in nvkm_falcon_fw_ctor_hs() 231 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs() 232 hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset); in nvkm_falcon_fw_ctor_hs() 235 blob->data + hdr->data_offset, hdr->data_size, falcon, fw); in nvkm_falcon_fw_ctor_hs() 245 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs() 246 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs() 258 ret = nvkm_falcon_fw_sign(fw, loc, hshdr->sig_prod_size, blob->data, in nvkm_falcon_fw_ctor_hs() 264 lhdr = nvfw_hs_load_header(subdev, blob->data + hshdr->hdr_offset); in nvkm_falcon_fw_ctor_hs() 280 nvkm_firmware_put(blob); in nvkm_falcon_fw_ctor_hs() [all …]
|
| /linux/security/ipe/ |
| H A 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/security/keys/trusted-keys/ |
| H A 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/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A 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 …]
|
| /linux/drivers/of/ |
| H A D | fdt.c | 69 bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 71 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 94 static void populate_properties(const void *blob, in populate_properties() argument 106 for (cur = fdt_first_property_offset(blob, offset); in populate_properties() 108 cur = fdt_next_property_offset(blob, cur)) { in populate_properties() 113 val = fdt_getprop_by_offset(blob, cur, &pname, &sz); in populate_properties() 191 static int populate_node(const void *blob, in populate_node() argument 202 pathp = fdt_get_name(blob, offset, &len); in populate_node() 226 populate_properties(blob, offset, mem, np, pathp, dryrun); in populate_node() 270 static int unflatten_dt_nodes(const void *blob, in unflatten_dt_nodes() argument [all …]
|
| /linux/drivers/staging/media/ipu3/ |
| H A 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/drivers/ata/ |
| H A 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/security/apparmor/include/ |
| H A 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/Documentation/ABI/testing/ |
| H A D | sysfs-firmware-qemu_fw_cfg | 31 The only legacy blob displayed is the fw_cfg device revision: 51 blob's 'file name' in the fw_cfg directory. 52 size The length of the blob, as given in the fw_cfg 54 key The value of the blob's selector key as given in the 57 raw The raw bytes of the blob, obtained by selecting the 59 of bytes equal to the blob size from the data 68 to give each blob a descriptive name. For example:: 85 blob names, ending in symlinks to the by_key entry for each 96 of fw_cfg blob names are always "well behaved". I.e., there is 98 a dirname component of another fw_cfg blob, in which case the
|
| H A D | sysfs-firmware-ofw | 35 Exports the FDT blob that was passed to the kernel by 37 as kexec to access the raw binary. This blob is also 39 made to the blob by the bootloader. 48 blob, and verified at late_initcall time. The sysfs 50 i.e., if the FDT blob has not been modified in the mean
|
| /linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| H A 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()
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | lut.c | 32 nv50_lut_load(struct nv50_lut *lut, int buffer, struct drm_property_blob *blob, in nv50_lut_load() argument 35 struct drm_color_lut *in = blob ? blob->data : NULL; in nv50_lut_load() 52 load(in, drm_color_lut_size(blob), mem); in nv50_lut_load()
|
| /linux/drivers/gpio/ |
| H A D | gpio-sloppy-logic-analyzer.c | 46 struct debugfs_blob_wrapper blob; member 71 u8 *la_buf = priv->blob.data; in fops_capture_set() 130 while (priv->buf_idx < priv->blob.size) { in fops_capture_set() 148 priv->blob_dent = debugfs_create_blob("sample_data", 0400, priv->debug_dir, &priv->blob); in fops_capture_set() 159 *val = priv->blob.size; in fops_buf_size_get() 175 vfree(priv->blob.data); in fops_buf_size_set() 182 priv->blob.data = p; in fops_buf_size_set() 183 priv->blob.size = val; in fops_buf_size_set()
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2_tests.py | 26 blob = self.client.seal(self.root_key, data, auth, None) 27 result = self.client.unseal(self.root_key, blob, auth, None) 55 blob = self.client.seal(self.root_key, data, auth, policy_dig) 63 result = self.client.unseal(self.root_key, blob, auth, handle) 75 blob = self.client.seal(self.root_key, data, auth, None) 77 result = self.client.unseal(self.root_key, blob, 102 blob = self.client.seal(self.root_key, data, auth, policy_dig) 116 result = self.client.unseal(self.root_key, blob, auth, handle) 135 result = self.client.unseal(self.root_key, blob, auth, handle) 152 blob = self.client.seal(self.root_key, data, auth, None)
|
| /linux/include/drm/ |
| H A D | drm_property.h | 283 struct drm_property_blob **blob, 294 bool drm_property_replace_blob(struct drm_property_blob **blob, 296 struct drm_property_blob *drm_property_blob_get(struct drm_property_blob *blob); 297 void drm_property_blob_put(struct drm_property_blob *blob);
|
| /linux/security/apparmor/ |
| H A D | match.c | 33 static struct table_header *unpack_table(char *blob, size_t bsize) in unpack_table() argument 45 th.td_id = be16_to_cpu(*(__be16 *) (blob)) - 1; in unpack_table() 48 th.td_flags = be16_to_cpu(*(__be16 *) (blob + 2)); in unpack_table() 49 th.td_lolen = be32_to_cpu(*(__be32 *) (blob + 8)); in unpack_table() 50 blob += sizeof(struct table_header); in unpack_table() 69 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table() 72 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table() 75 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table() 298 struct aa_dfa *aa_dfa_unpack(void *blob, size_t size, int flags) in aa_dfa_unpack() argument 302 char *data = blob; in aa_dfa_unpack()
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00debug.c | 581 struct debugfs_blob_wrapper *blob) in rt2x00debug_create_file_driver() argument 589 blob->data = data; in rt2x00debug_create_file_driver() 592 blob->size = strlen(blob->data); in rt2x00debug_create_file_driver() 594 debugfs_create_blob(name, 0400, intf->driver_folder, blob); in rt2x00debug_create_file_driver() 599 struct debugfs_blob_wrapper *blob) in rt2x00debug_create_file_chipset() argument 608 blob->data = data; in rt2x00debug_create_file_chipset() 630 blob->size = strlen(blob->data); in rt2x00debug_create_file_chipset() 632 debugfs_create_blob(name, 0400, intf->driver_folder, blob); in rt2x00debug_create_file_chipset()
|