Home
last modified time | relevance | path

Searched refs:vdata (Results 1 – 25 of 55) sorted by relevance

123

/openbmc/linux/arch/sparc/kernel/
H A Dvdso.c26 struct vvar_data *vdata = vvar_data; in update_vsyscall() local
28 if (unlikely(vdata == NULL)) in update_vsyscall()
31 vvar_write_begin(vdata); in update_vsyscall()
32 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
33 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
34 vdata->clock.mask = tk->tkr_mono.mask; in update_vsyscall()
35 vdata->clock.mult = tk->tkr_mono.mult; in update_vsyscall()
36 vdata->clock.shift = tk->tkr_mono.shift; in update_vsyscall()
38 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
39 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
[all …]
/openbmc/linux/kernel/time/
H A Dvsyscall.c18 static inline void update_vdso_data(struct vdso_data *vdata, in update_vdso_data() argument
24 vdata[CS_HRES_COARSE].cycle_last = tk->tkr_mono.cycle_last; in update_vdso_data()
25 vdata[CS_HRES_COARSE].mask = tk->tkr_mono.mask; in update_vdso_data()
26 vdata[CS_HRES_COARSE].mult = tk->tkr_mono.mult; in update_vdso_data()
27 vdata[CS_HRES_COARSE].shift = tk->tkr_mono.shift; in update_vdso_data()
28 vdata[CS_RAW].cycle_last = tk->tkr_raw.cycle_last; in update_vdso_data()
29 vdata[CS_RAW].mask = tk->tkr_raw.mask; in update_vdso_data()
30 vdata[CS_RAW].mult = tk->tkr_raw.mult; in update_vdso_data()
31 vdata[CS_RAW].shift = tk->tkr_raw.shift; in update_vdso_data()
34 vdso_ts = &vdata[CS_HRES_COARSE].basetime[CLOCK_MONOTONIC]; in update_vdso_data()
[all …]
H A Dnamespace.c179 static void timens_setup_vdso_data(struct vdso_data *vdata, in timens_setup_vdso_data() argument
182 struct timens_offset *offset = vdata->offset; in timens_setup_vdso_data()
186 vdata->seq = 1; in timens_setup_vdso_data()
187 vdata->clock_mode = VDSO_CLOCKMODE_TIMENS; in timens_setup_vdso_data()
222 struct vdso_data *vdata; in timens_set_vvar_page() local
238 vdata = arch_get_vdso_data(page_address(ns->vvar_page)); in timens_set_vvar_page()
241 timens_setup_vdso_data(&vdata[i], ns); in timens_set_vvar_page()
/openbmc/linux/drivers/char/
H A Dmspec.c90 struct vma_data *vdata; in mspec_open() local
92 vdata = vma->vm_private_data; in mspec_open()
93 refcount_inc(&vdata->refcnt); in mspec_open()
105 struct vma_data *vdata; in mspec_close() local
109 vdata = vma->vm_private_data; in mspec_close()
111 if (!refcount_dec_and_test(&vdata->refcnt)) in mspec_close()
114 last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT; in mspec_close()
116 if (vdata->maddr[index] == 0) in mspec_close()
122 my_page = vdata->maddr[index]; in mspec_close()
123 vdata->maddr[index] = 0; in mspec_close()
[all …]
/openbmc/openbmc/poky/meta/recipes-multimedia/libsndfile/libsndfile1/
H A DCVE-2024-50612.patch151 +static int vorbis_write_samples (SF_PRIVATE *psf, OGG_PRIVATE *odata, VORBIS_PRIVATE *vdata, int i…
179 vorbis_analysis_headerout (&vdata->vdsp, &vdata->vcomment, &header, &header_comm, &header_code) ;
197 VORBIS_PRIVATE *vdata = psf->codec_data ;
200 if (odata == NULL || vdata == NULL)
208 - vorbis_analysis_wrote (&vdata->vdsp, 0) ;
209 - while (vorbis_analysis_blockout (&vdata->vdsp, &vdata->vblock) == 1)
214 - vorbis_analysis (&vdata->vblock, NULL) ;
215 - vorbis_bitrate_addblock (&vdata->vblock) ;
217 - while (vorbis_bitrate_flushpacket (&vdata->vdsp, &odata->opacket))
238 + ret = vorbis_write_samples (psf, odata, vdata, 0) ;
[all …]
/openbmc/linux/drivers/crypto/ccp/
H A Dplatform-access.c71 if (!pa_dev->vdata->cmdresp_reg || !pa_dev->vdata->cmdbuff_addr_lo_reg || in psp_send_platform_access_msg()
72 !pa_dev->vdata->cmdbuff_addr_hi_reg) in psp_send_platform_access_msg()
75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
76 lo = psp->io_regs + pa_dev->vdata->cmdbuff_addr_lo_reg; in psp_send_platform_access_msg()
77 hi = psp->io_regs + pa_dev->vdata->cmdbuff_addr_hi_reg; in psp_send_platform_access_msg()
159 button = psp->io_regs + pa_dev->vdata->doorbell_button_reg; in psp_ring_platform_doorbell()
160 cmd = psp->io_regs + pa_dev->vdata->doorbell_cmd_reg; in psp_ring_platform_doorbell()
219 pa_dev->vdata = (struct platform_access_vdata *)psp->vdata->platform_access; in platform_access_dev_init()
H A Dpsp-dev.c45 status = ioread32(psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
48 iowrite32(status, psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
61 unsigned int val = ioread32(psp->io_regs + psp->vdata->feature_reg); in psp_get_capability()
140 if (psp->vdata->platform_access) in psp_init()
159 psp->vdata = (struct psp_vdata *)sp->dev_vdata->psp_vdata; in psp_dev_init()
160 if (!psp->vdata) { in psp_dev_init()
173 iowrite32(0, psp->io_regs + psp->vdata->inten_reg); in psp_dev_init()
174 iowrite32(-1, psp->io_regs + psp->vdata->intsts_reg); in psp_dev_init()
192 iowrite32(-1, psp->io_regs + psp->vdata->inten_reg); in psp_dev_init()
H A Dtee-dev.c72 *reg = ioread32(tee->io_regs + tee->vdata->cmdresp_reg); in tee_wait_cmd_poll()
140 tee->io_regs + tee->vdata->cmdbuff_addr_lo_reg); in tee_init_ring()
142 tee->io_regs + tee->vdata->cmdbuff_addr_hi_reg); in tee_init_ring()
144 tee->io_regs + tee->vdata->cmdresp_reg); in tee_init_ring()
178 tee->io_regs + tee->vdata->cmdresp_reg); in tee_destroy_ring()
210 tee->vdata = (struct tee_vdata *)psp->vdata->tee; in tee_dev_init()
211 if (!tee->vdata) { in tee_dev_init()
262 rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); in tee_submit_cmd()
313 iowrite32(tee->rb_mgr.wptr, tee->io_regs + tee->vdata->ring_wptr_reg); in tee_submit_cmd()
H A Dccp-dev.c260 ret = dp->vdata->version; in ccp_version()
624 ccp->vdata = (struct ccp_vdata *)sp->dev_vdata->ccp_vdata; in ccp_dev_init()
625 if (!ccp->vdata || !ccp->vdata->version) { in ccp_dev_init()
633 ccp->io_regs = sp->io_map + ccp->vdata->offset; in ccp_dev_init()
634 if (ccp->vdata->setup) in ccp_dev_init()
635 ccp->vdata->setup(ccp); in ccp_dev_init()
637 ret = ccp->vdata->perform->init(ccp); in ccp_dev_init()
669 ccp->vdata->perform->destroy(ccp); in ccp_dev_destroy()
H A Dccp-ops.c56 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \
458 return cmd_q->ccp->vdata->perform->passthru(&op); in ccp_copy_to_from_sb()
596 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_cmac_cmd()
761 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_gcm_cmd()
809 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_gcm_cmd()
867 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_gcm_cmd()
1051 ret = cmd_q->ccp->vdata->perform->aes(&op); in ccp_run_aes_cmd()
1160 if (cmd_q->ccp->vdata->version == CCP_VERSION(3, 0)) in ccp_run_xts_aes_cmd()
1170 if (cmd_q->ccp->vdata->version == CCP_VERSION(3, 0)) { in ccp_run_xts_aes_cmd()
1253 ret = cmd_q->ccp->vdata->perform->xts_aes(&op); in ccp_run_xts_aes_cmd()
[all …]
H A Dsp-pci.c112 version_attribute_show(bootloader_version, psp->vdata->bootloader_info_reg)
114 version_attribute_show(tee_version, psp->vdata->tee->info_reg)
134 psp->vdata->bootloader_info_reg) in psp_firmware_is_visible()
135 val = ioread32(psp->io_regs + psp->vdata->bootloader_info_reg); in psp_firmware_is_visible()
139 psp->vdata->tee->info_reg) in psp_firmware_is_visible()
140 val = ioread32(psp->io_regs + psp->vdata->tee->info_reg); in psp_firmware_is_visible()
H A Dsp-dev.h33 #define PSP_FEATURE(psp, feat) (psp->vdata && psp->vdata->platform_features & PLATFORM_FEATURE_##fe…
/openbmc/linux/drivers/misc/sgi-gru/
H A Dgrumain.c297 *vdata, int tsid) in gru_find_current_gts_nolock()
301 list_for_each_entry(gts, &vdata->vd_head, ts_next) in gru_find_current_gts_nolock()
361 struct gru_vma_data *vdata = NULL; in gru_alloc_vma_data() local
363 vdata = kmalloc(sizeof(*vdata), GFP_KERNEL); in gru_alloc_vma_data()
364 if (!vdata) in gru_alloc_vma_data()
368 INIT_LIST_HEAD(&vdata->vd_head); in gru_alloc_vma_data()
369 spin_lock_init(&vdata->vd_lock); in gru_alloc_vma_data()
370 gru_dbg(grudev, "alloc vdata %p\n", vdata); in gru_alloc_vma_data()
371 return vdata; in gru_alloc_vma_data()
380 struct gru_vma_data *vdata = vma->vm_private_data; in gru_find_thread_state() local
[all …]
H A Dgrufile.c63 struct gru_vma_data *vdata; in gru_vma_close() local
70 vdata = vma->vm_private_data; in gru_vma_close()
73 vdata); in gru_vma_close()
74 list_for_each_safe(entry, next, &vdata->vd_head) { in gru_vma_close()
84 kfree(vdata); in gru_vma_close()
125 struct gru_vma_data *vdata; in gru_create_new_context() local
142 vdata = vma->vm_private_data; in gru_create_new_context()
143 vdata->vd_user_options = req.options; in gru_create_new_context()
144 vdata->vd_dsr_au_count = in gru_create_new_context()
146 vdata->vd_cbr_au_count = GRU_CB_COUNT_TO_AU(req.control_blocks); in gru_create_new_context()
[all …]
/openbmc/linux/arch/arm64/include/asm/vdso/
H A Dvsyscall.h25 void __arm64_update_vsyscall(struct vdso_data *vdata, struct timekeeper *tk) in __arm64_update_vsyscall() argument
27 vdata[CS_HRES_COARSE].mask = VDSO_PRECISION_MASK; in __arm64_update_vsyscall()
28 vdata[CS_RAW].mask = VDSO_PRECISION_MASK; in __arm64_update_vsyscall()
/openbmc/linux/fs/udf/
H A Dpartition.c51 struct udf_virtual_data *vdata; in udf_get_pblock_virt15() local
56 vdata = &map->s_type_specific.s_virtual; in udf_get_pblock_virt15()
58 if (block > vdata->s_num_entries) { in udf_get_pblock_virt15()
60 block, vdata->s_num_entries); in udf_get_pblock_virt15()
66 vdata->s_start_offset))[block]); in udf_get_pblock_virt15()
69 index = (sb->s_blocksize - vdata->s_start_offset) / sizeof(uint32_t); in udf_get_pblock_virt15()
76 index = vdata->s_start_offset / sizeof(uint32_t) + block; in udf_get_pblock_virt15()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_init.h337 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_max() local
357 vdata->vnic_max_rate[vnic].vn_counter.rate = in bnx2x_init_max()
363 vdata->vnic_max_rate[vnic].vn_counter.quota = in bnx2x_init_max()
365 (u32)vdata->vnic_max_rate[vnic].vn_counter.rate / 8; in bnx2x_init_max()
374 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_min() local
411 vdata->vnic_min_rate[vnic].vn_credit_delta = in bnx2x_init_min()
414 if (vdata->vnic_min_rate[vnic].vn_credit_delta < in bnx2x_init_min()
417 vdata->vnic_min_rate[vnic].vn_credit_delta = in bnx2x_init_min()
430 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_fw_wrr() local
442 u32 *ccd = vdata->vnic_min_rate[vnic].cos_credit_delta; in bnx2x_init_fw_wrr()
/openbmc/linux/include/asm-generic/vdso/
H A Dvsyscall.h15 static __always_inline void __arch_update_vsyscall(struct vdso_data *vdata, in __arch_update_vsyscall() argument
22 static __always_inline void __arch_sync_vdso_data(struct vdso_data *vdata) in __arch_sync_vdso_data() argument
/openbmc/linux/arch/arm/include/asm/vdso/
H A Dvsyscall.h25 void __arm_sync_vdso_data(struct vdso_data *vdata) in __arm_sync_vdso_data() argument
27 flush_dcache_page(virt_to_page(vdata)); in __arm_sync_vdso_data()
/openbmc/linux/drivers/regulator/
H A Dtps6586x-regulator.c109 #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \ argument
117 .n_voltages = ARRAY_SIZE(vdata##_voltages), \
118 .volt_table = vdata##_voltages, \
157 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
160 TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits, \
172 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
175 TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits, \
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-pci.c229 pdata->vdata = (struct xgbe_version_data *)id->driver_data; in xgbe_pci_probe()
287 pdata->vdata->an_cdr_workaround = 0; in xgbe_pci_probe()
290 pdata->vdata->enable_rrc = 0; in xgbe_pci_probe()
387 pdata->vdata->tx_max_fifo_size); in xgbe_pci_probe()
392 pdata->vdata->rx_max_fifo_size); in xgbe_pci_probe()
/openbmc/linux/drivers/mfd/
H A Drk8xx-spi.c41 static int rk806_spi_bus_write(void *context, const void *vdata, size_t count) in rk806_spi_bus_write() argument
57 xfer[1].tx_buf = vdata; in rk806_spi_bus_write()
/openbmc/linux/drivers/hid/
H A Dhid-google-hammer.c506 struct vivaldi_data *vdata; in hammer_probe() local
509 vdata = devm_kzalloc(&hdev->dev, sizeof(*vdata), GFP_KERNEL); in hammer_probe()
510 if (!vdata) in hammer_probe()
513 hid_set_drvdata(hdev, vdata); in hammer_probe()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.c475 u8 num_bins, *vdata = (u8 *)hdr; in ath_cmn_process_fft() local
500 radar_info = ((struct ath_radar_info *)&vdata[len]) - 1; in ath_cmn_process_fft()
538 sample_start = vdata; in ath_cmn_process_fft()
560 if (vdata[i] <= 0x7 && sample_bytes >= sample_len - 1) { in ath_cmn_process_fft()
590 if (!fft_idx_validator(&vdata[i], i)) { in ath_cmn_process_fft()
600 (vdata[i + 1] <= 0x7)) in ath_cmn_process_fft()
605 (vdata[i + 1] <= 0x7)) in ath_cmn_process_fft()
661 sample_start = &vdata[i + 1]; in ath_cmn_process_fft()
/openbmc/linux/drivers/input/keyboard/
H A Dcros_ec_keyb.c65 struct vivaldi_data vdata; member
539 u32 *physmap = ckdev->vdata.function_row_physmap; in cros_ec_keyb_parse_vivaldi_physmap()
578 ckdev->vdata.num_function_row_keys = n_physmap; in cros_ec_keyb_parse_vivaldi_physmap()
663 const struct vivaldi_data *data = &ckdev->vdata; in function_row_physmap_show()
683 !ckdev->vdata.num_function_row_keys) in cros_ec_keyb_attr_is_visible()

123