/kernel/linux/linux-5.10/drivers/target/iscsi/ |
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 …]
|
/kernel/liteos_a/testsuites/unittest/common/include/ |
D | iCunit.h | 80 #define ICUNIT_TRACK_EQUAL(param, value, retcode) \ argument 82 if ((param) != (value)) { \ 83 EXPECT_EQ((long)(value), (long)(param)); \ 90 #define ICUNIT_TRACK_NOT_EQUAL(param, value, retcode) \ argument 92 if ((param) == (value)) { \ 93 EXPECT_NE((long)(value), (long)(param)); \ 98 #define ICUNIT_ASSERT_NOT_EQUAL_NULL(param, value, retcode) \ argument 100 if ((param) == (value)) { \ 101 EXPECT_NE((long)(value), (long)(param)); \ 107 #define ICUNIT_ASSERT_EQUAL_NULL(param, value, retcode) \ argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_params.h | 47 #define I915_PARAMS_FOR_EACH(param) \ argument 48 param(char *, vbt_firmware, NULL, 0400) \ 49 param(int, modeset, -1, 0400) \ 50 param(int, lvds_channel_mode, 0, 0400) \ 51 param(int, panel_use_ssc, -1, 0600) \ 52 param(int, vbt_sdvo_panel_type, -1, 0400) \ 53 param(int, enable_dc, -1, 0400) \ 54 param(int, enable_fbc, -1, 0600) \ 55 param(int, enable_psr, -1, 0600) \ 56 param(bool, psr_safest_params, false, 0600) \ [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ast/ |
D | ast_post.c | 614 static bool finetuneDQI_L(struct ast_private *ast, struct ast2300_dram_param *param) in finetuneDQI_L() argument 803 static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param) in cbr_dll2() argument 809 if (finetuneDQI_L(ast, param) == false) in cbr_dll2() 859 static void get_ddr3_info(struct ast_private *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument 872 param->reg_MADJ = 0x00034C4C; in get_ddr3_info() 873 param->reg_SADJ = 0x00001800; in get_ddr3_info() 874 param->reg_DRV = 0x000000F0; in get_ddr3_info() 875 param->reg_PERIOD = param->dram_freq; in get_ddr3_info() 876 param->rodt = 0; in get_ddr3_info() 878 switch (param->dram_freq) { in get_ddr3_info() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/ |
D | mtk_jpeg_dec_hw.c | 36 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 …]
|
D | mtk_jpeg_dec_parse.c | 57 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 …]
|
/kernel/linux/linux-5.10/crypto/ |
D | algboss.c | 59 struct cryptomgr_param *param = data; in cryptomgr_probe() local 63 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe() 68 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 74 complete_all(¶m->larval->completion); in cryptomgr_probe() 75 crypto_alg_put(¶m->larval->alg); in cryptomgr_probe() 76 kfree(param); in cryptomgr_probe() 83 struct cryptomgr_param *param; in cryptomgr_schedule_probe() local 92 param = kzalloc(sizeof(*param), GFP_KERNEL); in cryptomgr_schedule_probe() 93 if (!param) in cryptomgr_schedule_probe() 103 memcpy(param->template, name, len); in cryptomgr_schedule_probe() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | fs_parser.c | 56 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() 144 struct fs_parameter *param, in fs_lookup_param() argument [all …]
|
/kernel/linux/linux-5.10/lib/zlib_dfltcc/ |
D | dfltcc_deflate.c | 45 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_gdht() local 49 param, NULL, NULL, in dfltcc_gdht() 58 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_cmpr() local 64 param, &strm->next_out, &avail_out, in dfltcc_cmpr() 75 const struct dfltcc_param_v0 *param in send_eobs() argument 82 bi_reverse(param->eobs >> (15 - param->eobl), param->eobl), in send_eobs() 83 param->eobl); in send_eobs() 96 state->compressed_len += param->eobl; in send_eobs() 108 struct dfltcc_param_v0 *param = &dfltcc_state->param; in dfltcc_deflate() local 127 if (flush == Z_FINISH && strm->avail_in == 0 && !param->cf) { in dfltcc_deflate() [all …]
|
D | dfltcc_inflate.c | 40 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_was_inflate_used() local 42 return !param->nt; in dfltcc_was_inflate_used() 70 struct dfltcc_param_v0 *param = &GET_DFLTCC_STATE(state)->param; in dfltcc_xpnd() local 76 param, &strm->next_out, &avail_out, in dfltcc_xpnd() 91 struct dfltcc_param_v0 *param = &dfltcc_state->param; in dfltcc_inflate() local 113 if (strm->avail_in == 0 && !param->cf) in dfltcc_inflate() 122 param->cvt = CVT_ADLER32; in dfltcc_inflate() 123 param->sbb = state->bits; in dfltcc_inflate() 124 param->hl = state->whave; /* Software and hardware history formats match */ in dfltcc_inflate() 125 param->ho = (state->write - state->whave) & ((1 << HB_BITS) - 1); in dfltcc_inflate() [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-ioctl.c | 369 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/media/allegro-dvt/ |
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() 84 allegro_encode_config_blob(u32 *dst, struct create_channel_param *param) in allegro_encode_config_blob() argument 86 enum mcu_msg_version version = param->version; in allegro_encode_config_blob() 90 unsigned int codec = settings_get_mcu_codec(param); in allegro_encode_config_blob() 93 dst[i++] = param->layer_id; in allegro_encode_config_blob() 94 dst[i++] = FIELD_PREP(GENMASK(31, 16), param->height) | in allegro_encode_config_blob() 95 FIELD_PREP(GENMASK(15, 0), param->width); in allegro_encode_config_blob() 97 dst[i++] = param->videomode; in allegro_encode_config_blob() [all …]
|
/kernel/linux/linux-5.10/fs/autofs/ |
D | dev-ioctl.c | 55 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 59 if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || in check_dev_ioctl_version() 60 (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { in check_dev_ioctl_version() 65 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 70 param->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in check_dev_ioctl_version() 71 param->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in check_dev_ioctl_version() 101 static inline void free_dev_ioctl(struct autofs_dev_ioctl *param) in free_dev_ioctl() argument 103 kfree(param); in free_dev_ioctl() 110 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 114 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl() [all …]
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/virt/ |
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 …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | omap-secure.c | 63 u32 param[5]; in omap_secure_dispatcher() local 65 param[0] = nargs; in omap_secure_dispatcher() 66 param[1] = arg1; in omap_secure_dispatcher() 67 param[2] = arg2; in omap_secure_dispatcher() 68 param[3] = arg3; in omap_secure_dispatcher() 69 param[4] = arg4; in omap_secure_dispatcher() 76 outer_clean_range(__pa(param), __pa(param + 5)); in omap_secure_dispatcher() 77 ret = omap_smc2(idx, flag, __pa(param)); in omap_secure_dispatcher() 123 u32 param[5]; in omap3_save_secure_ram() local 128 param[0] = 4; /* Number of arguments */ in omap3_save_secure_ram() [all …]
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/ |
D | pthread_test_002.cpp | 54 struct sched_param param = { 0 }; in ThreadFuncTest2() local 69 param.sched_priority = g_currThreadPri + 1; in ThreadFuncTest2() 70 ret = pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m); in ThreadFuncTest2() 74 param.sched_priority = 0; in ThreadFuncTest2() 75 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest2() 79 ICUNIT_GOTO_EQUAL(param.sched_priority, (g_currThreadPri + 1), param.sched_priority, EXIT); in ThreadFuncTest2() 85 param.sched_priority = g_currThreadPri; in ThreadFuncTest2() 86 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in ThreadFuncTest2() 90 param.sched_priority = 0; in ThreadFuncTest2() 91 ret = pthread_getschedparam(pthread_self(), &threadPolicy, ¶m); in ThreadFuncTest2() [all …]
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
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 …]
|
/kernel/liteos_a/testsuites/kernel/include/ |
D | iCunit.h | 240 #define ICUNIT_TRACK_EQUAL(param, g_value, retcode) \ argument 242 if ((param) != (g_value)) { \ 248 #define ICUNIT_TRACK_NOT_EQUAL(param, g_value, retcode) \ argument 250 if ((param) == (g_value)) { \ 255 #define ICUNIT_ASSERT_NOT_EQUAL_NULL(param, g_value, retcode) \ argument 257 if ((param) == (g_value)) { \ 263 #define ICUNIT_ASSERT_EQUAL_NULL(param, g_value, retcode) \ argument 265 if ((param) != (g_value)) { \ 271 #define ICUNIT_ASSERT_EQUAL_VOID(param, g_value, retcode) \ argument 273 if ((param) != (g_value)) { \ [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
D | cat_test.c | 34 va_list param; in cat_setup() local 37 va_start(param, num); in cat_setup() 38 p = va_arg(param, struct resctrl_val_param *); in cat_setup() 39 va_end(param); in cat_setup() 76 static int check_results(struct resctrl_val_param *param) in check_results() argument 84 fp = fopen(param->filename, "r"); in check_results() 109 no_of_bits = count_bits(param->mask); in check_results() 111 show_cache_info(sum_llc_perf_miss, no_of_bits, param->span); in check_results() 166 struct resctrl_val_param param = { in cat_perf_miss_val() local 179 param.span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | qlogicpti.c | 177 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 …]
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | classmate-laptop.c | 75 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 …]
|
/kernel/linux/linux-5.10/security/tomoyo/ |
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 …]
|