/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 …]
|
/drivers/gpu/drm/ast/ |
D | ast_post.c | 575 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 …]
|
/drivers/gpu/drm/i915/ |
D | i915_params.h | 48 #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 …]
|
/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 …]
|
/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 45 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 …]
|
/drivers/media/platform/mediatek/jpeg/ |
D | mtk_jpeg_dec_hw.c | 60 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 …]
|
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 …]
|
/drivers/media/platform/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() 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 …]
|
/drivers/md/ |
D | dm-ioctl.c | 426 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 …]
|
/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 …]
|
D | cypress_ps2.c | 100 unsigned char *param) in cypress_ps2_read_cmd_status() argument 114 memset(param, 0, pktsize); in cypress_ps2_read_cmd_status() 124 memcpy(param, psmouse->packet, pktsize); in cypress_ps2_read_cmd_status() 127 cmd, pktsize, param); in cypress_ps2_read_cmd_status() 139 unsigned char cmd, unsigned char *param) in cypress_verify_cmd_state() argument 151 if ((~param[0] & DFLT_RESP_BITS_VALID) == DFLT_RESP_BITS_VALID && in cypress_verify_cmd_state() 152 (param[0] & DFLT_RESP_BIT_MODE) == DFLT_RESP_STREAM_MODE) { in cypress_verify_cmd_state() 154 if (cytp_resolution[i] == param[1]) in cypress_verify_cmd_state() 158 if (cytp_rate[i] == param[2]) in cypress_verify_cmd_state() 170 unsigned char *param) in cypress_send_ext_cmd() argument [all …]
|
/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 …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/drivers/usb/misc/ |
D | usbtest.c | 1075 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 …]
|
/drivers/media/platform/st/sti/delta/ |
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 …]
|
/drivers/tee/optee/ |
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 …]
|
/drivers/nvmem/ |
D | stm32-bsec-optee-ta.c | 144 struct tee_param param[2]; in stm32_bsec_optee_ta_read() local 155 memset(¶m, 0, sizeof(param)); in stm32_bsec_optee_ta_read() 164 param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT; in stm32_bsec_optee_ta_read() 165 param[0].u.value.a = start; in stm32_bsec_optee_ta_read() 166 param[0].u.value.b = SHADOW_ACCESS; in stm32_bsec_optee_ta_read() 174 param[1].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_OUTPUT; in stm32_bsec_optee_ta_read() 175 param[1].u.memref.shm = shm; in stm32_bsec_optee_ta_read() 176 param[1].u.memref.size = num_bytes; in stm32_bsec_optee_ta_read() 178 ret = tee_client_invoke_func(ctx, &arg, param); in stm32_bsec_optee_ta_read() 209 struct tee_param param[2]; in stm32_bsec_optee_ta_write() local [all …]
|
/drivers/platform/chrome/ |
D | cros_ec_lightbar.c | 109 struct ec_params_lightbar *param; in get_lightbar_version() local 118 param = (struct ec_params_lightbar *)msg->data; in get_lightbar_version() 119 param->cmd = LIGHTBAR_CMD_VERSION; in get_lightbar_version() 120 msg->outsize = sizeof(param->cmd); in get_lightbar_version() 179 struct ec_params_lightbar *param; in brightness_store() local 192 param = (struct ec_params_lightbar *)msg->data; in brightness_store() 193 param->cmd = LIGHTBAR_CMD_SET_BRIGHTNESS; in brightness_store() 194 param->set_brightness.num = val; in brightness_store() 220 struct ec_params_lightbar *param; in led_rgb_store() local 243 param = (struct ec_params_lightbar *)msg->data; in led_rgb_store() [all …]
|
/drivers/clk/ |
D | clk-xgene.c | 438 struct xgene_dev_parameters param; member 452 if (pclk->param.csr_reg) { in xgene_clk_enable() 455 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable() 456 pclk->param.reg_clk_offset); in xgene_clk_enable() 457 data |= pclk->param.reg_clk_mask; in xgene_clk_enable() 458 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable() 459 pclk->param.reg_clk_offset); in xgene_clk_enable() 462 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable() 466 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable() 467 pclk->param.reg_csr_offset); in xgene_clk_enable() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-zynqmp.c | 257 unsigned int arg, param = pinconf_to_config_param(*config); in zynqmp_pinconf_cfg_get() local 260 switch (param) { in zynqmp_pinconf_cfg_get() 262 param = PM_PINCTRL_CONFIG_SLEW_RATE; in zynqmp_pinconf_cfg_get() 263 ret = zynqmp_pm_pinctrl_get_config(pin, param, &arg); in zynqmp_pinconf_cfg_get() 266 param = PM_PINCTRL_CONFIG_PULL_CTRL; in zynqmp_pinconf_cfg_get() 267 ret = zynqmp_pm_pinctrl_get_config(pin, param, &arg); in zynqmp_pinconf_cfg_get() 274 param = PM_PINCTRL_CONFIG_PULL_CTRL; in zynqmp_pinconf_cfg_get() 275 ret = zynqmp_pm_pinctrl_get_config(pin, param, &arg); in zynqmp_pinconf_cfg_get() 282 param = PM_PINCTRL_CONFIG_BIAS_STATUS; in zynqmp_pinconf_cfg_get() 283 ret = zynqmp_pm_pinctrl_get_config(pin, param, &arg); in zynqmp_pinconf_cfg_get() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ioctl.c | 39 struct drm_vmw_getparam_arg *param = in vmw_getparam_ioctl() local 43 switch (param->param) { in vmw_getparam_ioctl() 45 param->value = vmw_overlay_num_overlays(dev_priv); in vmw_getparam_ioctl() 48 param->value = vmw_overlay_num_free_overlays(dev_priv); in vmw_getparam_ioctl() 51 param->value = vmw_supports_3d(dev_priv) ? 1 : 0; in vmw_getparam_ioctl() 54 param->value = dev_priv->capabilities; in vmw_getparam_ioctl() 57 param->value = dev_priv->capabilities2; in vmw_getparam_ioctl() 60 param->value = vmw_fifo_caps(dev_priv); in vmw_getparam_ioctl() 63 param->value = dev_priv->max_primary_mem; in vmw_getparam_ioctl() 68 param->value = SVGA3D_HWVERSION_WS8_B1; in vmw_getparam_ioctl() [all …]
|