Home
last modified time | relevance | path

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

123456789

/linux/drivers/gpu/drm/
A Ddrm_property.c535 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob()
537 kvfree(blob); in drm_property_free_blob()
565 if (!blob) in drm_property_create_blob()
571 blob->data = (void *)blob + sizeof(*blob); in drm_property_create_blob()
590 return blob; in drm_property_create_blob()
602 if (!blob) in drm_property_blob_put()
634 return blob; in drm_property_blob_get()
659 return blob; in drm_property_lookup_blob()
765 if (!blob) in drm_mode_getblob_ioctl()
831 if (!blob) in drm_mode_destroyblob_ioctl()
[all …]
A Ddrm_writeback.c179 struct drm_property_blob *blob; in drm_writeback_connector_init() local
187 blob = drm_property_create_blob(dev, n_formats * sizeof(*formats), in drm_writeback_connector_init()
189 if (IS_ERR(blob)) in drm_writeback_connector_init()
190 return PTR_ERR(blob); in drm_writeback_connector_init()
228 blob->base.id); in drm_writeback_connector_init()
229 wb_connector->pixel_formats_blob_ptr = blob; in drm_writeback_connector_init()
238 drm_property_blob_put(blob); in drm_writeback_connector_init()
A Ddrm_color_mgmt.c279 struct drm_property_blob *blob; in drm_crtc_legacy_gamma_set() local
301 blob = drm_property_create_blob(dev, in drm_crtc_legacy_gamma_set()
304 if (IS_ERR(blob)) { in drm_crtc_legacy_gamma_set()
305 ret = PTR_ERR(blob); in drm_crtc_legacy_gamma_set()
306 blob = NULL; in drm_crtc_legacy_gamma_set()
311 blob_data = blob->data; in drm_crtc_legacy_gamma_set()
327 use_gamma_lut ? NULL : blob); in drm_crtc_legacy_gamma_set()
330 use_gamma_lut ? blob : NULL); in drm_crtc_legacy_gamma_set()
337 drm_property_blob_put(blob); in drm_crtc_legacy_gamma_set()
/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()
295 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware()
[all …]
/linux/drivers/gpu/drm/i915/gt/uc/
A Dintel_guc_ads.c121 if (unlikely(!blob)) in intel_guc_ads_print_policy_info()
147 if (!blob) in intel_guc_global_policies_update()
355 struct __guc_ads_blob *blob) in guc_prep_golden_context() argument
375 if (blob) { in guc_prep_golden_context()
378 info = &blob->system_info; in guc_prep_golden_context()
398 if (!blob) in guc_prep_golden_context()
417 if (!blob) in guc_prep_golden_context()
455 GEM_BUG_ON(!blob); in guc_init_golden_context()
463 ptr = ((u8 *)blob) + offset; in guc_init_golden_context()
533 blob->ads.scheduler_policies = base + ptr_offset(blob, policies); in __guc_ads_init()
[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.c205 static int populate_node(const void *blob, in populate_node() argument
216 pathp = fdt_get_name(blob, offset, &len); in populate_node()
380 if (!blob) { in __unflatten_device_tree()
386 pr_debug("magic: %08x\n", fdt_magic(blob)); in __unflatten_device_tree()
390 if (fdt_check_header(blob)) { in __unflatten_device_tree()
677 const void *blob = initial_boot_params; in of_scan_flat_dt() local
681 if (!blob) in of_scan_flat_dt()
688 pathp = fdt_get_name(blob, offset, NULL); in of_scan_flat_dt()
708 const void *blob = initial_boot_params; in of_scan_flat_dt_subnodes() local
711 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.c97 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()
110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay()
135 buf_len = fdt_totalsize(blob); in do_fdtoverlay()
139 blob = apply_one(blob, ovblob[i], &buf_len, argv[i]); in do_fdtoverlay()
140 if (!blob) in do_fdtoverlay()
144 fdt_pack(blob); in do_fdtoverlay()
145 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()
803 char *blob; in dt_from_blob() local
905 blob + off_mem_rsvmap, blob + totalsize); in dt_from_blob()
906 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()
[all …]
/linux/security/keys/trusted-keys/
A Dtrusted_tpm2.c79 work1 = payload->blob; in tpm2_key_encode()
85 return work1 - payload->blob; in tpm2_key_encode()
102 u8 *blob; in tpm2_key_decode() local
115 if (!blob) in tpm2_key_decode()
118 *buf = blob; in tpm2_key_decode()
122 blob += ctx.priv_len; in tpm2_key_decode()
124 memcpy(blob, ctx.pub, ctx.pub_len); in tpm2_key_decode()
369 u8 *blob, *pub; in tpm2_load_cmd() local
376 blob = payload->blob; in tpm2_load_cmd()
436 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()
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()
243 void *blob = (void *)css->fwp + bi->blob.offset; in imgu_css_fw_init() local
244 size_t size = bi->blob.size; in imgu_css_fw_init()
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_color.c549 if (!blob) in i9xx_load_lut_8()
552 lut = blob->data; in i9xx_load_lut_8()
615 if (!blob) in ilk_load_lut_8()
618 lut = blob->data; in ilk_load_lut_8()
1816 return blob; in i9xx_read_lut_8()
1856 return blob; in i965_read_lut_10p6()
1895 return blob; in chv_read_cgm_gamma()
1930 return blob; in ilk_read_lut_8()
1955 return blob; in ilk_read_lut_10()
2013 return blob; in bdw_read_lut_10()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dgk20a.c41 struct nvkm_blob blob; in gk20a_gr_av_to_init() local
48 ret = nvkm_firmware_load_blob(subdev, path, name, ver, &blob); in gk20a_gr_av_to_init()
52 nent = (blob.size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_init()
75 nvkm_blob_dtor(&blob); in gk20a_gr_av_to_init()
91 struct nvkm_blob blob; in gk20a_gr_aiv_to_init() local
98 ret = nvkm_firmware_load_blob(subdev, path, name, ver, &blob); in gk20a_gr_aiv_to_init()
102 nent = (blob.size / sizeof(struct gk20a_fw_aiv)); in gk20a_gr_aiv_to_init()
125 nvkm_blob_dtor(&blob); in gk20a_gr_aiv_to_init()
134 struct nvkm_blob blob; in gk20a_gr_av_to_method() local
148 nent = (blob.size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_method()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
A Dgp102.c39 struct nvkm_blob *blob = &fb->vpr_scrubber; in gp102_fb_vpr_scrub() local
49 hsbin_hdr = nvfw_bin_hdr(subdev, blob->data); in gp102_fb_vpr_scrub()
50 fw_hdr = nvfw_hs_header(subdev, blob->data + hsbin_hdr->header_offset); in gp102_fb_vpr_scrub()
51 lhdr = nvfw_hs_load_header(subdev, blob->data + fw_hdr->hdr_offset); in gp102_fb_vpr_scrub()
52 scrub_data = blob->data + hsbin_hdr->data_offset; in gp102_fb_vpr_scrub()
54 patch_loc = *(u32 *)(blob->data + fw_hdr->patch_loc); in gp102_fb_vpr_scrub()
55 patch_sig = *(u32 *)(blob->data + fw_hdr->patch_sig); in gp102_fb_vpr_scrub()
58 blob->data + fw_hdr->sig_dbg_offset + patch_sig, in gp102_fb_vpr_scrub()
62 blob->data + fw_hdr->sig_prod_offset + patch_sig, in gp102_fb_vpr_scrub()
/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.c384 u16 blob; in octeon_cf_tf_read16() local
389 tf->feature = blob >> 8; in octeon_cf_tf_read16()
392 tf->nsect = blob & 0xff; in octeon_cf_tf_read16()
393 tf->lbal = blob >> 8; in octeon_cf_tf_read16()
396 tf->lbam = blob & 0xff; in octeon_cf_tf_read16()
397 tf->lbah = blob >> 8; in octeon_cf_tf_read16()
428 u16 blob; in octeon_cf_check_status16() local
432 return blob >> 8; in octeon_cf_check_status16()
519 u16 blob; in octeon_cf_exec_command16() local
523 blob = tf->device; in octeon_cf_exec_command16()
[all …]
/linux/drivers/staging/rtl8192e/rtl8192e/
A Dr8192E_firmware.c95 static bool _rtl92e_fw_prepare(struct net_device *dev, struct rt_fw_blob *blob, in _rtl92e_fw_prepare() argument
114 memset(blob->data, 0, padding); in _rtl92e_fw_prepare()
116 memset(blob->data + padding + fw->size, 0, 4); in _rtl92e_fw_prepare()
117 memcpy(blob->data + padding, fw->data, fw->size); in _rtl92e_fw_prepare()
119 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
122 for (i = padding; i < blob->size; i += 4) { in _rtl92e_fw_prepare()
123 u32 *data = (u32 *)(blob->data + i); in _rtl92e_fw_prepare()
/linux/Documentation/ABI/testing/
A Dsysfs-firmware-qemu_fw_cfg30 The only legacy blob displayed is the fw_cfg device revision:
50 blob's 'file name' in the fw_cfg directory.
51 size The length of the blob, as given in the fw_cfg
53 key The value of the blob's selector key as given in the
56 raw The raw bytes of the blob, obtained by selecting the
58 of bytes equal to the blob size from the data
67 to give each blob a descriptive name. For example::
84 blob names, ending in symlinks to the by_key entry for each
95 of fw_cfg blob names are always "well behaved". I.e., there is
97 a dirname component of another fw_cfg blob, in which case the
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
A Dos.h31 nvkm_blob_dtor(struct nvkm_blob *blob) in nvkm_blob_dtor() argument
33 kfree(blob->data); in nvkm_blob_dtor()
34 blob->data = NULL; in nvkm_blob_dtor()
35 blob->size = 0; in nvkm_blob_dtor()
/linux/tools/testing/selftests/tpm2/
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)
45 blob = self.client.seal(self.root_key, data, auth, policy_dig)
53 result = self.client.unseal(self.root_key, blob, auth, handle)
65 blob = self.client.seal(self.root_key, data, auth, None)
67 result = self.client.unseal(self.root_key, blob,
89 blob = self.client.seal(self.root_key, data, auth, policy_dig)
103 result = self.client.unseal(self.root_key, blob, auth, handle)
122 result = self.client.unseal(self.root_key, blob, auth, handle)
139 blob = self.client.seal(self.root_key, data, auth, None)
/linux/drivers/gpu/drm/nouveau/dispnv50/
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/drivers/gpu/drm/nouveau/nvkm/core/
A Dfirmware.c42 const char *name, int ver, struct nvkm_blob *blob) in nvkm_firmware_load_blob() argument
49 blob->data = kmemdup(fw->data, fw->size, GFP_KERNEL); in nvkm_firmware_load_blob()
50 blob->size = fw->size; in nvkm_firmware_load_blob()
52 if (!blob->data) in nvkm_firmware_load_blob()
/linux/crypto/asymmetric_keys/
A Dasym_tpm.c143 bloblen, blob, 0, 0); in tpm_unbind()
151 tpm_buf_append(tb, blob, bloblen); in tpm_unbind()
226 bloblen, blob, 0, 0); in tpm_sign()
234 tpm_buf_append(tb, blob, bloblen); in tpm_sign()
302 kfree(tk->blob); in asym_tpm_destroy()
529 tk->blob, tk->blob_len, &keyhandle); in tpm_key_decrypt()
677 tk->blob, tk->blob_len, &keyhandle); in tpm_key_sign()
815 const void *cur = tk->blob; in extract_key_parameters()
918 tk->blob = kmemdup(blob, blob_len, GFP_KERNEL); in tpm_key_create()
919 if (!tk->blob) in tpm_key_create()
[all …]

Completed in 79 milliseconds

123456789