Home
last modified time | relevance | path

Searched refs:state_size (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/fs/proc/
Dproc_net.c60 unsigned int state_size = PDE(inode)->state_size; in seq_open_net() local
64 WARN_ON_ONCE(state_size < sizeof(*p)); in seq_open_net()
73 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size); in seq_open_net()
103 unsigned int state_size, void *data) in proc_create_net_data() argument
113 p->state_size = state_size; in proc_create_net_data()
147 unsigned int state_size, void *data) in proc_create_net_data_write() argument
157 p->state_size = state_size; in proc_create_net_data_write()
Dgeneric.c565 if (de->state_size) in proc_seq_open()
566 return seq_open_private(file, de->seq_ops, de->state_size); in proc_seq_open()
574 if (de->state_size) in proc_seq_release()
588 unsigned int state_size, void *data) in proc_create_seq_private() argument
597 p->state_size = state_size; in proc_create_seq_private()
Dinternal.h50 unsigned int state_size; member
/Linux-v5.4/include/linux/
Dproc_fs.h33 unsigned int state_size, void *data);
60 unsigned int state_size, void *data);
61 #define proc_create_net(name, mode, parent, state_size, ops) \ argument
62 proc_create_net_data(name, mode, parent, state_size, ops, NULL)
70 unsigned int state_size, void *data);
123 #define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;}) argument
124 #define proc_create_net(name, mode, parent, state_size, ops) ({NULL;}) argument
/Linux-v5.4/arch/x86/kernel/fpu/
Dsignal.c275 int state_size = fpu_kernel_xstate_size; in __fpu__restore_sig() local
308 state_size = sizeof(struct fxregs_state); in __fpu__restore_sig()
312 state_size = fx_sw_user.xstate_size; in __fpu__restore_sig()
365 ret = __copy_from_user(&fpu->state.xsave, buf_fx, state_size); in __fpu__restore_sig()
367 if (!ret && state_size > offsetof(struct xregs_state, header)) in __fpu__restore_sig()
381 ret = __copy_from_user(&fpu->state.fxsave, buf_fx, state_size); in __fpu__restore_sig()
397 ret = __copy_from_user(&fpu->state.fsave, buf_fx, state_size); in __fpu__restore_sig()
/Linux-v5.4/drivers/media/pci/ddbridge/
Dddbridge-mci.h245 u32 state_size; member
Dddbridge-mci.c137 state = kzalloc(cfg->state_size, GFP_KERNEL); in ddb_mci_attach()
Dddbridge-sx8.c483 .state_size = sizeof(struct sx8),
/Linux-v5.4/drivers/gpu/drm/radeon/
Dsi_dpm.c5277 u32 state_size = sizeof(SISLANDS_SMC_SWSTATE) + in si_upload_sw_state() local
5282 memset(smc_state, 0, state_size); in si_upload_sw_state()
5289 state_size, si_pi->sram_end); in si_upload_sw_state()
5304 u32 state_size = sizeof(SISLANDS_SMC_SWSTATE); in si_upload_ulv_state() local
5306 memset(smc_state, 0, state_size); in si_upload_ulv_state()
5311 state_size, si_pi->sram_end); in si_upload_ulv_state()
Dni_dpm.c2689 u16 state_size = sizeof(NISLANDS_SMC_SWSTATE) + in ni_upload_sw_state() local
2692 NISLANDS_SMC_SWSTATE *smc_state = kzalloc(state_size, GFP_KERNEL); in ni_upload_sw_state()
2701 ret = rv770_copy_bytes_to_smc(rdev, address, (u8 *)smc_state, state_size, pi->sram_end); in ni_upload_sw_state()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dsi_dpm.c5739 u32 state_size = sizeof(SISLANDS_SMC_SWSTATE) + in si_upload_sw_state() local
5744 memset(smc_state, 0, state_size); in si_upload_sw_state()
5751 state_size, si_pi->sram_end); in si_upload_sw_state()
5764 u32 state_size = sizeof(SISLANDS_SMC_SWSTATE); in si_upload_ulv_state() local
5766 memset(smc_state, 0, state_size); in si_upload_ulv_state()
5771 state_size, si_pi->sram_end); in si_upload_ulv_state()