/linux/drivers/target/iscsi/ |
H A D | iscsi_target_parameters.c | 112 struct iscsi_param *param; in iscsi_print_params() local 114 list_for_each_entry(param, ¶m_list->param_list, p_list) in iscsi_print_params() 115 pr_debug("%s: %s\n", param->name, param->value); in iscsi_print_params() 122 struct iscsi_param *param = NULL; in iscsi_set_default_param() local 124 param = kzalloc(sizeof(struct iscsi_param), GFP_KERNEL); in iscsi_set_default_param() 125 if (!param) { in iscsi_set_default_param() 129 INIT_LIST_HEAD(¶m->p_list); in iscsi_set_default_param() 131 param->name = kstrdup(name, GFP_KERNEL); in iscsi_set_default_param() 132 if (!param->name) { in iscsi_set_default_param() 137 param->value = kstrdup(value, GFP_KERNEL); in iscsi_set_default_param() [all …]
|
/linux/drivers/gpu/drm/ast/ |
H A D | ast_post.c | 584 static bool finetuneDQI_L(struct ast_device *ast, struct ast2300_dram_param *param) in finetuneDQI_L() argument 773 static bool cbr_dll2(struct ast_device *ast, struct ast2300_dram_param *param) in cbr_dll2() argument 779 if (finetuneDQI_L(ast, param) == false) in cbr_dll2() 829 static void get_ddr3_info(struct ast_device *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument 842 param->reg_MADJ = 0x00034C4C; in get_ddr3_info() 843 param->reg_SADJ = 0x00001800; in get_ddr3_info() 844 param->reg_DRV = 0x000000F0; in get_ddr3_info() 845 param->reg_PERIOD = param->dram_freq; in get_ddr3_info() 846 param->rodt = 0; in get_ddr3_info() 848 switch (param->dram_freq) { in get_ddr3_info() [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomfwctrl.c | 277 struct pp_atomfwctrl_avfs_parameters *param) in pp_atomfwctrl_get_avfs_information() argument 297 param->ulMaxVddc = le32_to_cpu(profile->maxvddc); in pp_atomfwctrl_get_avfs_information() 298 param->ulMinVddc = le32_to_cpu(profile->minvddc); in pp_atomfwctrl_get_avfs_information() 299 param->ulMeanNsigmaAcontant0 = in pp_atomfwctrl_get_avfs_information() 301 param->ulMeanNsigmaAcontant1 = in pp_atomfwctrl_get_avfs_information() 303 param->ulMeanNsigmaAcontant2 = in pp_atomfwctrl_get_avfs_information() 305 param->usMeanNsigmaDcTolSigma = in pp_atomfwctrl_get_avfs_information() 307 param->usMeanNsigmaPlatformMean = in pp_atomfwctrl_get_avfs_information() 309 param->usMeanNsigmaPlatformSigma = in pp_atomfwctrl_get_avfs_information() 311 param->ulGbVdroopTableCksoffA0 = in pp_atomfwctrl_get_avfs_information() [all …]
|
/linux/crypto/ |
H A D | algboss.c | 52 struct cryptomgr_param *param = data; in cryptomgr_probe() local 56 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe() 61 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 67 param->larval->adult = ERR_PTR(err); in cryptomgr_probe() 68 param->larval->alg.cra_flags |= CRYPTO_ALG_DEAD; in cryptomgr_probe() 69 complete_all(¶m->larval->completion); in cryptomgr_probe() 70 crypto_alg_put(¶m->larval->alg); in cryptomgr_probe() 71 kfree(param); in cryptomgr_probe() 78 struct cryptomgr_param *param; in cryptomgr_schedule_probe() local 87 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_probe() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_params.h | 25 #define INTEL_DISPLAY_PARAMS_FOR_EACH(param) \ argument 26 param(char *, dmc_firmware_path, NULL, 0400) \ 27 param(char *, vbt_firmware, NULL, 0400) \ 28 param(int, lvds_channel_mode, 0, 0400) \ 29 param(int, panel_use_ssc, -1, 0600) \ 30 param(int, vbt_sdvo_panel_type, -1, 0400) \ 31 param(int, enable_dc, -1, 0400) \ 32 param(bool, enable_dpt, true, 0400) \ 33 param(bool, enable_dsb, true, 0600) \ 34 param(bool, enable_sagv, true, 0600) \ [all …]
|
/linux/drivers/media/platform/allegro-dvt/ |
H A D | allegro-mail.c | 63 static inline u32 settings_get_mcu_codec(struct create_channel_param *param) in settings_get_mcu_codec() argument 65 enum mcu_msg_version version = param->version; in settings_get_mcu_codec() 66 u32 pixelformat = param->codec; in settings_get_mcu_codec() 88 allegro_encode_config_blob(u32 *dst, struct create_channel_param *param) in allegro_encode_config_blob() argument 90 enum mcu_msg_version version = param->version; in allegro_encode_config_blob() 94 unsigned int codec = settings_get_mcu_codec(param); in allegro_encode_config_blob() 97 dst[i++] = param->layer_id; in allegro_encode_config_blob() 98 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->height) | in allegro_encode_config_blob() 99 FIELD_PREP(GENMASK(15, 0), param->width); in allegro_encode_config_blob() 101 dst[i++] = param->videomode; in allegro_encode_config_blob() [all …]
|
/linux/lib/zlib_dfltcc/ |
H A D | dfltcc_deflate.c | 64 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_gdht() local 68 param, NULL, NULL, in dfltcc_gdht() 77 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_cmpr() local 83 param, &strm->next_out, &avail_out, in dfltcc_cmpr() 94 const struct dfltcc_param_v0 *param in send_eobs() argument 101 bi_reverse(param->eobs >> (15 - param->eobl), param->eobl), in send_eobs() 102 param->eobl); in send_eobs() 115 state->compressed_len += param->eobl; in send_eobs() 127 struct dfltcc_param_v0 *param = &dfltcc_state->common.param; in dfltcc_deflate() local 137 param->hl = 0; in dfltcc_deflate() [all …]
|
H A D | dfltcc_inflate.c | 44 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_was_inflate_used() local 46 return !param->nt; in dfltcc_was_inflate_used() 74 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_xpnd() local 80 param, &strm->next_out, &avail_out, in dfltcc_xpnd() 95 struct dfltcc_param_v0 *param = &dfltcc_state->param; in dfltcc_inflate() local 119 if (strm->avail_in == 0 && !param->cf) in dfltcc_inflate() 128 param->cvt = CVT_ADLER32; in dfltcc_inflate() 129 param->sbb = state->bits; in dfltcc_inflate() 130 if (param->hl) in dfltcc_inflate() 131 param->nt = 0; /* Honor history for the first block */ in dfltcc_inflate() [all …]
|
/linux/fs/autofs/ |
H A D | dev-ioctl.c | 56 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 60 if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || in check_dev_ioctl_version() 61 (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { in check_dev_ioctl_version() 66 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 71 param->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in check_dev_ioctl_version() 72 param->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in check_dev_ioctl_version() 102 static inline void free_dev_ioctl(struct autofs_dev_ioctl *param) in free_dev_ioctl() argument 104 kfree(param); in free_dev_ioctl() 111 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 116 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl() [all …]
|
/linux/drivers/input/mouse/ |
H A D | logips2pp.c | 113 static int ps2pp_cmd(struct psmouse *psmouse, u8 *param, u8 command) in ps2pp_cmd() argument 121 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_POLL | 0x0300); in ps2pp_cmd() 139 u8 param[4]; in ps2pp_set_smartscroll() local 141 ps2pp_cmd(psmouse, param, 0x32); in ps2pp_set_smartscroll() 143 param[0] = 0; in ps2pp_set_smartscroll() 144 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 145 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 146 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() 148 param[0] = smartscroll; in ps2pp_set_smartscroll() 149 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_params.h | 48 #define I915_PARAMS_FOR_EACH(param) \ argument 49 param(int, modeset, -1, 0400) \ 50 param(int, enable_guc, -1, 0400) \ 51 param(int, guc_log_level, -1, 0400) \ 52 param(char *, guc_firmware_path, NULL, 0400) \ 53 param(char *, huc_firmware_path, NULL, 0400) \ 54 param(char *, gsc_firmware_path, NULL, 0400) \ 55 param(bool, memtest, false, 0400) \ 56 param(int, mmio_debug, -IS_ENABLED(CONFIG_DRM_I915_DEBUG_MMIO), 0600) \ 57 param(unsigned int, reset, 3, 0600) \ [all …]
|
/linux/drivers/virt/ |
H A D | fsl_hypervisor.c | 57 struct fsl_hv_ioctl_restart param; in ioctl_restart() local 60 if (copy_from_user(¶m, p, sizeof(struct fsl_hv_ioctl_restart))) in ioctl_restart() 63 param.ret = fh_partition_restart(param.partition); in ioctl_restart() 65 if (copy_to_user(&p->ret, ¶m.ret, sizeof(__u32))) in ioctl_restart() 78 struct fsl_hv_ioctl_status param; in ioctl_status() local 82 if (copy_from_user(¶m, p, sizeof(struct fsl_hv_ioctl_status))) in ioctl_status() 85 param.ret = fh_partition_get_status(param.partition, &status); in ioctl_status() 86 if (!param.ret) in ioctl_status() 87 param.status = status; in ioctl_status() 89 if (copy_to_user(p, ¶m, sizeof(struct fsl_hv_ioctl_status))) in ioctl_status() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mbx.c | 196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) { in hclge_get_ring_chain_from_mbx() 198 req->msg.param[i].tqp_index, in hclge_get_ring_chain_from_mbx() 205 req->msg.param[0].ring_type); in hclge_get_ring_chain_from_mbx() 208 [req->msg.param[0].tqp_index]); in hclge_get_ring_chain_from_mbx() 210 HNAE3_RING_GL_IDX_S, req->msg.param[0].int_gl_index); in hclge_get_ring_chain_from_mbx() 220 req->msg.param[i].ring_type); in hclge_get_ring_chain_from_mbx() 224 [req->msg.param[i].tqp_index]); in hclge_get_ring_chain_from_mbx() 228 req->msg.param[i].int_gl_index); in hclge_get_ring_chain_from_mbx() 323 resp->data[HCLGE_RING_TYPE_OFFSET] = req->msg.param[0].ring_type; in hclge_get_vf_ring_vector_map() 324 resp->data[HCLGE_TQP_INDEX_OFFSET] = req->msg.param[0].tqp_index; in hclge_get_vf_ring_vector_map() [all …]
|
/linux/net/devlink/ |
H A D | param.c | 97 static int devlink_param_generic_verify(const struct devlink_param *param) in devlink_param_generic_verify() argument 100 if (param->id > DEVLINK_PARAM_GENERIC_ID_MAX) in devlink_param_generic_verify() 102 if (strcmp(param->name, devlink_param_generic[param->id].name)) in devlink_param_generic_verify() 105 WARN_ON(param->type != devlink_param_generic[param->id].type); in devlink_param_generic_verify() 110 static int devlink_param_driver_verify(const struct devlink_param *param) in devlink_param_driver_verify() argument 114 if (param->id <= DEVLINK_PARAM_GENERIC_ID_MAX) in devlink_param_driver_verify() 118 if (!strcmp(param->name, devlink_param_generic[i].name)) in devlink_param_driver_verify() 131 if (!strcmp(param_item->param->name, param_name)) in devlink_param_find_by_name() 144 devlink_param_cmode_is_supported(const struct devlink_param *param, in devlink_param_cmode_is_supported() argument 147 return test_bit(cmode, ¶m->supported_cmodes); in devlink_param_cmode_is_supported() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | omap-secure.c | 63 u32 *param; in omap_secure_dispatcher() local 68 param = buf[cpu]; in omap_secure_dispatcher() 70 param[0] = nargs; in omap_secure_dispatcher() 71 param[1] = arg1; in omap_secure_dispatcher() 72 param[2] = arg2; in omap_secure_dispatcher() 73 param[3] = arg3; in omap_secure_dispatcher() 74 param[4] = arg4; in omap_secure_dispatcher() 81 outer_clean_range(__pa(param), __pa(param + 5)); in omap_secure_dispatcher() 82 ret = omap_smc2(idx, flag, __pa(param)); in omap_secure_dispatcher() 124 static u32 param[5]; in omap3_save_secure_ram() local [all …]
|
/linux/security/keys/trusted-keys/ |
H A D | trusted_tee.c | 67 struct tee_param param[4]; in trusted_tee_seal() local 71 memset(¶m, 0, sizeof(param)); in trusted_tee_seal() 84 param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT; in trusted_tee_seal() 85 param[0].u.memref.shm = reg_shm; in trusted_tee_seal() 86 param[0].u.memref.size = p->key_len; in trusted_tee_seal() 87 param[0].u.memref.shm_offs = 0; in trusted_tee_seal() 88 param[1].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_OUTPUT; in trusted_tee_seal() 89 param[1].u.memref.shm = reg_shm; in trusted_tee_seal() 90 param[1].u.memref.size = sizeof(p->blob); in trusted_tee_seal() 91 param[1].u.memref.shm_offs = sizeof(p->key); in trusted_tee_seal() [all …]
|
/linux/drivers/hwmon/ |
H A D | asc7621.c | 152 struct asc7621_param *param = to_asc7621_param(sda) 158 struct asc7621_param *param = to_asc7621_param(sda) 169 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8() 184 data->reg[param->msb[0]] = reqval; in store_u8() 185 write_byte(client, param->msb[0], reqval); in store_u8() 199 (data->reg[param->msb[0]] >> param-> in show_bitmask() 200 shift[0]) & param->mask[0]); in show_bitmask() 214 reqval = clamp_val(reqval, 0, param->mask[0]); in store_bitmask() 216 reqval = (reqval & param->mask[0]) << param->shift[0]; in store_bitmask() 219 currval = read_byte(client, param->msb[0]); in store_bitmask() [all …]
|
/linux/drivers/macintosh/ |
H A D | windfarm_pid.c | 25 void wf_pid_init(struct wf_pid_state *st, struct wf_pid_param *param) in wf_pid_init() argument 28 st->param = *param; in wf_pid_init() 37 int i, hlen = st->param.history_len; in wf_pid_run() 40 error = new_sample - st->param.itarget; in wf_pid_run() 59 integ *= st->param.interval; in wf_pid_run() 64 deriv /= st->param.interval; in wf_pid_run() 67 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run() 68 error * (s64)st->param.gp) >> 36); in wf_pid_run() 69 if (st->param.additive) in wf_pid_run() 71 target = max(target, st->param.min); in wf_pid_run() [all …]
|
/linux/security/tomoyo/ |
H A D | file.c | 169 [r->param.path.operation], in tomoyo_audit_path_log() 170 r->param.path.filename->name); in tomoyo_audit_path_log() 183 [tomoyo_pp2mac[r->param.path2.operation]], in tomoyo_audit_path2_log() 184 r->param.path2.filename1->name, in tomoyo_audit_path2_log() 185 r->param.path2.filename2->name); in tomoyo_audit_path2_log() 199 [tomoyo_pnnn2mac[r->param.mkdev.operation]], in tomoyo_audit_mkdev_log() 200 r->param.mkdev.filename->name, in tomoyo_audit_mkdev_log() 201 r->param.mkdev.mode, r->param.mkdev.major, in tomoyo_audit_mkdev_log() 202 r->param.mkdev.minor); in tomoyo_audit_mkdev_log() 214 const u8 type = r->param.path_number.operation; in tomoyo_audit_path_number_log() [all …]
|
/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-ipc.c | 111 struct delta_ipc_param *param, u32 ipc_buf_size, in delta_ipc_open() argument 136 if (!param || !param->data || !param->size) { in delta_ipc_open() 150 if (param->size > ipc_buf_size) { in delta_ipc_open() 154 param->size, ctx->ipc_buf->size); in delta_ipc_open() 180 msg.param_size = param->size; in delta_ipc_open() 181 memcpy(ctx->ipc_buf->vaddr, param->data, msg.param_size); in delta_ipc_open() 190 ret, name, param->size, param->data); in delta_ipc_open() 200 name, param->size, param->data); in delta_ipc_open() 210 ctx->cb_err, name, param->size, param->data); in delta_ipc_open() 228 int delta_ipc_set_stream(void *hdl, struct delta_ipc_param *param) in delta_ipc_set_stream() argument [all …]
|
/linux/sound/firewire/motu/ |
H A D | motu-register-dsp-message-parser.c | 88 struct snd_firewire_motu_register_dsp_parameter param; member 188 struct snd_firewire_motu_register_dsp_parameter *param = &parser->param; in snd_motu_register_dsp_message_parser_parse() local 204 if (param->mixer.source[mixer_ch].gain[mixer_src_ch] != val) { in snd_motu_register_dsp_message_parser_parse() 206 param->mixer.source[mixer_ch].gain[mixer_src_ch] = val; in snd_motu_register_dsp_message_parser_parse() 210 if (param->mixer.source[mixer_ch].pan[mixer_src_ch] != val) { in snd_motu_register_dsp_message_parser_parse() 212 param->mixer.source[mixer_ch].pan[mixer_src_ch] = val; in snd_motu_register_dsp_message_parser_parse() 216 if (param->mixer.source[mixer_ch].flag[mixer_src_ch] != val) { in snd_motu_register_dsp_message_parser_parse() 218 param->mixer.source[mixer_ch].flag[mixer_src_ch] = val; in snd_motu_register_dsp_message_parser_parse() 222 if (param->mixer.source[mixer_ch].paired_balance[mixer_src_ch] != val) { in snd_motu_register_dsp_message_parser_parse() 224 param->mixer.source[mixer_ch].paired_balance[mixer_src_ch] = val; in snd_motu_register_dsp_message_parser_parse() [all …]
|
/linux/fs/ |
H A D | fsopen.c | 278 struct fs_parameter *param) in vfs_fsconfig_locked() argument 297 return vfs_parse_fs_param(fc, param); in vfs_fsconfig_locked() 355 struct fs_parameter param = { in SYSCALL_DEFINE5() local 413 param.key = strndup_user(_key, 256); in SYSCALL_DEFINE5() 414 if (IS_ERR(param.key)) in SYSCALL_DEFINE5() 415 return PTR_ERR(param.key); in SYSCALL_DEFINE5() 420 param.type = fs_value_is_flag; in SYSCALL_DEFINE5() 423 param.type = fs_value_is_string; in SYSCALL_DEFINE5() 424 param.string = strndup_user(_value, 256); in SYSCALL_DEFINE5() 425 if (IS_ERR(param.string)) { in SYSCALL_DEFINE5() [all …]
|
/linux/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_dec_parse.c | 52 static bool mtk_jpeg_do_parse(struct mtk_jpeg_dec_param *param, u8 *src_addr_va, in mtk_jpeg_do_parse() argument 92 param->pic_h = word; in mtk_jpeg_do_parse() 96 param->pic_w = word; in mtk_jpeg_do_parse() 98 param->comp_num = read_byte(&stream); in mtk_jpeg_do_parse() 99 if (param->comp_num != 1 && param->comp_num != 3) in mtk_jpeg_do_parse() 102 for (i = 0; i < param->comp_num; i++) { in mtk_jpeg_do_parse() 103 param->comp_id[i] = read_byte(&stream); in mtk_jpeg_do_parse() 104 if (param->comp_id[i] == -1) in mtk_jpeg_do_parse() 111 param->sampling_w[i] = (byte >> 4) & 0x0F; in mtk_jpeg_do_parse() 112 param->sampling_h[i] = byte & 0x0F; in mtk_jpeg_do_parse() [all …]
|
/linux/drivers/tee/optee/ |
H A D | optee_trace.h | 20 TP_PROTO(struct optee_rpc_param *param), 21 TP_ARGS(param), 24 __field(void *, param) 29 __entry->param = param; 30 BUILD_BUG_ON(sizeof(*param) < sizeof(__entry->args)); 31 memcpy(__entry->args, param, sizeof(__entry->args)); 34 TP_printk("param=%p (%x, %x, %x, %x, %x, %x, %x, %x)", __entry->param, 41 TP_PROTO(struct optee_rpc_param *param, struct arm_smccc_res *res), 42 TP_ARGS(param, res), 45 __field(void *, param) [all …]
|
/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_test.c | 37 static inline void gss_krb5_get_desc(const struct gss_krb5_test_param *param, in gss_krb5_get_desc() argument 40 strscpy(desc, param->desc, KUNIT_PARAM_DESC_SIZE); in gss_krb5_get_desc() 45 const struct gss_krb5_test_param *param = test->param_value; in kdf_case() local 51 gk5e = gss_krb5_lookup_enctype(param->enctype); in kdf_case() 55 derivedkey.data = kunit_kzalloc(test, param->expected_result->len, in kdf_case() 58 derivedkey.len = param->expected_result->len; in kdf_case() 61 err = gk5e->derive_key(gk5e, param->base_key, &derivedkey, in kdf_case() 62 param->usage, GFP_KERNEL); in kdf_case() 67 memcmp(param->expected_result->data, in kdf_case() 74 const struct gss_krb5_test_param *param = test->param_value; in checksum_case() local [all …]
|