Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 205) sorted by relevance

123456789

/linux/arch/powerpc/platforms/pseries/
H A Dpapr-rtas-common.c25 bool papr_rtas_blob_has_data(const struct papr_rtas_blob *blob) in papr_rtas_blob_has_data() argument
27 return blob->data && blob->len; in papr_rtas_blob_has_data()
30 void papr_rtas_blob_free(const struct papr_rtas_blob *blob) in papr_rtas_blob_free() argument
32 if (blob) { in papr_rtas_blob_free()
33 kvfree(blob->data); in papr_rtas_blob_free()
34 kfree(blob); in papr_rtas_blob_free()
47 static int papr_rtas_blob_extend(struct papr_rtas_blob *blob, in papr_rtas_blob_extend() argument
50 const size_t new_len = blob->len + len; in papr_rtas_blob_extend()
51 const size_t old_len = blob->len; in papr_rtas_blob_extend()
52 const char *old_ptr = blob->data; in papr_rtas_blob_extend()
[all …]
/linux/fs/xfs/scrub/
H A Dxfblob.c36 struct xfblob *blob; in xfblob_create() local
44 blob = kmalloc_obj(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 …]
/linux/drivers/media/test-drivers/visl/
H A Dvisl-debugfs.c43 struct visl_blob *blob; in visl_trace_bitstream() local
48 blob = kzalloc_obj(*blob); 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 Ddrm_property.c529 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_ACCOUNT); 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/drivers/staging/media/atomisp/pci/
H A Dsh_css_firmware.c81 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/scripts/dtc/
H A Dfdtput.c120 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 Dfdtget.c108 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 …]
/linux/drivers/gpu/drm/nouveau/nvkm/falcon/
H A Dfw.c219 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 Dhooks.c234 struct ipe_bdev *blob = ipe_bdev(bdev); in ipe_bdev_free_security() local
236 ipe_digest_free(rcu_access_pointer(blob->root_hash)); in ipe_bdev_free_security()
239 static void ipe_set_dmverity_roothash(struct ipe_bdev *blob, in ipe_set_dmverity_roothash() argument
245 old = rcu_replace_pointer(blob->root_hash, info, true); in ipe_set_dmverity_roothash()
253 static void ipe_set_dmverity_signature(struct ipe_bdev *blob, in ipe_set_dmverity_signature() argument
257 blob->dm_verity_signed = size > 0 && value; in ipe_set_dmverity_signature()
260 static inline void ipe_set_dmverity_signature(struct ipe_bdev *blob, in ipe_set_dmverity_signature() argument
284 struct ipe_bdev *blob = ipe_bdev(bdev); in ipe_bdev_setintegrity() local
288 ipe_set_dmverity_signature(blob, value, size); in ipe_bdev_setintegrity()
297 ipe_set_dmverity_roothash(blob, NULL); in ipe_bdev_setintegrity()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgk20a.c37 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/staging/media/ipu3/
H A Dipu3-css-fw.c19 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/tools/testing/selftests/bpf/libarena/selftests/
H A Dtest_asan_buddy.bpf.c118 volatile struct buddy_blob __arena *blob; in asan_test_buddy_blob_single() local
122 blob = buddy_alloc(&buddy, alloc_size); in asan_test_buddy_blob_single()
123 if (!blob) in asan_test_buddy_blob_single()
126 blob->mem[0] = 0xba; in asan_test_buddy_blob_single()
127 ret = asan_validate_addr(false, &blob->mem[0]); in asan_test_buddy_blob_single()
131 blob->mem[47] = 0xba; in asan_test_buddy_blob_single()
132 ret = asan_validate_addr(false, &blob->mem[47]); in asan_test_buddy_blob_single()
136 blob->oob = 0; in asan_test_buddy_blob_single()
137 ret = asan_validate_addr(true, &blob->oob); in asan_test_buddy_blob_single()
141 buddy_free(&buddy, (void __arena *)blob); in asan_test_buddy_blob_single()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c75 work1 = payload->blob; in tpm2_key_encode()
76 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode()
85 return work1 - payload->blob; in tpm2_key_encode()
106 u8 *blob; in tpm2_key_decode() local
110 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode()
118 blob = kmalloc(ctx.priv_len + ctx.pub_len + 4, GFP_KERNEL); in tpm2_key_decode()
119 if (!blob) in tpm2_key_decode()
122 *buf = blob; in tpm2_key_decode()
126 memcpy(blob, ctx.priv, ctx.priv_len); in tpm2_key_decode()
127 blob += ctx.priv_len; in tpm2_key_decode()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dga102.c42 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()
/linux/security/apparmor/include/
H A Dcred.h24 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/drivers/ata/
H A Dpata_octeon_cf.c381 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/Documentation/ABI/testing/
H A Dsysfs-firmware-qemu_fw_cfg31 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
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dos.h12 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/tools/testing/selftests/bpf/prog_tests/
H A Dsigned_loader.c234 unsigned char *blob; member
275 f->blob = malloc(f->data_sz); in gen_loader_fixture_init()
276 if (!ASSERT_OK_PTR(f->blob, "blob_alloc")) in gen_loader_fixture_init()
278 memcpy(f->blob, gopts.data, f->data_sz); in gen_loader_fixture_init()
289 free(f->blob); in gen_loader_fixture_fini()
301 r = run_gen_loader(f.gopts.insns, f.gopts.insns_sz, f.blob, in metadata_match()
388 if (ASSERT_OK(bpf_map_update_elem(map_fd, &key, f.blob, 0), in signed_unfrozen_fd_array_rejected()
480 memcpy(buf + f.gopts.insns_sz, f.blob, f.data_sz); in signed_btf_fd_array_rejected()
646 unsigned char *blob; in metadata_ctx_max_entries_ignored() local
677 blob = malloc(data_sz); in metadata_ctx_max_entries_ignored()
[all …]
/linux/rust/zerocopy/
H A DREADME.md10 https://github.com/google/zerocopy/blob/v0.8.54/README.md?plain=1
11 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-BSD
12 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-APACHE
13 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-MIT
/linux/rust/zerocopy-derive/
H A DREADME.md11 https://github.com/google/zerocopy/blob/v0.8.54/README.md?plain=1
12 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-BSD
13 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-APACHE
14 https://github.com/google/zerocopy/blob/v0.8.54/LICENSE-MIT
/linux/drivers/gpio/
H A Dgpio-sloppy-logic-analyzer.c45 struct debugfs_blob_wrapper blob; member
70 u8 *la_buf = priv->blob.data; in fops_capture_set()
129 while (priv->buf_idx < priv->blob.size) { in fops_capture_set()
147 priv->blob_dent = debugfs_create_blob("sample_data", 0400, priv->debug_dir, &priv->blob); in fops_capture_set()
158 *val = priv->blob.size; in fops_buf_size_get()
167 vfree(priv->blob.data); in fops_buf_release()
181 vfree(priv->blob.data); in fops_buf_size_set()
188 priv->blob.data = p; in fops_buf_size_set()
189 priv->blob.size = val; in fops_buf_size_set()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dlut.c32 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/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py26 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 Ddrm_color_mgmt.h86 static inline int drm_color_lut_size(const struct drm_property_blob *blob) in drm_color_lut_size() argument
88 return blob->length / sizeof(struct drm_color_lut); in drm_color_lut_size()
98 static inline int drm_color_lut32_size(const struct drm_property_blob *blob) in drm_color_lut32_size() argument
100 return blob->length / sizeof(struct drm_color_lut32); in drm_color_lut32_size()

123456789