/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 | 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 …]
|
/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/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 …]
|
/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 …]
|
/drivers/md/ |
D | dm-ioctl.c | 370 static struct mapped_device *dm_hash_rename(struct dm_ioctl *param, in dm_hash_rename() argument 377 unsigned change_uuid = (param->flags & DM_UUID_FLAG) ? 1 : 0; in dm_hash_rename() 401 param->name, new); in dm_hash_rename() 411 hc = __get_name_cell(param->name); in dm_hash_rename() 414 param->name, change_uuid ? "uuid " : "", new); in dm_hash_rename() 426 param->name, new, hc->uuid); in dm_hash_rename() 446 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr)) in dm_hash_rename() 447 param->flags |= DM_UEVENT_GENERATED_FLAG; in dm_hash_rename() 468 typedef int (*ioctl_fn)(struct file *filp, struct dm_ioctl *param, size_t param_size); 470 static int remove_all(struct file *filp, struct dm_ioctl *param, size_t param_size) in remove_all() argument [all …]
|
/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 …]
|
/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/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 …]
|
D | scsi_transport_iscsi.c | 314 #define iscsi_iface_attr_show(type, name, param_type, param) \ argument 321 return t->get_iface_param(iface, param_type, param, buf); \ 324 #define iscsi_iface_net_attr(type, name, param) \ argument 325 iscsi_iface_attr_show(type, name, ISCSI_NET_PARAM, param) \ 328 #define iscsi_iface_attr(type, name, param) \ argument 329 iscsi_iface_attr_show(type, name, ISCSI_IFACE_PARAM, param) \ 442 int param = -1; in iscsi_iface_attr_is_visible() local 445 param = ISCSI_IFACE_PARAM_DEF_TASKMGMT_TMO; in iscsi_iface_attr_is_visible() 447 param = ISCSI_IFACE_PARAM_HDRDGST_EN; in iscsi_iface_attr_is_visible() 449 param = ISCSI_IFACE_PARAM_DATADGST_EN; in iscsi_iface_attr_is_visible() [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/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() 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 …]
|
/drivers/clk/ |
D | clk-xgene.c | 439 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 …]
|
/drivers/platform/chrome/ |
D | cros_ec_lightbar.c | 108 struct ec_params_lightbar *param; in get_lightbar_version() local 117 param = (struct ec_params_lightbar *)msg->data; in get_lightbar_version() 118 param->cmd = LIGHTBAR_CMD_VERSION; in get_lightbar_version() 119 msg->outsize = sizeof(param->cmd); in get_lightbar_version() 178 struct ec_params_lightbar *param; in brightness_store() local 191 param = (struct ec_params_lightbar *)msg->data; in brightness_store() 192 param->cmd = LIGHTBAR_CMD_SET_BRIGHTNESS; in brightness_store() 193 param->set_brightness.num = val; in brightness_store() 219 struct ec_params_lightbar *param; in led_rgb_store() local 242 param = (struct ec_params_lightbar *)msg->data; in led_rgb_store() [all …]
|
/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 343 static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len) in wpa_set_encryption() argument 352 param->u.crypt.err = 0; in wpa_set_encryption() 353 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption() 355 if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption() 360 if (is_broadcast_ether_addr(param->sta_addr)) { in wpa_set_encryption() 361 if (param->u.crypt.idx >= WEP_KEYS) { in wpa_set_encryption() 370 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption() 378 wep_key_idx = param->u.crypt.idx; in wpa_set_encryption() 379 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption() 410 memcpy(pwep->KeyMaterial, param->u.crypt.key, pwep->KeyLength); in wpa_set_encryption() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
D | bf.c | 107 struct mu_bfer_init_para *param) in rtw_bf_init_bfer_entry_mu() argument 110 u8 *addr = param->bfer_address; in rtw_bf_init_bfer_entry_mu() 115 rtw_write16(rtwdev, REG_ASSOCIATED_BFMER0_INFO + 6, param->paid); in rtw_bf_init_bfer_entry_mu() 116 rtw_write16(rtwdev, REG_TX_CSI_RPT_PARAM_BW20, param->csi_para); in rtw_bf_init_bfer_entry_mu() 119 mu_bf_ctl |= param->my_aid | (param->csi_length_sel << 12); in rtw_bf_init_bfer_entry_mu() 144 void rtw_bf_cfg_mu_bfee(struct rtw_dev *rtwdev, struct cfg_mumimo_para *param) in rtw_bf_cfg_mu_bfee() argument 158 rtw_write32(rtwdev, REG_MU_STA_GID_VLD, param->given_gid_tab[0]); in rtw_bf_cfg_mu_bfee() 159 rtw_write32(rtwdev, REG_MU_STA_USER_POS_INFO, param->given_user_pos[0]); in rtw_bf_cfg_mu_bfee() 161 param->given_user_pos[1]); in rtw_bf_cfg_mu_bfee() 164 rtw_write32(rtwdev, REG_MU_STA_GID_VLD, param->given_gid_tab[1]); in rtw_bf_cfg_mu_bfee() [all …]
|
/drivers/dma/ |
D | coh901318.c | 199 const struct coh901318_params param; member 279 .param.config = COH901318_CX_CFG_CH_DISABLE | 283 .param.ctrl_lli_chained = 0 | 297 .param.ctrl_lli = 0 | 311 .param.ctrl_lli_last = 0 | 330 .param.config = COH901318_CX_CFG_CH_DISABLE | 334 .param.ctrl_lli_chained = 0 | 348 .param.ctrl_lli = 0 | 362 .param.ctrl_lli_last = 0 | 382 .param.config = COH901318_CX_CFG_CH_DISABLE | [all …]
|
/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 422 static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len) in wpa_set_encryption() argument 431 param->u.crypt.err = 0; in wpa_set_encryption() 432 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption() 434 if (param_len < (u32)((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption() 439 if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff && in wpa_set_encryption() 440 param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff && in wpa_set_encryption() 441 param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) { in wpa_set_encryption() 442 if (param->u.crypt.idx >= WEP_KEYS || in wpa_set_encryption() 443 param->u.crypt.idx >= BIP_MAX_KEYID) { in wpa_set_encryption() 454 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption() [all …]
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_download.c | 292 struct prism2_download_data *param) in prism2_download_volatile() argument 325 param0 = param->start_addr & 0xffff; in prism2_download_volatile() 326 param1 = param->start_addr >> 16; in prism2_download_volatile() 339 for (i = 0; i < param->num_areas; i++) { in prism2_download_volatile() 341 dev->name, param->data[i].len, param->data[i].addr); in prism2_download_volatile() 342 if (hfa384x_to_aux(dev, param->data[i].addr, in prism2_download_volatile() 343 param->data[i].len, param->data[i].data)) { in prism2_download_volatile() 346 param->data[i].addr, param->data[i].len); in prism2_download_volatile() 437 struct prism2_download_data *param) in prism2_download_genesis() argument 492 for (i = 0; i < param->num_areas; i++) { in prism2_download_genesis() [all …]
|