Home
last modified time | relevance | path

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

12345678910>>...19

/drivers/target/iscsi/
Discsi_target_parameters.c140 struct iscsi_param *param; in iscsi_print_params() local
142 list_for_each_entry(param, &param_list->param_list, p_list) in iscsi_print_params()
143 pr_debug("%s: %s\n", param->name, param->value); in iscsi_print_params()
150 struct iscsi_param *param = NULL; in iscsi_set_default_param() local
152 param = kzalloc(sizeof(struct iscsi_param), GFP_KERNEL); in iscsi_set_default_param()
153 if (!param) { in iscsi_set_default_param()
157 INIT_LIST_HEAD(&param->p_list); in iscsi_set_default_param()
159 param->name = kstrdup(name, GFP_KERNEL); in iscsi_set_default_param()
160 if (!param->name) { in iscsi_set_default_param()
165 param->value = kstrdup(value, GFP_KERNEL); in iscsi_set_default_param()
[all …]
/drivers/gpu/drm/ast/
Dast_post.c620 static bool finetuneDQI_L(struct ast_private *ast, struct ast2300_dram_param *param) in finetuneDQI_L() argument
809 static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param) in cbr_dll2() argument
815 if (finetuneDQI_L(ast, param) == false) in cbr_dll2()
865 static void get_ddr3_info(struct ast_private *ast, struct ast2300_dram_param *param) in get_ddr3_info() argument
878 param->reg_MADJ = 0x00034C4C; in get_ddr3_info()
879 param->reg_SADJ = 0x00001800; in get_ddr3_info()
880 param->reg_DRV = 0x000000F0; in get_ddr3_info()
881 param->reg_PERIOD = param->dram_freq; in get_ddr3_info()
882 param->rodt = 0; in get_ddr3_info()
884 switch (param->dram_freq) { in get_ddr3_info()
[all …]
/drivers/md/
Ddm-ioctl.c368 static struct mapped_device *dm_hash_rename(struct dm_ioctl *param, in dm_hash_rename() argument
375 unsigned change_uuid = (param->flags & DM_UUID_FLAG) ? 1 : 0; in dm_hash_rename()
399 param->name, new); in dm_hash_rename()
409 hc = __get_name_cell(param->name); in dm_hash_rename()
412 param->name, change_uuid ? "uuid " : "", new); in dm_hash_rename()
424 param->name, new, hc->uuid); in dm_hash_rename()
444 if (!dm_kobject_uevent(hc->md, KOBJ_CHANGE, param->event_nr)) in dm_hash_rename()
445 param->flags |= DM_UEVENT_GENERATED_FLAG; in dm_hash_rename()
466 typedef int (*ioctl_fn)(struct dm_ioctl *param, size_t param_size);
468 static int remove_all(struct dm_ioctl *param, size_t param_size) in remove_all() argument
[all …]
/drivers/staging/vt6655/
Dwpactl.c190 struct viawget_wpa_param *param = ctx; in wpa_set_keys() local
200 if (param->u.wpa_key.alg_name > WPA_ALG_CCMP || in wpa_set_keys()
201 param->u.wpa_key.key_len > MAX_KEY_LEN || in wpa_set_keys()
202 param->u.wpa_key.seq_len > MAX_KEY_LEN) in wpa_set_keys()
205 pr_debug("param->u.wpa_key.alg_name = %d\n", param->u.wpa_key.alg_name); in wpa_set_keys()
206 if (param->u.wpa_key.alg_name == WPA_ALG_NONE) { in wpa_set_keys()
218 if (param->u.wpa_key.key && fcpfkernel) { in wpa_set_keys()
219 memcpy(&abyKey[0], param->u.wpa_key.key, param->u.wpa_key.key_len); in wpa_set_keys()
222 if (param->u.wpa_key.key && in wpa_set_keys()
224 (void __user *)param->u.wpa_key.key, in wpa_set_keys()
[all …]
Dhostap.c203 struct viawget_hostapd_param *param) in hostap_remove_sta() argument
207 if (BSSDBbIsSTAInNodeDB(pDevice->pMgmt, param->sta_addr, &uNodeIndex)) in hostap_remove_sta()
229 struct viawget_hostapd_param *param) in hostap_add_sta() argument
234 if (!BSSDBbIsSTAInNodeDB(pMgmt, param->sta_addr, &uNodeIndex)) in hostap_add_sta()
237 memcpy(pMgmt->sNodeDBTable[uNodeIndex].abyMACAddr, param->sta_addr, WLAN_ADDR_LEN); in hostap_add_sta()
239 pMgmt->sNodeDBTable[uNodeIndex].wCapInfo = param->u.add_sta.capability; in hostap_add_sta()
242 pMgmt->sNodeDBTable[uNodeIndex].bySuppRate = param->u.add_sta.tx_supp_rates; in hostap_add_sta()
253 pMgmt->sNodeDBTable[uNodeIndex].wAID = (unsigned short)param->u.add_sta.aid; in hostap_add_sta()
258 pr_debug("MAC=%pM\n", param->sta_addr); in hostap_add_sta()
280 struct viawget_hostapd_param *param) in hostap_get_info_sta() argument
[all …]
/drivers/input/mouse/
Dlogips2pp.c114 static int ps2pp_cmd(struct psmouse *psmouse, unsigned char *param, unsigned char command) in ps2pp_cmd() argument
119 if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_POLL | 0x0300)) in ps2pp_cmd()
136 unsigned char param[4]; in ps2pp_set_smartscroll() local
138 ps2pp_cmd(psmouse, param, 0x32); in ps2pp_set_smartscroll()
140 param[0] = 0; in ps2pp_set_smartscroll()
141 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll()
142 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll()
143 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll()
145 param[0] = smartscroll; in ps2pp_set_smartscroll()
146 ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES); in ps2pp_set_smartscroll()
[all …]
Dcypress_ps2.c103 unsigned char *param) in cypress_ps2_read_cmd_status() argument
117 memset(param, 0, pktsize); in cypress_ps2_read_cmd_status()
127 memcpy(param, psmouse->packet, pktsize); in cypress_ps2_read_cmd_status()
130 cmd, pktsize, param); in cypress_ps2_read_cmd_status()
142 unsigned char cmd, unsigned char *param) in cypress_verify_cmd_state() argument
154 if ((~param[0] & DFLT_RESP_BITS_VALID) == DFLT_RESP_BITS_VALID && in cypress_verify_cmd_state()
155 (param[0] & DFLT_RESP_BIT_MODE) == DFLT_RESP_STREAM_MODE) { in cypress_verify_cmd_state()
157 if (cytp_resolution[i] == param[1]) in cypress_verify_cmd_state()
161 if (cytp_rate[i] == param[2]) in cypress_verify_cmd_state()
173 unsigned char *param) in cypress_send_ext_cmd() argument
[all …]
Delantech.c36 unsigned char *param) in synaptics_send_cmd() argument
39 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd()
51 unsigned char *param) in elantech_send_cmd() argument
57 ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) { in elantech_send_cmd()
69 unsigned char *param, int command) in elantech_ps2_command() argument
77 rc = ps2_command(ps2dev, param, command); in elantech_ps2_command()
99 unsigned char param[3]; in elantech_read_reg() local
112 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in elantech_read_reg()
122 elantech_ps2_command(psmouse, param, PSMOUSE_CMD_GETINFO)) { in elantech_read_reg()
132 elantech_ps2_command(psmouse, param, PSMOUSE_CMD_GETINFO)) { in elantech_read_reg()
[all …]
/drivers/staging/media/davinci_vpfe/
Ddm365_resizer.c108 struct resizer_params *param = &resizer->config; in resizer_configure_passthru() local
110 param->rsz_rsc_param[RSZ_A].cen = DISABLE; in resizer_configure_passthru()
111 param->rsz_rsc_param[RSZ_A].yen = DISABLE; in resizer_configure_passthru()
112 param->rsz_rsc_param[RSZ_A].v_phs_y = 0; in resizer_configure_passthru()
113 param->rsz_rsc_param[RSZ_A].v_phs_c = 0; in resizer_configure_passthru()
114 param->rsz_rsc_param[RSZ_A].v_dif = 256; in resizer_configure_passthru()
115 param->rsz_rsc_param[RSZ_A].v_lpf_int_y = 0; in resizer_configure_passthru()
116 param->rsz_rsc_param[RSZ_A].v_lpf_int_c = 0; in resizer_configure_passthru()
117 param->rsz_rsc_param[RSZ_A].h_phs = 0; in resizer_configure_passthru()
118 param->rsz_rsc_param[RSZ_A].h_dif = 256; in resizer_configure_passthru()
[all …]
Ddm365_ipipe.c70 static int ipipe_set_lutdpc_params(struct vpfe_ipipe_device *ipipe, void *param) in ipipe_set_lutdpc_params() argument
76 if (!param) { in ipipe_set_lutdpc_params()
82 dpc_param = (struct vpfe_ipipe_lutdpc *)param; in ipipe_set_lutdpc_params()
97 static int ipipe_get_lutdpc_params(struct vpfe_ipipe_device *ipipe, void *param) in ipipe_get_lutdpc_params() argument
99 struct vpfe_ipipe_lutdpc *lut_param = (struct vpfe_ipipe_lutdpc *)param; in ipipe_get_lutdpc_params()
111 static int ipipe_set_input_config(struct vpfe_ipipe_device *ipipe, void *param) in ipipe_set_input_config() argument
115 if (!param) in ipipe_set_input_config()
118 memcpy(config, param, sizeof(struct vpfe_ipipe_input_config)); in ipipe_set_input_config()
122 static int ipipe_get_input_config(struct vpfe_ipipe_device *ipipe, void *param) in ipipe_get_input_config() argument
126 if (!param) in ipipe_get_input_config()
[all …]
/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 …]
/drivers/scsi/
Dqlogicpti.c176 static int qlogicpti_mbox_command(struct qlogicpti *qpti, u_short param[], int force) in qlogicpti_mbox_command() argument
181 if (mbox_param[param[0]] == 0) in qlogicpti_mbox_command()
200 switch (mbox_param[param[0]] >> 4) { in qlogicpti_mbox_command()
201 case 6: sbus_writew(param[5], qpti->qregs + MBOX5); in qlogicpti_mbox_command()
202 case 5: sbus_writew(param[4], qpti->qregs + MBOX4); in qlogicpti_mbox_command()
203 case 4: sbus_writew(param[3], qpti->qregs + MBOX3); in qlogicpti_mbox_command()
204 case 3: sbus_writew(param[2], qpti->qregs + MBOX2); in qlogicpti_mbox_command()
205 case 2: sbus_writew(param[1], qpti->qregs + MBOX1); in qlogicpti_mbox_command()
206 case 1: sbus_writew(param[0], qpti->qregs + MBOX0); in qlogicpti_mbox_command()
229 qpti->qpti_id, param[0]); in qlogicpti_mbox_command()
[all …]
Dscsi_transport_iscsi.c294 #define iscsi_iface_attr_show(type, name, param_type, param) \ argument
301 return t->get_iface_param(iface, param_type, param, buf); \
304 #define iscsi_iface_net_attr(type, name, param) \ argument
305 iscsi_iface_attr_show(type, name, ISCSI_NET_PARAM, param) \
308 #define iscsi_iface_attr(type, name, param) \ argument
309 iscsi_iface_attr_show(type, name, ISCSI_IFACE_PARAM, param) \
422 int param; in iscsi_iface_attr_is_visible() local
426 param = ISCSI_NET_PARAM_IFACE_ENABLE; in iscsi_iface_attr_is_visible()
428 param = ISCSI_NET_PARAM_VLAN_ID; in iscsi_iface_attr_is_visible()
430 param = ISCSI_NET_PARAM_VLAN_PRIORITY; in iscsi_iface_attr_is_visible()
[all …]
/drivers/hwmon/
Dasc7621.c165 struct asc7621_param *param = to_asc7621_param(sda)
171 struct asc7621_param *param = to_asc7621_param(sda)
182 return sprintf(buf, "%u\n", data->reg[param->msb[0]]); in show_u8()
197 data->reg[param->msb[0]] = reqval; in store_u8()
198 write_byte(client, param->msb[0], reqval); in store_u8()
212 (data->reg[param->msb[0]] >> param-> in show_bitmask()
213 shift[0]) & param->mask[0]); in show_bitmask()
227 reqval = clamp_val(reqval, 0, param->mask[0]); in store_bitmask()
229 reqval = (reqval & param->mask[0]) << param->shift[0]; in store_bitmask()
232 currval = read_byte(client, param->msb[0]); in store_bitmask()
[all …]
/drivers/platform/x86/
Dclassmate-laptop.c88 union acpi_object param[4]; in cmpc_start_accel_v4() local
92 param[0].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
93 param[0].integer.value = 0x3; in cmpc_start_accel_v4()
94 param[1].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
95 param[1].integer.value = 0; in cmpc_start_accel_v4()
96 param[2].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
97 param[2].integer.value = 0; in cmpc_start_accel_v4()
98 param[3].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4()
99 param[3].integer.value = 0; in cmpc_start_accel_v4()
101 input.pointer = param; in cmpc_start_accel_v4()
[all …]
/drivers/macintosh/
Dwindfarm_pid.c26 void wf_pid_init(struct wf_pid_state *st, struct wf_pid_param *param) in wf_pid_init() argument
29 st->param = *param; in wf_pid_init()
38 int i, hlen = st->param.history_len; in wf_pid_run()
41 error = new_sample - st->param.itarget; in wf_pid_run()
60 integ *= st->param.interval; in wf_pid_run()
65 deriv /= st->param.interval; in wf_pid_run()
68 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run()
69 error * (s64)st->param.gp) >> 36); in wf_pid_run()
70 if (st->param.additive) in wf_pid_run()
72 target = max(target, st->param.min); in wf_pid_run()
[all …]
/drivers/clk/
Dclk-xgene.c215 struct xgene_dev_parameters param; member
229 if (pclk->param.csr_reg != NULL) { in xgene_clk_enable()
232 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable()
233 pclk->param.reg_clk_offset); in xgene_clk_enable()
234 data |= pclk->param.reg_clk_mask; in xgene_clk_enable()
235 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable()
236 pclk->param.reg_clk_offset); in xgene_clk_enable()
238 pclk->name, __pa(pclk->param.csr_reg), in xgene_clk_enable()
239 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable()
243 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable()
[all …]
/drivers/usb/misc/
Dusbtest.c1025 struct usbtest_param *param; member
1106 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1109 % ctx->param->sglen]; in ctrl_complete()
1150 test_ctrl_queue(struct usbtest_dev *dev, struct usbtest_param *param) in test_ctrl_queue() argument
1157 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1163 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1166 context.param = param; in test_ctrl_queue()
1173 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1176 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1337 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
[all …]
/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c352 static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param, u32 param_len) in wpa_set_encryption() argument
361 param->u.crypt.err = 0; in wpa_set_encryption()
362 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption()
364 if (param_len < (u32) ((u8 *)param->u.crypt.key - (u8 *)param) + param->u.crypt.key_len) { in wpa_set_encryption()
369 if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff && in wpa_set_encryption()
370 param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff && in wpa_set_encryption()
371 param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) { in wpa_set_encryption()
372 if (param->u.crypt.idx >= WEP_KEYS) { in wpa_set_encryption()
381 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption()
389 wep_key_idx = param->u.crypt.idx; in wpa_set_encryption()
[all …]
/drivers/infiniband/core/
Ducm.c260 &evt->param.req_rcvd); in ib_ucm_event_process()
263 uvt->resp.present |= (evt->param.req_rcvd.alternate_path ? in ib_ucm_event_process()
268 &evt->param.rep_rcvd); in ib_ucm_event_process()
273 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
277 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
281 uvt->resp.u.send_status = evt->param.send_status; in ib_ucm_event_process()
285 evt->param.mra_rcvd.service_timeout; in ib_ucm_event_process()
289 uvt->resp.u.rej_resp.reason = evt->param.rej_rcvd.reason; in ib_ucm_event_process()
291 uvt->info_len = evt->param.rej_rcvd.ari_length; in ib_ucm_event_process()
292 info = evt->param.rej_rcvd.ari; in ib_ucm_event_process()
[all …]
/drivers/dma/
Dcoh901318.c199 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/net/wireless/hostap/
Dhostap_download.c291 struct prism2_download_data *param) in prism2_download_volatile() argument
324 param0 = param->start_addr & 0xffff; in prism2_download_volatile()
325 param1 = param->start_addr >> 16; in prism2_download_volatile()
338 for (i = 0; i < param->num_areas; i++) { in prism2_download_volatile()
340 dev->name, param->data[i].len, param->data[i].addr); in prism2_download_volatile()
341 if (hfa384x_to_aux(dev, param->data[i].addr, in prism2_download_volatile()
342 param->data[i].len, param->data[i].data)) { in prism2_download_volatile()
345 param->data[i].addr, param->data[i].len); in prism2_download_volatile()
438 struct prism2_download_data *param) in prism2_download_genesis() argument
493 for (i = 0; i < param->num_areas; i++) { in prism2_download_genesis()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c282 u64 param = 0; in qp_read_field() local
288 return param; in qp_read_field()
300 param = qp->pid; in qp_read_field()
303 param = (unsigned long)mlx5_qp_state_str(be32_to_cpu(ctx->flags) >> 28); in qp_read_field()
307 param = (unsigned long)mlx5_qp_type_str((be32_to_cpu(ctx->flags) >> 16) & 0xff); in qp_read_field()
313 param = 256; in qp_read_field()
316 param = 512; in qp_read_field()
319 param = 1024; in qp_read_field()
322 param = 2048; in qp_read_field()
325 param = 4096; in qp_read_field()
[all …]
/drivers/vfio/
Dvfio_iommu_spapr_tce.c196 struct vfio_iommu_type1_dma_map param; in tce_iommu_ioctl() local
207 if (copy_from_user(&param, (void __user *)arg, minsz)) in tce_iommu_ioctl()
210 if (param.argsz < minsz) in tce_iommu_ioctl()
213 if (param.flags & ~(VFIO_DMA_MAP_FLAG_READ | in tce_iommu_ioctl()
217 if ((param.size & ~IOMMU_PAGE_MASK_4K) || in tce_iommu_ioctl()
218 (param.vaddr & ~IOMMU_PAGE_MASK_4K)) in tce_iommu_ioctl()
222 tce = param.vaddr; in tce_iommu_ioctl()
223 if (param.flags & VFIO_DMA_MAP_FLAG_READ) in tce_iommu_ioctl()
225 if (param.flags & VFIO_DMA_MAP_FLAG_WRITE) in tce_iommu_ioctl()
228 ret = iommu_tce_put_param_check(tbl, param.iova, tce); in tce_iommu_ioctl()
[all …]
/drivers/input/serio/
Di8042.c262 static int __i8042_command(unsigned char *param, int command) in __i8042_command() argument
280 dbg("%02x -> i8042 (parameter)\n", param[i]); in __i8042_command()
281 i8042_write_data(param[i]); in __i8042_command()
297 param[i] = i8042_read_data(); in __i8042_command()
298 dbg("%02x <- i8042 (return)\n", param[i]); in __i8042_command()
304 int i8042_command(unsigned char *param, int command) in i8042_command() argument
310 retval = __i8042_command(param, command); in i8042_command()
598 unsigned char param; in i8042_enable_mux_ports() local
602 i8042_command(&param, I8042_CMD_MUX_PFX + i); in i8042_enable_mux_ports()
603 i8042_command(&param, I8042_CMD_AUX_ENABLE); in i8042_enable_mux_ports()
[all …]

12345678910>>...19