Home
last modified time | relevance | path

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

12345678910>>...60

/linux-6.6.21/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-6.6.21/drivers/gpu/drm/i915/
Di915_params.h48 #define I915_PARAMS_FOR_EACH(param) \ argument
49 param(char *, vbt_firmware, NULL, 0400) \
50 param(int, modeset, -1, 0400) \
51 param(int, lvds_channel_mode, 0, 0400) \
52 param(int, panel_use_ssc, -1, 0600) \
53 param(int, vbt_sdvo_panel_type, -1, 0400) \
54 param(int, enable_dc, -1, 0400) \
55 param(int, enable_fbc, -1, 0600) \
56 param(int, enable_psr, -1, 0600) \
57 param(bool, enable_dpt, true, 0400) \
[all …]
/linux-6.6.21/drivers/gpu/drm/ast/
Dast_post.c575 static bool finetuneDQI_L(struct ast_device *ast, struct ast2300_dram_param *param) in finetuneDQI_L() argument
764 static bool cbr_dll2(struct ast_device *ast, struct ast2300_dram_param *param) in cbr_dll2() argument
770 if (finetuneDQI_L(ast, param) == false) in cbr_dll2()
820 static void get_ddr3_info(struct ast_device *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument
833 param->reg_MADJ = 0x00034C4C; in get_ddr3_info()
834 param->reg_SADJ = 0x00001800; in get_ddr3_info()
835 param->reg_DRV = 0x000000F0; in get_ddr3_info()
836 param->reg_PERIOD = param->dram_freq; in get_ddr3_info()
837 param->rodt = 0; in get_ddr3_info()
839 switch (param->dram_freq) { in get_ddr3_info()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/pm/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-6.6.21/fs/
Dfs_parser.c56 struct fs_parameter *param, bool *negated) in fs_lookup_key() argument
59 const char *name = param->key; in fs_lookup_key()
60 bool want_flag = param->type == fs_value_is_flag; in fs_lookup_key()
105 struct fs_parameter *param, in __fs_parse() argument
112 p = fs_lookup_key(desc, param, &result->negated); in __fs_parse()
117 warn_plog(log, "Deprecated parameter '%s'", param->key); in __fs_parse()
123 if (param->type != fs_value_is_flag) in __fs_parse()
125 param->key); in __fs_parse()
128 int ret = p->type(log, p, param, result); in __fs_parse()
145 struct fs_parameter *param, in fs_lookup_param() argument
[all …]
/linux-6.6.21/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c45 static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len) in wpa_set_encryption() argument
55 param->u.crypt.err = 0; in wpa_set_encryption()
56 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption()
58 if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption()
63 if (param->sta_addr[0] != 0xff || param->sta_addr[1] != 0xff || in wpa_set_encryption()
64 param->sta_addr[2] != 0xff || param->sta_addr[3] != 0xff || in wpa_set_encryption()
65 param->sta_addr[4] != 0xff || param->sta_addr[5] != 0xff) { in wpa_set_encryption()
70 if (strcmp(param->u.crypt.alg, "WEP") == 0) in wpa_set_encryption()
75 if (param->u.crypt.idx > max_idx) { in wpa_set_encryption()
76 netdev_err(dev, "Error crypt.idx %d > %d\n", param->u.crypt.idx, max_idx); in wpa_set_encryption()
[all …]
/linux-6.6.21/crypto/
Dalgboss.c52 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 complete_all(&param->larval->completion); in cryptomgr_probe()
68 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
69 kfree(param); in cryptomgr_probe()
76 struct cryptomgr_param *param; in cryptomgr_schedule_probe() local
85 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_probe()
86 if (!param) in cryptomgr_schedule_probe()
96 memcpy(param->template, name, len); in cryptomgr_schedule_probe()
[all …]
/linux-6.6.21/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_dec_hw.c60 static int mtk_jpeg_decide_format(struct mtk_jpeg_dec_param *param) in mtk_jpeg_decide_format() argument
62 param->src_color = (param->sampling_w[0] << 20) | in mtk_jpeg_decide_format()
63 (param->sampling_h[0] << 16) | in mtk_jpeg_decide_format()
64 (param->sampling_w[1] << 12) | in mtk_jpeg_decide_format()
65 (param->sampling_h[1] << 8) | in mtk_jpeg_decide_format()
66 (param->sampling_w[2] << 4) | in mtk_jpeg_decide_format()
67 (param->sampling_h[2]); in mtk_jpeg_decide_format()
69 param->uv_brz_w = 0; in mtk_jpeg_decide_format()
70 switch (param->src_color) { in mtk_jpeg_decide_format()
72 param->uv_brz_w = 1; in mtk_jpeg_decide_format()
[all …]
/linux-6.6.21/lib/zlib_dfltcc/
Ddfltcc_deflate.c64 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 …]
/linux-6.6.21/drivers/media/platform/allegro-dvt/
Dallegro-mail.c63 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-6.6.21/drivers/md/
Ddm-ioctl.c426 static struct mapped_device *dm_hash_rename(struct dm_ioctl *param, in dm_hash_rename() argument
433 unsigned int change_uuid = (param->flags & DM_UUID_FLAG) ? 1 : 0; in dm_hash_rename()
456 param->name, new); in dm_hash_rename()
466 hc = __get_name_cell(param->name); in dm_hash_rename()
469 param->name, change_uuid ? "uuid " : "", new); in dm_hash_rename()
481 param->name, new, hc->uuid); in dm_hash_rename()
501 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr, false)) in dm_hash_rename()
502 param->flags |= DM_UEVENT_GENERATED_FLAG; in dm_hash_rename()
528 typedef int (*ioctl_fn)(struct file *filp, struct dm_ioctl *param, size_t param_size);
530 static int remove_all(struct file *filp, struct dm_ioctl *param, size_t param_size) in remove_all() argument
[all …]
/linux-6.6.21/fs/autofs/
Ddev-ioctl.c56 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
115 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/arch/arm/mach-omap2/
Domap-secure.c63 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-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c196 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-6.6.21/net/devlink/
Dparam.c97 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, &param->supported_cmodes); in devlink_param_cmode_is_supported()
[all …]
/linux-6.6.21/security/keys/trusted-keys/
Dtrusted_tee.c67 struct tee_param param[4]; in trusted_tee_seal() local
71 memset(&param, 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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/sound/firewire/motu/
Dmotu-register-dsp-message-parser.c88 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 …]

12345678910>>...60