Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 101) sorted by relevance

12345

/drivers/iio/light/
Dopt3001.c146 static int opt3001_find_scale(const struct opt3001 *opt, int val, in opt3001_find_scale() argument
169 static void opt3001_to_iio_ret(struct opt3001 *opt, u8 exponent, in opt3001_to_iio_ret() argument
179 static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) in opt3001_set_mode() argument
183 opt->mode = mode; in opt3001_set_mode()
223 static int opt3001_get_lux(struct opt3001 *opt, int *val, int *val2) in opt3001_get_lux() argument
236 ret = i2c_smbus_write_word_swapped(opt->client, OPT3001_LOW_LIMIT, in opt3001_get_lux()
239 dev_err(opt->dev, "failed to write register %02x\n", in opt3001_get_lux()
245 opt->result_ready = false; in opt3001_get_lux()
248 opt->ok_to_ignore_lock = true; in opt3001_get_lux()
251 ret = i2c_smbus_read_word_swapped(opt->client, OPT3001_CONFIGURATION); in opt3001_get_lux()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dparam.c174 const struct e1000_option *opt, in e1000_validate_option() argument
178 *value = opt->def; in e1000_validate_option()
182 switch (opt->type) { in e1000_validate_option()
187 opt->name); in e1000_validate_option()
191 opt->name); in e1000_validate_option()
196 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
198 opt->name, *value); in e1000_validate_option()
206 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
207 ent = &opt->arg.l.p[i]; in e1000_validate_option()
222 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/drivers/clk/mvebu/
Dorion.c32 u32 opt = (readl(sar) >> SAR_MV88F5182_TCLK_FREQ) & in mv88f5182_get_tclk_freq() local
34 if (opt == 1) in mv88f5182_get_tclk_freq()
36 else if (opt == 2) in mv88f5182_get_tclk_freq()
47 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & in mv88f5182_get_cpu_freq() local
49 if (opt == 0) in mv88f5182_get_cpu_freq()
51 else if (opt == 1 || opt == 2) in mv88f5182_get_cpu_freq()
53 else if (opt == 3) in mv88f5182_get_cpu_freq()
62 u32 opt = (readl(sar) >> SAR_MV88F5182_CPU_FREQ) & in mv88f5182_get_clk_ratio() local
64 if (opt == 0 || opt == 1) { in mv88f5182_get_clk_ratio()
67 } else if (opt == 2 || opt == 3) { in mv88f5182_get_clk_ratio()
[all …]
Dkirkwood.c90 u32 opt = (readl(sar) >> SAR_KIRKWOOD_TCLK_FREQ) & in kirkwood_get_tclk_freq() local
92 return (opt) ? 166666667 : 200000000; in kirkwood_get_tclk_freq()
112 u32 opt = SAR_KIRKWOOD_CPU_FREQ(readl(sar)); in kirkwood_get_cpu_freq() local
113 return kirkwood_cpu_freqs[opt]; in kirkwood_get_cpu_freq()
134 u32 opt = SAR_KIRKWOOD_L2_RATIO(readl(sar)); in kirkwood_get_clk_ratio() local
135 *mult = kirkwood_cpu_l2_ratios[opt][0]; in kirkwood_get_clk_ratio()
136 *div = kirkwood_cpu_l2_ratios[opt][1]; in kirkwood_get_clk_ratio()
141 u32 opt = (readl(sar) >> SAR_KIRKWOOD_DDR_RATIO) & in kirkwood_get_clk_ratio() local
143 *mult = kirkwood_cpu_ddr_ratios[opt][0]; in kirkwood_get_clk_ratio()
144 *div = kirkwood_cpu_ddr_ratios[opt][1]; in kirkwood_get_clk_ratio()
[all …]
Ddove.c90 u32 opt = (readl(sar) >> SAR_DOVE_TCLK_FREQ) & in dove_get_tclk_freq() local
92 return dove_tclk_freqs[opt]; in dove_get_tclk_freq()
109 u32 opt = (readl(sar) >> SAR_DOVE_CPU_FREQ) & in dove_get_cpu_freq() local
111 return dove_cpu_freqs[opt]; in dove_get_cpu_freq()
132 u32 opt = (readl(sar) >> SAR_DOVE_L2_RATIO) & in dove_get_clk_ratio() local
134 *mult = dove_cpu_l2_ratios[opt][0]; in dove_get_clk_ratio()
135 *div = dove_cpu_l2_ratios[opt][1]; in dove_get_clk_ratio()
140 u32 opt = (readl(sar) >> SAR_DOVE_DDR_RATIO) & in dove_get_clk_ratio() local
142 *mult = dove_cpu_ddr_ratios[opt][0]; in dove_get_clk_ratio()
143 *div = dove_cpu_ddr_ratios[opt][1]; in dove_get_clk_ratio()
Darmada-xp.c128 u32 opt = ((readl(sar + SARL) >> SARL_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio() local
134 opt |= (((readl(sar + SARH) >> SARH_AXP_FAB_FREQ_OPT) & in axp_get_clk_ratio()
139 *mult = axp_nbclk_ratios[opt][0]; in axp_get_clk_ratio()
140 *div = axp_nbclk_ratios[opt][1]; in axp_get_clk_ratio()
143 *mult = axp_hclk_ratios[opt][0]; in axp_get_clk_ratio()
144 *div = axp_hclk_ratios[opt][1]; in axp_get_clk_ratio()
147 *mult = axp_dramclk_ratios[opt][0]; in axp_get_clk_ratio()
148 *div = axp_dramclk_ratios[opt][1]; in axp_get_clk_ratio()
Darmada-370.c118 u32 opt = ((readl(sar) >> SARL_A370_FAB_FREQ_OPT) & in a370_get_clk_ratio() local
123 *mult = a370_nbclk_ratios[opt][0]; in a370_get_clk_ratio()
124 *div = a370_nbclk_ratios[opt][1]; in a370_get_clk_ratio()
127 *mult = a370_hclk_ratios[opt][0]; in a370_get_clk_ratio()
128 *div = a370_hclk_ratios[opt][1]; in a370_get_clk_ratio()
131 *mult = a370_dramclk_ratios[opt][0]; in a370_get_clk_ratio()
132 *div = a370_dramclk_ratios[opt][1]; in a370_get_clk_ratio()
Darmada-375.c119 u32 opt = ((readl(sar) >> SAR1_A375_CPU_DDR_L2_FREQ_OPT) & in armada_375_get_clk_ratio() local
124 *mult = armada_375_cpu_l2_ratios[opt][0]; in armada_375_get_clk_ratio()
125 *div = armada_375_cpu_l2_ratios[opt][1]; in armada_375_get_clk_ratio()
128 *mult = armada_375_cpu_ddr_ratios[opt][0]; in armada_375_get_clk_ratio()
129 *div = armada_375_cpu_ddr_ratios[opt][1]; in armada_375_get_clk_ratio()
Darmada-38x.c103 u32 opt = ((readl(sar) >> SAR_A380_CPU_DDR_L2_FREQ_OPT) & in armada_38x_get_clk_ratio() local
108 *mult = armada_38x_cpu_l2_ratios[opt][0]; in armada_38x_get_clk_ratio()
109 *div = armada_38x_cpu_l2_ratios[opt][1]; in armada_38x_get_clk_ratio()
112 *mult = armada_38x_cpu_ddr_ratios[opt][0]; in armada_38x_get_clk_ratio()
113 *div = armada_38x_cpu_ddr_ratios[opt][1]; in armada_38x_get_clk_ratio()
/drivers/net/ethernet/intel/ixgb/
Dixgb_param.c203 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument
206 *value = opt->def; in ixgb_validate_option()
210 switch (opt->type) { in ixgb_validate_option()
214 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
217 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
222 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
223 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
231 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
232 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
245 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_param.c209 const struct e1000_option *opt, in e1000_validate_option() argument
213 *value = opt->def; in e1000_validate_option()
217 switch (opt->type) { in e1000_validate_option()
221 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
224 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
229 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
230 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
238 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
239 ent = &opt->arg.l.p[i]; in e1000_validate_option()
253 opt->name, *value, opt->err); in e1000_validate_option()
[all …]
/drivers/net/ethernet/atheros/atl1e/
Datl1e_param.c119 static int atl1e_validate_option(int *value, struct atl1e_option *opt, in atl1e_validate_option() argument
123 *value = opt->def; in atl1e_validate_option()
127 switch (opt->type) { in atl1e_validate_option()
132 "%s Enabled\n", opt->name); in atl1e_validate_option()
136 "%s Disabled\n", opt->name); in atl1e_validate_option()
141 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
143 opt->name, *value); in atl1e_validate_option()
151 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option()
152 ent = &opt->arg.l.p[i]; in atl1e_validate_option()
167 opt->name, *value, opt->err); in atl1e_validate_option()
[all …]
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c227 const struct pch_gbe_option *opt, in pch_gbe_validate_option() argument
231 *value = opt->def; in pch_gbe_validate_option()
235 switch (opt->type) { in pch_gbe_validate_option()
239 netdev_dbg(adapter->netdev, "%s Enabled\n", opt->name); in pch_gbe_validate_option()
242 netdev_dbg(adapter->netdev, "%s Disabled\n", opt->name); in pch_gbe_validate_option()
247 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in pch_gbe_validate_option()
249 opt->name, *value); in pch_gbe_validate_option()
257 for (i = 0; i < opt->arg.l.nr; i++) { in pch_gbe_validate_option()
258 ent = &opt->arg.l.p[i]; in pch_gbe_validate_option()
273 opt->name, *value, opt->err); in pch_gbe_validate_option()
[all …]
/drivers/net/ppp/
Dpptp.c94 struct pptp_opt *opt; in lookup_chan() local
99 opt = &sock->proto.pptp; in lookup_chan()
100 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
113 struct pptp_opt *opt; in lookup_chan_dst() local
122 opt = &sock->proto.pptp; in lookup_chan_dst()
123 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
124 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
176 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
195 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
196 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
[all …]
Dpppolac.c74 struct pppolac_opt *opt = &pppox_sk(sk)->proto.lac; in pppolac_recv_core() local
86 return opt->backlog_rcv(sk_udp, skb); in pppolac_recv_core()
116 if (unaligned(ptr)->u32 != opt->local) in pppolac_recv_core()
122 if ((__s16)(meta->sequence - opt->recv_sequence) < 0) in pppolac_recv_core()
140 atomic_set(&opt->sequencing, bits & L2TP_SEQUENCE_BIT); in pppolac_recv_core()
171 meta->sequence != opt->recv_sequence) in pppolac_recv_core()
174 opt->recv_sequence = (__u16)(meta->sequence + 1); in pppolac_recv_core()
226 struct pppolac_opt *opt = &pppox_sk(sk_udp->sk_user_data)->proto.lac; in pppolac_xmit() local
234 if (atomic_read(&opt->sequencing)) { in pppolac_xmit()
237 skb->data[6] = opt->xmit_sequence >> 8; in pppolac_xmit()
[all …]
/drivers/pinctrl/
Dpinctrl-palmas.c389 const struct palmas_pin_info *opt[4]; member
515 .opt = { \
701 if (!g->opt[function]) { in palmas_pinctrl_set_mux()
708 for (i = 0; i < ARRAY_SIZE(g->opt); i++) { in palmas_pinctrl_set_mux()
709 if (!g->opt[i]) in palmas_pinctrl_set_mux()
711 if (g->opt[i]->mux_opt == function) in palmas_pinctrl_set_mux()
714 if (WARN_ON(i == ARRAY_SIZE(g->opt))) { in palmas_pinctrl_set_mux()
755 const struct palmas_pin_info *opt; in palmas_pinconf_get() local
775 opt = g->opt[pci->pins_current_opt[group_nr]]; in palmas_pinconf_get()
776 if (!opt) { in palmas_pinconf_get()
[all …]
/drivers/video/fbdev/
Dacornfb.c765 static void acornfb_parse_mon(char *opt) in acornfb_parse_mon() argument
767 char *p = opt; in acornfb_parse_mon()
808 printk(KERN_ERR "Acornfb: bad monitor settings: %s\n", opt); in acornfb_parse_mon()
812 static void acornfb_parse_montype(char *opt) in acornfb_parse_montype() argument
816 if (strncmp(opt, "tv", 2) == 0) { in acornfb_parse_montype()
817 opt += 2; in acornfb_parse_montype()
819 } else if (strncmp(opt, "multi", 5) == 0) { in acornfb_parse_montype()
820 opt += 5; in acornfb_parse_montype()
822 } else if (strncmp(opt, "hires", 5) == 0) { in acornfb_parse_montype()
823 opt += 5; in acornfb_parse_montype()
[all …]
/drivers/net/bonding/
Dbond_options.c436 const struct bond_option *opt; in bond_opt_get_by_name() local
440 opt = bond_opt_get(option); in bond_opt_get_by_name()
441 if (opt && !strcmp(opt->name, name)) in bond_opt_get_by_name()
442 return opt; in bond_opt_get_by_name()
451 const struct bond_option *opt; in bond_opt_get_val() local
454 opt = bond_opt_get(option); in bond_opt_get_val()
455 if (WARN_ON(!opt)) in bond_opt_get_val()
457 for (i = 0; opt->values && opt->values[i].string; i++) in bond_opt_get_val()
458 if (opt->values[i].value == val) in bond_opt_get_val()
459 return &opt->values[i]; in bond_opt_get_val()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) in nvkm_stropt() argument
34 if (!strncasecmpz(optstr, opt, len)) { in nvkm_stropt()
54 nvkm_boolopt(const char *optstr, const char *opt, bool value) in nvkm_boolopt() argument
58 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_boolopt()
77 nvkm_longopt(const char *optstr, const char *opt, long value) in nvkm_longopt() argument
83 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_longopt()
/drivers/video/fbdev/core/
Dfb_cmdline.c37 char *opt, *options = NULL; in fb_get_options() local
50 opt = video_options[i]; in fb_get_options()
51 if (!strncmp(name, opt, name_len) && in fb_get_options()
52 opt[name_len] == ':') in fb_get_options()
53 options = opt + name_len + 1; in fb_get_options()
/drivers/net/ethernet/atheros/atlx/
Datl2.c2911 static int atl2_validate_option(int *value, struct atl2_option *opt) in atl2_validate_option() argument
2917 *value = opt->def; in atl2_validate_option()
2921 switch (opt->type) { in atl2_validate_option()
2925 printk(KERN_INFO "%s Enabled\n", opt->name); in atl2_validate_option()
2928 printk(KERN_INFO "%s Disabled\n", opt->name); in atl2_validate_option()
2933 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl2_validate_option()
2934 printk(KERN_INFO "%s set to %i\n", opt->name, *value); in atl2_validate_option()
2939 for (i = 0; i < opt->arg.l.nr; i++) { in atl2_validate_option()
2940 ent = &opt->arg.l.p[i]; in atl2_validate_option()
2953 opt->name, *value, opt->err); in atl2_validate_option()
[all …]
/drivers/net/wan/
Dhdlc_ppp.c380 const u8 *opt; in ppp_cp_parse_cr() local
389 for (opt = data; len; len -= opt[1], opt += opt[1]) { in ppp_cp_parse_cr()
390 if (len < 2 || opt[1] < 2 || len < opt[1]) in ppp_cp_parse_cr()
394 switch (opt[0]) { in ppp_cp_parse_cr()
399 if (opt[1] < sizeof(valid_accm)) in ppp_cp_parse_cr()
401 if (!memcmp(opt, valid_accm, in ppp_cp_parse_cr()
414 if (opt[1] != 6 || (!opt[2] && !opt[3] && in ppp_cp_parse_cr()
415 !opt[4] && !opt[5])) in ppp_cp_parse_cr()
420 memcpy(out + rej_len, opt, opt[1]); in ppp_cp_parse_cr()
421 rej_len += opt[1]; in ppp_cp_parse_cr()
/drivers/tty/serial/
Dkgdboc.c303 static int kgdboc_option_setup(char *opt) in kgdboc_option_setup() argument
305 if (!opt) { in kgdboc_option_setup()
310 if (strlen(opt) >= MAX_CONFIG_LEN) { in kgdboc_option_setup()
314 strcpy(config, opt); in kgdboc_option_setup()
323 static int __init kgdboc_early_init(char *opt) in kgdboc_early_init() argument
330 kgdboc_option_setup(opt); in kgdboc_early_init()
/drivers/hid/
Dhid-wiimote.h129 __u32 opt; member
297 __u32 opt) in wiimote_cmd_pending() argument
299 return wdata->state.cmd == cmd && wdata->state.opt == opt; in wiimote_cmd_pending()
331 __u32 opt) in wiimote_cmd_set() argument
335 wdata->state.opt = opt; in wiimote_cmd_set()
/drivers/staging/sm750fb/
Dsm750.c932 char *opt; in sm750fb_setup() local
952 while ((opt = strsep(&src, ":")) != NULL && *opt != 0) { in sm750fb_setup()
953 pr_info("opt=%s\n", opt); in sm750fb_setup()
956 if (!strncmp(opt, "swap", strlen("swap"))) in sm750fb_setup()
958 else if (!strncmp(opt, "nocrt", strlen("nocrt"))) in sm750fb_setup()
960 else if (!strncmp(opt, "36bit", strlen("36bit"))) in sm750fb_setup()
962 else if (!strncmp(opt, "18bit", strlen("18bit"))) in sm750fb_setup()
964 else if (!strncmp(opt, "24bit", strlen("24bit"))) in sm750fb_setup()
966 else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) in sm750fb_setup()
968 else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) in sm750fb_setup()
[all …]

12345