Home
last modified time | relevance | path

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

/openbmc/linux/fs/proc/
H A Dproc_net.c41 unsigned int state_size = PDE(inode)->state_size; in seq_open_net() local
45 WARN_ON_ONCE(state_size < sizeof(*p)); in seq_open_net()
54 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size); in seq_open_net()
116 unsigned int state_size, void *data) in proc_create_net_data() argument
126 p->state_size = state_size; in proc_create_net_data()
160 unsigned int state_size, void *data) in proc_create_net_data_write() argument
170 p->state_size = state_size; in proc_create_net_data_write()
H A Dgeneric.c593 if (de->state_size) in proc_seq_open()
594 return seq_open_private(file, de->seq_ops, de->state_size); in proc_seq_open()
602 if (de->state_size) in proc_seq_release()
617 unsigned int state_size, void *data) in proc_create_seq_private() argument
626 p->state_size = state_size; in proc_create_seq_private()
H A Dinternal.h53 unsigned int state_size; member
/openbmc/linux/include/linux/
H A Dproc_fs.h94 unsigned int state_size, void *data);
130 unsigned int state_size, void *data);
131 #define proc_create_net(name, mode, parent, ops, state_size) \ argument
132 proc_create_net_data(name, mode, parent, ops, state_size, NULL)
140 unsigned int state_size, void *data);
213 #define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;}) argument
214 #define proc_create_net_data_write(name, mode, parent, ops, write, state_size, data) ({NULL;}) argument
215 #define proc_create_net(name, mode, parent, state_size, ops) ({NULL;}) argument
/openbmc/qemu/contrib/elf2dmp/
H A Dqemu_elf.c64 uint32_t state_size; in init_states() local
104 state_size = MIN(state->size, nhdr->n_descsz); in init_states()
106 if (state_size < sizeof(*state)) { in init_states()
108 states->len, state_size); in init_states()
/openbmc/linux/sound/soc/intel/catpt/
H A Dloader.c125 if (!type->loaded || !type->state_size) in catpt_store_module_states()
130 i, off, type->state_size); in catpt_store_module_states()
135 ALIGN(type->state_size, 4)); in catpt_store_module_states()
443 type->state_size = blk->size; in catpt_load_module()
H A Dcore.h57 u32 state_size; member
/openbmc/linux/drivers/vfio/pci/mlx5/
H A Dmain.c351 size_t state_size) in mlx5vf_prep_stop_copy() argument
358 if (check_add_overflow(state_size, state_size / 10, &inc_state_size)) in mlx5vf_prep_stop_copy()
359 inc_state_size = state_size; in mlx5vf_prep_stop_copy()
1196 size_t state_size; in mlx5vf_pci_get_data_size() local
1201 &state_size, 0); in mlx5vf_pci_get_data_size()
1203 *stop_copy_length = state_size; in mlx5vf_pci_get_data_size()
H A Dcmd.h189 size_t *state_size, u8 query_flags);
H A Dcmd.c89 size_t *state_size, u8 query_flags) in mlx5vf_cmd_query_vhca_migration_state() argument
117 *state_size = 0; in mlx5vf_cmd_query_vhca_migration_state()
140 *state_size = MLX5_GET(query_vhca_migration_state_out, out, in mlx5vf_cmd_query_vhca_migration_state()
/openbmc/qemu/hw/audio/
H A Dfmopl.c1077 int state_size; in OPLCreate() local
1082 state_size = sizeof(FM_OPL); in OPLCreate()
1083 state_size += sizeof(OPL_CH)*max_ch; in OPLCreate()
1085 ptr = malloc(state_size); in OPLCreate()
1088 memset(ptr,0,state_size); in OPLCreate()
/openbmc/linux/drivers/media/pci/ddbridge/
H A Dddbridge-mci.h236 u32 state_size; member
H A Dddbridge-mci.c128 state = kzalloc(cfg->state_size, GFP_KERNEL); in ddb_mci_attach()
H A Dddbridge-sx8.c474 .state_size = sizeof(struct sx8),
/openbmc/u-boot/lib/lzma/
H A Dlzma.txt330 state_size = (4 + (1.5 << (lc + lp))) KB
331 by default (lc=3, lp=0), state_size = 16 KB.
358 - LZMA Internal Structures: state_size (16 KB for default settings)
412 - LZMA Internal Structures: state_size (16 KB for default settings)
452 - (dictSize * 11.5 + 6 MB) + state_size
/openbmc/linux/arch/x86/kernel/fpu/
H A Dxstate.c476 u32 max_palid, palid, state_size; in check_xtile_data_against_struct() local
514 state_size = sizeof(struct xtile_data) * max_tile; in check_xtile_data_against_struct()
515 if (size != state_size) { in check_xtile_data_against_struct()
517 __stringify(XFEATURE_XTILE_DATA), state_size, size); in check_xtile_data_against_struct()
/openbmc/qemu/target/i386/nvmm/
H A Dnvmm-all.c1177 if (qemu_mach.cap.state_size != sizeof(struct nvmm_x64_state)) { in nvmm_accel_init()
1178 error_report("NVMM: Wrong state size %u", qemu_mach.cap.state_size); in nvmm_accel_init()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c948 uint32_t state_size; in dmub_fw_state_show() local
957 state_size = fb_info->fb[DMUB_WINDOW_6_FW_STATE].size; in dmub_fw_state_show()
959 return seq_write(m, state_base, state_size); in dmub_fw_state_show()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dsi_dpm.c5259 size_t state_size = struct_size(smc_state, levels, in si_upload_sw_state() local
5262 memset(smc_state, 0, state_size); in si_upload_sw_state()
5269 state_size, si_pi->sram_end); in si_upload_sw_state()
5284 u32 state_size = sizeof(struct SISLANDS_SMC_SWSTATE_SINGLE); in si_upload_ulv_state() local
5286 memset(smc_state, 0, state_size); in si_upload_ulv_state()
5291 state_size, si_pi->sram_end); in si_upload_ulv_state()
H A Dni_dpm.c2694 size_t state_size = struct_size(smc_state, levels, in ni_upload_sw_state() local
2698 smc_state = kzalloc(state_size, GFP_KERNEL); in ni_upload_sw_state()
2706 ret = rv770_copy_bytes_to_smc(rdev, address, (u8 *)smc_state, state_size, pi->sram_end); in ni_upload_sw_state()
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dsi_dpm.c5761 size_t state_size = struct_size(smc_state, levels, in si_upload_sw_state() local
5763 memset(smc_state, 0, state_size); in si_upload_sw_state()
5770 state_size, si_pi->sram_end); in si_upload_sw_state()
5783 u32 state_size = sizeof(struct SISLANDS_SMC_SWSTATE_SINGLE); in si_upload_ulv_state() local
5785 memset(smc_state, 0, state_size); in si_upload_ulv_state()
5790 state_size, si_pi->sram_end); in si_upload_ulv_state()