/linux-4.4.14/drivers/iio/light/ |
D | opt3001.c | 146 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 …]
|
/linux-4.4.14/net/ipv4/ |
D | ip_options.c | 43 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, in ip_options_build() argument 48 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build() 49 memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); in ip_options_build() 50 opt = &(IPCB(skb)->opt); in ip_options_build() 52 if (opt->srr) in ip_options_build() 53 memcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4); in ip_options_build() 56 if (opt->rr_needaddr) in ip_options_build() 57 ip_rt_get_source(iph+opt->rr+iph[opt->rr+2]-5, skb, rt); in ip_options_build() 58 if (opt->ts_needaddr) in ip_options_build() 59 ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt); in ip_options_build() [all …]
|
D | cipso_ipv4.c | 1627 unsigned char *opt = *option; in cipso_v4_validate() local 1637 opt_len = opt[1]; in cipso_v4_validate() 1644 doi_def = cipso_v4_doi_search(get_unaligned_be32(&opt[2])); in cipso_v4_validate() 1651 tag = opt + opt_iter; in cipso_v4_validate() 1760 *option = opt + err_offset; in cipso_v4_validate() 1892 struct ip_options_rcu *old, *opt = NULL; in cipso_v4_sock_setattr() local 1923 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr() 1924 if (!opt) { in cipso_v4_sock_setattr() 1928 memcpy(opt->opt.__data, buf, buf_len); in cipso_v4_sock_setattr() 1929 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() [all …]
|
D | ip_output.c | 136 __be32 saddr, __be32 daddr, struct ip_options_rcu *opt) in ip_build_and_send_pkt() argument 144 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0)); in ip_build_and_send_pkt() 151 iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr); in ip_build_and_send_pkt() 162 if (opt && opt->opt.optlen) { in ip_build_and_send_pkt() 163 iph->ihl += opt->opt.optlen>>2; in ip_build_and_send_pkt() 164 ip_options_build(skb, &opt->opt, daddr, rt, 0); in ip_build_and_send_pkt() 407 if (inet_opt && inet_opt->opt.srr) in ip_queue_xmit() 408 daddr = inet_opt->opt.faddr; in ip_queue_xmit() 428 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit() 432 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in ip_queue_xmit() [all …]
|
D | ip_forward.c | 66 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_finish() local 71 if (unlikely(opt->optlen)) in ip_forward_finish() 83 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward() local 99 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) in ip_forward() 118 if (opt->is_strictroute && rt->rt_uses_gateway) in ip_forward() 142 if (IPCB(skb)->flags & IPSKB_DOREDIRECT && !opt->srr && in ip_forward()
|
D | inet_connection_sock.c | 415 struct ip_options_rcu *opt = ireq->opt; in inet_csk_route_req() local 421 (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, in inet_csk_route_req() 428 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_req() 447 struct ip_options_rcu *opt; in inet_csk_route_child_sock() local 454 opt = rcu_dereference(newinet->inet_opt); in inet_csk_route_child_sock() 458 (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, in inet_csk_route_child_sock() 465 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_child_sock() 931 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 932 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
D | icmp.c | 400 if (ip_options_echo(&icmp_param->replyopts.opt.opt, skb)) in icmp_reply() 414 ipc.opt = NULL; in icmp_reply() 419 if (icmp_param->replyopts.opt.opt.optlen) { in icmp_reply() 420 ipc.opt = &icmp_param->replyopts.opt; in icmp_reply() 421 if (ipc.opt->opt.srr) in icmp_reply() 422 daddr = icmp_param->replyopts.opt.opt.faddr; in icmp_reply() 472 fl4->daddr = (param->replyopts.opt.opt.srr ? in icmp_route_lookup() 473 param->replyopts.opt.opt.faddr : iph->saddr); in icmp_route_lookup() 682 if (ip_options_echo(&icmp_param->replyopts.opt.opt, skb_in)) in icmp_send() 699 ipc.opt = &icmp_param->replyopts.opt; in icmp_send() [all …]
|
D | ip_sockglue.c | 75 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_opts() 78 put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, in ip_cmsg_recv_opts() 86 struct ip_options *opt = (struct ip_options *)optbuf; in ip_cmsg_recv_retopts() local 88 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_retopts() 91 if (ip_options_echo(opt, skb)) { in ip_cmsg_recv_retopts() 95 ip_options_undo(opt); in ip_cmsg_recv_retopts() 97 put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); in ip_cmsg_recv_retopts() 254 err = ip_options_get(net, &ipc->opt, CMSG_DATA(cmsg), in ip_cmsg_send() 628 struct ip_options_rcu *old, *opt = NULL; in do_ip_setsockopt() local 632 err = ip_options_get_from_user(sock_net(sk), &opt, in do_ip_setsockopt() [all …]
|
D | ip_input.c | 264 struct ip_options *opt; in ip_rcv_options() local 281 opt = &(IPCB(skb)->opt); in ip_rcv_options() 282 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options() 284 if (ip_options_compile(dev_net(dev), opt, skb)) { in ip_rcv_options() 289 if (unlikely(opt->srr)) { in ip_rcv_options()
|
D | ping.c | 739 ipc.opt = NULL; in ping_v4_sendmsg() 750 kfree(ipc.opt); in ping_v4_sendmsg() 753 if (ipc.opt) in ping_v4_sendmsg() 756 if (!ipc.opt) { in ping_v4_sendmsg() 763 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg() 764 ipc.opt = &opt_copy.opt; in ping_v4_sendmsg() 772 if (ipc.opt && ipc.opt->opt.srr) { in ping_v4_sendmsg() 775 faddr = ipc.opt->opt.faddr; in ping_v4_sendmsg() 780 (ipc.opt && ipc.opt->opt.is_strictroute)) { in ping_v4_sendmsg() 840 kfree(ipc.opt); in ping_v4_sendmsg()
|
D | raw.c | 542 ipc.opt = NULL; in raw_sendmsg() 551 kfree(ipc.opt); in raw_sendmsg() 554 if (ipc.opt) in raw_sendmsg() 561 if (!ipc.opt) { in raw_sendmsg() 568 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg() 569 ipc.opt = &opt_copy.opt; in raw_sendmsg() 574 if (ipc.opt) { in raw_sendmsg() 581 if (ipc.opt->opt.srr) { in raw_sendmsg() 584 daddr = ipc.opt->opt.faddr; in raw_sendmsg() 661 kfree(ipc.opt); in raw_sendmsg()
|
D | syncookies.c | 296 struct ip_options *opt = &TCP_SKB_CB(skb)->header.h4.opt; in cookie_v4_check() local 359 ireq->opt = tcp_v4_save_options(skb); in cookie_v4_check() 377 opt->srr ? opt->faddr : ireq->ir_rmt_addr, in cookie_v4_check()
|
D | tcp_ipv4.c | 162 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 165 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 187 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 211 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect() 588 __be32 opt[(TCPOLEN_MD5SIG_ALIGNED >> 2)]; in tcp_v4_send_reset() member 664 rep.opt[0] = htonl((TCPOPT_NOP << 24) | in tcp_v4_send_reset() 672 tcp_v4_md5_hash_hdr((__u8 *) &rep.opt[1], in tcp_v4_send_reset() 691 skb, &TCP_SKB_CB(skb)->header.h4.opt, in tcp_v4_send_reset() 720 __be32 opt[(TCPOLEN_TSTAMP_ALIGNED >> 2) in tcp_v4_send_ack() member 734 rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) | in tcp_v4_send_ack() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | parse-options.c | 12 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument 15 return error("switch `%c' %s", opt->short_name, reason); in opterror() 17 return error("option `no-%s' %s", opt->long_name, reason); in opterror() 18 return error("option `%s' %s", opt->long_name, reason); in opterror() 21 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument 24 if (p->opt) { in get_arg() 25 *arg = p->opt; in get_arg() 26 p->opt = NULL; in get_arg() 27 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg() 29 *arg = (const char *)opt->defval; in get_arg() [all …]
|
D | run-command.c | 205 int opt) in prepare_run_command_v_opt() argument 209 cmd->no_stdin = opt & RUN_COMMAND_NO_STDIN ? 1 : 0; in prepare_run_command_v_opt() 210 cmd->perf_cmd = opt & RUN_PERF_CMD ? 1 : 0; in prepare_run_command_v_opt() 211 cmd->stdout_to_stderr = opt & RUN_COMMAND_STDOUT_TO_STDERR ? 1 : 0; in prepare_run_command_v_opt() 214 int run_command_v_opt(const char **argv, int opt) in run_command_v_opt() argument 217 prepare_run_command_v_opt(&cmd, argv, opt); in run_command_v_opt()
|
D | parse-regs-options.c | 8 parse_regs(const struct option *opt, const char *str, int unset) in parse_regs() argument 10 uint64_t *mode = (uint64_t *)opt->value; in parse_regs()
|
D | parse-events.h | 31 extern int parse_events_option(const struct option *opt, const char *str, 36 extern int parse_filter(const struct option *opt, const char *str, int unset); 37 extern int exclude_perf(const struct option *opt, const char *arg, int unset);
|
D | parse-branch-options.c | 35 parse_branch_stack(const struct option *opt, const char *str, int unset) in parse_branch_stack() argument 42 uint64_t *mode = (uint64_t *)opt->value; in parse_branch_stack()
|
D | cgroup.c | 137 int parse_cgroups(const struct option *opt __maybe_unused, const char *str, in parse_cgroups() 140 struct perf_evlist *evlist = *(struct perf_evlist **)opt->value; in parse_cgroups()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | param.c | 174 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 …]
|
/linux-4.4.14/drivers/clk/mvebu/ |
D | orion.c | 32 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 …]
|
D | dove.c | 90 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()
|
D | kirkwood.c | 90 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 …]
|
D | armada-xp.c | 128 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()
|
D | armada-370.c | 118 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()
|
D | armada-375.c | 119 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()
|
D | armada-38x.c | 102 u32 opt = ((readl(sar) >> SAR_A380_CPU_DDR_L2_FREQ_OPT) & in armada_38x_get_clk_ratio() local 107 *mult = armada_38x_cpu_l2_ratios[opt][0]; in armada_38x_get_clk_ratio() 108 *div = armada_38x_cpu_l2_ratios[opt][1]; in armada_38x_get_clk_ratio() 111 *mult = armada_38x_cpu_ddr_ratios[opt][0]; in armada_38x_get_clk_ratio() 112 *div = armada_38x_cpu_ddr_ratios[opt][1]; in armada_38x_get_clk_ratio()
|
/linux-4.4.14/net/ceph/ |
D | ceph_common.c | 279 void ceph_destroy_options(struct ceph_options *opt) in ceph_destroy_options() argument 281 dout("destroy_options %p\n", opt); in ceph_destroy_options() 282 kfree(opt->name); in ceph_destroy_options() 283 if (opt->key) { in ceph_destroy_options() 284 ceph_crypto_key_destroy(opt->key); in ceph_destroy_options() 285 kfree(opt->key); in ceph_destroy_options() 287 kfree(opt->mon_addr); in ceph_destroy_options() 288 kfree(opt); in ceph_destroy_options() 343 struct ceph_options *opt; in ceph_parse_options() local 348 opt = kzalloc(sizeof(*opt), GFP_KERNEL); in ceph_parse_options() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_param.c | 203 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 …]
|
/linux-4.4.14/net/ipv6/ |
D | exthdrs.c | 181 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao() local 186 if (opt->dsthao) { in ipv6_dest_hao() 190 opt->dsthao = opt->dst1; in ipv6_dest_hao() 191 opt->dst1 = 0; in ipv6_dest_hao() 252 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv() local 267 opt->lastopt = opt->dst1 = skb_network_header_len(skb); in ipv6_destopt_rcv() 269 dstbuf = opt->dst1; in ipv6_destopt_rcv() 274 opt = IP6CB(skb); in ipv6_destopt_rcv() 276 opt->nhoff = dstbuf; in ipv6_destopt_rcv() 278 opt->nhoff = opt->dst1; in ipv6_destopt_rcv() [all …]
|
D | ipv6_sockglue.c | 103 struct ipv6_txoptions *opt) in ipv6_update_options() argument 106 if (opt && in ipv6_update_options() 110 icsk->icsk_ext_hdr_len = opt->opt_flen + opt->opt_nflen; in ipv6_update_options() 114 opt = xchg((__force struct ipv6_txoptions **)&inet6_sk(sk)->opt, in ipv6_update_options() 115 opt); in ipv6_update_options() 118 return opt; in ipv6_update_options() 174 struct ipv6_txoptions *opt; in do_ipv6_setsockopt() local 235 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt() 237 if (opt) { in do_ipv6_setsockopt() 238 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in do_ipv6_setsockopt() [all …]
|
D | ip6_output.c | 158 struct ipv6_txoptions *opt, int tclass) in ip6_xmit() argument 170 if (opt) { in ip6_xmit() 176 head_room = opt->opt_nflen + opt->opt_flen; in ip6_xmit() 195 if (opt->opt_flen) in ip6_xmit() 196 ipv6_push_frag_opts(skb, opt, &proto); in ip6_xmit() 197 if (opt->opt_nflen) in ip6_xmit() 198 ipv6_push_nfrag_opts(skb, opt, &proto, &first_hop); in ip6_xmit() 382 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_forward() local 419 if (unlikely(opt->flags & IP6SKB_ROUTERALERT)) { in ip6_forward() 420 if (ip6_call_ra_chain(skb, ntohs(opt->ra))) in ip6_forward() [all …]
|
D | datagram.c | 52 struct ipv6_txoptions *opt; in __ip6_datagram_connect() local 174 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in __ip6_datagram_connect() 175 final_p = fl6_update_dst(&fl6, opt, &final); in __ip6_datagram_connect() 556 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_datagram_recv_specific_ctl() local 576 if (np->rxopt.bits.hopopts && (opt->flags & IP6SKB_HOPBYHOP)) { in ip6_datagram_recv_specific_ctl() 581 if (opt->lastopt && in ip6_datagram_recv_specific_ctl() 595 while (off <= opt->lastopt) { in ip6_datagram_recv_specific_ctl() 630 src_info.ipi6_ifindex = opt->iif; in ip6_datagram_recv_specific_ctl() 638 if (np->rxopt.bits.ohopopts && (opt->flags & IP6SKB_HOPBYHOP)) { in ip6_datagram_recv_specific_ctl() 642 if (np->rxopt.bits.odstopts && opt->dst0) { in ip6_datagram_recv_specific_ctl() [all …]
|
D | ip6_flowlabel.c | 103 kfree(fl->opt); in fl_free() 118 if (fl->opt && fl->share == IPV6_FL_S_EXCL) { in fl_release() 119 struct ipv6_txoptions *opt = fl->opt; in fl_release() local 120 fl->opt = NULL; in fl_release() 121 kfree(opt); in fl_release() 298 struct ipv6_txoptions *fl_opt = fl->opt; in fl6_merge_options() 378 fl->opt = kmalloc(sizeof(*fl->opt) + olen, GFP_KERNEL); in fl_create() 379 if (!fl->opt) in fl_create() 382 memset(fl->opt, 0, sizeof(*fl->opt)); in fl_create() 383 fl->opt->tot_len = sizeof(*fl->opt) + olen; in fl_create() [all …]
|
D | ndisc.c | 158 u8 *opt = skb_put(skb, space); in ndisc_fill_addr_option() local 160 opt[0] = type; in ndisc_fill_addr_option() 161 opt[1] = space>>3; in ndisc_fill_addr_option() 163 memset(opt + 2, 0, pad); in ndisc_fill_addr_option() 164 opt += pad; in ndisc_fill_addr_option() 167 memcpy(opt+2, data, data_len); in ndisc_fill_addr_option() 169 opt += data_len; in ndisc_fill_addr_option() 172 memset(opt, 0, space); in ndisc_fill_addr_option() 188 static inline int ndisc_is_useropt(struct nd_opt_hdr *opt) in ndisc_is_useropt() argument 190 return opt->nd_opt_type == ND_OPT_RDNSS || in ndisc_is_useropt() [all …]
|
D | xfrm6_protocol.c | 83 static void xfrm6_esp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_esp_err() argument 89 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_esp_err() 110 static void xfrm6_ah_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_ah_err() argument 116 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ah_err() 137 static void xfrm6_ipcomp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in xfrm6_ipcomp_err() argument 143 if (!handler->err_handler(skb, opt, type, code, offset, info)) in xfrm6_ipcomp_err()
|
D | tunnel6.c | 137 static void tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in tunnel6_err() argument 143 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel6_err() 147 static void tunnel46_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in tunnel46_err() argument 153 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel46_err()
|
D | ah6.c | 118 u8 *opt = (u8 *)opthdr; in zero_out_mutable_opts() local 128 switch (opt[off]) { in zero_out_mutable_opts() 136 optlen = opt[off+1]+2; in zero_out_mutable_opts() 139 if (opt[off] & 0x20) in zero_out_mutable_opts() 140 memset(&opt[off+2], 0, opt[off+1]); in zero_out_mutable_opts() 162 u8 *opt = (u8 *)destopt; in ipv6_rearrange_destopt() local 172 switch (opt[off]) { in ipv6_rearrange_destopt() 180 optlen = opt[off+1]+2; in ipv6_rearrange_destopt() 188 if (opt[off] == IPV6_TLV_HAO) { in ipv6_rearrange_destopt() 192 hao = (struct ipv6_destopt_hao *)&opt[off]; in ipv6_rearrange_destopt() [all …]
|
D | raw.c | 321 struct inet6_skb_parm *opt, in rawv6_err() argument 743 struct ipv6_txoptions *opt = NULL; in rawv6_sendmsg() local 825 opt = &opt_space; in rawv6_sendmsg() 826 memset(opt, 0, sizeof(struct ipv6_txoptions)); in rawv6_sendmsg() 827 opt->tot_len = sizeof(struct ipv6_txoptions); in rawv6_sendmsg() 829 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in rawv6_sendmsg() 840 if (!(opt->opt_nflen|opt->opt_flen)) in rawv6_sendmsg() 841 opt = NULL; in rawv6_sendmsg() 843 if (!opt) { in rawv6_sendmsg() 844 opt = txopt_get(np); in rawv6_sendmsg() [all …]
|
D | udp.c | 537 void __udp6_lib_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in __udp6_lib_err() argument 611 struct inet6_skb_parm *opt, u8 type, in udpv6_err() argument 614 __udp6_lib_err(skb, opt, type, code, offset, info, &udp_table); in udpv6_err() 1110 struct ipv6_txoptions *opt = NULL; in udpv6_sendmsg() local 1246 opt = &opt_space; in udpv6_sendmsg() 1247 memset(opt, 0, sizeof(struct ipv6_txoptions)); in udpv6_sendmsg() 1248 opt->tot_len = sizeof(*opt); in udpv6_sendmsg() 1250 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in udpv6_sendmsg() 1261 if (!(opt->opt_nflen|opt->opt_flen)) in udpv6_sendmsg() 1262 opt = NULL; in udpv6_sendmsg() [all …]
|
D | af_inet6.c | 417 struct ipv6_txoptions *opt; in inet6_destroy_sock() local 434 opt = xchg((__force struct ipv6_txoptions **)&np->opt, NULL); in inet6_destroy_sock() 435 if (opt) { in inet6_destroy_sock() 436 atomic_sub(opt->tot_len, &sk->sk_omem_alloc); in inet6_destroy_sock() 437 txopt_put(opt); in inet6_destroy_sock() 668 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), in inet6_sk_rebuild_header() 687 const struct inet6_skb_parm *opt) in ipv6_opt_accepted() argument 692 if (((opt->flags & IP6SKB_HOPBYHOP) && in ipv6_opt_accepted() 696 (opt->srcrt && (np->rxopt.bits.srcrt || in ipv6_opt_accepted() 698 ((opt->dst1 || opt->dst0) && in ipv6_opt_accepted()
|
D | tcp_ipv6.c | 122 struct ipv6_txoptions *opt; in tcp_v6_connect() local 238 opt = rcu_dereference_protected(np->opt, sock_owned_by_user(sk)); in tcp_v6_connect() 239 final_p = fl6_update_dst(&fl6, opt, &final); in tcp_v6_connect() 267 if (opt) in tcp_v6_connect() 268 icsk->icsk_ext_hdr_len = opt->opt_flen + in tcp_v6_connect() 269 opt->opt_nflen; in tcp_v6_connect() 320 static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in tcp_v6_err() argument 467 err = ip6_xmit(sk, skb, fl6, rcu_dereference(np->opt), in tcp_v6_send_synack() 980 struct ipv6_txoptions *opt; in tcp_v6_syn_recv_sock() local 1021 newnp->opt = NULL; in tcp_v6_syn_recv_sock() [all …]
|
D | ip6_tunnel.c | 539 ip6_tnl_err(struct sk_buff *skb, __u8 ipproto, struct inet6_skb_parm *opt, in ip6_tnl_err() argument 627 ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in ip4ip6_err() argument 640 err = ip6_tnl_err(skb, IPPROTO_IPIP, opt, &rel_type, &rel_code, in ip4ip6_err() 733 ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in ip6ip6_err() argument 742 err = ip6_tnl_err(skb, IPPROTO_IPV6, opt, &rel_type, &rel_code, in ip6ip6_err() 945 static void init_tel_txopt(struct ipv6_tel_txoption *opt, __u8 encap_limit) in init_tel_txopt() argument 947 memset(opt, 0, sizeof(struct ipv6_tel_txoption)); in init_tel_txopt() 949 opt->dst_opt[2] = IPV6_TLV_TNL_ENCAP_LIMIT; in init_tel_txopt() 950 opt->dst_opt[3] = 1; in init_tel_txopt() 951 opt->dst_opt[4] = encap_limit; in init_tel_txopt() [all …]
|
D | inet6_connection_sock.c | 82 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_req() 140 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in inet6_csk_route_socket() 174 res = ip6_xmit(sk, skb, &fl6, rcu_dereference(np->opt), in inet6_csk_xmit()
|
D | udplite.c | 23 struct inet6_skb_parm *opt, in udplitev6_err() argument 26 __udp6_lib_err(skb, opt, type, code, offset, info, &udplite_table); in udplitev6_err()
|
D | ip6_udp_tunnel.c | 91 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in udp_tunnel6_xmit_skb()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000_param.c | 209 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 …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_param.c | 119 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 …]
|
/linux-4.4.14/Documentation/usb/ |
D | gadget_hid.txt | 138 const char *opt; 143 {.opt = "--left-ctrl", .val = 0x01}, 144 {.opt = "--right-ctrl", .val = 0x10}, 145 {.opt = "--left-shift", .val = 0x02}, 146 {.opt = "--right-shift", .val = 0x20}, 147 {.opt = "--left-alt", .val = 0x04}, 148 {.opt = "--right-alt", .val = 0x40}, 149 {.opt = "--left-meta", .val = 0x08}, 150 {.opt = "--right-meta", .val = 0x80}, 151 {.opt = NULL} [all …]
|
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_param.c | 227 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 …]
|
/linux-4.4.14/net/netfilter/ |
D | nf_sockopt.c | 93 char __user *opt, int *len, int get) in nf_sockopt() argument 103 ret = ops->get(sk, val, opt, len); in nf_sockopt() 105 ret = ops->set(sk, val, opt, *len); in nf_sockopt() 111 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt() argument 114 return nf_sockopt(sk, pf, val, opt, &len, 0); in nf_setsockopt() 118 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt() argument 121 return nf_sockopt(sk, pf, val, opt, len, 1); in nf_getsockopt() 127 char __user *opt, int *len, int get) in compat_nf_sockopt() argument 138 ret = ops->compat_get(sk, val, opt, len); in compat_nf_sockopt() 140 ret = ops->get(sk, val, opt, len); in compat_nf_sockopt() [all …]
|
D | xt_TCPMSS.c | 37 optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument 40 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) in optlen() 43 return opt[offset+1]; in optlen() 91 u8 *opt; in tcpmss_mangle_packet() local 128 opt = (u_int8_t *)tcph; in tcpmss_mangle_packet() 129 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet() 130 if (opt[i] == TCPOPT_MSS && opt[i+1] == TCPOLEN_MSS) { in tcpmss_mangle_packet() 133 oldmss = (opt[i+2] << 8) | opt[i+3]; in tcpmss_mangle_packet() 142 opt[i+2] = (newmss & 0xff00) >> 8; in tcpmss_mangle_packet() 143 opt[i+3] = newmss & 0x00ff; in tcpmss_mangle_packet() [all …]
|
D | xt_TCPOPTSTRIP.c | 22 static inline unsigned int optlen(const u_int8_t *opt, unsigned int offset) in optlen() argument 25 if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0) in optlen() 28 return opt[offset+1]; in optlen() 40 u_int8_t *opt; in tcpoptstrip_mangle_packet() local 60 opt = (u_int8_t *)tcph; in tcpoptstrip_mangle_packet() 67 optl = optlen(opt, i); in tcpoptstrip_mangle_packet() 72 if (!tcpoptstrip_test_bit(info->strip_bmap, opt[i])) in tcpoptstrip_mangle_packet() 76 o = opt[i+j]; in tcpoptstrip_mangle_packet() 85 memset(opt + i, TCPOPT_NOP, optl); in tcpoptstrip_mangle_packet()
|
D | xt_set.c | 35 struct ip_set_adt_opt *opt, int inv) in match_set() argument 37 if (ip_set_test(index, skb, par, opt)) in match_set() 58 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, in set_match_v0() 61 return match_set(info->match_set.index, skb, par, &opt, in set_match_v0() 121 ADT_OPT(opt, par->family, info->match_set.dim, in set_match_v1() 124 if (opt.flags & IPSET_RETURN_NOMATCH) in set_match_v1() 125 opt.cmdflags |= IPSET_FLAG_RETURN_NOMATCH; in set_match_v1() 127 return match_set(info->match_set.index, skb, par, &opt, in set_match_v1() 187 ADT_OPT(opt, par->family, info->match_set.dim, in set_match_v3() 192 opt.cmdflags |= IPSET_FLAG_MATCH_COUNTERS; in set_match_v3() [all …]
|
D | xt_RATEEST.c | 97 struct nlattr opt; in xt_rateest_tg_checkentry() member 134 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry() 135 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry() 140 &est->lock, &cfg.opt); in xt_rateest_tg_checkentry()
|
/linux-4.4.14/drivers/net/ppp/ |
D | pptp.c | 94 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 …]
|
/linux-4.4.14/scripts/ |
D | export_report.pl | 65 my (%SYMBOL, %MODULE, %opt, @allcfiles); 67 if (not getopts('hk:o:f',\%opt) or defined $opt{'h'}) { 71 if (defined $opt{'f'}) { 77 if (not defined $opt{'k'}) { 78 $opt{'k'} = "Module.symvers"; 81 open (my $module_symvers, '<', $opt{'k'}) 82 or die "Sorry, cannot open $opt{'k'}: $!\n"; 84 if (defined $opt{'o'}) { 85 open (my $out, '>', $opt{'o'}) 86 or die "Sorry, cannot open $opt{'o'} $!\n";
|
D | sign-file.c | 149 int opt, n; in main() local 163 opt = getopt(argc, argv, "dpk"); in main() 164 switch (opt) { in main() 173 } while (opt != -1); in main()
|
D | pnmtologo.c | 449 int opt; in main() local 455 opt = getopt(argc, argv, "hn:o:t:"); in main() 456 if (opt == -1) in main() 459 switch (opt) { in main()
|
/linux-4.4.14/tools/power/cpupower/bench/ |
D | parse.c | 161 char opt[16], val[32], *line = NULL; in prepare_config() local 181 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 184 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config() 186 if (strcmp("sleep", opt) == 0) in prepare_config() 189 else if (strcmp("load", opt) == 0) in prepare_config() 192 else if (strcmp("load_step", opt) == 0) in prepare_config() 195 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 198 else if (strcmp("cycles", opt) == 0) in prepare_config() 201 else if (strcmp("rounds", opt) == 0) in prepare_config() 204 else if (strcmp("verbose", opt) == 0) in prepare_config() [all …]
|
/linux-4.4.14/net/dns_resolver/ |
D | dns_key.c | 67 const char *data = prep->data, *end, *opt; in dns_resolver_preparse() local 77 opt = memchr(data, '#', datalen); in dns_resolver_preparse() 78 if (!opt) { in dns_resolver_preparse() 85 result_len = opt - data; in dns_resolver_preparse() 86 opt++; in dns_resolver_preparse() 87 kdebug("options: '%s'", opt); in dns_resolver_preparse() 92 next_opt = memchr(opt, '#', end - opt) ?: end; in dns_resolver_preparse() 93 opt_len = next_opt - opt; in dns_resolver_preparse() 100 eq = memchr(opt, '=', opt_len) ?: end; in dns_resolver_preparse() 101 opt_nlen = eq - opt; in dns_resolver_preparse() [all …]
|
/linux-4.4.14/tools/testing/ktest/ |
D | compare-ktest-sample.pl | 9 $opt{$1} = 1; 22 foreach $opt (keys %opt) { 23 if (!defined($samp{$opt})) { 24 print "opt = $opt\n"; 29 if (!defined($opt{$samp})) {
|
D | ktest.pl | 18 my %opt; 463 if (defined($opt{"LOG_FILE"})) { 464 open(OUT, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}"; 471 if (defined($opt{"LOG_FILE"})) { 536 return if (defined($opt{$config})); 649 my $rtype = $opt{"REBOOT_TYPE"}; 652 if (!defined($opt{"GRUB_MENU"})) { 743 if (defined($opt{$lvalue})) { 754 $opt{$lvalue} = $prvalue; 820 defined($opt{$2}); [all …]
|
/linux-4.4.14/net/sched/ |
D | sch_gred.c | 424 static int gred_change(struct Qdisc *sch, struct nlattr *opt) in gred_change() argument 434 if (opt == NULL) in gred_change() 437 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy); in gred_change() 444 return gred_change_table_def(sch, opt); in gred_change() 498 static int gred_init(struct Qdisc *sch, struct nlattr *opt) in gred_init() argument 503 if (opt == NULL) in gred_init() 506 err = nla_parse_nested(tb, TCA_GRED_MAX, opt, gred_policy); in gred_init() 558 struct tc_gred_qopt opt; in gred_dump() local 561 memset(&opt, 0, sizeof(opt)); in gred_dump() 568 opt.DP = MAX_DPs + i; in gred_dump() [all …]
|
D | act_pedit.c | 178 struct tc_pedit *opt; in tcf_pedit_dump() local 182 s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_dump() 185 opt = kzalloc(s, GFP_ATOMIC); in tcf_pedit_dump() 186 if (unlikely(!opt)) in tcf_pedit_dump() 189 memcpy(opt->keys, p->tcfp_keys, in tcf_pedit_dump() 191 opt->index = p->tcf_index; in tcf_pedit_dump() 192 opt->nkeys = p->tcfp_nkeys; in tcf_pedit_dump() 193 opt->flags = p->tcfp_flags; in tcf_pedit_dump() 194 opt->action = p->tcf_action; in tcf_pedit_dump() 195 opt->refcnt = p->tcf_refcnt - ref; in tcf_pedit_dump() [all …]
|
D | sch_plug.c | 123 static int plug_init(struct Qdisc *sch, struct nlattr *opt) in plug_init() argument 132 if (opt == NULL) { in plug_init() 136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() 138 if (nla_len(opt) < sizeof(*ctl)) in plug_init() 158 static int plug_change(struct Qdisc *sch, struct nlattr *opt) in plug_change() argument 163 if (opt == NULL) in plug_change() 166 msg = nla_data(opt); in plug_change() 167 if (nla_len(opt) < sizeof(*msg)) in plug_change()
|
D | em_ipset.c | 56 struct ip_set_adt_opt opt; in em_ipset_match() local 82 opt.family = acpar.family; in em_ipset_match() 83 opt.dim = set->dim; in em_ipset_match() 84 opt.flags = set->flags; in em_ipset_match() 85 opt.cmdflags = 0; in em_ipset_match() 86 opt.ext.timeout = ~0u; in em_ipset_match() 102 ret = ip_set_test(set->index, skb, &acpar, &opt); in em_ipset_match()
|
D | sch_sfq.c | 618 static int sfq_change(struct Qdisc *sch, struct nlattr *opt) in sfq_change() argument 621 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() 626 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change() 628 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) in sfq_change() 629 ctl_v1 = nla_data(opt); in sfq_change() 711 static int sfq_init(struct Qdisc *sch, struct nlattr *opt) in sfq_init() argument 736 if (opt) { in sfq_init() 737 int err = sfq_change(sch, opt); in sfq_init() 766 struct tc_sfq_qopt_v1 opt; in sfq_dump() local 769 memset(&opt, 0, sizeof(opt)); in sfq_dump() [all …]
|
D | sch_fifo.c | 51 static int fifo_init(struct Qdisc *sch, struct nlattr *opt) in fifo_init() argument 56 if (opt == NULL) { in fifo_init() 64 struct tc_fifo_qopt *ctl = nla_data(opt); in fifo_init() 66 if (nla_len(opt) < sizeof(*ctl)) in fifo_init() 86 struct tc_fifo_qopt opt = { .limit = sch->limit }; in fifo_dump() local 88 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in fifo_dump()
|
D | sch_tbf.c | 314 static int tbf_change(struct Qdisc *sch, struct nlattr *opt) in tbf_change() argument 327 err = nla_parse_nested(tb, TCA_TBF_MAX, opt, tbf_policy); in tbf_change() 431 static int tbf_init(struct Qdisc *sch, struct nlattr *opt) in tbf_init() argument 435 if (opt == NULL) in tbf_init() 442 return tbf_change(sch, opt); in tbf_init() 457 struct tc_tbf_qopt opt; in tbf_dump() local 464 opt.limit = q->limit; in tbf_dump() 465 psched_ratecfg_getrate(&opt.rate, &q->rate); in tbf_dump() 467 psched_ratecfg_getrate(&opt.peakrate, &q->peak); in tbf_dump() 469 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); in tbf_dump() [all …]
|
D | sch_cbq.c | 1343 static int cbq_init(struct Qdisc *sch, struct nlattr *opt) in cbq_init() argument 1350 err = nla_parse_nested(tb, TCA_CBQ_MAX, opt, cbq_policy); in cbq_init() 1423 struct tc_cbq_lssopt opt; in cbq_dump_lss() local 1425 opt.flags = 0; in cbq_dump_lss() 1427 opt.flags |= TCF_CBQ_LSS_BOUNDED; in cbq_dump_lss() 1429 opt.flags |= TCF_CBQ_LSS_ISOLATED; in cbq_dump_lss() 1430 opt.ewma_log = cl->ewma_log; in cbq_dump_lss() 1431 opt.level = cl->level; in cbq_dump_lss() 1432 opt.avpkt = cl->avpkt; in cbq_dump_lss() 1433 opt.maxidle = cl->maxidle; in cbq_dump_lss() [all …]
|
D | sch_mqprio.c | 92 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt) in mqprio_init() argument 110 if (!opt || nla_len(opt) < sizeof(*qopt)) in mqprio_init() 113 qopt = nla_data(opt); in mqprio_init() 225 struct tc_mqprio_qopt opt = { 0 }; in mqprio_dump() local 246 opt.num_tc = netdev_get_num_tc(dev); in mqprio_dump() 247 memcpy(opt.prio_tc_map, dev->prio_tc_map, sizeof(opt.prio_tc_map)); in mqprio_dump() 248 opt.hw = priv->hw_owned; in mqprio_dump() 251 opt.count[i] = dev->tc_to_txq[i].count; in mqprio_dump() 252 opt.offset[i] = dev->tc_to_txq[i].offset; in mqprio_dump() 255 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in mqprio_dump()
|
D | sch_multiq.c | 200 static int multiq_tune(struct Qdisc *sch, struct nlattr *opt) in multiq_tune() argument 208 if (nla_len(opt) < sizeof(*qopt)) in multiq_tune() 211 qopt = nla_data(opt); in multiq_tune() 254 static int multiq_init(struct Qdisc *sch, struct nlattr *opt) in multiq_init() argument 261 if (opt == NULL) in multiq_init() 272 err = multiq_tune(sch, opt); in multiq_init() 284 struct tc_multiq_qopt opt; in multiq_dump() local 286 opt.bands = q->bands; in multiq_dump() 287 opt.max_bands = q->max_bands; in multiq_dump() 289 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in multiq_dump()
|
D | sch_prio.c | 168 static int prio_tune(struct Qdisc *sch, struct nlattr *opt) in prio_tune() argument 174 if (nla_len(opt) < sizeof(*qopt)) in prio_tune() 176 qopt = nla_data(opt); in prio_tune() 225 static int prio_init(struct Qdisc *sch, struct nlattr *opt) in prio_init() argument 233 if (opt == NULL) { in prio_init() 238 if ((err = prio_tune(sch, opt)) != 0) in prio_init() 248 struct tc_prio_qopt opt; in prio_dump() local 250 opt.bands = q->bands; in prio_dump() 251 memcpy(&opt.priomap, q->prio2band, TC_PRIO_MAX + 1); in prio_dump() 253 if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) in prio_dump()
|
D | sch_codel.c | 116 static int codel_change(struct Qdisc *sch, struct nlattr *opt) in codel_change() argument 123 if (!opt) in codel_change() 126 err = nla_parse_nested(tb, TCA_CODEL_MAX, opt, codel_policy); in codel_change() 170 static int codel_init(struct Qdisc *sch, struct nlattr *opt) in codel_init() argument 180 if (opt) { in codel_init() 181 int err = codel_change(sch, opt); in codel_init()
|
D | sch_red.c | 179 static int red_change(struct Qdisc *sch, struct nlattr *opt) in red_change() argument 188 if (opt == NULL) in red_change() 191 err = nla_parse_nested(tb, TCA_RED_MAX, opt, red_policy); in red_change() 249 static int red_init(struct Qdisc *sch, struct nlattr *opt) in red_init() argument 255 return red_change(sch, opt); in red_init() 262 struct tc_red_qopt opt = { in red_dump() local 276 if (nla_put(skb, TCA_RED_PARMS, sizeof(opt), &opt) || in red_dump()
|
D | sch_choke.c | 416 static int choke_change(struct Qdisc *sch, struct nlattr *opt) in choke_change() argument 426 if (opt == NULL) in choke_change() 429 err = nla_parse_nested(tb, TCA_CHOKE_MAX, opt, choke_policy); in choke_change() 503 static int choke_init(struct Qdisc *sch, struct nlattr *opt) in choke_init() argument 505 return choke_change(sch, opt); in choke_init() 512 struct tc_red_qopt opt = { in choke_dump() local 526 if (nla_put(skb, TCA_CHOKE_PARMS, sizeof(opt), &opt) || in choke_dump()
|
D | sch_htb.c | 1020 static int htb_init(struct Qdisc *sch, struct nlattr *opt) in htb_init() argument 1028 if (!opt) in htb_init() 1031 err = nla_parse_nested(tb, TCA_HTB_MAX, opt, htb_policy); in htb_init() 1099 struct tc_htb_opt opt; in htb_dump_class() local 1113 memset(&opt, 0, sizeof(opt)); in htb_dump_class() 1115 psched_ratecfg_getrate(&opt.rate, &cl->rate); in htb_dump_class() 1116 opt.buffer = PSCHED_NS2TICKS(cl->buffer); in htb_dump_class() 1117 psched_ratecfg_getrate(&opt.ceil, &cl->ceil); in htb_dump_class() 1118 opt.cbuffer = PSCHED_NS2TICKS(cl->cbuffer); in htb_dump_class() 1119 opt.quantum = cl->quantum; in htb_dump_class() [all …]
|
D | sch_dsmark.c | 116 struct nlattr *opt = tca[TCA_OPTIONS]; in dsmark_change() local 128 if (!opt) in dsmark_change() 131 err = nla_parse_nested(tb, TCA_DSMARK_MAX, opt, dsmark_policy); in dsmark_change() 340 static int dsmark_init(struct Qdisc *sch, struct nlattr *opt) in dsmark_init() argument 349 pr_debug("%s(sch %p,[qdisc %p],opt %p)\n", __func__, sch, p, opt); in dsmark_init() 351 if (!opt) in dsmark_init() 354 err = nla_parse_nested(tb, TCA_DSMARK_MAX, opt, dsmark_policy); in dsmark_init()
|
D | act_connmark.c | 148 struct tc_connmark opt = { in tcf_connmark_dump() local 157 if (nla_put(skb, TCA_CONNMARK_PARMS, sizeof(opt), &opt)) in tcf_connmark_dump()
|
D | act_simple.c | 141 struct tc_defact opt = { in tcf_simp_dump() local 149 if (nla_put(skb, TCA_DEF_PARMS, sizeof(opt), &opt) || in tcf_simp_dump()
|
D | act_gact.c | 152 struct tc_gact opt = { in tcf_gact_dump() local 160 if (nla_put(skb, TCA_GACT_PARMS, sizeof(opt), &opt)) in tcf_gact_dump()
|
D | act_skbedit.c | 142 struct tc_skbedit opt = { in tcf_skbedit_dump() local 150 if (nla_put(skb, TCA_SKBEDIT_PARMS, sizeof(opt), &opt)) in tcf_skbedit_dump()
|
D | act_vlan.c | 155 struct tc_vlan opt = { in tcf_vlan_dump() local 164 if (nla_put(skb, TCA_VLAN_PARMS, sizeof(opt), &opt)) in tcf_vlan_dump()
|
D | sch_atm.c | 191 struct nlattr *opt = tca[TCA_OPTIONS]; in atm_tc_change() local 198 "flow %p,opt %p)\n", sch, p, classid, parent, flow, opt); in atm_tc_change() 213 if (opt == NULL) in atm_tc_change() 216 error = nla_parse_nested(tb, TCA_ATM_MAX, opt, atm_policy); in atm_tc_change() 240 opt->nla_type, nla_len(opt), hdr_len); in atm_tc_change() 536 static int atm_tc_init(struct Qdisc *sch, struct nlattr *opt) in atm_tc_init() argument 540 pr_debug("atm_tc_init(sch %p,[qdisc %p],opt %p)\n", sch, p, opt); in atm_tc_init()
|
D | sch_sfb.c | 483 static int sfb_change(struct Qdisc *sch, struct nlattr *opt) in sfb_change() argument 492 if (opt) { in sfb_change() 493 err = nla_parse_nested(tb, TCA_SFB_MAX, opt, sfb_policy); in sfb_change() 542 static int sfb_init(struct Qdisc *sch, struct nlattr *opt) in sfb_init() argument 547 return sfb_change(sch, opt); in sfb_init() 554 struct tc_sfb_qopt opt = { in sfb_dump() local 570 if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt)) in sfb_dump()
|
D | act_police.c | 317 struct tc_police opt = { in tcf_act_police_dump() local 327 psched_ratecfg_getrate(&opt.rate, &police->rate); in tcf_act_police_dump() 329 psched_ratecfg_getrate(&opt.peakrate, &police->peak); in tcf_act_police_dump() 330 if (nla_put(skb, TCA_POLICE_TBF, sizeof(opt), &opt)) in tcf_act_police_dump()
|
D | sch_pie.c | 182 static int pie_change(struct Qdisc *sch, struct nlattr *opt) in pie_change() argument 189 if (!opt) in pie_change() 192 err = nla_parse_nested(tb, TCA_PIE_MAX, opt, pie_policy); in pie_change() 440 static int pie_init(struct Qdisc *sch, struct nlattr *opt) in pie_init() argument 450 if (opt) { in pie_init() 451 int err = pie_change(sch, opt); in pie_init()
|
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-palmas.c | 389 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 …]
|
/linux-4.4.14/drivers/video/fbdev/ |
D | acornfb.c | 765 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 …]
|
D | tridentfb.c | 1782 char *opt; in tridentfb_setup() local 1785 while ((opt = strsep(&options, ",")) != NULL) { in tridentfb_setup() 1786 if (!*opt) in tridentfb_setup() 1788 if (!strncmp(opt, "noaccel", 7)) in tridentfb_setup() 1790 else if (!strncmp(opt, "fp", 2)) in tridentfb_setup() 1792 else if (!strncmp(opt, "crt", 3)) in tridentfb_setup() 1794 else if (!strncmp(opt, "bpp=", 4)) in tridentfb_setup() 1795 bpp = simple_strtoul(opt + 4, NULL, 0); in tridentfb_setup() 1796 else if (!strncmp(opt, "center", 6)) in tridentfb_setup() 1798 else if (!strncmp(opt, "stretch", 7)) in tridentfb_setup() [all …]
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_options.c | 436 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 …]
|
/linux-4.4.14/arch/x86/pci/ |
D | pcbios.c | 381 struct irq_routing_options opt; in pcibios_get_irq_routing_table() local 391 opt.table = (struct irq_info *) page; in pcibios_get_irq_routing_table() 392 opt.size = PAGE_SIZE; in pcibios_get_irq_routing_table() 393 opt.segment = __KERNEL_DS; in pcibios_get_irq_routing_table() 406 "=m" (opt) in pcibios_get_irq_routing_table() 409 "D" ((long) &opt), in pcibios_get_irq_routing_table() 411 "m" (opt) in pcibios_get_irq_routing_table() 413 DBG("OK ret=%d, size=%d, map=%x\n", ret, opt.size, map); in pcibios_get_irq_routing_table() 416 else if (opt.size) { in pcibios_get_irq_routing_table() 417 rt = kmalloc(sizeof(struct irq_routing_table) + opt.size, GFP_KERNEL); in pcibios_get_irq_routing_table() [all …]
|
/linux-4.4.14/tools/perf/scripts/python/ |
D | call-graph-from-postgresql.py | 302 for opt in opts: 303 if '=' in opt: 304 opt = opt.split('=') variable 305 if opt[0] == 'hostname': 306 db.setHostName(opt[1]) 307 elif opt[0] == 'port': 308 db.setPort(int(opt[1])) 309 elif opt[0] == 'username': 310 db.setUserName(opt[1]) 311 elif opt[0] == 'password': [all …]
|
D | compaction-times.py | 274 for i, opt in enumerate(sys.argv[1:]): 275 if opt[0] == "-": 276 if opt == "-h": 279 elif opt == "-p": 281 elif opt == "-pv": 283 elif opt == '-u': 285 elif opt == "-t": 287 elif opt == "-m": 289 elif opt == "-fs": 291 elif opt == "-ms": [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/ |
D | option.c | 28 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()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 37 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()
|
/linux-4.4.14/fs/isofs/ |
D | inode.c | 579 struct iso9660_options opt; in isofs_fill_super() local 595 if (!parse_options((char *)data, &opt)) in isofs_fill_super() 607 opt.blocksize = sb_min_blocksize(s, opt.blocksize); in isofs_fill_super() 611 vol_desc_start = (opt.sbsector != -1) ? in isofs_fill_super() 612 opt.sbsector : isofs_get_last_session(s,opt.session); in isofs_fill_super() 646 if (opt.joliet) { in isofs_fill_super() 671 opt.rock = 0; in isofs_fill_super() 694 if (joliet_level && (pri == NULL || !opt.rock)) { in isofs_fill_super() 725 if (orig_zonesize < opt.blocksize) in isofs_fill_super() 805 if (joliet_level && opt.utf8 == 0) { in isofs_fill_super() [all …]
|
/linux-4.4.14/net/dccp/ |
D | options.c | 62 unsigned char opt, len; in dccp_parse_options() local 71 opt = len = 0; in dccp_parse_options() 73 opt = *opt_ptr++; in dccp_parse_options() 78 if (opt > DCCPO_MAX_RESERVED) { in dccp_parse_options() 102 if (dreq != NULL && (opt >= DCCPO_MIN_RX_CCID_SPECIFIC || in dccp_parse_options() 103 opt == DCCPO_ACK_VECTOR_0 || opt == DCCPO_ACK_VECTOR_1)) in dccp_parse_options() 106 switch (opt) { in dccp_parse_options() 128 rc = dccp_feat_parse_options(sk, dreq, mandatory, opt, in dccp_parse_options() 219 pkt_type, opt, value, len)) in dccp_parse_options() 234 pkt_type, opt, value, len)) in dccp_parse_options() [all …]
|
D | feat.c | 246 static const char *dccp_feat_oname(const u8 opt) in dccp_feat_oname() argument 248 switch (opt) { in dccp_feat_oname() 291 #define dccp_feat_print_opt(opt, feat, val, len, mandatory) do { \ argument 292 dccp_pr_debug("%s(%s, ", dccp_feat_oname(opt), dccp_feat_fname(feat));\ 304 #define dccp_feat_print_opt(opt, feat, val, len, mandatory) argument 639 u8 opt, type, len, *ptr, nn_in_nbo[DCCP_OPTVAL_MAXLEN]; in dccp_feat_insert_opts() local 644 opt = dccp_feat_genopt(pos); in dccp_feat_insert_opts() 665 dccp_feat_print_opt(opt, pos->feat_num, ptr, len, 0); in dccp_feat_insert_opts() 667 if (dccp_insert_fn_opt(skb, opt, pos->feat_num, ptr, len, rpt)) in dccp_feat_insert_opts() 673 (opt == DCCPO_CONFIRM_R || opt == DCCPO_CONFIRM_L)) { in dccp_feat_insert_opts() [all …]
|
D | ipv6.c | 69 static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in dccp_v6_err() argument 206 final_p = fl6_update_dst(&fl6, rcu_dereference(np->opt), &final); in dccp_v6_send_response() 225 err = ip6_xmit(sk, skb, &fl6, rcu_dereference(np->opt), in dccp_v6_send_response() 395 struct ipv6_txoptions *opt; in dccp_v6_request_recv_sock() local 421 newnp->opt = NULL; in dccp_v6_request_recv_sock() 487 newnp->opt = NULL; in dccp_v6_request_recv_sock() 497 opt = rcu_dereference(np->opt); in dccp_v6_request_recv_sock() 498 if (opt) { in dccp_v6_request_recv_sock() 499 opt = ipv6_dup_options(newsk, opt); in dccp_v6_request_recv_sock() 500 RCU_INIT_POINTER(newnp->opt, opt); in dccp_v6_request_recv_sock() [all …]
|
D | ccid.h | 66 u8 opt, u8 *val, u8 len); 72 u8 opt, u8 *val, u8 len); 203 u8 pkt, u8 opt, u8 *val, u8 len) in ccid_hc_tx_parse_options() argument 207 return ccid->ccid_ops->ccid_hc_tx_parse_options(sk, pkt, opt, val, len); in ccid_hc_tx_parse_options() 215 u8 pkt, u8 opt, u8 *val, u8 len) in ccid_hc_rx_parse_options() argument 219 return ccid->ccid_ops->ccid_hc_rx_parse_options(sk, pkt, opt, val, len); in ccid_hc_rx_parse_options()
|
/linux-4.4.14/net/netfilter/ipset/ |
D | ip_set_hash_ipportip.c | 95 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip4_kadt() argument 99 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip4_kadt() 101 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportip4_kadt() 105 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportip4_kadt() 106 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportip4_kadt() 107 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportip4_kadt() 261 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportip6_kadt() argument 265 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportip6_kadt() 267 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportip6_kadt() 271 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportip6_kadt() [all …]
|
D | ip_set_hash_ipport.c | 93 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport4_kadt() argument 97 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport4_kadt() 99 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipport4_kadt() 103 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipport4_kadt() 104 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport4_kadt() 251 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipport6_kadt() argument 255 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipport6_kadt() 257 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipport6_kadt() 261 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipport6_kadt() 262 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipport6_kadt()
|
D | ip_set_hash_ipmark.c | 86 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark4_kadt() argument 91 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark4_kadt() 96 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipmark4_kadt() 97 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark4_kadt() 212 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipmark6_kadt() argument 217 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipmark6_kadt() 222 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmark6_kadt() 223 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipmark6_kadt()
|
D | ip_set_hash_ip.c | 83 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip4_kadt() argument 88 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip4_kadt() 91 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &ip); in hash_ip4_kadt() 97 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip4_kadt() 218 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ip6_kadt() argument 223 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ip6_kadt() 225 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ip6_kadt() 230 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ip6_kadt()
|
D | ip_set_list_set.c | 53 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_ktest() argument 57 u32 cmdflags = opt->cmdflags; in list_set_ktest() 61 opt->cmdflags &= ~IPSET_FLAG_MATCH_COUNTERS; in list_set_ktest() 62 if (opt->cmdflags & IPSET_FLAG_SKIP_SUBCOUNTER_UPDATE) in list_set_ktest() 63 opt->cmdflags &= ~IPSET_FLAG_SKIP_COUNTER_UPDATE; in list_set_ktest() 68 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest() 72 ext, &opt->ext, in list_set_ktest() 76 ext, &opt->ext, in list_set_ktest() 87 struct ip_set_adt_opt *opt, const struct ip_set_ext *ext) in list_set_kadd() argument 97 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd() [all …]
|
D | ip_set_hash_netiface.c | 157 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface4_kadt() argument 165 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface4_kadt() 172 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netiface4_kadt() 176 #define SRCDIR (opt->flags & IPSET_DIM_TWO_SRC) in hash_netiface4_kadt() 178 if (opt->cmdflags & IPSET_FLAG_PHYSDEV) { in hash_netiface4_kadt() 194 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netiface4_kadt() 370 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netiface6_kadt() argument 378 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netiface6_kadt() 385 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netiface6_kadt() 388 if (opt->cmdflags & IPSET_FLAG_PHYSDEV) { in hash_netiface6_kadt() [all …]
|
D | ip_set_hash_net.c | 118 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net4_kadt() argument 125 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net4_kadt() 132 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_net4_kadt() 135 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net4_kadt() 287 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_net6_kadt() argument 294 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_net6_kadt() 301 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_net6_kadt() 304 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_net6_kadt()
|
D | ip_set_hash_ipportnet.c | 139 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet4_kadt() argument 146 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet4_kadt() 151 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportnet4_kadt() 155 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportnet4_kadt() 156 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportnet4_kadt() 159 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_ipportnet4_kadt() 390 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_ipportnet6_kadt() argument 397 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_ipportnet6_kadt() 402 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_ipportnet6_kadt() 406 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportnet6_kadt() [all …]
|
D | ip_set_hash_mac.c | 81 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_mac4_kadt() argument 85 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_mac4_kadt() 88 if (!(opt->flags & IPSET_DIM_ONE_SRC)) in hash_mac4_kadt() 98 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_mac4_kadt()
|
D | ip_set_hash_netnet.c | 144 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet4_kadt() argument 149 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet4_kadt() 156 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netnet4_kadt() 157 ip4addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1]); in hash_netnet4_kadt() 161 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet4_kadt() 378 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netnet6_kadt() argument 383 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netnet6_kadt() 390 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netnet6_kadt() 391 ip6addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1].in6); in hash_netnet6_kadt() 395 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netnet6_kadt()
|
D | ip_set_hash_netport.c | 134 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport4_kadt() argument 141 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport4_kadt() 146 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netport4_kadt() 150 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netport4_kadt() 153 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport4_kadt() 349 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netport6_kadt() argument 356 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netport6_kadt() 361 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netport6_kadt() 365 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_netport6_kadt() 368 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netport6_kadt()
|
D | ip_set_hash_netportnet.c | 155 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet4_kadt() argument 160 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet4_kadt() 167 if (!ip_set_get_ip4_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netportnet4_kadt() 171 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt() 172 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt() 176 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in hash_netportnet4_kadt() 433 enum ipset_adt adt, struct ip_set_adt_opt *opt) in hash_netportnet6_kadt() argument 438 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in hash_netportnet6_kadt() 445 if (!ip_set_get_ip6_port(skb, opt->flags & IPSET_DIM_TWO_SRC, in hash_netportnet6_kadt() 449 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt() [all …]
|
D | ip_set_bitmap_port.c | 105 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_port_kadt() argument 110 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_port_kadt() 114 if (!ip_set_get_ip_port(skb, opt->family, in bitmap_port_kadt() 115 opt->flags & IPSET_DIM_ONE_SRC, &__port)) in bitmap_port_kadt() 125 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_port_kadt()
|
D | ip_set_bitmap_ipmac.c | 213 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ipmac_kadt() argument 218 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ipmac_kadt() 222 if (!(opt->flags & IPSET_DIM_TWO_SRC)) in bitmap_ipmac_kadt() 225 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC)); in bitmap_ipmac_kadt() 237 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ipmac_kadt()
|
D | ip_set_bitmap_ip.c | 114 enum ipset_adt adt, struct ip_set_adt_opt *opt) in bitmap_ip_kadt() argument 119 struct ip_set_ext ext = IP_SET_INIT_KEXT(skb, opt, set); in bitmap_ip_kadt() 122 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC)); in bitmap_ip_kadt() 128 return adtfn(set, &e, &ext, &opt->ext, opt->cmdflags); in bitmap_ip_kadt()
|
/linux-4.4.14/tools/usb/usbip/src/ |
D | usbip_detach.c | 90 int opt; in usbip_detach() local 94 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach() 96 if (opt == -1) in usbip_detach() 99 switch (opt) { in usbip_detach()
|
D | usbip_unbind.c | 119 int opt; in usbip_unbind() local 123 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind() 125 if (opt == -1) in usbip_unbind() 128 switch (opt) { in usbip_unbind()
|
D | usbip_bind.c | 192 int opt; in usbip_bind() local 196 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind() 198 if (opt == -1) in usbip_bind() 201 switch (opt) { in usbip_bind()
|
D | usbip.c | 155 int opt; in main() local 161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main() 163 if (opt == -1) in main() 166 switch (opt) { in main()
|
D | usbip_attach.c | 210 int opt; in usbip_attach() local 214 opt = getopt_long(argc, argv, "r:b:", opts, NULL); in usbip_attach() 216 if (opt == -1) in usbip_attach() 219 switch (opt) { in usbip_attach()
|
D | usbip_list.c | 250 int opt; in usbip_list() local 257 opt = getopt_long(argc, argv, "pr:l", opts, NULL); in usbip_list() 259 if (opt == -1) in usbip_list() 262 switch (opt) { in usbip_list()
|
/linux-4.4.14/fs/qnx6/ |
D | qnx6.h | 68 #define clear_opt(o, opt) (o &= ~(QNX6_MOUNT_##opt)) argument 69 #define set_opt(o, opt) (o |= (QNX6_MOUNT_##opt)) argument 70 #define test_opt(sb, opt) (QNX6_SB(sb)->s_mount_opt & \ argument 71 QNX6_MOUNT_##opt)
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | barrier.h | 28 #define dmb(opt) asm volatile("dmb " #opt : : : "memory") argument 29 #define dsb(opt) asm volatile("dsb " #opt : : : "memory") argument
|
/linux-4.4.14/net/sctp/ |
D | ipv6.c | 141 static void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, in sctp_v6_err() argument 225 res = ip6_xmit(sk, skb, fl6, rcu_dereference(np->opt), np->tclass); in sctp_v6_xmit() 270 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst() 329 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); in sctp_v6_get_dst() 646 struct ipv6_txoptions *opt; in sctp_v6_create_accept_sk() local 667 opt = rcu_dereference(np->opt); in sctp_v6_create_accept_sk() 668 if (opt) in sctp_v6_create_accept_sk() 669 opt = ipv6_dup_options(newsk, opt); in sctp_v6_create_accept_sk() 670 RCU_INIT_POINTER(newnp->opt, opt); in sctp_v6_create_accept_sk() 713 struct inet6_skb_parm *opt = (struct inet6_skb_parm *) skb->cb; in sctp_v6_skb_iif() local [all …]
|
D | bind_addr.c | 316 struct sctp_sock *opt) in sctp_bind_addr_match() argument 325 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) { in sctp_bind_addr_match() 404 struct sctp_sock *opt) in sctp_find_unmatch_addr() argument 424 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) in sctp_find_unmatch_addr()
|
/linux-4.4.14/fs/ufs/ |
D | ufs.h | 72 #define ufs_clear_opt(o,opt) o &= ~UFS_MOUNT_##opt argument 73 #define ufs_set_opt(o,opt) o |= UFS_MOUNT_##opt argument 74 #define ufs_test_opt(o,opt) ((o) & UFS_MOUNT_##opt) argument
|
/linux-4.4.14/include/linux/ceph/ |
D | libceph.h | 38 #define ceph_set_opt(client, opt) \ argument 39 (client)->options->flags |= CEPH_OPT_##opt; 40 #define ceph_test_opt(client, opt) \ argument 41 (!!((client)->options->flags & CEPH_OPT_##opt)) 197 extern void ceph_destroy_options(struct ceph_options *opt); 200 extern struct ceph_client *ceph_create_client(struct ceph_options *opt,
|
/linux-4.4.14/fs/nilfs2/ |
D | the_nilfs.h | 228 #define nilfs_clear_opt(nilfs, opt) \ argument 229 do { (nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt; } while (0) 230 #define nilfs_set_opt(nilfs, opt) \ argument 231 do { (nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt; } while (0) 232 #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) argument 233 #define nilfs_write_opt(nilfs, mask, opt) \ argument 236 NILFS_MOUNT_##opt); \
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | option.h | 5 const char *nvkm_stropt(const char *optstr, const char *opt, int *len); 6 bool nvkm_boolopt(const char *optstr, const char *opt, bool value); 7 long nvkm_longopt(const char *optstr, const char *opt, long value);
|
/linux-4.4.14/tools/perf/ |
D | builtin-probe.c | 176 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() argument 183 if (!strcmp(opt->long_name, "exec")) in opt_set_target() 185 else if (!strcmp(opt->long_name, "module")) in opt_set_target() 214 static int opt_show_lines(const struct option *opt, in opt_show_lines() argument 228 params.command = opt->short_name; in opt_show_lines() 234 static int opt_show_vars(const struct option *opt, in opt_show_vars() argument 248 params.command = opt->short_name; in opt_show_vars() 253 static int opt_add_probe_event(const struct option *opt, in opt_add_probe_event() argument 257 params.command = opt->short_name; in opt_add_probe_event() 264 static int opt_set_filter_with_command(const struct option *opt, in opt_set_filter_with_command() argument [all …]
|
D | builtin-diff.c | 128 static int setup_compute_opt_wdiff(char *opt) in setup_compute_opt_wdiff() argument 130 char *w1_str = opt; in setup_compute_opt_wdiff() 135 if (!opt) in setup_compute_opt_wdiff() 138 w2_str = strchr(opt, ','); in setup_compute_opt_wdiff() 164 static int setup_compute_opt(char *opt) in setup_compute_opt() argument 167 return setup_compute_opt_wdiff(opt); in setup_compute_opt() 169 if (opt) { in setup_compute_opt() 170 pr_err("Failed: extra option specified '%s'", opt); in setup_compute_opt() 177 static int setup_compute(const struct option *opt, const char *str, in setup_compute() argument 180 int *cp = (int *) opt->value; in setup_compute()
|
/linux-4.4.14/arch/arm64/mm/ |
D | hugetlbpage.c | 44 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument 46 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
D | atl2.c | 2913 static int atl2_validate_option(int *value, struct atl2_option *opt) in atl2_validate_option() argument 2919 *value = opt->def; in atl2_validate_option() 2923 switch (opt->type) { in atl2_validate_option() 2927 printk(KERN_INFO "%s Enabled\n", opt->name); in atl2_validate_option() 2930 printk(KERN_INFO "%s Disabled\n", opt->name); in atl2_validate_option() 2935 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl2_validate_option() 2936 printk(KERN_INFO "%s set to %i\n", opt->name, *value); in atl2_validate_option() 2941 for (i = 0; i < opt->arg.l.nr; i++) { in atl2_validate_option() 2942 ent = &opt->arg.l.p[i]; in atl2_validate_option() 2955 opt->name, *value, opt->err); in atl2_validate_option() [all …]
|
/linux-4.4.14/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 109 struct gssx_option *opt) in gssx_enc_option() argument 113 err = gssx_enc_buffer(xdr, &opt->option); in gssx_enc_option() 116 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 121 struct gssx_option *opt) in gssx_dec_option() argument 125 err = gssx_dec_buffer(xdr, &opt->option); in gssx_dec_option() 128 err = gssx_dec_buffer(xdr, &opt->value); in gssx_dec_option() 353 struct gssx_option opt; in gssx_enc_call_ctx() local 373 opt.option.data = LUCID_OPTION; in gssx_enc_call_ctx() 374 opt.option.len = sizeof(LUCID_OPTION); in gssx_enc_call_ctx() 375 opt.value.data = LUCID_VALUE; in gssx_enc_call_ctx() [all …]
|
/linux-4.4.14/net/l2tp/ |
D | l2tp_ip6.c | 492 struct ipv6_txoptions *opt = NULL; in l2tp_ip6_sendmsg() local 562 opt = &opt_space; in l2tp_ip6_sendmsg() 563 memset(opt, 0, sizeof(struct ipv6_txoptions)); in l2tp_ip6_sendmsg() 564 opt->tot_len = sizeof(struct ipv6_txoptions); in l2tp_ip6_sendmsg() 566 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, opt, in l2tp_ip6_sendmsg() 577 if (!(opt->opt_nflen|opt->opt_flen)) in l2tp_ip6_sendmsg() 578 opt = NULL; in l2tp_ip6_sendmsg() 581 if (!opt) { in l2tp_ip6_sendmsg() 582 opt = txopt_get(np); in l2tp_ip6_sendmsg() 583 opt_to_free = opt; in l2tp_ip6_sendmsg() [all …]
|
/linux-4.4.14/include/linux/ |
D | mroute.h | 10 static inline int ip_mroute_opt(int opt) in ip_mroute_opt() argument 12 return (opt >= MRT_BASE) && (opt <= MRT_MAX); in ip_mroute_opt() 15 static inline int ip_mroute_opt(int opt) in ip_mroute_opt() argument
|
D | mroute6.h | 11 static inline int ip6_mroute_opt(int opt) in ip6_mroute_opt() argument 13 return (opt >= MRT6_BASE) && (opt <= MRT6_MAX); in ip6_mroute_opt() 16 static inline int ip6_mroute_opt(int opt) in ip6_mroute_opt() argument
|
/linux-4.4.14/net/nfc/nci/ |
D | core.c | 103 void (*req)(struct nci_dev *ndev, unsigned long opt), in __nci_request() argument 104 unsigned long opt, __u32 timeout) in __nci_request() 112 req(ndev, opt); in __nci_request() 147 unsigned long opt), in nci_request() argument 148 unsigned long opt, __u32 timeout) in nci_request() 157 rc = __nci_request(ndev, req, opt, timeout); in nci_request() 163 static void nci_reset_req(struct nci_dev *ndev, unsigned long opt) in nci_reset_req() argument 171 static void nci_init_req(struct nci_dev *ndev, unsigned long opt) in nci_init_req() argument 176 static void nci_init_complete_req(struct nci_dev *ndev, unsigned long opt) in nci_init_complete_req() argument 218 static void nci_set_config_req(struct nci_dev *ndev, unsigned long opt) in nci_set_config_req() argument [all …]
|
/linux-4.4.14/include/net/ |
D | ipv6.h | 230 struct ipv6_txoptions *opt; member 258 struct ipv6_txoptions *opt; in txopt_get() local 261 opt = rcu_dereference(np->opt); in txopt_get() 262 if (opt && !atomic_inc_not_zero(&opt->refcnt)) in txopt_get() 263 opt = NULL; in txopt_get() 265 return opt; in txopt_get() 268 static inline void txopt_put(struct ipv6_txoptions *opt) in txopt_put() argument 270 if (opt && atomic_dec_and_test(&opt->refcnt)) in txopt_put() 271 kfree_rcu(opt, rcu); in txopt_put() 301 struct ipv6_txoptions *opt); [all …]
|
D | cipso_ipv4.h | 295 unsigned char *opt = *option; in cipso_v4_validate() local 297 u8 opt_len = opt[1]; in cipso_v4_validate() 306 if (get_unaligned_be32(&opt[2]) == 0) { in cipso_v4_validate() 312 tag_len = opt[opt_iter + 1]; in cipso_v4_validate() 321 *option = opt + err_offset; in cipso_v4_validate()
|
D | bond_options.h | 15 #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST) argument 109 const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt,
|
D | ndisc.h | 67 __u8 opt[0]; member 72 __u8 opt[0]; member 85 __u8 opt[0]; member 113 struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,
|
D | inet_sock.h | 64 struct ip_options opt; member 68 struct ip_options_rcu opt; member 98 struct ip_options_rcu *opt; member 119 struct ip_options *opt; member
|
D | gen_stats.h | 53 spinlock_t *stats_lock, struct nlattr *opt); 59 spinlock_t *stats_lock, struct nlattr *opt);
|
D | ip.h | 39 struct ip_options opt; /* Compiled IP options */ member 61 struct ip_options_rcu *opt; member 105 struct ip_options_rcu *opt); 530 void ip_options_build(struct sk_buff *skb, struct ip_options *opt, 537 return __ip_options_echo(dopt, skb, &IPCB(skb)->opt); in ip_options_echo() 541 int ip_options_compile(struct net *net, struct ip_options *opt, 547 void ip_options_undo(struct ip_options *opt);
|
/linux-4.4.14/drivers/net/wan/ |
D | hdlc_ppp.c | 379 const u8 *opt; in ppp_cp_parse_cr() local 388 for (opt = data; len; len -= opt[1], opt += opt[1]) { in ppp_cp_parse_cr() 389 if (len < 2 || len < opt[1]) { in ppp_cp_parse_cr() 396 switch (opt[0]) { in ppp_cp_parse_cr() 401 if (!memcmp(opt, valid_accm, in ppp_cp_parse_cr() 412 if (opt[1] != 6 || (!opt[2] && !opt[3] && in ppp_cp_parse_cr() 413 !opt[4] && !opt[5])) in ppp_cp_parse_cr() 418 memcpy(out + rej_len, opt, opt[1]); in ppp_cp_parse_cr() 419 rej_len += opt[1]; in ppp_cp_parse_cr()
|
/linux-4.4.14/net/bluetooth/ |
D | l2cap_sock.c | 399 u32 opt; in l2cap_sock_getsockopt_old() local 438 opt = L2CAP_LM_AUTH; in l2cap_sock_getsockopt_old() 441 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT; in l2cap_sock_getsockopt_old() 444 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT | in l2cap_sock_getsockopt_old() 448 opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT | in l2cap_sock_getsockopt_old() 452 opt = 0; in l2cap_sock_getsockopt_old() 457 opt |= L2CAP_LM_MASTER; in l2cap_sock_getsockopt_old() 460 opt |= L2CAP_LM_RELIABLE; in l2cap_sock_getsockopt_old() 462 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old() 637 u32 opt; in l2cap_sock_setsockopt_old() local [all …]
|
D | hci_sock.c | 1289 int err = 0, opt = 0; in hci_sock_setsockopt() local 1302 if (get_user(opt, (int __user *)optval)) { in hci_sock_setsockopt() 1307 if (opt) in hci_sock_setsockopt() 1314 if (get_user(opt, (int __user *)optval)) { in hci_sock_setsockopt() 1319 if (opt) in hci_sock_setsockopt() 1372 int len, opt, err = 0; in hci_sock_getsockopt() local 1389 opt = 1; in hci_sock_getsockopt() 1391 opt = 0; in hci_sock_getsockopt() 1393 if (put_user(opt, optval)) in hci_sock_getsockopt() 1399 opt = 1; in hci_sock_getsockopt() [all …]
|
/linux-4.4.14/include/uapi/asm-generic/ |
D | Kbuild.asm | 4 opt-header += kvm.h 5 opt-header += kvm_para.h 6 opt-header += a.out.h 42 header-y += $(foreach hdr,$(opt-header), \
|
/linux-4.4.14/include/linux/netfilter/ipset/ |
D | ip_set_timeout.h | 26 #define ip_set_adt_opt_timeout(opt, set) \ argument 27 ((opt)->ext.timeout != IPSET_NO_TIMEOUT ? (opt)->ext.timeout : (set)->timeout)
|
D | ip_set.h | 159 enum ipset_adt adt, struct ip_set_adt_opt *opt); 410 struct ip_set_adt_opt *opt); 413 struct ip_set_adt_opt *opt); 416 struct ip_set_adt_opt *opt); 547 #define IP_SET_INIT_KEXT(skb, opt, set) \ argument 549 .timeout = ip_set_adt_opt_timeout(opt, set) }
|
/linux-4.4.14/drivers/hid/ |
D | hid-wiimote.h | 129 __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()
|
/linux-4.4.14/Documentation/cgroups/ |
D | memcg_test.txt | 141 mount -t cgroup -o cpuset none /opt/cpuset 143 mkdir /opt/cpuset/01 144 echo 1 > /opt/cpuset/01/cpuset.cpus 145 echo 0 > /opt/cpuset/01/cpuset.mems 146 echo 1 > /opt/cpuset/01/cpuset.memory_migrate 147 mkdir /opt/cpuset/02 148 echo 1 > /opt/cpuset/02/cpuset.cpus 149 echo 1 > /opt/cpuset/02/cpuset.mems 150 echo 1 > /opt/cpuset/02/cpuset.memory_migrate 182 echo 1 >/opt/cgroup/01/memory/use_hierarchy [all …]
|
/linux-4.4.14/arch/mn10300/kernel/ |
D | mn10300-watchdog.c | 79 int opt; in setup_watchdog() local 82 get_option(&str, &opt); in setup_watchdog() 83 if (opt != 1) in setup_watchdog() 86 watchdog = opt; in setup_watchdog()
|
/linux-4.4.14/sound/core/seq/oss/ |
D | seq_oss_rw.c | 36 static int insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt); 96 snd_seq_oss_write(struct seq_oss_devinfo *dp, const char __user *buf, int count, struct file *opt) in snd_seq_oss_write() argument 148 if ((err = insert_queue(dp, &rec, opt)) < 0) in snd_seq_oss_write() 164 insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt) in insert_queue() argument 189 rc = snd_seq_kernel_client_enqueue_blocking(dp->cseq, &event, opt, 0, 0); in insert_queue()
|
/linux-4.4.14/tools/testing/selftests/timers/ |
D | set-2038.c | 88 int opt, dangerous = 0; in main() local 92 while ((opt = getopt(argc, argv, "d")) != -1) { in main() 93 switch (opt) { in main()
|
D | inconsistency-check.c | 166 int clockid, opt; in main() local 173 while ((opt = getopt(argc, argv, "t:c:")) != -1) { in main() 174 switch (opt) { in main()
|
D | threadtest.c | 138 int opt; in main() local 147 while ((opt = getopt(argc, argv, "t:n:i")) != -1) { in main() 148 switch (opt) { in main()
|
/linux-4.4.14/net/ax25/ |
D | af_ax25.c | 541 unsigned long opt; in ax25_setsockopt() local 550 if (get_user(opt, (unsigned int __user *)optval)) in ax25_setsockopt() 559 if (opt < 1 || opt > 7) { in ax25_setsockopt() 564 if (opt < 1 || opt > 63) { in ax25_setsockopt() 569 ax25->window = opt; in ax25_setsockopt() 573 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt() 577 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt() 578 ax25->t1 = opt * HZ; in ax25_setsockopt() 582 if (opt < 1 || opt > ULONG_MAX / HZ) { in ax25_setsockopt() 586 ax25->t2 = opt * HZ; in ax25_setsockopt() [all …]
|
/linux-4.4.14/drivers/staging/sm750fb/ |
D | sm750.c | 931 char *opt; in sm750fb_setup() local 951 while ((opt = strsep(&src, ":")) != NULL && *opt != 0) { in sm750fb_setup() 952 pr_info("opt=%s\n", opt); in sm750fb_setup() 955 if (!strncmp(opt, "swap", strlen("swap"))) in sm750fb_setup() 957 else if (!strncmp(opt, "nocrt", strlen("nocrt"))) in sm750fb_setup() 959 else if (!strncmp(opt, "36bit", strlen("36bit"))) in sm750fb_setup() 961 else if (!strncmp(opt, "18bit", strlen("18bit"))) in sm750fb_setup() 963 else if (!strncmp(opt, "24bit", strlen("24bit"))) in sm750fb_setup() 965 else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) in sm750fb_setup() 967 else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) in sm750fb_setup() [all …]
|
/linux-4.4.14/drivers/tty/serial/ |
D | kgdboc.c | 134 static int kgdboc_option_setup(char *opt) in kgdboc_option_setup() argument 136 if (strlen(opt) >= MAX_CONFIG_LEN) { in kgdboc_option_setup() 140 strcpy(config, opt); in kgdboc_option_setup() 317 static int __init kgdboc_early_init(char *opt) in kgdboc_early_init() argument 324 kgdboc_option_setup(opt); in kgdboc_early_init()
|
/linux-4.4.14/net/bluetooth/rfcomm/ |
D | sock.c | 651 u32 opt; in rfcomm_sock_setsockopt_old() local 659 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt_old() 664 if (opt & RFCOMM_LM_FIPS) { in rfcomm_sock_setsockopt_old() 669 if (opt & RFCOMM_LM_AUTH) in rfcomm_sock_setsockopt_old() 671 if (opt & RFCOMM_LM_ENCRYPT) in rfcomm_sock_setsockopt_old() 673 if (opt & RFCOMM_LM_SECURE) in rfcomm_sock_setsockopt_old() 676 rfcomm_pi(sk)->role_switch = (opt & RFCOMM_LM_MASTER); in rfcomm_sock_setsockopt_old() 694 u32 opt; in rfcomm_sock_setsockopt() local 735 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt() 740 if (opt) in rfcomm_sock_setsockopt() [all …]
|
/linux-4.4.14/net/llc/ |
D | af_llc.c | 1036 unsigned int opt; in llc_ui_setsockopt() local 1042 rc = get_user(opt, (int __user *)optval); in llc_ui_setsockopt() 1048 if (opt > LLC_OPT_MAX_RETRY) in llc_ui_setsockopt() 1050 llc->n2 = opt; in llc_ui_setsockopt() 1053 if (opt > LLC_OPT_MAX_SIZE) in llc_ui_setsockopt() 1055 llc->n1 = opt; in llc_ui_setsockopt() 1058 if (opt > LLC_OPT_MAX_ACK_TMR_EXP) in llc_ui_setsockopt() 1060 llc->ack_timer.expire = opt * HZ; in llc_ui_setsockopt() 1063 if (opt > LLC_OPT_MAX_P_TMR_EXP) in llc_ui_setsockopt() 1065 llc->pf_cycle_timer.expire = opt * HZ; in llc_ui_setsockopt() [all …]
|
/linux-4.4.14/net/rxrpc/ |
D | ar-local.c | 71 int ret, opt; in rxrpc_create_local() local 96 opt = 1; in rxrpc_create_local() 98 (char *) &opt, sizeof(opt)); in rxrpc_create_local() 105 opt = IP_PMTUDISC_DO; in rxrpc_create_local() 107 (char *) &opt, sizeof(opt)); in rxrpc_create_local()
|
D | ar-output.c | 336 int ret, opt; in rxrpc_send_packet() local 375 opt = IP_PMTUDISC_DONT; in rxrpc_send_packet() 377 (char *) &opt, sizeof(opt)); in rxrpc_send_packet() 382 opt = IP_PMTUDISC_DO; in rxrpc_send_packet() 384 IP_MTU_DISCOVER, (char *) &opt, sizeof(opt)); in rxrpc_send_packet()
|
/linux-4.4.14/net/core/ |
D | gen_estimator.c | 211 struct nlattr *opt) in gen_new_estimator() argument 214 struct gnet_estimator *parm = nla_data(opt); in gen_new_estimator() 218 if (nla_len(opt) < sizeof(*parm)) in gen_new_estimator() 302 spinlock_t *stats_lock, struct nlattr *opt) in gen_replace_estimator() argument 305 return gen_new_estimator(bstats, cpu_bstats, rate_est, stats_lock, opt); in gen_replace_estimator()
|
/linux-4.4.14/sound/usb/ |
D | mixer_scarlett.c | 382 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_dynamic_info() local 383 unsigned int items = opt->len; in scarlett_ctl_enum_dynamic_info() 395 opt->offsets); in scarlett_ctl_enum_dynamic_info() 404 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_info() local 406 return snd_ctl_enum_info(uinfo, elem->channels, opt->len, in scarlett_ctl_enum_info() 407 (const char * const *)opt->names); in scarlett_ctl_enum_info() 414 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_get() local 421 val = clamp(val - opt->start, 0, opt->len-1); in scarlett_ctl_enum_get() 432 struct scarlett_mixer_elem_enum_info *opt = elem->private_data; in scarlett_ctl_enum_put() local 440 val = val + opt->start; in scarlett_ctl_enum_put() [all …]
|
/linux-4.4.14/Documentation/arm/SA1100/ |
D | Brutus | 23 The following angelboot.opt file should be used: 25 ----- begin angelboot.opt ----- 35 ----- end angelboot.opt ----- 39 angelboot -f angelboot.opt zImage
|
D | GraphicsClient | 33 If using Angel on the older boards, here is a typical angel.opt option file 36 ----- begin angelboot.opt ----- 47 ----- end angelboot.opt ----- 52 angelboot -f angelboot.opt zImage
|
/linux-4.4.14/fs/reiserfs/ |
D | super.c | 944 const opt_desc_t *opt; in reiserfs_getopt() local 971 for (opt = opts; opt->option_name; opt++) { in reiserfs_getopt() 972 if (!strncmp(p, opt->option_name, strlen(opt->option_name))) { in reiserfs_getopt() 974 if (opt->clrmask == in reiserfs_getopt() 980 *bit_flags &= ~opt->clrmask; in reiserfs_getopt() 981 if (opt->setmask == in reiserfs_getopt() 987 *bit_flags |= opt->setmask; in reiserfs_getopt() 992 if (!opt->option_name) { in reiserfs_getopt() 998 p += strlen(opt->option_name); in reiserfs_getopt() 1001 if (!opt->arg_required) { in reiserfs_getopt() [all …]
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
D | dt2801.c | 401 static const struct comedi_lrange *dac_range_lkup(int opt) in dac_range_lkup() argument 403 if (opt < 0 || opt >= 5) in dac_range_lkup() 405 return dac_range_table[opt]; in dac_range_lkup() 408 static const struct comedi_lrange *ai_range_lkup(int type, int opt) in ai_range_lkup() argument 412 return (opt) ? in ai_range_lkup() 416 return (opt) ? &range_unipolar10 : &range_bipolar10; in ai_range_lkup()
|
/linux-4.4.14/fs/affs/ |
D | affs.h | 122 #define affs_clear_opt(o, opt) (o &= ~AFFS_MOUNT_##opt) argument 123 #define affs_set_opt(o, opt) (o |= AFFS_MOUNT_##opt) argument 124 #define affs_test_opt(o, opt) ((o) & AFFS_MOUNT_##opt) argument
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
D | ll_temac_main.c | 405 u32 opt; member 412 .opt = XTE_OPTION_JUMBO, 417 .opt = XTE_OPTION_JUMBO, 423 .opt = XTE_OPTION_VLAN, 428 .opt = XTE_OPTION_VLAN, 434 .opt = XTE_OPTION_FCS_STRIP, 440 .opt = XTE_OPTION_FCS_INSERT, 446 .opt = XTE_OPTION_LENTYPE_ERR, 452 .opt = XTE_OPTION_FLOW_CONTROL, 458 .opt = XTE_OPTION_FLOW_CONTROL, [all …]
|
D | xilinx_axienet_main.c | 64 .opt = XAE_OPTION_JUMBO, 68 .opt = XAE_OPTION_JUMBO, 72 .opt = XAE_OPTION_VLAN, 76 .opt = XAE_OPTION_VLAN, 80 .opt = XAE_OPTION_FCS_STRIP, 84 .opt = XAE_OPTION_FCS_INSERT, 88 .opt = XAE_OPTION_LENTYPE_ERR, 92 .opt = XAE_OPTION_FLOW_CONTROL, 96 .opt = XAE_OPTION_FLOW_CONTROL, 100 .opt = XAE_OPTION_PROMISC, [all …]
|
/linux-4.4.14/Documentation/hwmon/ |
D | dme1737 | 321 fan3 opt yes opt yes 322 pwm3 opt yes opt yes 323 fan4 opt opt 324 fan5 opt opt 325 pwm5 opt opt 326 fan6 opt opt 327 pwm6 opt opt
|
/linux-4.4.14/net/netrom/ |
D | af_netrom.c | 304 unsigned long opt; in nr_setsockopt() local 312 if (get_user(opt, (unsigned int __user *)optval)) in nr_setsockopt() 317 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt() 319 nr->t1 = opt * HZ; in nr_setsockopt() 323 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt() 325 nr->t2 = opt * HZ; in nr_setsockopt() 329 if (opt < 1 || opt > 31) in nr_setsockopt() 331 nr->n2 = opt; in nr_setsockopt() 335 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt() 337 nr->t4 = opt * HZ; in nr_setsockopt() [all …]
|
/linux-4.4.14/tools/hv/ |
D | hv_fcopy_daemon.c | 136 int daemonize = 1, long_index = 0, opt; in main() local 149 while ((opt = getopt_long(argc, argv, "hn", long_options, in main() 151 switch (opt) { in main()
|
D | hv_vss_daemon.c | 150 int daemonize = 1, long_index = 0, opt; in main() local 160 while ((opt = getopt_long(argc, argv, "hn", long_options, in main() 162 switch (opt) { in main()
|
/linux-4.4.14/samples/bpf/ |
D | fds_example.c | 133 int opt, mode = BPF_M_UNSPEC; in main() local 135 while ((opt = getopt(argc, argv, "F:PGmk:v:po:")) != -1) { in main() 136 switch (opt) { in main()
|
/linux-4.4.14/fs/jffs2/ |
D | super.c | 182 unsigned int opt; in jffs2_parse_options() local 221 if (match_int(&args[0], &opt)) in jffs2_parse_options() 223 opt *= 1024; in jffs2_parse_options() 224 if (opt > c->mtd->size) { in jffs2_parse_options() 229 c->mount_opts.rp_size = opt; in jffs2_parse_options()
|
/linux-4.4.14/drivers/net/usb/ |
D | asix_common.c | 432 u8 opt; in asix_get_wol() local 434 if (asix_read_cmd(dev, AX_CMD_READ_MONITOR_MODE, 0, 0, 1, &opt) < 0) { in asix_get_wol() 441 if (opt & AX_MONITOR_LINK) in asix_get_wol() 443 if (opt & AX_MONITOR_MAGIC) in asix_get_wol() 450 u8 opt = 0; in asix_set_wol() local 453 opt |= AX_MONITOR_LINK; in asix_set_wol() 455 opt |= AX_MONITOR_MAGIC; in asix_set_wol() 458 opt, 0, 0, NULL) < 0) in asix_set_wol()
|
D | sr9800.c | 403 u8 opt; in sr_get_wol() local 405 if (sr_read_cmd(dev, SR_CMD_READ_MONITOR_MODE, 0, 0, 1, &opt) < 0) { in sr_get_wol() 412 if (opt & SR_MONITOR_LINK) in sr_get_wol() 414 if (opt & SR_MONITOR_MAGIC) in sr_get_wol() 422 u8 opt = 0; in sr_set_wol() local 425 opt |= SR_MONITOR_LINK; in sr_set_wol() 427 opt |= SR_MONITOR_MAGIC; in sr_set_wol() 430 opt, 0, 0, NULL) < 0) in sr_set_wol()
|
/linux-4.4.14/arch/x86/mm/ |
D | hugetlbpage.c | 160 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument 162 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
|
/linux-4.4.14/tools/vm/ |
D | slabinfo-gnuplot.sh | 186 local opt 188 while getopts "tlr::s::h" opt; do 189 case $opt in
|
/linux-4.4.14/drivers/video/fbdev/geode/ |
D | lxfb_core.c | 628 char *opt; in lxfb_setup() local 633 while ((opt = strsep(&options, ",")) != NULL) { in lxfb_setup() 634 if (!*opt) in lxfb_setup() 637 if (!strcmp(opt, "noclear")) in lxfb_setup() 639 else if (!strcmp(opt, "nopanel")) in lxfb_setup() 641 else if (!strcmp(opt, "nocrt")) in lxfb_setup() 644 mode_option = opt; in lxfb_setup()
|
/linux-4.4.14/scripts/dtc/ |
D | dtc.c | 116 int opt; in main() local 126 while ((opt = util_getopt_long()) != EOF) { in main() 127 switch (opt) { in main()
|
/linux-4.4.14/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 80 int opt; in cmdline() local 84 while ((opt = getopt(argc, argv, "+rvc:")) != -1) { in cmdline() 85 switch (opt) { in cmdline()
|
/linux-4.4.14/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 596 minfo->values.reg.opt = (bd->pins[54] & 7) << 10; in parse_pins3() 609 minfo->values.reg.opt = 0x00000C00; in default_pins3() 624 minfo->values.reg.opt = ((bd->pins[53] << 15) & 0x00400000) | in parse_pins4() 640 minfo->values.reg.opt = 0x10000400; in default_pins4() 661 minfo->values.reg.opt = get_unaligned_le32(bd->pins + 48); in parse_pins5() 694 minfo->values.reg.opt = 0x404A1160; in default_pins5() 765 u32 opt; in matroxfb_read_pins() local 771 pci_read_config_dword(pdev, PCI_OPTION_REG, &opt); in matroxfb_read_pins() 772 pci_write_config_dword(pdev, PCI_OPTION_REG, opt | PCI_OPTION_ENABLE_ROM); in matroxfb_read_pins() 778 pci_write_config_dword(pdev, PCI_OPTION_REG, opt); in matroxfb_read_pins() [all …]
|
/linux-4.4.14/fs/ceph/ |
D | super.c | 510 struct ceph_options *opt) in create_fs_client() argument 526 fsc->client = ceph_create_client(opt, fsc, supported_features, in create_fs_client() 886 struct ceph_options *opt = new->client->options; in ceph_compare_super() local 891 if (compare_mount_options(fsopt, opt, other)) { in ceph_compare_super() 895 if ((opt->flags & CEPH_OPT_FSID) && in ceph_compare_super() 896 ceph_fsid_compare(&opt->fsid, &other->client->fsid)) { in ceph_compare_super() 943 struct ceph_options *opt = NULL; in ceph_mount() local 950 err = parse_mount_options(&fsopt, &opt, flags, data, dev_name, &path); in ceph_mount() 957 fsc = create_fs_client(fsopt, opt); in ceph_mount() 961 ceph_destroy_options(opt); in ceph_mount()
|
/linux-4.4.14/arch/metag/mm/ |
D | hugetlbpage.c | 236 static __init int setup_hugepagesz(char *opt) in setup_hugepagesz() argument 238 unsigned long ps = memparse(opt, &opt); in setup_hugepagesz()
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | ptrace.c | 143 ret |= __copy_to_user(&xtregs->opt, ®s->xtregs_opt, in ptrace_getxregs() 144 sizeof(xtregs->opt)); in ptrace_getxregs() 169 ret |= __copy_from_user(®s->xtregs_opt, &xtregs->opt, in ptrace_setxregs() 170 sizeof(xtregs->opt)); in ptrace_setxregs()
|
/linux-4.4.14/net/rose/ |
D | af_rose.c | 374 int opt; in rose_setsockopt() local 382 if (get_user(opt, (int __user *)optval)) in rose_setsockopt() 387 rose->defer = opt ? 1 : 0; in rose_setsockopt() 391 if (opt < 1) in rose_setsockopt() 393 rose->t1 = opt * HZ; in rose_setsockopt() 397 if (opt < 1) in rose_setsockopt() 399 rose->t2 = opt * HZ; in rose_setsockopt() 403 if (opt < 1) in rose_setsockopt() 405 rose->t3 = opt * HZ; in rose_setsockopt() 409 if (opt < 1) in rose_setsockopt() [all …]
|
/linux-4.4.14/tools/net/ |
D | bpf_jit_disasm.c | 235 unsigned int len, klen, opt, opcodes = 0; in main() local 239 while ((opt = getopt(argc, argv, "of:")) != -1) { in main() 240 switch (opt) { in main()
|
/linux-4.4.14/firmware/ |
D | ihex2fw.c | 76 int opt; in main() local 78 while ((opt = getopt(argc, argv, "wsj")) != -1) { in main() 79 switch (opt) { in main()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 600 struct ip_vs_sync_conn_options *opt = in ip_vs_sync_conn_v0() local 602 memcpy(opt, &cp->in_seq, sizeof(*opt)); in ip_vs_sync_conn_v0() 843 struct ip_vs_sync_conn_options *opt) in ip_vs_proc_conn() argument 920 if (opt) in ip_vs_proc_conn() 921 memcpy(&cp->in_seq, opt, sizeof(*opt)); in ip_vs_proc_conn() 958 struct ip_vs_sync_conn_options *opt; in ip_vs_process_message_v0() local 976 opt = (struct ip_vs_sync_conn_options *)&s[1]; in ip_vs_process_message_v0() 983 opt = NULL; in ip_vs_process_message_v0() 1018 0, 0, opt); in ip_vs_process_message_v0() 1027 struct ip_vs_sync_conn_options *opt) in ip_vs_proc_seqopt() argument [all …]
|
/linux-4.4.14/Documentation/networking/timestamping/ |
D | txtimestamp.c | 270 static void do_test(int family, unsigned int opt) in do_test() argument 322 opt |= SOF_TIMESTAMPING_SOFTWARE | in do_test() 326 opt |= SOF_TIMESTAMPING_OPT_TSONLY; in do_test() 329 (char *) &opt, sizeof(opt))) in do_test()
|
/linux-4.4.14/fs/ext2/ |
D | ext2.h | 394 #define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt argument 395 #define set_opt(o, opt) o |= EXT2_MOUNT_##opt argument 396 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ argument 397 EXT2_MOUNT_##opt)
|
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_main.c | 3132 char *opt; in stmmac_cmdline_opt() local 3136 while ((opt = strsep(&str, ",")) != NULL) { in stmmac_cmdline_opt() 3137 if (!strncmp(opt, "debug:", 6)) { in stmmac_cmdline_opt() 3138 if (kstrtoint(opt + 6, 0, &debug)) in stmmac_cmdline_opt() 3140 } else if (!strncmp(opt, "phyaddr:", 8)) { in stmmac_cmdline_opt() 3141 if (kstrtoint(opt + 8, 0, &phyaddr)) in stmmac_cmdline_opt() 3143 } else if (!strncmp(opt, "dma_txsize:", 11)) { in stmmac_cmdline_opt() 3144 if (kstrtoint(opt + 11, 0, &dma_txsize)) in stmmac_cmdline_opt() 3146 } else if (!strncmp(opt, "dma_rxsize:", 11)) { in stmmac_cmdline_opt() 3147 if (kstrtoint(opt + 11, 0, &dma_rxsize)) in stmmac_cmdline_opt() [all …]
|