Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 1139) sorted by relevance

12345678910>>...46

/Linux-v5.4/drivers/target/iscsi/
Discsi_target_parameters.c112 struct iscsi_param *param; in iscsi_print_params() local
114 list_for_each_entry(param, &param_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(&param->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-v5.4/drivers/gpu/drm/ast/
Dast_post.c618 static bool finetuneDQI_L(struct ast_private *ast, struct ast2300_dram_param *param) in finetuneDQI_L() argument
807 static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param) in cbr_dll2() argument
813 if (finetuneDQI_L(ast, param) == false) in cbr_dll2()
863 static void get_ddr3_info(struct ast_private *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument
876 param->reg_MADJ = 0x00034C4C; in get_ddr3_info()
877 param->reg_SADJ = 0x00001800; in get_ddr3_info()
878 param->reg_DRV = 0x000000F0; in get_ddr3_info()
879 param->reg_PERIOD = param->dram_freq; in get_ddr3_info()
880 param->rodt = 0; in get_ddr3_info()
882 switch (param->dram_freq) { in get_ddr3_info()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_params.h45 #define I915_PARAMS_FOR_EACH(param) \ argument
46 param(char *, vbt_firmware, NULL) \
47 param(int, modeset, -1) \
48 param(int, lvds_channel_mode, 0) \
49 param(int, panel_use_ssc, -1) \
50 param(int, vbt_sdvo_panel_type, -1) \
51 param(int, enable_dc, -1) \
52 param(int, enable_fbc, -1) \
53 param(int, enable_psr, -1) \
54 param(int, disable_power_well, -1) \
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dppatomfwctrl.c277 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-v5.4/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_hw.c36 static int mtk_jpeg_decide_format(struct mtk_jpeg_dec_param *param) in mtk_jpeg_decide_format() argument
38 param->src_color = (param->sampling_w[0] << 20) | in mtk_jpeg_decide_format()
39 (param->sampling_h[0] << 16) | in mtk_jpeg_decide_format()
40 (param->sampling_w[1] << 12) | in mtk_jpeg_decide_format()
41 (param->sampling_h[1] << 8) | in mtk_jpeg_decide_format()
42 (param->sampling_w[2] << 4) | in mtk_jpeg_decide_format()
43 (param->sampling_h[2]); in mtk_jpeg_decide_format()
45 param->uv_brz_w = 0; in mtk_jpeg_decide_format()
46 switch (param->src_color) { in mtk_jpeg_decide_format()
48 param->uv_brz_w = 1; in mtk_jpeg_decide_format()
[all …]
Dmtk_jpeg_parse.c57 static bool mtk_jpeg_do_parse(struct mtk_jpeg_dec_param *param, u8 *src_addr_va, in mtk_jpeg_do_parse() argument
97 param->pic_h = word; in mtk_jpeg_do_parse()
101 param->pic_w = word; in mtk_jpeg_do_parse()
103 param->comp_num = read_byte(&stream); in mtk_jpeg_do_parse()
104 if (param->comp_num != 1 && param->comp_num != 3) in mtk_jpeg_do_parse()
107 for (i = 0; i < param->comp_num; i++) { in mtk_jpeg_do_parse()
108 param->comp_id[i] = read_byte(&stream); in mtk_jpeg_do_parse()
109 if (param->comp_id[i] == -1) in mtk_jpeg_do_parse()
116 param->sampling_w[i] = (byte >> 4) & 0x0F; in mtk_jpeg_do_parse()
117 param->sampling_h[i] = byte & 0x0F; in mtk_jpeg_do_parse()
[all …]
/Linux-v5.4/crypto/
Dalgboss.c59 struct cryptomgr_param *param = data; in cryptomgr_probe() local
64 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
70 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
74 inst = tmpl->alloc(param->tb); in cryptomgr_probe()
84 complete_all(&param->larval->completion); in cryptomgr_probe()
85 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
86 kfree(param); in cryptomgr_probe()
93 struct cryptomgr_param *param; in cryptomgr_schedule_probe() local
102 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_probe()
103 if (!param) in cryptomgr_schedule_probe()
[all …]
/Linux-v5.4/fs/
Dfs_parser.c81 struct fs_parameter *param, in fs_parse() argument
88 result->has_value = !!param->string; in fs_parse()
92 p = fs_lookup_key(desc, param->key); in fs_parse()
100 if (param->key[0] != 'n' || param->key[1] != 'o' || !param->key[2]) in fs_parse()
103 p = fs_lookup_key(desc, param->key + 2); in fs_parse()
114 desc->name, param->key); in fs_parse()
130 if (param->type != fs_value_is_string) in fs_parse()
147 if (param->type != fs_value_is_flag && in fs_parse()
148 (param->type != fs_value_is_string || result->has_value)) in fs_parse()
150 desc->name, param->key); in fs_parse()
[all …]
Dfsopen.c217 struct fs_parameter *param) in vfs_fsconfig_locked() argument
265 return vfs_parse_fs_param(fc, param); in vfs_fsconfig_locked()
325 struct fs_parameter param = { in SYSCALL_DEFINE5() local
383 param.key = strndup_user(_key, 256); in SYSCALL_DEFINE5()
384 if (IS_ERR(param.key)) { in SYSCALL_DEFINE5()
385 ret = PTR_ERR(param.key); in SYSCALL_DEFINE5()
392 param.type = fs_value_is_flag; in SYSCALL_DEFINE5()
395 param.type = fs_value_is_string; in SYSCALL_DEFINE5()
396 param.string = strndup_user(_value, 256); in SYSCALL_DEFINE5()
397 if (IS_ERR(param.string)) { in SYSCALL_DEFINE5()
[all …]
/Linux-v5.4/drivers/md/
Ddm-ioctl.c369 static struct mapped_device *dm_hash_rename(struct dm_ioctl *param, in dm_hash_rename() argument
376 unsigned change_uuid = (param->flags & DM_UUID_FLAG) ? 1 : 0; in dm_hash_rename()
400 param->name, new); in dm_hash_rename()
410 hc = __get_name_cell(param->name); in dm_hash_rename()
413 param->name, change_uuid ? "uuid " : "", new); in dm_hash_rename()
425 param->name, new, hc->uuid); in dm_hash_rename()
445 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr)) in dm_hash_rename()
446 param->flags |= DM_UEVENT_GENERATED_FLAG; in dm_hash_rename()
467 typedef int (*ioctl_fn)(struct file *filp, struct dm_ioctl *param, size_t param_size);
469 static int remove_all(struct file *filp, struct dm_ioctl *param, size_t param_size) in remove_all() argument
[all …]
/Linux-v5.4/arch/arm/mach-omap2/
Domap-secure.c37 u32 param[5]; in omap_secure_dispatcher() local
39 param[0] = nargs; in omap_secure_dispatcher()
40 param[1] = arg1; in omap_secure_dispatcher()
41 param[2] = arg2; in omap_secure_dispatcher()
42 param[3] = arg3; in omap_secure_dispatcher()
43 param[4] = arg4; in omap_secure_dispatcher()
50 outer_clean_range(__pa(param), __pa(param + 5)); in omap_secure_dispatcher()
51 ret = omap_smc2(idx, flag, __pa(param)); in omap_secure_dispatcher()
76 u32 param[5]; in omap3_save_secure_ram() local
81 param[0] = 4; /* Number of arguments */ in omap3_save_secure_ram()
[all …]
/Linux-v5.4/fs/autofs/
Ddev-ioctl.c54 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument
58 if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || in check_dev_ioctl_version()
59 (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { in check_dev_ioctl_version()
64 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version()
69 param->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in check_dev_ioctl_version()
70 param->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in check_dev_ioctl_version()
100 static inline void free_dev_ioctl(struct autofs_dev_ioctl *param) in free_dev_ioctl() argument
102 kfree(param); in free_dev_ioctl()
109 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
113 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
[all …]
/Linux-v5.4/drivers/input/mouse/
Dlogips2pp.c113 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-v5.4/drivers/virt/
Dfsl_hypervisor.c57 struct fsl_hv_ioctl_restart param; in ioctl_restart() local
60 if (copy_from_user(&param, 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, &param.ret, sizeof(__u32))) in ioctl_restart()
78 struct fsl_hv_ioctl_status param; in ioctl_status() local
82 if (copy_from_user(&param, 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, &param, sizeof(struct fsl_hv_ioctl_status))) in ioctl_status()
[all …]
/Linux-v5.4/drivers/macintosh/
Dwindfarm_pid.c25 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-v5.4/drivers/scsi/
Dqlogicpti.c177 static int qlogicpti_mbox_command(struct qlogicpti *qpti, u_short param[], int force) in qlogicpti_mbox_command() argument
182 if (mbox_param[param[0]] == 0) in qlogicpti_mbox_command()
201 switch (mbox_param[param[0]] >> 4) { in qlogicpti_mbox_command()
202 case 6: sbus_writew(param[5], qpti->qregs + MBOX5); in qlogicpti_mbox_command()
204 case 5: sbus_writew(param[4], qpti->qregs + MBOX4); in qlogicpti_mbox_command()
206 case 4: sbus_writew(param[3], qpti->qregs + MBOX3); in qlogicpti_mbox_command()
208 case 3: sbus_writew(param[2], qpti->qregs + MBOX2); in qlogicpti_mbox_command()
210 case 2: sbus_writew(param[1], qpti->qregs + MBOX1); in qlogicpti_mbox_command()
212 case 1: sbus_writew(param[0], qpti->qregs + MBOX0); in qlogicpti_mbox_command()
235 qpti->qpti_id, param[0]); in qlogicpti_mbox_command()
[all …]
/Linux-v5.4/drivers/hwmon/
Dasc7621.c152 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-v5.4/drivers/platform/x86/
Dclassmate-laptop.c75 union acpi_object param[4]; in cmpc_start_accel_v4() local
79 param[0].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
80 param[0].integer.value = 0x3; in cmpc_start_accel_v4()
81 param[1].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
82 param[1].integer.value = 0; in cmpc_start_accel_v4()
83 param[2].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
84 param[2].integer.value = 0; in cmpc_start_accel_v4()
85 param[3].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
86 param[3].integer.value = 0; in cmpc_start_accel_v4()
88 input.pointer = param; in cmpc_start_accel_v4()
[all …]
/Linux-v5.4/security/tomoyo/
Dfile.c169 [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-v5.4/drivers/media/platform/sti/delta/
Ddelta-ipc.c111 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()
181 msg.param_size = param->size; in delta_ipc_open()
182 memcpy(ctx->ipc_buf->vaddr, param->data, msg.param_size); in delta_ipc_open()
191 ret, name, param->size, param->data); in delta_ipc_open()
201 name, param->size, param->data); in delta_ipc_open()
211 ctx->cb_err, name, param->size, param->data); in delta_ipc_open()
229 int delta_ipc_set_stream(void *hdl, struct delta_ipc_param *param) in delta_ipc_set_stream() argument
[all …]
/Linux-v5.4/drivers/usb/misc/
Dusbtest.c1075 struct usbtest_param_32 *param; member
1157 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1160 % ctx->param->sglen]; in ctrl_complete()
1201 test_ctrl_queue(struct usbtest_dev *dev, struct usbtest_param_32 *param) in test_ctrl_queue() argument
1208 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1214 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1217 context.param = param; in test_ctrl_queue()
1224 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1227 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1388 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
[all …]
/Linux-v5.4/tools/power/cpupower/utils/
Dcpuidle-set.c29 int ret = 0, cont = 1, param = 0, disabled; in cmd_idle_set() local
40 param = '?'; in cmd_idle_set()
44 if (param) { in cmd_idle_set()
45 param = -1; in cmd_idle_set()
49 param = ret; in cmd_idle_set()
53 if (param) { in cmd_idle_set()
54 param = -1; in cmd_idle_set()
58 param = ret; in cmd_idle_set()
62 if (param) { in cmd_idle_set()
63 param = -1; in cmd_idle_set()
[all …]
/Linux-v5.4/sound/soc/codecs/
Dcros_ec_codec.c40 struct ec_param_codec_i2s *param, in ec_command_get_gain() argument
57 memcpy(msg->data, param, msg->outsize); in ec_command_get_gain()
70 struct ec_param_codec_i2s *param) in ec_command_no_resp() argument
84 memcpy(msg->data, param, msg->outsize); in ec_command_no_resp()
92 struct ec_param_codec_i2s param; in set_i2s_config() local
97 param.cmd = EC_CODEC_I2S_SET_CONFIG; in set_i2s_config()
98 param.i2s_config = i2s_config; in set_i2s_config()
100 return ec_command_no_resp(component, &param); in set_i2s_config()
153 struct ec_param_codec_i2s param; in set_i2s_sample_depth() local
157 param.cmd = EC_CODEC_SET_SAMPLE_DEPTH; in set_i2s_sample_depth()
[all …]
/Linux-v5.4/drivers/clk/
Dclk-xgene.c439 struct xgene_dev_parameters param; member
453 if (pclk->param.csr_reg) { in xgene_clk_enable()
456 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable()
457 pclk->param.reg_clk_offset); in xgene_clk_enable()
458 data |= pclk->param.reg_clk_mask; in xgene_clk_enable()
459 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable()
460 pclk->param.reg_clk_offset); in xgene_clk_enable()
463 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable()
467 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable()
468 pclk->param.reg_csr_offset); in xgene_clk_enable()
[all …]
/Linux-v5.4/drivers/tee/optee/
Drpc.c173 struct tee_param param; in cmd_alloc_suppl() local
177 param.attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT; in cmd_alloc_suppl()
178 param.u.value.a = OPTEE_MSG_RPC_SHM_TYPE_APPL; in cmd_alloc_suppl()
179 param.u.value.b = sz; in cmd_alloc_suppl()
180 param.u.value.c = 0; in cmd_alloc_suppl()
182 ret = optee_supp_thrd_req(ctx, OPTEE_MSG_RPC_CMD_SHM_ALLOC, 1, &param); in cmd_alloc_suppl()
188 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c); in cmd_alloc_suppl()
291 struct tee_param param; in cmd_free_suppl() local
293 param.attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT; in cmd_free_suppl()
294 param.u.value.a = OPTEE_MSG_RPC_SHM_TYPE_APPL; in cmd_free_suppl()
[all …]

12345678910>>...46