Home
last modified time | relevance | path

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

12345678910>>...12

/linux/fs/xfs/scrub/
A Dxfblob.c36 struct xfblob *blob; in xfblob_create() local
45 if (!blob) { in xfblob_create()
50 blob->xfile = xfile; in xfblob_create()
53 *blobp = blob; in xfblob_create()
64 struct xfblob *blob) in xfblob_destroy() argument
67 kfree(blob); in xfblob_destroy()
73 struct xfblob *blob, in xfblob_load() argument
101 struct xfblob *blob, in xfblob_store() argument
127 xfile_discard(blob->xfile, blob->last_offset, sizeof(key)); in xfblob_store()
134 struct xfblob *blob, in xfblob_free() argument
[all …]
A Dxfblob.h17 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/drivers/media/test-drivers/visl/
A Dvisl-debugfs.c48 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()
75 vfree(blob->blob.data); in visl_trace_bitstream()
77 kfree(blob); in visl_trace_bitstream()
92 vfree(blob->blob.data); in visl_debugfs_clear_bitstream()
[all …]
/linux/arch/powerpc/platforms/pseries/
A Dpapr-vpd.c132 return blob->data && blob->len; in vpd_blob_has_data()
137 if (blob) { in vpd_blob_free()
138 kvfree(blob->data); in vpd_blob_free()
139 kfree(blob); in vpd_blob_free()
190 blob = kzalloc(sizeof(*blob), GFP_KERNEL_ACCOUNT); in vpd_blob_generate()
191 if (!blob) in vpd_blob_generate()
200 return blob; in vpd_blob_generate()
360 if (!blob) in papr_vpd_run_sequence()
369 return blob; in papr_vpd_run_sequence()
405 return blob; in papr_vpd_retrieve()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_property.c536 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob()
538 kvfree(blob); in drm_property_free_blob()
566 if (!blob) in drm_property_create_blob()
572 blob->data = (void *)blob + sizeof(*blob); in drm_property_create_blob()
591 return blob; in drm_property_create_blob()
603 if (!blob) in drm_property_blob_put()
635 return blob; in drm_property_blob_get()
660 return blob; in drm_property_lookup_blob()
824 if (!blob) in drm_mode_getblob_ioctl()
890 if (!blob) in drm_mode_destroyblob_ioctl()
[all …]
/linux/drivers/staging/media/atomisp/pci/
A Dsh_css_firmware.c94 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()
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()
125 bi->blob.text_size + bi->blob.icache_size + in sh_css_load_blob_info()
126 bi->blob.data_size + bi->blob.padding_size) { in sh_css_load_blob_info()
134 bd->blob = blob; in sh_css_load_blob_info()
294 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware()
[all …]
/linux/drivers/of/
A Dfdt_address.c119 ranges = fdt_getprop(blob, parent, rprop, &rlen); in fdt_translate_one()
173 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address()
178 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address()
183 parent = fdt_parent_offset(blob, node_offset); in fdt_translate_address()
189 bus->count_cells(blob, parent, &na, &ns); in fdt_translate_address()
192 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address()
198 na, ns, fdt_get_name(blob, parent, NULL)); in fdt_translate_address()
205 parent = fdt_parent_offset(blob, node_offset); in fdt_translate_address()
216 pbus->count_cells(blob, parent, &pna, &pns); in fdt_translate_address()
219 fdt_get_name(blob, node_offset, NULL)); in fdt_translate_address()
[all …]
A Dfdt.c191 static int populate_node(const void *blob, in populate_node() argument
202 pathp = fdt_get_name(blob, offset, &len); in populate_node()
366 if (!blob) { in __unflatten_device_tree()
372 pr_debug("magic: %08x\n", fdt_magic(blob)); in __unflatten_device_tree()
376 if (fdt_check_header(blob)) { in __unflatten_device_tree()
545 const void *blob = initial_boot_params; in of_scan_flat_dt() local
549 if (!blob) in of_scan_flat_dt()
556 pathp = fdt_get_name(blob, offset, NULL); in of_scan_flat_dt()
576 const void *blob = initial_boot_params; in of_scan_flat_dt_subnodes() local
579 fdt_for_each_subnode(node, blob, parent) { in of_scan_flat_dt_subnodes()
[all …]
/linux/scripts/dtc/
A Dfdtput.c126 node = fdt_path_offset(blob, node_name); in store_key_value()
132 err = fdt_setprop(blob, node, property, buf, len); in store_key_value()
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
228 blob = utilfdt_read(filename); in do_fdtput()
229 if (!blob) in do_fdtput()
248 ret = create_paths(blob, *arg); in do_fdtput()
250 ret = create_node(blob, *arg); in do_fdtput()
255 ret = utilfdt_write(filename, blob); in do_fdtput()
[all …]
A Dfdtget.c114 prop = fdt_first_property_offset(blob, node); in list_properties()
123 prop = fdt_next_property_offset(blob, prop); in list_properties()
145 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes()
148 pathp = fdt_get_name(blob, node, NULL); in list_subnodes()
200 err = list_properties(blob, node); in show_data_for_item()
204 err = list_subnodes(blob, node); in show_data_for_item()
239 char *blob; in do_fdtget() local
243 blob = utilfdt_read(filename); in do_fdtget()
244 if (!blob) in do_fdtget()
248 node = fdt_path_offset(blob, arg[i]); in do_fdtget()
[all …]
A Dfdtoverlay.c95 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 …]
A Dflattree.c405 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()
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()
800 char *blob; in dt_from_blob() local
902 blob + off_mem_rsvmap, blob + totalsize); in dt_from_blob()
903 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/falcon/
A Dfw.c217 const struct firmware *blob; in nvkm_falcon_fw_ctor_hs() local
229 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs()
278 nvkm_firmware_put(blob); in nvkm_falcon_fw_ctor_hs()
284 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs()
301 nvkm_firmware_put(blob); in nvkm_falcon_fw_ctor_hs()
313 const struct firmware *blob; in nvkm_falcon_fw_ctor_hs_v2() local
321 hdr = nvfw_bin_hdr(subdev, blob->data); in nvkm_falcon_fw_ctor_hs_v2()
324 loc = *(u32 *)(blob->data + hshdr->patch_loc); in nvkm_falcon_fw_ctor_hs_v2()
325 sig = *(u32 *)(blob->data + hshdr->patch_sig); in nvkm_falcon_fw_ctor_hs_v2()
326 cnt = *(u32 *)(blob->data + hshdr->num_sig); in nvkm_falcon_fw_ctor_hs_v2()
[all …]
/linux/security/ipe/
A Dhooks.c205 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/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dgk20a.c44 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()
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()
120 nent = (blob->size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_method()
129 struct gk20a_fw_av *av = &((struct gk20a_fw_av *)blob->data)[i]; in gk20a_gr_av_to_method()
281 struct nvkm_blob blob; in gk20a_gr_load_net() local
288 ret = load(&blob, ppack); in gk20a_gr_load_net()
[all …]
A Dga102.c248 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()
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()
312 case 49: gk20a_gr_av_to_init(&blob, &gr->sw_nonctx2); break; in ga102_gr_load()
313 case 50: gk20a_gr_av_to_init(&blob, &gr->sw_nonctx3); break; in ga102_gr_load()
[all …]
/linux/security/keys/trusted-keys/
A Dtrusted_tpm2.c84 work1 = payload->blob; in tpm2_key_encode()
94 return work1 - payload->blob; in tpm2_key_encode()
115 u8 *blob; in tpm2_key_decode() local
128 if (!blob) in tpm2_key_decode()
131 *buf = blob; in tpm2_key_decode()
135 blob += ctx.priv_len; in tpm2_key_decode()
137 memcpy(blob, ctx.pub, ctx.pub_len); in tpm2_key_decode()
394 u8 *blob, *pub; in tpm2_load_cmd() local
401 blob = payload->blob; in tpm2_load_cmd()
467 if (blob != payload->blob) in tpm2_load_cmd()
[all …]
/linux/drivers/staging/media/ipu3/
A Dipu3-css-fw.c19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary()
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()
247 void *blob = (void *)css->fwp + bi->blob.offset; in imgu_css_fw_init() local
248 size_t size = bi->blob.size; in imgu_css_fw_init()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
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()
A Dtu102.c31 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/drivers/gpu/drm/i915/display/
A Dintel_color.c1159 return blob; in create_linear_lut()
1171 return blob; in create_linear_lut()
1225 if (!blob) in i9xx_load_lut_8()
1330 if (!blob) in ilk_load_lut_8()
3219 return blob; in i9xx_read_lut_8()
3250 return blob; in i9xx_read_lut_10()
3302 return blob; in i965_read_lut_10p6()
3348 return blob; in chv_read_cgm_degamma()
3374 return blob; in chv_read_cgm_gamma()
3422 return blob; in ilk_read_lut_8()
[all …]
/linux/drivers/gpu/drm/i915/gt/uc/
A Dintel_uc_fw.c257 .blob = uc_, \
308 const struct uc_fw_blob *blob = &fw_blobs[i].blob; in __uc_fw_auto_select() local
369 if (fw_blobs[i].blob.path != fw_blobs[j].blob.path) in validate_fw_table_type()
376 fw_blobs[j].blob.major, fw_blobs[j].blob.minor, in validate_fw_table_type()
377 fw_blobs[j].blob.patch, fw_blobs[j].blob.path, in validate_fw_table_type()
379 fw_blobs[i].blob.major, fw_blobs[i].blob.minor, in validate_fw_table_type()
380 fw_blobs[i].blob.patch, fw_blobs[i].blob.path); in validate_fw_table_type()
398 if (fw_blobs[i].blob.major < fw_blobs[i - 1].blob.major) in validate_fw_table_type()
415 if (fw_blobs[i].blob.major != fw_blobs[i - 1].blob.major) in validate_fw_table_type()
419 if (fw_blobs[i].blob.minor < fw_blobs[i - 1].blob.minor) in validate_fw_table_type()
[all …]
/linux/security/apparmor/include/
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/
A Dpata_octeon_cf.c381 u16 blob; in octeon_cf_tf_read16() local
386 tf->error = blob >> 8; 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()
393 tf->lbam = blob & 0xff; in octeon_cf_tf_read16()
394 tf->lbah = blob >> 8; in octeon_cf_tf_read16()
398 tf->status = blob >> 8; in octeon_cf_tf_read16()
425 u16 blob; in octeon_cf_check_status16() local
429 return blob >> 8; in octeon_cf_check_status16()
502 u16 blob = 0; in octeon_cf_exec_command16() local
[all …]
/linux/drivers/staging/rtl8192e/rtl8192e/
A Dr8192E_firmware.c90 static bool _rtl92e_fw_prepare(struct net_device *dev, struct rt_fw_blob *blob, in _rtl92e_fw_prepare() argument
109 memset(blob->data, 0, padding); in _rtl92e_fw_prepare()
111 memset(blob->data + padding + fw->size, 0, 4); in _rtl92e_fw_prepare()
112 memcpy(blob->data + padding, fw->data, fw->size); in _rtl92e_fw_prepare()
114 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
117 for (i = padding; i < blob->size; i += 4) { in _rtl92e_fw_prepare()
118 u32 *data = (u32 *)(blob->data + i); in _rtl92e_fw_prepare()

Completed in 100 milliseconds

12345678910>>...12