Searched refs:family (Results 1 - 200 of 1046) sorted by relevance

123456

/linux-4.1.27/arch/mips/jazz/
H A DMakefile2 # Makefile for the Jazz family specific parts of the kernel
/linux-4.1.27/arch/arm/mach-hisi/
H A DMakefile2 # Makefile for Hisilicon processors family
/linux-4.1.27/tools/perf/arch/x86/util/
H A Dheader.c26 int family = -1, model = -1, step = -1; get_cpuid() local
39 family = (a >> 8) & 0xf; /* bits 11 - 8 */ get_cpuid()
43 /* extended family */ get_cpuid()
44 if (family == 0xf) get_cpuid()
45 family += (a >> 20) & 0xff; get_cpuid()
48 if (family >= 0x6) get_cpuid()
51 nb = scnprintf(buffer, sz, "%s,%u,%u,%u$", vendor, family, model, step); get_cpuid()
/linux-4.1.27/include/net/
H A Dgenetlink.h12 * @name: name of the multicast group, names are per-family
22 * struct genl_family - generic netlink family
23 * @id: protocol family idenfitier
25 * @name: name of family
28 * @netnsok: set to true if the family can handle network
40 * generic netlink family is removed while there are still open
43 * @family_list: family list
44 * @mcgrps: multicast groups used by this family (private)
46 * @mcgrp_offset: starting number of multicast group IDs in this family
47 * @ops: the operations supported by this family (private)
48 * @n_ops: number of operations supported by this family (private)
113 * @internal_flags: flags used by the family
133 int __genl_register_family(struct genl_family *family);
135 static inline int genl_register_family(struct genl_family *family) genl_register_family() argument
137 family->module = THIS_MODULE; genl_register_family()
138 return __genl_register_family(family); genl_register_family()
142 * genl_register_family_with_ops - register a generic netlink family with ops
143 * @family: generic netlink family
147 * Registers the specified family and operations from the specified table.
148 * Only one family may be registered with the same family name or identifier.
150 * The family id may equal GENL_ID_GENERATE causing an unique id to
163 _genl_register_family_with_ops_grps(struct genl_family *family, _genl_register_family_with_ops_grps() argument
168 family->module = THIS_MODULE; _genl_register_family_with_ops_grps()
169 family->ops = ops; _genl_register_family_with_ops_grps()
170 family->n_ops = n_ops; _genl_register_family_with_ops_grps()
171 family->mcgrps = mcgrps; _genl_register_family_with_ops_grps()
172 family->n_mcgrps = n_mcgrps; _genl_register_family_with_ops_grps()
173 return __genl_register_family(family); _genl_register_family_with_ops_grps()
176 #define genl_register_family_with_ops(family, ops) \
177 _genl_register_family_with_ops_grps((family), \
180 #define genl_register_family_with_ops_groups(family, ops, grps) \
181 _genl_register_family_with_ops_grps((family), \
185 int genl_unregister_family(struct genl_family *family);
186 void genl_notify(struct genl_family *family,
193 struct genl_family *family, int flags, u8 cmd);
198 * @family: generic netlink family
203 struct genl_family *family) genlmsg_nlhdr()
206 family->hdrsize - genlmsg_nlhdr()
214 * @family: genetlink message family
220 const struct genl_family *family, genlmsg_parse()
224 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, genlmsg_parse()
232 * @family: generic netlink family
239 struct genl_family *family) genl_dump_check_consistent()
241 nl_dump_check_consistent(cb, genlmsg_nlhdr(user_hdr, family)); genl_dump_check_consistent()
248 * @family: generic netlink family
256 struct genl_family *family, genlmsg_put_reply()
259 return genlmsg_put(skb, info->snd_portid, info->snd_seq, family, genlmsg_put_reply()
286 * @family: the generic netlink family
293 static inline int genlmsg_multicast_netns(struct genl_family *family, genlmsg_multicast_netns() argument
297 if (WARN_ON_ONCE(group >= family->n_mcgrps)) genlmsg_multicast_netns()
299 group = family->mcgrp_offset + group; genlmsg_multicast_netns()
305 * @family: the generic netlink family
311 static inline int genlmsg_multicast(struct genl_family *family, genlmsg_multicast() argument
315 return genlmsg_multicast_netns(family, &init_net, skb, genlmsg_multicast()
321 * @family: the generic netlink family
329 int genlmsg_multicast_allns(struct genl_family *family,
403 * @family: the generic netlink family
413 static inline int genl_set_err(struct genl_family *family, struct net *net, genl_set_err() argument
416 if (WARN_ON_ONCE(group >= family->n_mcgrps)) genl_set_err()
418 group = family->mcgrp_offset + group; genl_set_err()
422 static inline int genl_has_listeners(struct genl_family *family, genl_has_listeners() argument
425 if (WARN_ON_ONCE(group >= family->n_mcgrps)) genl_has_listeners()
427 group = family->mcgrp_offset + group; genl_has_listeners()
202 genlmsg_nlhdr(void *user_hdr, struct genl_family *family) genlmsg_nlhdr() argument
219 genlmsg_parse(const struct nlmsghdr *nlh, const struct genl_family *family, struct nlattr *tb[], int maxtype, const struct nla_policy *policy) genlmsg_parse() argument
237 genl_dump_check_consistent(struct netlink_callback *cb, void *user_hdr, struct genl_family *family) genl_dump_check_consistent() argument
254 genlmsg_put_reply(struct sk_buff *skb, struct genl_info *info, struct genl_family *family, int flags, u8 cmd) genlmsg_put_reply() argument
H A Dping.h52 sa_family_t family; member in struct:ping_iter_state
63 sa_family_t family; member in struct:pingfakehdr
80 int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
89 sa_family_t family; member in struct:ping_seq_afinfo
96 void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family);
H A Dxfrm.h41 #define MODULE_ALIAS_XFRM_MODE(family, encap) \
42 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap))
43 #define MODULE_ALIAS_XFRM_TYPE(family, proto) \
44 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))
157 u16 family; member in struct:xfrm_state::__anon12842
284 unsigned short family; member in struct:xfrm_policy_afinfo
319 unsigned int family; member in struct:xfrm_state_afinfo
347 struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family);
351 unsigned int family; member in struct:xfrm_input_afinfo
383 int xfrm_register_type(const struct xfrm_type *type, unsigned short family);
384 int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family);
445 int xfrm_register_mode(struct xfrm_mode *mode, int family);
446 int xfrm_unregister_mode(struct xfrm_mode *mode, int family);
448 static inline int xfrm_af2proto(unsigned int family) xfrm_af2proto() argument
450 switch(family) { xfrm_af2proto()
462 if ((ipproto == IPPROTO_IPIP && x->props.family == AF_INET) || xfrm_ip2inner_mode()
463 (ipproto == IPPROTO_IPV6 && x->props.family == AF_INET6)) xfrm_ip2inner_mode()
546 u16 family; member in struct:xfrm_policy
560 u16 family; member in struct:xfrm_kmaddress
685 unsigned int family; member in struct:xfrm_spi_skb_cb
727 void xfrm_audit_state_notfound_simple(struct sk_buff *skb, u16 family);
728 void xfrm_audit_state_notfound(struct sk_buff *skb, u16 family, __be32 net_spi,
765 u16 family) xfrm_audit_state_notfound_simple()
769 static inline void xfrm_audit_state_notfound(struct sk_buff *skb, u16 family, xfrm_audit_state_notfound() argument
906 const struct flowi *fl, unsigned short family);
1022 xfrm_addr_any(const xfrm_address_t *addr, unsigned short family) xfrm_addr_any() argument
1024 switch (family) { xfrm_addr_any()
1048 xfrm_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family) xfrm_state_addr_cmp() argument
1050 switch (family) { xfrm_state_addr_cmp()
1061 unsigned short family);
1065 unsigned int family, int reverse) __xfrm_policy_check2()
1071 return __xfrm_policy_check(sk, ndir, skb, family); __xfrm_policy_check2()
1075 __xfrm_policy_check(sk, ndir, skb, family); __xfrm_policy_check2()
1078 static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family) xfrm_policy_check() argument
1080 return __xfrm_policy_check2(sk, dir, skb, family, 0); xfrm_policy_check()
1106 unsigned int family, int reverse);
1109 unsigned int family) xfrm_decode_session()
1111 return __xfrm_decode_session(skb, fl, family, 0); xfrm_decode_session()
1116 unsigned int family) xfrm_decode_session_reverse()
1118 return __xfrm_decode_session(skb, fl, family, 1); xfrm_decode_session_reverse()
1121 int __xfrm_route_forward(struct sk_buff *skb, unsigned short family);
1123 static inline int xfrm_route_forward(struct sk_buff *skb, unsigned short family) xfrm_route_forward() argument
1129 __xfrm_route_forward(skb, family); xfrm_route_forward()
1181 static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family) xfrm_policy_check() argument
1187 unsigned int family) xfrm_decode_session_reverse()
1207 xfrm_address_t *xfrm_flowi_daddr(const struct flowi *fl, unsigned short family) xfrm_flowi_daddr() argument
1209 switch (family){ xfrm_flowi_daddr()
1219 xfrm_address_t *xfrm_flowi_saddr(const struct flowi *fl, unsigned short family) xfrm_flowi_saddr() argument
1221 switch (family){ xfrm_flowi_saddr()
1233 unsigned short family) xfrm_flowi_addr_get()
1235 switch(family) { xfrm_flowi_addr_get()
1272 unsigned short family) xfrm_state_addr_check()
1274 switch (family) { xfrm_state_addr_check()
1285 unsigned short family) xfrm_state_addr_flow_check()
1287 switch (family) { xfrm_state_addr_flow_check()
1436 unsigned short family);
1440 unsigned short family,
1443 unsigned short family);
1450 u8 proto, unsigned short family);
1455 unsigned short family);
1458 unsigned short family, struct net *net);
1460 unsigned short family);
1463 int n, unsigned short family, struct net *net) xfrm_tmpl_sort()
1469 int n, unsigned short family) xfrm_state_sort()
1519 XFRM_SPI_SKB_CB(skb)->family = AF_INET; xfrm4_rcv_spi()
1531 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family);
1532 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family);
1545 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family);
1546 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family);
1598 unsigned short family);
1644 sa_family_t family) xfrm_addr_equal()
1646 switch (family) { xfrm_addr_equal()
1790 unsigned int family) xfrm_tunnel_check()
1794 switch(family) { xfrm_tunnel_check()
764 xfrm_audit_state_notfound_simple(struct sk_buff *skb, u16 family) xfrm_audit_state_notfound_simple() argument
1063 __xfrm_policy_check2(struct sock *sk, int dir, struct sk_buff *skb, unsigned int family, int reverse) __xfrm_policy_check2() argument
1108 xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, unsigned int family) xfrm_decode_session() argument
1114 xfrm_decode_session_reverse(struct sk_buff *skb, struct flowi *fl, unsigned int family) xfrm_decode_session_reverse() argument
1185 xfrm_decode_session_reverse(struct sk_buff *skb, struct flowi *fl, unsigned int family) xfrm_decode_session_reverse() argument
1231 xfrm_flowi_addr_get(const struct flowi *fl, xfrm_address_t *saddr, xfrm_address_t *daddr, unsigned short family) xfrm_flowi_addr_get() argument
1270 xfrm_state_addr_check(const struct xfrm_state *x, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_state_addr_check() argument
1284 xfrm_state_addr_flow_check(const struct xfrm_state *x, const struct flowi *fl, unsigned short family) xfrm_state_addr_flow_check() argument
1462 xfrm_tmpl_sort(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n, unsigned short family, struct net *net) xfrm_tmpl_sort() argument
1468 xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n, unsigned short family) xfrm_state_sort() argument
1642 xfrm_addr_equal(const xfrm_address_t *a, const xfrm_address_t *b, sa_family_t family) xfrm_addr_equal() argument
1789 xfrm_tunnel_check(struct sk_buff *skb, struct xfrm_state *x, unsigned int family) xfrm_tunnel_check() argument
H A Drtnetlink.h107 * struct rtnl_af_ops - rtnetlink address family operations
110 * @family: Address family
111 * @fill_link_af: Function to fill IFLA_AF_SPEC with address family
113 * @get_link_af_size: Function to calculate size of address family specific
122 int family; member in struct:rtnl_af_ops
H A Dinetpeer.h28 __u16 family; member in struct:inetpeer_addr
145 daddr.family = AF_INET; inet_getpeer_v4()
156 daddr.family = AF_INET6; inet_getpeer_v6()
H A Dudp_tunnel.h13 u8 family; member in struct:udp_port_cfg
55 if (cfg->family == AF_INET) udp_sock_create()
58 if (cfg->family == AF_INET6) udp_sock_create()
H A Dnetlabel.h358 u16 family,
363 u16 family,
371 u16 family,
378 u16 family,
413 u16 family,
425 u16 family,
428 u16 family,
446 u16 family, netlbl_cfg_map_del()
454 u16 family, netlbl_cfg_unlbl_map_add()
465 u16 family, netlbl_cfg_unlbl_static_add()
475 u16 family, netlbl_cfg_unlbl_static_del()
539 u16 family, netlbl_sock_setattr()
568 u16 family, netlbl_skbuff_setattr()
574 u16 family, netlbl_skbuff_getattr()
445 netlbl_cfg_map_del(const char *domain, u16 family, const void *addr, const void *mask, struct netlbl_audit *audit_info) netlbl_cfg_map_del() argument
453 netlbl_cfg_unlbl_map_add(const char *domain, u16 family, void *addr, void *mask, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_map_add() argument
461 netlbl_cfg_unlbl_static_add(struct net *net, const char *dev_name, const void *addr, const void *mask, u16 family, u32 secid, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_static_add() argument
471 netlbl_cfg_unlbl_static_del(struct net *net, const char *dev_name, const void *addr, const void *mask, u16 family, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_static_del() argument
538 netlbl_sock_setattr(struct sock *sk, u16 family, const struct netlbl_lsm_secattr *secattr) netlbl_sock_setattr() argument
567 netlbl_skbuff_setattr(struct sk_buff *skb, u16 family, const struct netlbl_lsm_secattr *secattr) netlbl_skbuff_setattr() argument
573 netlbl_skbuff_getattr(const struct sk_buff *skb, u16 family, struct netlbl_lsm_secattr *secattr) netlbl_skbuff_getattr() argument
/linux-4.1.27/arch/x86/kernel/cpu/microcode/
H A Dcore_early.c8 * belonging to IA-32 family - PentiumPro, Pentium II,
48 int vendor, family; load_ucode_bsp() local
57 family = x86_family(); load_ucode_bsp()
61 if (family >= 6) load_ucode_bsp()
65 if (family >= 0x10) load_ucode_bsp()
84 int vendor, family; load_ucode_ap() local
93 family = x86_family(); load_ucode_ap()
97 if (family >= 6) load_ucode_ap()
101 if (family >= 0x10) load_ucode_ap()
131 int vendor, family; reload_early_microcode() local
134 family = x86_family(); reload_early_microcode()
138 if (family >= 6) reload_early_microcode()
142 if (family >= 0x10) reload_early_microcode()
H A Damd.c71 * a small, trivial cache of per-family ucode patches
147 static unsigned int verify_patch_size(u8 family, u32 patch_size, verify_patch_size() argument
157 switch (family) { verify_patch_size()
279 static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover) verify_and_add_patch() argument
294 pr_err("No patch family for equiv ID: 0x%04x\n", proc_id); verify_and_add_patch()
298 /* check if patch is for the current family */ verify_and_add_patch()
300 if (proc_fam != family) verify_and_add_patch()
309 ret = verify_patch_size(family, patch_size, leftover); verify_and_add_patch()
343 static enum ucode_state __load_microcode_amd(u8 family, const u8 *data, __load_microcode_amd() argument
367 crnt_size = verify_and_add_patch(family, fw, leftover); __load_microcode_amd()
378 enum ucode_state load_microcode_amd(int cpu, u8 family, const u8 *data, size_t size) load_microcode_amd() argument
385 ret = __load_microcode_amd(family, data, size); load_microcode_amd()
405 * AMD microcode firmware naming convention, up to family 15h they are in
412 * Beginning with family 15h, they are in family-specific firmware files:
481 pr_warning("AMD CPU family 0x%x not supported\n", c->x86); init_amd_microcode()
/linux-4.1.27/arch/mips/cobalt/
H A DMakefile2 # Makefile for the Cobalt micro systems family specific parts of the kernel
/linux-4.1.27/net/netlink/
H A Dgenetlink.c78 * also abused this API and relied on family == group ID, we
79 * cater to that by giving it a static family and group ID.
89 static int genl_ctrl_event(int event, struct genl_family *family,
127 static const struct genl_ops *genl_get_cmd(u8 cmd, struct genl_family *family) genl_get_cmd() argument
131 for (i = 0; i < family->n_ops; i++) genl_get_cmd()
132 if (family->ops[i].cmd == cmd) genl_get_cmd()
133 return &family->ops[i]; genl_get_cmd()
220 static int genl_validate_assign_mc_groups(struct genl_family *family) genl_validate_assign_mc_groups() argument
223 int n_groups = family->n_mcgrps; genl_validate_assign_mc_groups()
231 const struct genl_multicast_group *grp = &family->mcgrps[i]; genl_validate_assign_mc_groups()
240 if (family == &genl_ctrl) { genl_validate_assign_mc_groups()
243 } else if (strcmp(family->name, "NET_DM") == 0) { genl_validate_assign_mc_groups()
246 } else if (family->id == GENL_ID_VFS_DQUOT) { genl_validate_assign_mc_groups()
249 } else if (family->id == GENL_ID_PMCRAID) { genl_validate_assign_mc_groups()
259 family->mcgrp_offset = first_id; genl_validate_assign_mc_groups()
265 if (family->netnsok) { genl_validate_assign_mc_groups()
291 for (i = 0; i < family->n_mcgrps; i++)
292 clear_bit(family->mcgrp_offset + i, mc_groups);
298 static void genl_unregister_mc_groups(struct genl_family *family) genl_unregister_mc_groups() argument
306 for (i = 0; i < family->n_mcgrps; i++) for_each_net_rcu()
308 net->genl_sock, family->mcgrp_offset + i); for_each_net_rcu()
313 for (i = 0; i < family->n_mcgrps; i++) {
314 int grp_id = family->mcgrp_offset + i;
318 genl_ctrl_event(CTRL_CMD_DELMCAST_GRP, family,
319 &family->mcgrps[i], grp_id);
323 static int genl_validate_ops(const struct genl_family *family) genl_validate_ops() argument
325 const struct genl_ops *ops = family->ops; genl_validate_ops()
326 unsigned int n_ops = family->n_ops; genl_validate_ops()
347 * __genl_register_family - register a generic netlink family
348 * @family: generic netlink family
350 * Registers the specified family after validating it first. Only one
351 * family may be registered with the same family name or identifier.
352 * The family id may equal GENL_ID_GENERATE causing an unique id to
355 * The family's ops array must already be assigned, you can use the
360 int __genl_register_family(struct genl_family *family) __genl_register_family() argument
364 if (family->id && family->id < GENL_MIN_ID) __genl_register_family()
367 if (family->id > GENL_MAX_ID) __genl_register_family()
370 err = genl_validate_ops(family); __genl_register_family()
376 if (genl_family_find_byname(family->name)) { __genl_register_family()
381 if (family->id == GENL_ID_GENERATE) { __genl_register_family()
389 family->id = newid; __genl_register_family()
390 } else if (genl_family_find_byid(family->id)) { __genl_register_family()
395 if (family->maxattr && !family->parallel_ops) { __genl_register_family()
396 family->attrbuf = kmalloc((family->maxattr+1) * __genl_register_family()
398 if (family->attrbuf == NULL) { __genl_register_family()
403 family->attrbuf = NULL; __genl_register_family()
405 err = genl_validate_assign_mc_groups(family); __genl_register_family()
409 list_add_tail(&family->family_list, genl_family_chain(family->id)); __genl_register_family()
413 genl_ctrl_event(CTRL_CMD_NEWFAMILY, family, NULL, 0); __genl_register_family()
414 for (i = 0; i < family->n_mcgrps; i++) __genl_register_family()
415 genl_ctrl_event(CTRL_CMD_NEWMCAST_GRP, family, __genl_register_family()
416 &family->mcgrps[i], family->mcgrp_offset + i); __genl_register_family()
428 * genl_unregister_family - unregister generic netlink family
429 * @family: generic netlink family
431 * Unregisters the specified family.
435 int genl_unregister_family(struct genl_family *family) genl_unregister_family() argument
441 list_for_each_entry(rc, genl_family_chain(family->id), family_list) { list_for_each_entry()
442 if (family->id != rc->id || strcmp(rc->name, family->name)) list_for_each_entry()
445 genl_unregister_mc_groups(family); list_for_each_entry()
448 family->n_ops = 0; list_for_each_entry()
454 kfree(family->attrbuf); list_for_each_entry()
455 genl_ctrl_event(CTRL_CMD_DELFAMILY, family, NULL, 0); list_for_each_entry()
490 * @family: generic netlink family
497 struct genl_family *family, int flags, u8 cmd) genlmsg_put()
502 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + genlmsg_put()
503 family->hdrsize, flags); genlmsg_put()
509 hdr->version = family->version; genlmsg_put()
542 static int genl_family_rcv_msg(struct genl_family *family, genl_family_rcv_msg() argument
553 /* this family doesn't exist in this netns */ genl_family_rcv_msg()
554 if (!family->netnsok && !net_eq(net, &init_net)) genl_family_rcv_msg()
557 hdrlen = GENL_HDRLEN + family->hdrsize; genl_family_rcv_msg()
561 ops = genl_get_cmd(hdr->cmd, family); genl_family_rcv_msg()
575 if (!family->parallel_ops) { genl_family_rcv_msg()
577 .module = family->module, genl_family_rcv_msg()
590 .module = family->module, genl_family_rcv_msg()
604 if (family->maxattr && family->parallel_ops) { genl_family_rcv_msg()
605 attrbuf = kmalloc((family->maxattr+1) * genl_family_rcv_msg()
610 attrbuf = family->attrbuf; genl_family_rcv_msg()
613 err = nlmsg_parse(nlh, hdrlen, attrbuf, family->maxattr, genl_family_rcv_msg()
629 if (family->pre_doit) { genl_family_rcv_msg()
630 err = family->pre_doit(ops, skb, &info); genl_family_rcv_msg()
637 if (family->post_doit) genl_family_rcv_msg()
638 family->post_doit(ops, skb, &info); genl_family_rcv_msg()
641 if (family->parallel_ops) genl_family_rcv_msg()
649 struct genl_family *family; genl_rcv_msg() local
652 family = genl_family_find_byid(nlh->nlmsg_type); genl_rcv_msg()
653 if (family == NULL) genl_rcv_msg()
656 if (!family->parallel_ops) genl_rcv_msg()
659 err = genl_family_rcv_msg(family, skb, nlh); genl_rcv_msg()
661 if (!family->parallel_ops) genl_rcv_msg()
686 static int ctrl_fill_info(struct genl_family *family, u32 portid, u32 seq, ctrl_fill_info() argument
695 if (nla_put_string(skb, CTRL_ATTR_FAMILY_NAME, family->name) || ctrl_fill_info()
696 nla_put_u16(skb, CTRL_ATTR_FAMILY_ID, family->id) || ctrl_fill_info()
697 nla_put_u32(skb, CTRL_ATTR_VERSION, family->version) || ctrl_fill_info()
698 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || ctrl_fill_info()
699 nla_put_u32(skb, CTRL_ATTR_MAXATTR, family->maxattr)) ctrl_fill_info()
702 if (family->n_ops) { ctrl_fill_info()
710 for (i = 0; i < family->n_ops; i++) { ctrl_fill_info()
712 const struct genl_ops *ops = &family->ops[i]; ctrl_fill_info()
736 if (family->n_mcgrps) { ctrl_fill_info()
744 for (i = 0; i < family->n_mcgrps; i++) { ctrl_fill_info()
748 grp = &family->mcgrps[i]; ctrl_fill_info()
755 family->mcgrp_offset + i) || ctrl_fill_info()
773 static int ctrl_fill_mcgrp_info(struct genl_family *family, ctrl_fill_mcgrp_info() argument
786 if (nla_put_string(skb, CTRL_ATTR_FAMILY_NAME, family->name) || ctrl_fill_mcgrp_info()
787 nla_put_u16(skb, CTRL_ATTR_FAMILY_ID, family->id)) ctrl_fill_mcgrp_info()
846 static struct sk_buff *ctrl_build_family_msg(struct genl_family *family, ctrl_build_family_msg() argument
856 err = ctrl_fill_info(family, portid, seq, 0, skb, cmd); ctrl_build_family_msg()
866 ctrl_build_mcgrp_msg(struct genl_family *family, ctrl_build_mcgrp_msg() argument
877 err = ctrl_fill_mcgrp_info(family, grp, grp_id, portid, ctrl_build_mcgrp_msg()
914 request_module("net-pf-%d-proto-%d-family-%s", ctrl_getfamily()
928 /* family doesn't exist here */ ctrl_getfamily()
940 static int genl_ctrl_event(int event, struct genl_family *family, genl_ctrl_event() argument
954 msg = ctrl_build_family_msg(family, 0, 0, event); genl_ctrl_event()
959 msg = ctrl_build_mcgrp_msg(family, grp, grp_id, 0, 0, event); genl_ctrl_event()
968 if (!family->netnsok) { genl_ctrl_event()
1129 int genlmsg_multicast_allns(struct genl_family *family, struct sk_buff *skb, genlmsg_multicast_allns() argument
1132 if (WARN_ON_ONCE(group >= family->n_mcgrps)) genlmsg_multicast_allns()
1134 group = family->mcgrp_offset + group; genlmsg_multicast_allns()
1139 void genl_notify(struct genl_family *family, genl_notify() argument
1149 if (WARN_ON_ONCE(group >= family->n_mcgrps)) genl_notify()
1151 group = family->mcgrp_offset + group; genl_notify()
496 genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, struct genl_family *family, int flags, u8 cmd) genlmsg_put() argument
/linux-4.1.27/net/xfrm/
H A Dxfrm_input.c30 if (unlikely(afinfo->family >= NPROTO)) xfrm_input_register_afinfo()
33 if (unlikely(xfrm_input_afinfo[afinfo->family] != NULL)) xfrm_input_register_afinfo()
36 rcu_assign_pointer(xfrm_input_afinfo[afinfo->family], afinfo); xfrm_input_register_afinfo()
48 if (unlikely(afinfo->family >= NPROTO)) xfrm_input_unregister_afinfo()
51 if (likely(xfrm_input_afinfo[afinfo->family] != NULL)) { xfrm_input_unregister_afinfo()
52 if (unlikely(xfrm_input_afinfo[afinfo->family] != afinfo)) xfrm_input_unregister_afinfo()
55 RCU_INIT_POINTER(xfrm_input_afinfo[afinfo->family], NULL); xfrm_input_unregister_afinfo()
63 static struct xfrm_input_afinfo *xfrm_input_get_afinfo(unsigned int family) xfrm_input_get_afinfo() argument
67 if (unlikely(family >= NPROTO)) xfrm_input_get_afinfo()
70 afinfo = rcu_dereference(xfrm_input_afinfo[family]); xfrm_input_get_afinfo()
81 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, xfrm_rcv_cb() argument
85 struct xfrm_input_afinfo *afinfo = xfrm_input_get_afinfo(family); xfrm_rcv_cb()
171 if (x->sel.family == AF_UNSPEC) { xfrm_prepare_input()
192 unsigned int family; xfrm_input() local
201 family = x->outer_mode->afinfo->family; xfrm_input()
207 family = XFRM_SPI_SKB_CB(skb)->family; xfrm_input()
211 switch (family) { xfrm_input()
247 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family); xfrm_input()
250 xfrm_audit_state_notfound(skb, family, spi, seq); xfrm_input()
284 if (xfrm_tunnel_check(skb, x, family)) { xfrm_input()
331 if (x->sel.family == AF_UNSPEC) { xfrm_input()
352 family = x->outer_mode->afinfo->family; xfrm_input()
361 err = xfrm_rcv_cb(skb, family, x->type->proto, 0); xfrm_input()
378 xfrm_rcv_cb(skb, family, x && x->type ? x->type->proto : nexthdr, -1); xfrm_input()
H A Dxfrm_state.c34 2. Hash table by (daddr,family,reqid) to find what SAs exist for given
44 unsigned short family) xfrm_dst_hash()
46 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); xfrm_dst_hash()
52 unsigned short family) xfrm_src_hash()
54 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); xfrm_src_hash()
59 __be32 spi, u8 proto, unsigned short family) xfrm_spi_hash()
61 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); xfrm_spi_hash()
77 x->props.reqid, x->props.family, hlist_for_each_entry_safe()
82 x->props.family, hlist_for_each_entry_safe()
88 x->id.proto, x->props.family, hlist_for_each_entry_safe()
161 int xfrm_register_type(const struct xfrm_type *type, unsigned short family) xfrm_register_type() argument
163 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); xfrm_register_type()
182 int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family) xfrm_unregister_type() argument
184 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); xfrm_unregister_type()
203 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) xfrm_get_type() argument
211 afinfo = xfrm_state_get_afinfo(family); xfrm_get_type()
221 request_module("xfrm-type-%d-%d", family, proto); xfrm_get_type()
236 int xfrm_register_mode(struct xfrm_mode *mode, int family) xfrm_register_mode() argument
245 afinfo = xfrm_state_get_afinfo(family); xfrm_register_mode()
270 int xfrm_unregister_mode(struct xfrm_mode *mode, int family) xfrm_unregister_mode() argument
279 afinfo = xfrm_state_get_afinfo(family); xfrm_unregister_mode()
298 static struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) xfrm_get_mode() argument
308 afinfo = xfrm_state_get_afinfo(family); xfrm_get_mode()
317 request_module("xfrm-mode-%d-%d", family, encap); xfrm_get_mode()
636 unsigned short family) xfrm_init_tempstate()
638 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); xfrm_init_tempstate()
643 if (family != tmpl->encap_family) { xfrm_init_tempstate()
657 unsigned short family) __xfrm_state_lookup()
659 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); __xfrm_state_lookup()
663 if (x->props.family != family || __xfrm_state_lookup()
666 !xfrm_addr_equal(&x->id.daddr, daddr, family)) __xfrm_state_lookup()
681 u8 proto, unsigned short family) __xfrm_state_lookup_byaddr()
683 unsigned int h = xfrm_src_hash(net, daddr, saddr, family); __xfrm_state_lookup_byaddr()
687 if (x->props.family != family || __xfrm_state_lookup_byaddr()
689 !xfrm_addr_equal(&x->id.daddr, daddr, family) || __xfrm_state_lookup_byaddr()
690 !xfrm_addr_equal(&x->props.saddr, saddr, family)) __xfrm_state_lookup_byaddr()
703 __xfrm_state_locate(struct xfrm_state *x, int use_spi, int family) __xfrm_state_locate() argument
710 x->id.spi, x->id.proto, family); __xfrm_state_locate()
715 x->id.proto, family); __xfrm_state_locate()
727 const struct flowi *fl, unsigned short family, xfrm_state_look_at()
743 if ((x->sel.family && xfrm_state_look_at()
744 !xfrm_selector_match(&x->sel, fl, x->sel.family)) || xfrm_state_look_at()
757 if (xfrm_selector_match(&x->sel, fl, x->sel.family) && xfrm_state_look_at()
767 unsigned short family) xfrm_state_find()
785 if (x->props.family == encap_family && xfrm_state_find()
801 if (x->props.family == encap_family && xfrm_state_find()
841 xfrm_init_tempstate(x, fl, tmpl, daddr, saddr, family); xfrm_state_find()
887 unsigned short family, u8 mode, u8 proto, u32 reqid) xfrm_stateonly_find()
893 h = xfrm_dst_hash(net, daddr, saddr, reqid, family); xfrm_stateonly_find()
895 if (x->props.family == family && xfrm_stateonly_find()
899 xfrm_state_addr_check(x, daddr, saddr, family) && xfrm_stateonly_find()
918 unsigned short family) xfrm_state_lookup_byspi()
926 if (x->props.family != family || xfrm_state_lookup_byspi()
947 x->props.reqid, x->props.family); __xfrm_state_insert()
950 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); __xfrm_state_insert()
955 x->props.family); __xfrm_state_insert()
973 unsigned short family = xnew->props.family; __xfrm_state_bump_genids() local
979 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); __xfrm_state_bump_genids()
981 if (x->props.family == family && __xfrm_state_bump_genids()
984 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) && __xfrm_state_bump_genids()
985 xfrm_addr_equal(&x->props.saddr, &xnew->props.saddr, family)) __xfrm_state_bump_genids()
1004 unsigned short family, u8 mode, __find_acq_core()
1010 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family); __find_acq_core()
1017 x->props.family != family || __find_acq_core()
1022 !xfrm_addr_equal(&x->id.daddr, daddr, family) || __find_acq_core()
1023 !xfrm_addr_equal(&x->props.saddr, saddr, family)) __find_acq_core()
1035 switch (family) { __find_acq_core()
1057 x->props.family = family; __find_acq_core()
1067 h = xfrm_src_hash(net, daddr, saddr, family); __find_acq_core()
1084 int family; xfrm_state_add() local
1089 family = x->props.family; xfrm_state_add()
1095 x1 = __xfrm_state_locate(x, use_spi, family); xfrm_state_add()
1106 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) { xfrm_state_add()
1113 x1 = __find_acq_core(net, &x->mark, family, x->props.mode, xfrm_state_add()
1150 x->props.family = orig->props.family; xfrm_state_clone()
1307 x1 = __xfrm_state_locate(x, use_spi, x->props.family); xfrm_state_update()
1393 u8 proto, unsigned short family) xfrm_state_lookup()
1398 x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family); xfrm_state_lookup()
1407 u8 proto, unsigned short family) xfrm_state_lookup_byaddr()
1412 x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family); xfrm_state_lookup_byaddr()
1421 const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq()
1426 x = __find_acq_core(net, mark, family, mode, reqid, proto, daddr, saddr, create); xfrm_find_acq()
1436 unsigned short family, struct net *net) xfrm_tmpl_sort()
1439 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); xfrm_tmpl_sort()
1454 unsigned short family) xfrm_state_sort()
1457 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); xfrm_state_sort()
1563 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); xfrm_alloc_spi()
1573 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); xfrm_alloc_spi()
1583 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); xfrm_alloc_spi()
1601 if ((filter->family == AF_INET || __xfrm_state_filter_match()
1602 filter->family == AF_INET6) && __xfrm_state_filter_match()
1603 x->props.family != filter->family) __xfrm_state_filter_match()
1907 if (unlikely(afinfo->family >= NPROTO)) xfrm_state_register_afinfo()
1910 if (unlikely(xfrm_state_afinfo[afinfo->family] != NULL)) xfrm_state_register_afinfo()
1913 rcu_assign_pointer(xfrm_state_afinfo[afinfo->family], afinfo); xfrm_state_register_afinfo()
1924 if (unlikely(afinfo->family >= NPROTO)) xfrm_state_unregister_afinfo()
1927 if (likely(xfrm_state_afinfo[afinfo->family] != NULL)) { xfrm_state_unregister_afinfo()
1928 if (unlikely(xfrm_state_afinfo[afinfo->family] != afinfo)) xfrm_state_unregister_afinfo()
1931 RCU_INIT_POINTER(xfrm_state_afinfo[afinfo->family], NULL); xfrm_state_unregister_afinfo()
1939 struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family) xfrm_state_get_afinfo() argument
1942 if (unlikely(family >= NPROTO)) xfrm_state_get_afinfo()
1945 afinfo = rcu_dereference(xfrm_state_afinfo[family]); xfrm_state_get_afinfo()
1989 int family = x->props.family; __xfrm_init_state() local
1993 afinfo = xfrm_state_get_afinfo(family); __xfrm_init_state()
2008 if (x->sel.family != AF_UNSPEC) { __xfrm_init_state()
2009 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); __xfrm_init_state()
2014 family != x->sel.family) { __xfrm_init_state()
2024 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); __xfrm_init_state()
2034 if (x->props.family == AF_INET) __xfrm_init_state()
2046 x->type = xfrm_get_type(x->id.proto, family); __xfrm_init_state()
2054 x->outer_mode = xfrm_get_mode(x->props.mode, family); __xfrm_init_state()
2145 switch (x->props.family) { xfrm_audit_helper_sainfo()
2159 static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family, xfrm_audit_helper_pktinfo() argument
2165 switch (family) { xfrm_audit_helper_pktinfo()
2220 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_replay_overflow()
2238 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_replay()
2246 void xfrm_audit_state_notfound_simple(struct sk_buff *skb, u16 family) xfrm_audit_state_notfound_simple() argument
2253 xfrm_audit_helper_pktinfo(skb, family, audit_buf); xfrm_audit_state_notfound_simple()
2258 void xfrm_audit_state_notfound(struct sk_buff *skb, u16 family, xfrm_audit_state_notfound() argument
2267 xfrm_audit_helper_pktinfo(skb, family, audit_buf); xfrm_audit_state_notfound()
2285 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_icvfail()
40 xfrm_dst_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family) xfrm_dst_hash() argument
49 xfrm_src_hash(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_src_hash() argument
58 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) xfrm_spi_hash() argument
633 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, const struct xfrm_tmpl *tmpl, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family) xfrm_init_tempstate() argument
654 __xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) __xfrm_state_lookup() argument
678 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) __xfrm_state_lookup_byaddr() argument
726 xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, const struct flowi *fl, unsigned short family, struct xfrm_state **best, int *acq_in_progress, int *error) xfrm_state_look_at() argument
764 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family) xfrm_state_find() argument
885 xfrm_stateonly_find(struct net *net, u32 mark, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) xfrm_stateonly_find() argument
917 xfrm_state_lookup_byspi(struct net *net, __be32 spi, unsigned short family) xfrm_state_lookup_byspi() argument
1002 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) __find_acq_core() argument
1392 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) xfrm_state_lookup() argument
1405 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) xfrm_state_lookup_byaddr() argument
1419 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq() argument
1435 xfrm_tmpl_sort(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n, unsigned short family, struct net *net) xfrm_tmpl_sort() argument
1453 xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n, unsigned short family) xfrm_state_sort() argument
H A Dxfrm_hash.h86 u32 reqid, unsigned short family, __xfrm_dst_hash()
89 unsigned int h = family ^ reqid; __xfrm_dst_hash()
90 switch (family) { __xfrm_dst_hash()
103 unsigned short family, __xfrm_src_hash()
106 unsigned int h = family; __xfrm_src_hash()
107 switch (family) { __xfrm_src_hash()
120 unsigned short family, unsigned int hmask) __xfrm_spi_hash()
123 switch (family) { __xfrm_spi_hash()
140 unsigned short family, unsigned int hmask, __sel_hash()
147 switch (family) { __sel_hash()
170 unsigned short family, __addr_hash()
176 switch (family) { __addr_hash()
84 __xfrm_dst_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family, unsigned int hmask) __xfrm_dst_hash() argument
101 __xfrm_src_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) __xfrm_src_hash() argument
119 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, unsigned int hmask) __xfrm_spi_hash() argument
139 __sel_hash(const struct xfrm_selector *sel, unsigned short family, unsigned int hmask, u8 dbits, u8 sbits) __sel_hash() argument
168 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask, u8 dbits, u8 sbits) __addr_hash() argument
H A Dxfrm_policy.c89 unsigned short family) xfrm_selector_match()
91 switch (family) { xfrm_selector_match()
100 static struct xfrm_policy_afinfo *xfrm_policy_get_afinfo(unsigned short family) xfrm_policy_get_afinfo() argument
104 if (unlikely(family >= NPROTO)) xfrm_policy_get_afinfo()
107 afinfo = rcu_dereference(xfrm_policy_afinfo[family]); xfrm_policy_get_afinfo()
121 int family) __xfrm_dst_lookup()
126 afinfo = xfrm_policy_get_afinfo(family); __xfrm_dst_lookup()
140 int family) xfrm_dst_lookup()
156 dst = __xfrm_dst_lookup(net, tos, saddr, daddr, family); xfrm_dst_lookup()
355 unsigned short family, int dir, __get_hash_thresh()
358 switch (family) { __get_hash_thresh()
377 unsigned short family, int dir) policy_hash_bysel()
384 __get_hash_thresh(net, family, dir, &dbits, &sbits); policy_hash_bysel()
385 hash = __sel_hash(sel, family, hmask, dbits, sbits); policy_hash_bysel()
395 unsigned short family, int dir) policy_hash_direct()
402 __get_hash_thresh(net, family, dir, &dbits, &sbits); policy_hash_direct()
403 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); policy_hash_direct()
424 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); hlist_for_each_entry_safe()
426 pol->family, nhashmask, dbits, sbits); hlist_for_each_entry_safe()
630 policy->family, xfrm_hash_rebuild()
756 chain = policy_hash_bysel(net, &policy->selector, policy->family, dir); xfrm_policy_insert()
786 /* After previous checking, family can either be AF_INET or AF_INET6 */
787 if (policy->family == AF_INET)
823 chain = policy_hash_bysel(net, sel, sel->family, dir); xfrm_policy_bysel_ctx()
1069 u8 type, u16 family, int dir) xfrm_policy_match()
1075 if (pol->family != family || xfrm_policy_match()
1080 match = xfrm_selector_match(sel, fl, family); xfrm_policy_match()
1090 u16 family, u8 dir) xfrm_policy_lookup_bytype()
1098 daddr = xfrm_flowi_daddr(fl, family); xfrm_policy_lookup_bytype()
1099 saddr = xfrm_flowi_saddr(fl, family); xfrm_policy_lookup_bytype()
1104 chain = policy_hash_direct(net, daddr, saddr, family, dir); xfrm_policy_lookup_bytype()
1107 err = xfrm_policy_match(pol, fl, type, family, dir); hlist_for_each_entry()
1123 err = xfrm_policy_match(pol, fl, type, family, dir); hlist_for_each_entry()
1145 __xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir) __xfrm_policy_lookup() argument
1150 pol = xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_SUB, fl, family, dir); __xfrm_policy_lookup()
1154 return xfrm_policy_lookup_bytype(net, XFRM_POLICY_TYPE_MAIN, fl, family, dir); __xfrm_policy_lookup()
1176 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, xfrm_policy_lookup() argument
1184 pol = __xfrm_policy_lookup(net, fl, family, flow_to_policy_dir(dir)); xfrm_policy_lookup()
1380 unsigned short family) xfrm_get_saddr()
1383 struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); xfrm_get_saddr()
1396 struct xfrm_state **xfrm, unsigned short family) xfrm_tmpl_resolve_one()
1401 xfrm_address_t *daddr = xfrm_flowi_daddr(fl, family); xfrm_tmpl_resolve_one()
1402 xfrm_address_t *saddr = xfrm_flowi_saddr(fl, family); xfrm_tmpl_resolve_one()
1423 x = xfrm_state_find(remote, local, fl, tmpl, policy, &error, family); xfrm_tmpl_resolve_one()
1452 struct xfrm_state **xfrm, unsigned short family) xfrm_tmpl_resolve()
1467 ret = xfrm_tmpl_resolve_one(pols[i], fl, &tpp[cnx], family); xfrm_tmpl_resolve()
1477 xfrm_state_sort(xfrm, tpp, cnx, family); xfrm_tmpl_resolve()
1492 static inline int xfrm_get_tos(const struct flowi *fl, int family) xfrm_get_tos() argument
1494 struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); xfrm_get_tos()
1557 static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family) xfrm_alloc_dst() argument
1559 struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); xfrm_alloc_dst()
1566 switch (family) { xfrm_alloc_dst()
1599 xfrm_policy_get_afinfo(dst->ops->family); xfrm_init_path()
1616 xfrm_policy_get_afinfo(xdst->u.dst.ops->family); xfrm_fill_dst()
1651 int family = policy->selector.family; xfrm_bundle_create() local
1654 xfrm_flowi_addr_get(fl, &saddr, &daddr, family); xfrm_bundle_create()
1656 tos = xfrm_get_tos(fl, family); xfrm_bundle_create()
1664 struct xfrm_dst *xdst = xfrm_alloc_dst(net, family); xfrm_bundle_create()
1673 if (xfrm[i]->sel.family == AF_UNSPEC) { xfrm_bundle_create()
1675 xfrm_af2proto(family)); xfrm_bundle_create()
1695 family = xfrm[i]->props.family; xfrm_bundle_create()
1697 family); xfrm_bundle_create()
1797 static int xfrm_expand_policies(const struct flowi *fl, u16 family, xfrm_expand_policies() argument
1818 fl, family, xfrm_expand_policies()
1843 const struct flowi *fl, u16 family, xfrm_resolve_and_create_bundle()
1853 err = xfrm_tmpl_resolve(pols, num_pols, fl, xfrm, family); xfrm_resolve_and_create_bundle()
1903 xfrm_decode_session(skb, &fl, dst->ops->family); xfrm_policy_queue_process()
1936 xfrm_decode_session(skb, &fl, skb_dst(skb)->ops->family); xfrm_policy_queue_process()
2008 u16 family) xfrm_create_dummy_bundle()
2016 xdst = xfrm_alloc_dst(net, family); xfrm_create_dummy_bundle()
2064 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, xfrm_bundle_lookup() argument
2096 pols[0] = __xfrm_policy_lookup(net, fl, family, xfrm_bundle_lookup()
2098 err = xfrm_expand_policies(fl, family, pols, xfrm_bundle_lookup()
2108 new_xdst = xfrm_resolve_and_create_bundle(pols, num_pols, fl, family, xfrm_bundle_lookup()
2143 xdst = xfrm_create_dummy_bundle(net, xflo, fl, num_xfrms, family); xfrm_bundle_lookup()
2165 static struct dst_entry *make_blackhole(struct net *net, u16 family, make_blackhole() argument
2168 struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); make_blackhole()
2195 u16 family = dst_orig->ops->family; xfrm_lookup() local
2206 err = xfrm_expand_policies(fl, family, pols, xfrm_lookup()
2219 family, dst_orig); xfrm_lookup()
2247 flo = flow_cache_lookup(net, fl, family, dir, xfrm_lookup()
2344 return make_blackhole(net, dst_orig->ops->family, dst_orig); xfrm_lookup_route()
2371 unsigned short family) xfrm_state_ok()
2382 xfrm_state_addr_cmp(tmpl, x, family)); xfrm_state_ok()
2394 unsigned short family) xfrm_policy_ok()
2404 if (xfrm_state_ok(tmpl, sp->xvec[idx], family)) xfrm_policy_ok()
2416 unsigned int family, int reverse) __xfrm_decode_session()
2418 struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); __xfrm_decode_session()
2444 unsigned short family) __xfrm_policy_check()
2461 if (__xfrm_decode_session(skb, &fl, family, reverse) < 0) { __xfrm_policy_check()
2466 nf_nat_decode_session(skb, &fl, family); __xfrm_policy_check()
2474 if (!xfrm_selector_match(&x->sel, &fl, family)) { __xfrm_policy_check()
2493 flo = flow_cache_lookup(net, &fl, family, fl_dir, __xfrm_policy_check()
2522 &fl, family, __xfrm_policy_check()
2562 xfrm_tmpl_sort(stp, tpp, xfrm_nr, family, net); __xfrm_policy_check()
2573 k = xfrm_policy_ok(tpp[i], sp, k, family); __xfrm_policy_check()
2601 int __xfrm_route_forward(struct sk_buff *skb, unsigned short family) __xfrm_route_forward() argument
2608 if (xfrm_decode_session(skb, &fl, family) < 0) { __xfrm_route_forward()
2812 if (unlikely(afinfo->family >= NPROTO)) xfrm_policy_register_afinfo()
2815 if (unlikely(xfrm_policy_afinfo[afinfo->family] != NULL)) xfrm_policy_register_afinfo()
2835 rcu_assign_pointer(xfrm_policy_afinfo[afinfo->family], afinfo); xfrm_policy_register_afinfo()
2848 if (unlikely(afinfo->family >= NPROTO)) xfrm_policy_unregister_afinfo()
2851 if (likely(xfrm_policy_afinfo[afinfo->family] != NULL)) { xfrm_policy_unregister_afinfo()
2852 if (unlikely(xfrm_policy_afinfo[afinfo->family] != afinfo)) xfrm_policy_unregister_afinfo()
2855 RCU_INIT_POINTER(xfrm_policy_afinfo[afinfo->family], xfrm_policy_unregister_afinfo()
3079 switch (sel->family) { xfrm_audit_common_policyinfo()
3138 if (sel_tgt->family == sel_cmp->family && xfrm_migrate_selector_match()
3140 sel_cmp->family) && xfrm_migrate_selector_match()
3142 sel_cmp->family) && xfrm_migrate_selector_match()
3163 chain = policy_hash_direct(net, &sel->daddr, &sel->saddr, sel->family, dir); hlist_for_each_entry()
88 xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl, unsigned short family) xfrm_selector_match() argument
118 __xfrm_dst_lookup(struct net *net, int tos, const xfrm_address_t *saddr, const xfrm_address_t *daddr, int family) __xfrm_dst_lookup() argument
137 xfrm_dst_lookup(struct xfrm_state *x, int tos, xfrm_address_t *prev_saddr, xfrm_address_t *prev_daddr, int family) xfrm_dst_lookup() argument
354 __get_hash_thresh(struct net *net, unsigned short family, int dir, u8 *dbits, u8 *sbits) __get_hash_thresh() argument
375 policy_hash_bysel(struct net *net, const struct xfrm_selector *sel, unsigned short family, int dir) policy_hash_bysel() argument
392 policy_hash_direct(struct net *net, const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, int dir) policy_hash_direct() argument
1067 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, int dir) xfrm_policy_match() argument
1088 xfrm_policy_lookup_bytype(struct net *net, u8 type, const struct flowi *fl, u16 family, u8 dir) xfrm_policy_lookup_bytype() argument
1379 xfrm_get_saddr(struct net *net, xfrm_address_t *local, xfrm_address_t *remote, unsigned short family) xfrm_get_saddr() argument
1395 xfrm_tmpl_resolve_one(struct xfrm_policy *policy, const struct flowi *fl, struct xfrm_state **xfrm, unsigned short family) xfrm_tmpl_resolve_one() argument
1451 xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, const struct flowi *fl, struct xfrm_state **xfrm, unsigned short family) xfrm_tmpl_resolve() argument
1842 xfrm_resolve_and_create_bundle(struct xfrm_policy **pols, int num_pols, const struct flowi *fl, u16 family, struct dst_entry *dst_orig) xfrm_resolve_and_create_bundle() argument
2004 xfrm_create_dummy_bundle(struct net *net, struct xfrm_flo *xflo, const struct flowi *fl, int num_xfrms, u16 family) xfrm_create_dummy_bundle() argument
2370 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family) xfrm_state_ok() argument
2393 xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start, unsigned short family) xfrm_policy_ok() argument
2415 __xfrm_decode_session(struct sk_buff *skb, struct flowi *fl, unsigned int family, int reverse) __xfrm_decode_session() argument
2443 __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family) __xfrm_policy_check() argument
H A Dxfrm_output.c132 err = nf_hook(skb_dst(skb)->ops->family, xfrm_output_resume()
207 if (x->sel.family == AF_UNSPEC) xfrm_inner_extract_output()
209 xfrm_af2proto(skb_dst(skb)->ops->family)); xfrm_inner_extract_output()
H A Dxfrm_user.c156 switch (p->family) { verify_newsa_info()
448 x->props.family = p->family; copy_from_user_state()
452 if (!x->sel.family && !(p->flags & XFRM_STATE_AF_UNSPEC)) copy_from_user_state()
453 x->sel.family = p->family; copy_from_user_state()
643 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); xfrm_user_state_lookup()
656 p->proto, p->family); xfrm_user_state_lookup()
714 p->family = x->props.family; copy_to_user_state()
1180 int family; xfrm_alloc_userspi() local
1190 family = p->info.family; xfrm_alloc_userspi()
1198 if (x && !xfrm_addr_equal(&x->id.daddr, daddr, family)) { xfrm_alloc_userspi()
1208 family); xfrm_alloc_userspi()
1286 switch (p->sel.family) { verify_newpolicy_info()
1343 t->encap_family = ut->family; copy_templates()
1347 static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family) validate_tmpl() argument
1355 /* We never validated the ut->family value, so many validate_tmpl()
1357 * never made and ut->family was ignored because all validate_tmpl()
1358 * templates could be assumed to have the same family as validate_tmpl()
1362 if (!ut[i].family) validate_tmpl()
1363 ut[i].family = family; validate_tmpl()
1365 switch (ut[i].family) { validate_tmpl()
1391 err = validate_tmpl(nr, utmpl, pol->family); copy_from_user_tmpl()
1428 xp->family = p->sel.family; copy_from_user_policy()
1440 p->sel.family = xp->family; copy_to_user_policy()
1537 up->family = kp->encap_family; copy_to_user_tmpl()
1812 id->sa_id.family = x->props.family; build_aevent()
1870 x = xfrm_state_lookup(net, mark, &id->daddr, id->spi, id->proto, id->family); xfrm_get_ae()
1921 x = xfrm_state_lookup(net, mark, &p->sa_id.daddr, p->sa_id.spi, p->sa_id.proto, p->sa_id.family); xfrm_new_ae()
2049 x = xfrm_state_lookup(net, mark, &p->id.daddr, p->id.spi, p->id.proto, p->family); xfrm_add_sa_expire()
2112 x->props.family = ut->family; xfrm_add_acquire()
2148 k->family = uk->family; copy_from_user_migrate()
2239 uk.family = k->family; copy_to_user_kmaddress()
2634 id->family = x->props.family; xfrm_notify_sa()
2784 if (validate_tmpl(nr, ut, p->sel.family)) xfrm_compile_policy()
3039 um->id.family = x->props.family; build_mapping()
/linux-4.1.27/security/selinux/include/
H A Dnetlabel.h49 u16 family,
53 u16 family,
56 int selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family);
57 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family);
58 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family);
61 u16 family,
94 u16 family, selinux_netlbl_skbuff_getsid()
103 u16 family, selinux_netlbl_skbuff_setsid()
116 u16 family) selinux_netlbl_inet_conn_request()
120 static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) selinux_netlbl_inet_csk_clone() argument
125 u16 family) selinux_netlbl_socket_post_create()
131 u16 family, selinux_netlbl_sock_rcv_skb()
93 selinux_netlbl_skbuff_getsid(struct sk_buff *skb, u16 family, u32 *type, u32 *sid) selinux_netlbl_skbuff_getsid() argument
102 selinux_netlbl_skbuff_setsid(struct sk_buff *skb, u16 family, u32 sid) selinux_netlbl_skbuff_setsid() argument
115 selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family) selinux_netlbl_inet_conn_request() argument
124 selinux_netlbl_socket_post_create(struct sock *sk, u16 family) selinux_netlbl_socket_post_create() argument
129 selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad) selinux_netlbl_sock_rcv_skb() argument
H A Dnetnode.h32 int sel_netnode_sid(void *addr, u16 family, u32 *sid);
/linux-4.1.27/arch/mips/dec/
H A DMakefile2 # Makefile for the DECstation family specific parts of the kernel
/linux-4.1.27/drivers/video/fbdev/geode/
H A DMakefile1 # Makefile for the Geode family framebuffer drivers
/linux-4.1.27/net/netfilter/
H A Dxt_ipvs.c51 /* ipvs_mt_check ensures that family is only NFPROTO_IPV[46]. */ ipvs_mt()
52 const u_int8_t family = par->family; ipvs_mt() local
70 ip_vs_fill_iph_skb(family, skb, &iph); ipvs_mt()
88 cp = pp->conn_out_get(family, skb, &iph, 1 /* inverse */); ipvs_mt()
139 &data->vmask, family) ^ ipvs_mt()
155 if (par->family != NFPROTO_IPV4 ipvs_mt_check()
157 && par->family != NFPROTO_IPV6 ipvs_mt_check()
160 pr_info("protocol family %u not supported\n", par->family); ipvs_mt_check()
170 .family = NFPROTO_UNSPEC,
H A Dxt_LOG.c42 nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out, log_tg()
51 if (par->family != NFPROTO_IPV4 && par->family != NFPROTO_IPV6) log_tg_check()
64 return nf_logger_find_get(par->family, NF_LOG_TYPE_LOG); log_tg_check()
69 nf_logger_put(par->family, NF_LOG_TYPE_LOG); log_tg_destroy()
75 .family = NFPROTO_IPV4,
85 .family = NFPROTO_IPV6,
H A Dxt_policy.c26 const union nf_inet_addr *a2, unsigned short family) xt_addr_cmp()
28 switch (family) { xt_addr_cmp()
39 unsigned short family) match_xfrm_state()
42 (xt_addr_cmp(&e->x, &e->y, (const union nf_inet_addr *)(z), family) \ match_xfrm_state()
56 unsigned short family) match_policy_in()
74 if (match_xfrm_state(sp->xvec[i], e, family)) { match_policy_in()
86 unsigned short family) match_policy_out()
102 if (match_xfrm_state(dst->xfrm, e, family)) { match_policy_out()
119 ret = match_policy_in(skb, info, par->family); policy_mt()
121 ret = match_policy_out(skb, info, par->family); policy_mt()
159 .family = NFPROTO_IPV4,
167 .family = NFPROTO_IPV6,
25 xt_addr_cmp(const union nf_inet_addr *a1, const union nf_inet_addr *m, const union nf_inet_addr *a2, unsigned short family) xt_addr_cmp() argument
38 match_xfrm_state(const struct xfrm_state *x, const struct xt_policy_elem *e, unsigned short family) match_xfrm_state() argument
55 match_policy_in(const struct sk_buff *skb, const struct xt_policy_info *info, unsigned short family) match_policy_in() argument
85 match_policy_out(const struct sk_buff *skb, const struct xt_policy_info *info, unsigned short family) match_policy_out() argument
H A Dxt_conntrack.c45 u_int8_t family) conntrack_mt_origsrc()
48 &info->origsrc_addr, &info->origsrc_mask, family); conntrack_mt_origsrc()
54 u_int8_t family) conntrack_mt_origdst()
57 &info->origdst_addr, &info->origdst_mask, family); conntrack_mt_origdst()
63 u_int8_t family) conntrack_mt_replsrc()
66 &info->replsrc_addr, &info->replsrc_mask, family); conntrack_mt_replsrc()
72 u_int8_t family) conntrack_mt_repldst()
75 &info->repldst_addr, &info->repldst_mask, family); conntrack_mt_repldst()
203 if (conntrack_mt_origsrc(ct, info, par->family) ^ conntrack_mt()
208 if (conntrack_mt_origdst(ct, info, par->family) ^ conntrack_mt()
213 if (conntrack_mt_replsrc(ct, info, par->family) ^ conntrack_mt()
218 if (conntrack_mt_repldst(ct, info, par->family) ^ conntrack_mt()
276 ret = nf_ct_l3proto_try_module_get(par->family); conntrack_mt_check()
279 par->family); conntrack_mt_check()
285 nf_ct_l3proto_module_put(par->family); conntrack_mt_destroy()
292 .family = NFPROTO_UNSPEC,
302 .family = NFPROTO_UNSPEC,
312 .family = NFPROTO_UNSPEC,
43 conntrack_mt_origsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) conntrack_mt_origsrc() argument
52 conntrack_mt_origdst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) conntrack_mt_origdst() argument
61 conntrack_mt_replsrc(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) conntrack_mt_replsrc() argument
70 conntrack_mt_repldst(const struct nf_conn *ct, const struct xt_conntrack_mtinfo2 *info, u_int8_t family) conntrack_mt_repldst() argument
H A Dxt_state.c46 ret = nf_ct_l3proto_try_module_get(par->family); state_mt_check()
49 par->family); state_mt_check()
55 nf_ct_l3proto_module_put(par->family); state_mt_destroy()
60 .family = NFPROTO_UNSPEC,
H A Dxt_dscp.c61 if (par->family == NFPROTO_IPV4) tos_mt()
72 .family = NFPROTO_IPV4,
80 .family = NFPROTO_IPV6,
89 .family = NFPROTO_IPV4,
97 .family = NFPROTO_IPV6,
H A Dxt_NFQUEUE.c46 par->family, jhash_initval); nfqueue_tg_v1()
101 par->family, jhash_initval); nfqueue_tg_v3()
115 .family = NFPROTO_UNSPEC,
123 .family = NFPROTO_UNSPEC,
132 .family = NFPROTO_UNSPEC,
141 .family = NFPROTO_UNSPEC,
H A Dxt_connmark.c80 ret = nf_ct_l3proto_try_module_get(par->family); connmark_tg_check()
83 par->family); connmark_tg_check()
89 nf_ct_l3proto_module_put(par->family); connmark_tg_destroy()
110 ret = nf_ct_l3proto_try_module_get(par->family); connmark_mt_check()
113 par->family); connmark_mt_check()
119 nf_ct_l3proto_module_put(par->family); connmark_mt_destroy()
125 .family = NFPROTO_UNSPEC,
136 .family = NFPROTO_UNSPEC,
H A Dxt_TRACE.c23 .family = NFPROTO_UNSPEC,
H A Dxt_connlabel.c55 ret = nf_ct_l3proto_try_module_get(par->family); connlabel_mt_check()
58 par->family); connlabel_mt_check()
75 nf_ct_l3proto_module_put(par->family); connlabel_mt_destroy()
80 .family = NFPROTO_UNSPEC,
H A Dxt_connlimit.c101 const union nf_inet_addr *u3, u_int8_t family) same_source_net()
103 if (family == NFPROTO_IPV4) { same_source_net()
204 u8 family, u16 zone) count_tree()
224 diff = same_source_net(addr, mask, &rbconn->addr, family); count_tree()
293 u_int8_t family, u16 zone) count_them()
299 if (family == NFPROTO_IPV6) { count_them()
309 count = count_tree(net, root, tuple, addr, mask, family, zone); count_them()
334 par->family, &tuple)) { connlimit_mt()
338 if (par->family == NFPROTO_IPV6) { connlimit_mt()
349 &info->mask, par->family, zone); connlimit_mt()
376 ret = nf_ct_l3proto_try_module_get(par->family); connlimit_mt_check()
379 "address family %u\n", par->family); connlimit_mt_check()
386 nf_ct_l3proto_module_put(par->family); connlimit_mt_check()
422 nf_ct_l3proto_module_put(par->family); connlimit_mt_destroy()
435 .family = NFPROTO_UNSPEC,
99 same_source_net(const union nf_inet_addr *addr, const union nf_inet_addr *mask, const union nf_inet_addr *u3, u_int8_t family) same_source_net() argument
201 count_tree(struct net *net, struct rb_root *root, const struct nf_conntrack_tuple *tuple, const union nf_inet_addr *addr, const union nf_inet_addr *mask, u8 family, u16 zone) count_tree() argument
288 count_them(struct net *net, struct xt_connlimit_data *data, const struct nf_conntrack_tuple *tuple, const union nf_inet_addr *addr, const union nf_inet_addr *mask, u_int8_t family, u16 zone) count_them() argument
H A Dxt_helper.c62 ret = nf_ct_l3proto_try_module_get(par->family); helper_mt_check()
65 par->family); helper_mt_check()
74 nf_ct_l3proto_module_put(par->family); helper_mt_destroy()
80 .family = NFPROTO_UNSPEC,
H A Dnft_compat.c132 switch (ctx->afi->family) { nft_target_set_tgchk_param()
163 par->family = ctx->afi->family; nft_target_set_tgchk_param()
258 par.family = ctx->afi->family; nft_target_destroy()
348 switch (ctx->afi->family) { nft_match_set_mtchk_param()
379 par->family = ctx->afi->family; nft_match_set_mtchk_param()
439 par.family = ctx->afi->family; nft_match_destroy()
489 int event, u16 family, const char *name, nfnl_compat_fill_info()
502 nfmsg->nfgen_family = family; nfnl_compat_fill_info()
621 const char *name, u32 rev, u32 family) nft_match_cmp()
624 (match->family == NFPROTO_UNSPEC || match->family == family); nft_match_cmp()
634 u32 rev, family; nft_match_select_ops() local
643 family = ctx->afi->family; nft_match_select_ops()
649 if (nft_match_cmp(match, mt_name, rev, family)) { nft_match_select_ops()
657 match = xt_request_find_match(family, mt_name, rev); nft_match_select_ops()
701 const char *name, u32 rev, u32 family) nft_target_cmp()
704 (tg->family == NFPROTO_UNSPEC || tg->family == family); nft_target_cmp()
714 u32 rev, family; nft_target_select_ops() local
723 family = ctx->afi->family; nft_target_select_ops()
729 if (nft_target_cmp(target, tg_name, rev, family)) { nft_target_select_ops()
737 target = xt_request_find_target(family, tg_name, rev); nft_target_select_ops()
754 if (family == NFPROTO_BRIDGE) nft_target_select_ops()
488 nfnl_compat_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, int event, u16 family, const char *name, int rev, int target) nfnl_compat_fill_info() argument
620 nft_match_cmp(const struct xt_match *match, const char *name, u32 rev, u32 family) nft_match_cmp() argument
700 nft_target_cmp(const struct xt_target *tg, const char *name, u32 rev, u32 family) nft_target_cmp() argument
H A Dnf_tables_inet.c28 ops->pf = afi->family; nft_inet_hook_ops_init()
34 .family = NFPROTO_INET,
72 .family = NFPROTO_INET,
H A Dxt_pkttype.c33 else if (par->family == NFPROTO_IPV4 && pkttype_mt()
36 else if (par->family == NFPROTO_IPV6 && pkttype_mt()
48 .family = NFPROTO_UNSPEC,
H A Dxt_set.c42 .family = f, \
55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, set_match_v0()
117 ADT_OPT(opt, par->family, info->match_set.dim, set_match_v1()
181 ADT_OPT(opt, par->family, info->match_set.dim, set_match_v3()
227 ADT_OPT(opt, par->family, info->match_set.dim, set_match_v4()
255 ADT_OPT(add_opt, par->family, info->add_set.u.compat.dim, set_target_v0()
257 ADT_OPT(del_opt, par->family, info->del_set.u.compat.dim, set_target_v0()
327 ADT_OPT(add_opt, par->family, info->add_set.dim, set_target_v1()
329 ADT_OPT(del_opt, par->family, info->del_set.dim, set_target_v1()
395 ADT_OPT(add_opt, par->family, info->add_set.dim, set_target_v2()
397 ADT_OPT(del_opt, par->family, info->del_set.dim, set_target_v2()
421 ADT_OPT(add_opt, par->family, info->add_set.dim, set_target_v3()
423 ADT_OPT(del_opt, par->family, info->del_set.dim, set_target_v3()
425 ADT_OPT(map_opt, par->family, info->map_set.dim, set_target_v3()
552 .family = NFPROTO_IPV4,
562 .family = NFPROTO_IPV4,
572 .family = NFPROTO_IPV6,
583 .family = NFPROTO_IPV4,
593 .family = NFPROTO_IPV6,
604 .family = NFPROTO_IPV4,
614 .family = NFPROTO_IPV6,
625 .family = NFPROTO_IPV4,
635 .family = NFPROTO_IPV6,
649 .family = NFPROTO_IPV4,
659 .family = NFPROTO_IPV4,
669 .family = NFPROTO_IPV6,
680 .family = NFPROTO_IPV4,
690 .family = NFPROTO_IPV6,
701 .family = NFPROTO_IPV4,
711 .family = NFPROTO_IPV6,
H A Dnft_nat.c35 u8 family; member in struct:nft_nat
50 if (priv->family == AF_INET) { nft_nat_eval()
122 u32 family; nft_nat_init() local
148 family = ntohl(nla_get_be32(tb[NFTA_NAT_FAMILY])); nft_nat_init()
149 if (family != ctx->afi->family) nft_nat_init()
152 switch (family) { nft_nat_init()
162 priv->family = family; nft_nat_init()
230 if (nla_put_be32(skb, NFTA_NAT_FAMILY, htonl(priv->family))) nft_nat_dump()
H A Dxt_tcpudp.c169 .family = NFPROTO_IPV4,
178 .family = NFPROTO_IPV6,
187 .family = NFPROTO_IPV4,
196 .family = NFPROTO_IPV6,
205 .family = NFPROTO_IPV4,
214 .family = NFPROTO_IPV6,
H A Dxt_CT.c59 if (par->family == NFPROTO_IPV4) { xt_ct_find_proto()
65 } else if (par->family == NFPROTO_IPV6) { xt_ct_find_proto()
90 helper = nf_conntrack_helper_try_module_get(helper_name, par->family, xt_ct_set_helper()
153 if (timeout->l3num != par->family) { xt_ct_set_timeout()
162 l4proto = __nf_ct_l4proto_find(par->family, proto); xt_ct_set_timeout()
201 ret = nf_ct_l3proto_try_module_get(par->family); xt_ct_tg_check()
239 nf_ct_l3proto_module_put(par->family); xt_ct_tg_check()
318 nf_ct_l3proto_module_put(par->family); xt_ct_tg_destroy()
348 .family = NFPROTO_UNSPEC,
358 .family = NFPROTO_UNSPEC,
369 .family = NFPROTO_UNSPEC,
407 .family = NFPROTO_UNSPEC,
H A Dxt_CONNSECMARK.c109 ret = nf_ct_l3proto_try_module_get(par->family); connsecmark_tg_check()
112 par->family); connsecmark_tg_check()
118 nf_ct_l3proto_module_put(par->family); connsecmark_tg_destroy()
124 .family = NFPROTO_UNSPEC,
H A Dxt_DSCP.c119 .family = NFPROTO_IPV4,
128 .family = NFPROTO_IPV6,
138 .family = NFPROTO_IPV4,
147 .family = NFPROTO_IPV6,
H A Dxt_comment.c28 .family = NFPROTO_UNSPEC,
H A Dxt_connbytes.c113 ret = nf_ct_l3proto_try_module_get(par->family); connbytes_mt_check()
116 par->family); connbytes_mt_check()
132 nf_ct_l3proto_module_put(par->family); connbytes_mt_destroy()
138 .family = NFPROTO_UNSPEC,
H A Dxt_recent.c73 u_int16_t family; member in struct:recent_entry
129 const union nf_inet_addr *addrp, u_int16_t family, recent_entry_lookup()
135 if (family == NFPROTO_IPV4) recent_entry_lookup()
141 if (e->family == family && recent_entry_lookup()
177 u_int16_t family, u_int8_t ttl) recent_entry_init()
197 e->family = family; recent_entry_init()
198 if (family == NFPROTO_IPV4) recent_entry_init()
249 if (par->family == NFPROTO_IPV4) { recent_mt()
278 e = recent_entry_lookup(t, &addr_mask, par->family, recent_mt()
283 e = recent_entry_init(t, &addr_mask, par->family, ttl); recent_mt()
530 if (e->family == NFPROTO_IPV4) recent_seq_show()
570 u_int16_t family; recent_mt_proc_write() local
603 family = NFPROTO_IPV6; recent_mt_proc_write()
606 family = NFPROTO_IPV4; recent_mt_proc_write()
616 e = recent_entry_lookup(t, &addr, family, 0); recent_mt_proc_write()
619 recent_entry_init(t, &addr, family, 0); recent_mt_proc_write()
704 .family = NFPROTO_IPV4,
714 .family = NFPROTO_IPV6,
724 .family = NFPROTO_IPV4,
734 .family = NFPROTO_IPV6,
128 recent_entry_lookup(const struct recent_table *table, const union nf_inet_addr *addrp, u_int16_t family, u_int8_t ttl) recent_entry_lookup() argument
176 recent_entry_init(struct recent_table *t, const union nf_inet_addr *addr, u_int16_t family, u_int8_t ttl) recent_entry_init() argument
H A Dxt_CLASSIFY.c44 .family = NFPROTO_UNSPEC,
54 .family = NFPROTO_ARP,
H A Dxt_NFLOG.c36 nfulnl_log_packet(net, par->family, par->hooknum, skb, par->in, nflog_tg()
55 .family = NFPROTO_UNSPEC,
H A Dxt_TCPMSS.c48 unsigned int family) tcpmss_reverse_mtu()
55 if (family == PF_INET) { tcpmss_reverse_mtu()
66 ai = nf_get_afinfo(family); tcpmss_reverse_mtu()
81 unsigned int family, tcpmss_mangle_packet()
112 unsigned int in_mtu = tcpmss_reverse_mtu(net, skb, family); tcpmss_mangle_packet()
179 if (par->family == NFPROTO_IPV4) tcpmss_mangle_packet()
312 .family = NFPROTO_IPV4,
322 .family = NFPROTO_IPV6,
46 tcpmss_reverse_mtu(struct net *net, const struct sk_buff *skb, unsigned int family) tcpmss_reverse_mtu() argument
79 tcpmss_mangle_packet(struct sk_buff *skb, const struct xt_action_param *par, unsigned int family, unsigned int tcphoff, unsigned int minlen) tcpmss_mangle_packet() argument
H A Dxt_length.c45 .family = NFPROTO_IPV4,
52 .family = NFPROTO_IPV6,
H A Dxt_mark.c47 .family = NFPROTO_UNSPEC,
56 .family = NFPROTO_UNSPEC,
H A Dnft_ct.c189 static int nft_ct_l3proto_try_module_get(uint8_t family) nft_ct_l3proto_try_module_get() argument
193 if (family == NFPROTO_INET) { nft_ct_l3proto_try_module_get()
201 err = nf_ct_l3proto_try_module_get(family); nft_ct_l3proto_try_module_get()
213 static void nft_ct_l3proto_module_put(uint8_t family) nft_ct_l3proto_module_put() argument
215 if (family == NFPROTO_INET) { nft_ct_l3proto_module_put()
219 nf_ct_l3proto_module_put(family); nft_ct_l3proto_module_put()
274 switch (ctx->afi->family) { nft_ct_get_init()
315 err = nft_ct_l3proto_try_module_get(ctx->afi->family); nft_ct_get_init()
346 err = nft_ct_l3proto_try_module_get(ctx->afi->family); nft_ct_set_init()
356 nft_ct_l3proto_module_put(ctx->afi->family); nft_ct_destroy()
H A Dnft_log.c101 if (ctx->afi->family == NFPROTO_INET) { nft_log_init()
114 return nf_logger_find_get(ctx->afi->family, li->type); nft_log_init()
126 if (ctx->afi->family == NFPROTO_INET) { nft_log_destroy()
130 nf_logger_put(ctx->afi->family, li->type); nft_log_destroy()
H A Dxt_AUDIT.c147 if (par->family == NFPROTO_BRIDGE) { audit_tg()
160 switch (par->family) { audit_tg()
204 .family = NFPROTO_UNSPEC,
212 .family = NFPROTO_BRIDGE,
H A Dxt_cluster.c70 xt_cluster_is_multicast_addr(const struct sk_buff *skb, u_int8_t family) xt_cluster_is_multicast_addr() argument
74 switch(family) { xt_cluster_is_multicast_addr()
115 if (!xt_cluster_is_multicast_addr(skb, par->family) && xt_cluster_mt()
156 .family = NFPROTO_UNSPEC,
H A Dxt_realm.c39 .family = NFPROTO_UNSPEC,
H A Dxt_REDIRECT.c71 .family = NFPROTO_IPV6,
83 .family = NFPROTO_IPV4,
H A Dxt_esp.c78 .family = NFPROTO_IPV4,
87 .family = NFPROTO_IPV6,
H A Dxt_hl.c70 .family = NFPROTO_IPV4,
78 .family = NFPROTO_IPV6,
H A Dxt_ipcomp.c82 .family = NFPROTO_IPV4,
91 .family = NFPROTO_IPV6,
H A Dxt_tcpmss.c83 .family = NFPROTO_IPV4,
91 .family = NFPROTO_IPV6,
H A Dnf_tables_api.c27 * nft_register_afinfo - register nf_tables address family info
29 * @afi: address family info to register
31 * Register the address family for use with nf_tables. Returns zero on
45 * nft_unregister_afinfo - unregister nf_tables address family info
47 * @afi: address family info to unregister
49 * Unregister the address family for use with nf_tables.
59 static struct nft_af_info *nft_afinfo_lookup(struct net *net, int family) nft_afinfo_lookup() argument
64 if (afi->family == family) nft_afinfo_lookup()
71 nf_tables_afinfo_lookup(struct net *net, int family, bool autoload) nf_tables_afinfo_lookup() argument
75 afi = nft_afinfo_lookup(net, family); nf_tables_afinfo_lookup()
81 request_module("nft-afinfo-%u", family); nf_tables_afinfo_lookup()
83 afi = nft_afinfo_lookup(net, family); nf_tables_afinfo_lookup()
362 __nf_tables_chain_type_lookup(int family, const struct nlattr *nla) __nf_tables_chain_type_lookup() argument
367 if (chain_type[family][i] != NULL && __nf_tables_chain_type_lookup()
368 !nla_strcmp(nla, chain_type[family][i]->name)) __nf_tables_chain_type_lookup()
369 return chain_type[family][i]; __nf_tables_chain_type_lookup()
381 type = __nf_tables_chain_type_lookup(afi->family, nla); nf_tables_chain_type_lookup()
387 request_module("nft-chain-%u-%.*s", afi->family, nf_tables_chain_type_lookup()
390 type = __nf_tables_chain_type_lookup(afi->family, nla); nf_tables_chain_type_lookup()
406 int family, const struct nft_table *table) nf_tables_fill_table_info()
417 nfmsg->nfgen_family = family; nf_tables_fill_table_info()
449 event, 0, ctx->afi->family, ctx->table); nf_tables_table_notify()
473 int family = nfmsg->nfgen_family; nf_tables_dump_tables() local
479 if (family != NFPROTO_UNSPEC && family != afi->family) nf_tables_dump_tables()
493 afi->family, table) < 0) nf_tables_dump_tables()
516 int family = nfmsg->nfgen_family; nf_tables_gettable() local
526 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_gettable()
542 family, table); nf_tables_gettable()
647 int family = nfmsg->nfgen_family; nf_tables_newtable() local
652 afi = nf_tables_afinfo_lookup(net, family, true); nf_tables_newtable()
746 static int nft_flush(struct nft_ctx *ctx, int family) nft_flush() argument
754 if (family != AF_UNSPEC && afi->family != family) nft_flush()
782 int family = nfmsg->nfgen_family; nf_tables_deltable() local
786 if (family == AF_UNSPEC || nla[NFTA_TABLE_NAME] == NULL) nf_tables_deltable()
787 return nft_flush(&ctx, family); nf_tables_deltable()
789 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_deltable()
818 if (chain_type[ctype->family][ctype->type] != NULL) { nft_register_chain_type()
822 chain_type[ctype->family][ctype->type] = ctype; nft_register_chain_type()
832 chain_type[ctype->family][ctype->type] = NULL; nft_unregister_chain_type()
922 int family, const struct nft_table *table, nf_tables_fill_chain_info()
934 nfmsg->nfgen_family = family; nf_tables_fill_chain_info()
996 event, 0, ctx->afi->family, ctx->table, nf_tables_chain_notify()
1022 int family = nfmsg->nfgen_family; nf_tables_dump_chains() local
1028 if (family != NFPROTO_UNSPEC && family != afi->family) nf_tables_dump_chains()
1043 afi->family, table, chain) < 0) nf_tables_dump_chains()
1068 int family = nfmsg->nfgen_family; nf_tables_getchain() local
1078 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_getchain()
1100 family, table, chain); nf_tables_getchain()
1188 int family = nfmsg->nfgen_family; nf_tables_newchain() local
1199 afi = nf_tables_afinfo_lookup(net, family, true); nf_tables_newchain()
1300 type = chain_type[family][NFT_CHAIN_T_DEFAULT]; nf_tables_newchain()
1358 ops->pf = family; nf_tables_newchain()
1414 int family = nfmsg->nfgen_family; nf_tables_delchain() local
1417 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_delchain()
1454 if (type->family == NFPROTO_UNSPEC) nft_register_expr()
1477 static const struct nft_expr_type *__nft_expr_type_get(u8 family, __nft_expr_type_get() argument
1484 (!type->family || type->family == family)) __nft_expr_type_get()
1490 static const struct nft_expr_type *nft_expr_type_get(u8 family, nft_expr_type_get() argument
1498 type = __nft_expr_type_get(family, nla); nft_expr_type_get()
1505 request_module("nft-expr-%u-%.*s", family, nft_expr_type_get()
1508 if (__nft_expr_type_get(family, nla)) nft_expr_type_get()
1515 if (__nft_expr_type_get(family, nla)) nft_expr_type_get()
1583 type = nft_expr_type_get(ctx->afi->family, tb[NFTA_EXPR_NAME]); nf_tables_expr_parse()
1716 u32 flags, int family, nf_tables_fill_rule_info()
1734 nfmsg->nfgen_family = family; nf_tables_fill_rule_info()
1793 event, 0, ctx->afi->family, ctx->table, nf_tables_rule_notify()
1820 int family = nfmsg->nfgen_family; nf_tables_dump_rules() local
1826 if (family != NFPROTO_UNSPEC && family != afi->family) nf_tables_dump_rules()
1843 afi->family, table, chain, rule) < 0) nf_tables_dump_rules()
1871 int family = nfmsg->nfgen_family; nf_tables_getrule() local
1881 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_getrule()
1907 family, table, chain, rule); nf_tables_getrule()
2115 int family = nfmsg->nfgen_family, err = 0; nf_tables_delrule() local
2118 afi = nf_tables_afinfo_lookup(net, family, false); nf_tables_delrule()
2394 nfmsg->nfgen_family = ctx->afi->family; nf_tables_fill_set()
2497 if (afi->family != cur_family) nf_tables_dump_sets()
2525 cb->args[3] = afi->family; nf_tables_dump_sets()
3101 nfmsg->nfgen_family = ctx.afi->family; nf_tables_dump_set()
3182 nfmsg->nfgen_family = ctx->afi->family; nf_tables_fill_setelem_info()
404 nf_tables_fill_table_info(struct sk_buff *skb, struct net *net, u32 portid, u32 seq, int event, u32 flags, int family, const struct nft_table *table) nf_tables_fill_table_info() argument
920 nf_tables_fill_chain_info(struct sk_buff *skb, struct net *net, u32 portid, u32 seq, int event, u32 flags, int family, const struct nft_table *table, const struct nft_chain *chain) nf_tables_fill_chain_info() argument
1714 nf_tables_fill_rule_info(struct sk_buff *skb, struct net *net, u32 portid, u32 seq, int event, u32 flags, int family, const struct nft_table *table, const struct nft_chain *chain, const struct nft_rule *rule) nf_tables_fill_rule_info() argument
H A Dx_tables.c76 u_int8_t af = target->family; xt_register_target()
88 u_int8_t af = target->family; xt_unregister_target()
126 u_int8_t af = match->family; xt_register_match()
138 u_int8_t af = match->family; xt_unregister_match()
202 /* Try searching again in the family-independent list */ xt_find_match()
245 /* Try searching again in the family-independent list */ xt_find_target()
379 xt_prefix[par->family], par->match->name, xt_check_match()
387 xt_prefix[par->family], par->match->name, xt_check_match()
396 xt_prefix[par->family], par->match->name, xt_check_match()
398 par->family), xt_check_match()
400 par->family)); xt_check_match()
405 xt_prefix[par->family], par->match->name, xt_check_match()
554 xt_prefix[par->family], par->target->name, xt_check_target()
562 xt_prefix[par->family], par->target->name, xt_check_target()
571 xt_prefix[par->family], par->target->name, xt_check_target()
573 par->family), xt_check_target()
575 par->family)); xt_check_target()
580 xt_prefix[par->family], par->target->name, xt_check_target()
839 audit_log_format(ab, "table=%s family=%u entries=%u", xt_replace_table()
H A Dxt_HL.c137 .family = NFPROTO_IPV4,
147 .family = NFPROTO_IPV6,
H A Dxt_NETMAP.c120 .family = NFPROTO_IPV6,
134 .family = NFPROTO_IPV4,
H A Dxt_TCPOPTSTRIP.c120 .family = NFPROTO_IPV4,
130 .family = NFPROTO_IPV6,
/linux-4.1.27/security/selinux/
H A Dnetnode.c65 * family later */
107 * @family: address family
114 static struct sel_netnode *sel_netnode_find(const void *addr, u16 family) sel_netnode_find() argument
119 switch (family) { sel_netnode_find()
132 if (node->nsec.family == family) sel_netnode_find()
133 switch (family) { sel_netnode_find()
160 switch (node->nsec.family) { sel_netnode_insert()
190 * @family: the address family
200 static int sel_netnode_sid_slow(void *addr, u16 family, u32 *sid) sel_netnode_sid_slow() argument
207 node = sel_netnode_find(addr, family); sel_netnode_sid_slow()
216 switch (family) { sel_netnode_sid_slow()
234 new->nsec.family = family; sel_netnode_sid_slow()
252 * @family: the address family
263 int sel_netnode_sid(void *addr, u16 family, u32 *sid) sel_netnode_sid() argument
268 node = sel_netnode_find(addr, family); sel_netnode_sid()
276 return sel_netnode_sid_slow(addr, family, sid); sel_netnode_sid()
H A Dnetlabel.c176 * @family: the socket family
191 * @family: protocol family
202 u16 family, selinux_netlbl_skbuff_getsid()
215 rc = netlbl_skbuff_getattr(skb, family, &secattr); selinux_netlbl_skbuff_getsid()
229 * @family: protocol family
238 u16 family, selinux_netlbl_skbuff_setsid()
263 rc = netlbl_skbuff_setattr(skb, family, secattr); selinux_netlbl_skbuff_setsid()
282 int selinux_netlbl_inet_conn_request(struct request_sock *req, u16 family) selinux_netlbl_inet_conn_request() argument
287 if (family != PF_INET) selinux_netlbl_inet_conn_request()
310 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) selinux_netlbl_inet_csk_clone() argument
314 if (family == PF_INET) selinux_netlbl_inet_csk_clone()
323 * @family: protocol family
330 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family) selinux_netlbl_socket_post_create() argument
336 if (family != PF_INET) selinux_netlbl_socket_post_create()
342 rc = netlbl_sock_setattr(sk, family, secattr); selinux_netlbl_socket_post_create()
360 * @family: protocol family
371 u16 family, selinux_netlbl_sock_rcv_skb()
383 rc = netlbl_skbuff_getattr(skb, family, &secattr); selinux_netlbl_sock_rcv_skb()
476 /* connected sockets are allowed to disconnect when the address family selinux_netlbl_socket_connect()
201 selinux_netlbl_skbuff_getsid(struct sk_buff *skb, u16 family, u32 *type, u32 *sid) selinux_netlbl_skbuff_getsid() argument
237 selinux_netlbl_skbuff_setsid(struct sk_buff *skb, u16 family, u32 sid) selinux_netlbl_skbuff_setsid() argument
369 selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, struct sk_buff *skb, u16 family, struct common_audit_data *ad) selinux_netlbl_sock_rcv_skb() argument
/linux-4.1.27/arch/mips/cavium-octeon/executive/
H A Docteon-model.c61 const char *family; octeon_model_get_string_buffer() local
183 /* Now figure out the family, the first two digits */ octeon_model_get_string_buffer()
192 family = "37"; octeon_model_get_string_buffer()
194 family = "36"; octeon_model_get_string_buffer()
196 family = "38"; octeon_model_get_string_buffer()
218 family = "30"; octeon_model_get_string_buffer()
220 family = "31"; octeon_model_get_string_buffer()
238 family = "30"; octeon_model_get_string_buffer()
259 family = "58"; octeon_model_get_string_buffer()
285 family = "55"; octeon_model_get_string_buffer()
287 family = "57"; octeon_model_get_string_buffer()
304 family = "54"; octeon_model_get_string_buffer()
306 family = "56"; octeon_model_get_string_buffer()
310 family = "50"; octeon_model_get_string_buffer()
314 family = "51"; octeon_model_get_string_buffer()
316 family = "52"; octeon_model_get_string_buffer()
319 family = "61"; octeon_model_get_string_buffer()
330 family = "63"; octeon_model_get_string_buffer()
332 family = "62"; octeon_model_get_string_buffer()
345 family = "66"; octeon_model_get_string_buffer()
360 family = "68"; octeon_model_get_string_buffer()
373 family = "XX"; octeon_model_get_string_buffer()
381 if (family[0] != '3') { octeon_model_get_string_buffer()
383 if (family[0] == '6') octeon_model_get_string_buffer()
402 family = fuse_model; octeon_model_get_string_buffer()
411 family = fuse_model; octeon_model_get_string_buffer()
415 sprintf(buffer, "CN%s%sp%s-%d-%s", family, core_model, pass, clock_mhz, suffix); octeon_model_get_string_buffer()
/linux-4.1.27/include/linux/
H A Dgenetlink.h39 #define MODULE_ALIAS_GENL_FAMILY(family)\
40 MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)
H A Drxrpc.h22 sa_family_t srx_family; /* address family */
27 sa_family_t family; /* transport address family */ member in union:sockaddr_rxrpc::__anon12406
H A Dsock_diag.h12 __u8 family; member in struct:sock_diag_handler
H A Dsys_soc.h13 const char *family; member in struct:soc_device_attribute
H A Dnetfilter.h255 unsigned short family; member in struct:nf_afinfo
273 static inline const struct nf_afinfo *nf_get_afinfo(unsigned short family) nf_get_afinfo() argument
275 return rcu_dereference(nf_afinfo[family]); nf_get_afinfo()
280 u_int8_t protocol, unsigned short family) nf_checksum()
286 afinfo = nf_get_afinfo(family); nf_checksum()
296 u_int8_t protocol, unsigned short family) nf_checksum_partial()
302 afinfo = nf_get_afinfo(family); nf_checksum_partial()
317 nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) nf_nat_decode_session() argument
351 nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) nf_nat_decode_session() argument
279 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u_int8_t protocol, unsigned short family) nf_checksum() argument
294 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u_int8_t protocol, unsigned short family) nf_checksum_partial() argument
H A Dnet.h128 int family; member in struct:proto_ops
189 int family; member in struct:net_proto_family
207 void sock_unregister(int family);
208 int __sock_create(struct net *net, int family, int type, int proto,
210 int sock_create(int family, int type, int proto, struct socket **res);
211 int sock_create_kern(int family, int type, int proto, struct socket **res);
212 int sock_create_lite(int family, int type, int proto, struct socket **res);
/linux-4.1.27/tools/power/cpupower/utils/helpers/
H A Damd.c32 static int get_did(int family, union msr_pstate pstate) get_did() argument
36 if (family == 0x12) get_did()
44 static int get_cof(int family, union msr_pstate pstate) get_cof() argument
49 did = get_did(family, pstate); get_cof()
53 if (family == 0x11) get_cof()
61 * cpu_family -> The cpu's family (0x10, 0x12,...)
H A Dcpuid.c39 * Extract CPU vendor, family, model, stepping info from /proc/cpuinfo
56 cpu_info->family = unknown; get_cpu_info()
82 /* Get CPU family, etc. */ get_cpu_info()
83 } else if (!strncmp(value, "cpu family\t: ", 13)) { get_cpu_info()
84 sscanf(value, "cpu family\t: %u", get_cpu_info()
85 &cpu_info->family); get_cpu_info()
95 cpu_info->family == unknown || get_cpu_info()
145 if (cpu_info->family == 6) { get_cpu_info()
/linux-4.1.27/arch/sh/include/asm/
H A Dmodule.h23 # error unknown processor family
35 # error unknown processor family
H A Dbugs.h28 switch (current_cpu_data.family) { check_bugs()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
H A DMakefile2 # Makefile for the Linux "Tulip" family network device drivers.
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dmatch.c14 * contains vendor (X86_VENDOR_*), family, model and feature bits or
36 for (m = match; m->vendor | m->family | m->model | m->feature; m++) { x86_match_cpu()
39 if (m->family != X86_FAMILY_ANY && c->x86 != m->family) x86_match_cpu()
H A Dumc.c14 { .family = 4, .model_names =
H A Dcpu.h24 int family; member in struct:cpu_dev::legacy_cpu_model_info
/linux-4.1.27/include/uapi/linux/
H A Dif_addrlabel.h16 __u8 ifal_family; /* Address family */
H A Dsocket.h14 __kernel_sa_family_t ss_family; /* address family */
H A Dif_pppox.h62 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */
76 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */
82 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */
91 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */
97 __kernel_sa_family_t sa_family; /* address family, AF_PPPOX */
H A Dgenetlink.h7 #define GENL_NAMSIZ 16 /* length of family name */
H A Dhsr_netlink.h16 /* Generic Netlink HSR family definition
H A Dl2tp.h20 * @l2tp_family: address family number AF_L2TPIP.
42 * @l2tp_family: address family number AF_L2TPIP.
57 * NETLINK_GENERIC netlink family.
H A Dfib_rules.h19 __u8 family; member in struct:fib_rule_hdr
H A Dxfrm.h55 __u16 family; member in struct:xfrm_selector
237 __u16 family; member in struct:xfrm_user_tmpl
368 __u16 family; member in struct:xfrm_usersa_info
387 __u16 family; member in struct:xfrm_usersa_id
463 __u16 family; member in struct:xfrm_user_kmaddress
491 __u16 family; member in struct:xfrm_address_filter
/linux-4.1.27/drivers/w1/
H A Dw1_family.h54 * struct w1_family_ops - operations for a family type
67 * struct w1_family - reference counted family structure.
68 * @family_entry: family linked list
69 * @fid: 8 bit family identifier
70 * @fops: operations for this family
H A Dw1_family.c35 * w1_register_family() - register a device family driver
36 * @newf: family to register
67 * w1_unregister_family() - unregister a device family driver
68 * @fent: family to unregister
86 /* deatch devices using this family code */ w1_unregister_family()
90 pr_info("Waiting for family %u to become free: refcnt=%d.\n", w1_unregister_family()
H A Dw1.h28 * @family: identifies the type of device
29 * @id: along with family is the unique device id
35 __u64 family:8, member in struct:w1_reg_num
41 family:8;
81 * @family: module for device family type
82 * @family_data: pointer for use by the family module
97 struct w1_family *family; member in struct:w1_slave
292 /* Disconnect and reconnect devices in the given family. Used for finding
293 * unclaimed devices after a family has been registered or releasing devices
294 * after a family has been unregistered. Set attach to 1 when a new family
H A Dw1.c97 w1_family_put(sl->family); w1_slave_release()
127 /* Default family */
406 unsigned int family; w1_atoreg_num() local
423 i = sscanf(buf, "%02x-%012llx", &family, &id); w1_atoreg_num()
428 rn->family = family; w1_atoreg_num()
436 rn->family, (unsigned long long)rn->id, rn->crc); w1_atoreg_num()
451 if (sl->reg_num.family == rn->family && w1_slave_search_device()
520 dev_info(dev, "Device %02x-%012llx doesn't exists\n", rn.family, w1_master_attribute_store_remove()
607 err = add_uevent_var(env, "W1_FID=%02X", sl->reg_num.family); w1_uevent()
622 fops = sl->family->fops; w1_family_notify()
629 /* if the family driver needs to initialize something... */ w1_family_notify()
652 sl->family->fops->remove_slave(sl); w1_family_notify()
671 (unsigned int) sl->reg_num.family, __w1_attach_slave_device()
675 (unsigned int) sl->reg_num.family, __w1_attach_slave_device()
730 request_module("w1-family-0x%02x", rn->family); w1_attach_slave_device()
734 f = w1_family_registered(rn->family); w1_attach_slave_device()
738 rn->family, rn->family, w1_attach_slave_device()
744 sl->family = f; w1_attach_slave_device()
751 w1_family_put(sl->family); w1_attach_slave_device()
839 if (sl->reg_num.family == id->family && w1_search_slave()
866 "for family %02x.\n", dev->name, f->fid); w1_reconnect_slaves()
870 /* If it is a new family, slaves with the default w1_reconnect_slaves()
871 * family driver and are that family will be w1_reconnect_slaves()
872 * connected. If the family is going away, devices w1_reconnect_slaves()
873 * matching that family are reconneced. w1_reconnect_slaves()
875 if ((attach && sl->family->fid == W1_FAMILY_DEFAULT w1_reconnect_slaves()
876 && sl->reg_num.family == f->fid) || w1_reconnect_slaves()
877 (!attach && sl->family->fid == f->fid)) { w1_reconnect_slaves()
/linux-4.1.27/arch/arm/mach-at91/
H A Dsoc.c79 soc_dev_attr->family = soc->family; at91_soc_init()
91 if (soc->family) at91_soc_init()
92 pr_info("Detected SoC family: %s\n", soc->family); at91_soc_init()
H A Dsoc.h21 const char *family; member in struct:at91_soc
29 .family = (__family), \
/linux-4.1.27/include/uapi/linux/caif/
H A Dcaif_socket.h108 * @family: Address family number, must be AF_CAIF.
109 * @u: Union of address data 'switched' by family.
111 * @u.at: Applies when family = CAIFPROTO_AT.
115 * @u.util: Applies when family = CAIFPROTO_UTIL
119 * @u.dgm: Applies when family = CAIFPROTO_DATAGRAM
125 * @u.rfm: Applies when family = CAIFPROTO_RFM
131 * @u.dbg: Applies when family = CAIFPROTO_DEBUG.
142 __kernel_sa_family_t family; member in struct:sockaddr_caif
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_kms.c239 if ((rdev->family >= CHIP_CEDAR) && (rdev->family <= CHIP_HEMLOCK)) radeon_info_ioctl()
264 if (rdev->family == CHIP_HAWAII) { radeon_info_ioctl()
278 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
280 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
282 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
284 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
286 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
288 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
332 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
335 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
338 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
341 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
343 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
345 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
352 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
354 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
356 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
358 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
360 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
362 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
372 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
374 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
376 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
378 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
380 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
382 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
390 if (rdev->family < CHIP_CAYMAN) radeon_info_ioctl()
396 if (rdev->family < CHIP_CAYMAN) radeon_info_ioctl()
401 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
403 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
405 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
407 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
409 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
411 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
418 if (rdev->family < CHIP_R600) { radeon_info_ioctl()
427 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
429 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
431 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
433 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
439 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
441 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
474 if (rdev->family >= CHIP_BONAIRE) { radeon_info_ioctl()
477 } else if (rdev->family >= CHIP_TAHITI) { radeon_info_ioctl()
486 if (rdev->family >= CHIP_BONAIRE) { radeon_info_ioctl()
498 if (rdev->family >= CHIP_BONAIRE) { radeon_info_ioctl()
500 } else if (rdev->family >= CHIP_TAHITI) { radeon_info_ioctl()
535 if (rdev->family >= CHIP_BONAIRE) radeon_info_ioctl()
537 else if (rdev->family >= CHIP_TAHITI) radeon_info_ioctl()
539 else if (rdev->family >= CHIP_CAYMAN) radeon_info_ioctl()
541 else if (rdev->family >= CHIP_CEDAR) radeon_info_ioctl()
543 else if (rdev->family >= CHIP_RV770) radeon_info_ioctl()
545 else if (rdev->family >= CHIP_R600) radeon_info_ioctl()
630 if (rdev->family >= CHIP_CAYMAN) { radeon_driver_open_kms()
691 if (rdev->family >= CHIP_CAYMAN && file_priv->driver_priv) { radeon_driver_postclose_kms()
H A Dradeon_clocks.c123 if (rdev->family >= CHIP_R420) { radeon_read_clocks_OF()
208 if (rdev->family < CHIP_RS600) { radeon_get_clock_info()
242 if (rdev->family >= CHIP_R420) { radeon_get_clock_info()
493 if ((rdev->family == CHIP_RS400) || radeon_legacy_set_clock_gating()
494 (rdev->family == CHIP_RS480)) { radeon_legacy_set_clock_gating()
541 } else if (rdev->family >= CHIP_RV350) { radeon_legacy_set_clock_gating()
669 if (((rdev->family == CHIP_RV250) && radeon_legacy_set_clock_gating()
673 || ((rdev->family == CHIP_RV100) radeon_legacy_set_clock_gating()
684 if ((rdev->family == CHIP_RV200) || radeon_legacy_set_clock_gating()
685 (rdev->family == CHIP_RV250) || radeon_legacy_set_clock_gating()
686 (rdev->family == CHIP_RV280)) { radeon_legacy_set_clock_gating()
691 if (((rdev->family == CHIP_RV200) || radeon_legacy_set_clock_gating()
692 (rdev->family == CHIP_RV250)) && radeon_legacy_set_clock_gating()
703 if (((rdev->family == CHIP_RV200) || radeon_legacy_set_clock_gating()
704 (rdev->family == CHIP_RV250)) && radeon_legacy_set_clock_gating()
746 } else if ((rdev->family == CHIP_RS400) || radeon_legacy_set_clock_gating()
747 (rdev->family == CHIP_RS480)) { radeon_legacy_set_clock_gating()
785 } else if (rdev->family >= CHIP_RV350) { radeon_legacy_set_clock_gating()
853 } else if ((rdev->family == CHIP_R300) || radeon_legacy_set_clock_gating()
854 (rdev->family == CHIP_R350)) { radeon_legacy_set_clock_gating()
866 if ((rdev->family == CHIP_R300) || radeon_legacy_set_clock_gating()
867 (rdev->family == CHIP_R350)) { radeon_legacy_set_clock_gating()
884 if ((rdev->family == CHIP_RV200) || radeon_legacy_set_clock_gating()
885 (rdev->family == CHIP_RV250) || radeon_legacy_set_clock_gating()
886 (rdev->family == CHIP_RV280)) { radeon_legacy_set_clock_gating()
H A Dradeon_encoders.c50 if (rdev->family >= CHIP_R600) radeon_encoder_clones()
99 if ((rdev->family == CHIP_RS300) || radeon_get_encoder_enum()
100 (rdev->family == CHIP_RS400) || radeon_get_encoder_enum()
101 (rdev->family == CHIP_RS480)) radeon_get_encoder_enum()
112 /*if (rdev->family == CHIP_R200) radeon_get_encoder_enum()
133 if ((rdev->family == CHIP_RS300) || radeon_get_encoder_enum()
134 (rdev->family == CHIP_RS400) || radeon_get_encoder_enum()
135 (rdev->family == CHIP_RS480)) radeon_get_encoder_enum()
144 if ((rdev->family == CHIP_RS600) || radeon_get_encoder_enum()
145 (rdev->family == CHIP_RS690) || radeon_get_encoder_enum()
146 (rdev->family == CHIP_RS740)) radeon_get_encoder_enum()
185 else if (rdev->family < CHIP_R600) radeon_encoder_add_backlight()
H A Dradeon_legacy_encoders.c237 if (rdev->family == CHIP_RV410) radeon_legacy_lvds_mode_set()
418 pdata->negative = (rdev->family != CHIP_RV200 && radeon_legacy_backlight_init()
419 rdev->family != CHIP_RV250 && radeon_legacy_backlight_init()
420 rdev->family != CHIP_RV280 && radeon_legacy_backlight_init()
421 rdev->family != CHIP_RV350); radeon_legacy_backlight_init()
590 if (rdev->family == CHIP_R200 || ASIC_IS_R300(rdev)) { radeon_legacy_primary_dac_mode_set()
599 if (rdev->family == CHIP_R200 || ASIC_IS_R300(rdev)) { radeon_legacy_primary_dac_mode_set()
789 if (rdev->family == CHIP_RV280) { radeon_legacy_tmds_int_mode_set()
808 if (ASIC_IS_R300(rdev) || (rdev->family == CHIP_RV280)) { radeon_legacy_tmds_int_mode_set()
821 if (rdev->family == CHIP_R200 || radeon_legacy_tmds_int_mode_set()
822 rdev->family == CHIP_R100 || radeon_legacy_tmds_int_mode_set()
848 if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) { radeon_legacy_tmds_int_mode_set()
857 if (ASIC_IS_R300(rdev) || rdev->family == CHIP_R200) { radeon_legacy_tmds_int_mode_set()
984 if ((rdev->family == CHIP_R200) || ASIC_IS_R300(rdev)) { radeon_legacy_tmds_ext_mode_set()
993 if ((rdev->family == CHIP_R200) || ASIC_IS_R300(rdev)) { radeon_legacy_tmds_ext_mode_set()
1043 if (rdev->family == CHIP_R200) radeon_legacy_tv_dac_dpms()
1055 if (rdev->family == CHIP_R200) { radeon_legacy_tv_dac_dpms()
1063 if (rdev->family == CHIP_R420 || radeon_legacy_tv_dac_dpms()
1064 rdev->family == CHIP_R423 || radeon_legacy_tv_dac_dpms()
1065 rdev->family == CHIP_RV410) radeon_legacy_tv_dac_dpms()
1080 if (rdev->family == CHIP_R200) radeon_legacy_tv_dac_dpms()
1088 if (rdev->family == CHIP_R420 || radeon_legacy_tv_dac_dpms()
1089 rdev->family == CHIP_R423 || radeon_legacy_tv_dac_dpms()
1090 rdev->family == CHIP_RV410) radeon_legacy_tv_dac_dpms()
1104 if (rdev->family == CHIP_R200) { radeon_legacy_tv_dac_dpms()
1162 if (rdev->family != CHIP_R200) { radeon_legacy_tv_dac_mode_set()
1164 if (rdev->family == CHIP_R420 || radeon_legacy_tv_dac_mode_set()
1165 rdev->family == CHIP_R423 || radeon_legacy_tv_dac_mode_set()
1166 rdev->family == CHIP_RV410) { radeon_legacy_tv_dac_mode_set()
1209 } else if (rdev->family != CHIP_R200) radeon_legacy_tv_dac_mode_set()
1211 else if (rdev->family == CHIP_R200) radeon_legacy_tv_dac_mode_set()
1214 if (rdev->family >= CHIP_R200) radeon_legacy_tv_dac_mode_set()
1234 if (rdev->family >= CHIP_R200) { radeon_legacy_tv_dac_mode_set()
1244 if (rdev->family >= CHIP_R200) { radeon_legacy_tv_dac_mode_set()
1259 } else if (rdev->family == CHIP_R200) { radeon_legacy_tv_dac_mode_set()
1268 } else if (rdev->family == CHIP_R200) { radeon_legacy_tv_dac_mode_set()
1281 } else if (rdev->family != CHIP_R200) radeon_legacy_tv_dac_mode_set()
1283 else if (rdev->family == CHIP_R200) radeon_legacy_tv_dac_mode_set()
1286 if (rdev->family >= CHIP_R200) radeon_legacy_tv_dac_mode_set()
1569 if (rdev->family == CHIP_R200) { radeon_legacy_tv_dac_detect()
H A Dradeon_gart.c75 if (rdev->family == CHIP_RS400 || rdev->family == CHIP_RS480 || radeon_gart_table_ram_alloc()
76 rdev->family == CHIP_RS690 || rdev->family == CHIP_RS740) { radeon_gart_table_ram_alloc()
101 if (rdev->family == CHIP_RS400 || rdev->family == CHIP_RS480 || radeon_gart_table_ram_free()
102 rdev->family == CHIP_RS690 || rdev->family == CHIP_RS740) { radeon_gart_table_ram_free()
H A Drv770_dpm.c151 if (rdev->family == CHIP_RV770) rv770_mg_clock_gating_enable()
628 if (rdev->family == CHIP_RV740) rv770_convert_power_level_to_smc()
631 else if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_convert_power_level_to_smc()
640 if (rdev->family == CHIP_RV740) { rv770_convert_power_level_to_smc()
655 } else if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_convert_power_level_to_smc()
790 if (rdev->family == CHIP_RV740) rv770_enable_spread_spectrum()
800 if (rdev->family == CHIP_RV740) rv770_enable_spread_spectrum()
809 if ((rdev->family == CHIP_RV770) && !pi->mem_gddr5) { rv770_program_mpll_timing_parameters()
1091 if (rdev->family == CHIP_RV740) { rv770_populate_smc_initial_state()
1207 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_init_smc_table()
1214 if (rdev->family == CHIP_RV740) rv770_init_smc_table()
1216 else if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_init_smc_table()
1374 if ((rdev->family == CHIP_RV730) || r7xx_program_memory_timing_parameters()
1375 (rdev->family == CHIP_RV710) || r7xx_program_memory_timing_parameters()
1376 (rdev->family == CHIP_RV740)) r7xx_program_memory_timing_parameters()
1546 if (rdev->family == CHIP_RV740) r7xx_read_clock_registers()
1548 else if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) r7xx_read_clock_registers()
1678 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) { rv770_get_mclk_odt_threshold()
1769 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_program_dcodt_before_state_switch()
1798 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_program_dcodt_after_state_switch()
1809 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_retrieve_odt_values()
1961 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_dpm_enable()
2028 if ((rdev->family == CHIP_RV730) || (rdev->family == CHIP_RV710)) rv770_dpm_disable()
2197 if (rdev->family >= CHIP_CEDAR) { rv7xx_parse_pplib_clock_info()
2227 if (rdev->family >= CHIP_CEDAR) rv7xx_parse_pplib_clock_info()
2236 if (rdev->family >= CHIP_BARTS) { rv7xx_parse_pplib_clock_info()
2441 if (rdev->family >= CHIP_CEDAR) { rv770_dpm_print_power_state()
2485 if (rdev->family >= CHIP_CEDAR) { rv770_dpm_debugfs_print_current_performance_level()
2577 if ((rdev->family == CHIP_RV770) && rv770_dpm_vblank_too_short()
H A Dradeon_asic.c95 if (rdev->family < CHIP_RV515) { radeon_register_accessor_init()
101 if (rdev->family <= CHIP_R580) { radeon_register_accessor_init()
105 if (rdev->family >= CHIP_R420) { radeon_register_accessor_init()
109 if (rdev->family >= CHIP_RV515) { radeon_register_accessor_init()
113 if (rdev->family == CHIP_RS400 || rdev->family == CHIP_RS480) { radeon_register_accessor_init()
117 if (rdev->family == CHIP_RS690 || rdev->family == CHIP_RS740) { radeon_register_accessor_init()
121 if (rdev->family == CHIP_RS600) { radeon_register_accessor_init()
125 if (rdev->family == CHIP_RS780 || rdev->family == CHIP_RS880) { radeon_register_accessor_init()
130 if (rdev->family >= CHIP_BONAIRE) { radeon_register_accessor_init()
133 } else if (rdev->family >= CHIP_R600) { radeon_register_accessor_init()
157 if (rdev->family >= CHIP_R600) { radeon_agp_disable()
160 } else if (rdev->family >= CHIP_RV515 || radeon_agp_disable()
161 rdev->family == CHIP_RV380 || radeon_agp_disable()
162 rdev->family == CHIP_RV410 || radeon_agp_disable()
163 rdev->family == CHIP_R423) { radeon_agp_disable()
2294 * chip family. Also sets other asics specific info like the number
2310 switch (rdev->family) { radeon_asic_init()
2404 if (rdev->family == CHIP_CEDAR) radeon_asic_init()
2421 if (rdev->family == CHIP_CAICOS) radeon_asic_init()
2447 if (rdev->family == CHIP_HAINAN) radeon_asic_init()
2449 else if (rdev->family == CHIP_OLAND) radeon_asic_init()
2453 if (rdev->family == CHIP_HAINAN) radeon_asic_init()
2457 switch (rdev->family) { radeon_asic_init()
2561 if (rdev->family == CHIP_BONAIRE) { radeon_asic_init()
2605 if (rdev->family == CHIP_KAVERI) { radeon_asic_init()
H A Dr100.c811 switch (rdev->family) { r100_irq_process()
1000 if ((rdev->family == CHIP_R100) || (rdev->family == CHIP_RV100) || r100_cp_init_microcode()
1001 (rdev->family == CHIP_RV200) || (rdev->family == CHIP_RS100) || r100_cp_init_microcode()
1002 (rdev->family == CHIP_RS200)) { r100_cp_init_microcode()
1005 } else if ((rdev->family == CHIP_R200) || r100_cp_init_microcode()
1006 (rdev->family == CHIP_RV250) || r100_cp_init_microcode()
1007 (rdev->family == CHIP_RV280) || r100_cp_init_microcode()
1008 (rdev->family == CHIP_RS300)) { r100_cp_init_microcode()
1011 } else if ((rdev->family == CHIP_R300) || r100_cp_init_microcode()
1012 (rdev->family == CHIP_R350) || r100_cp_init_microcode()
1013 (rdev->family == CHIP_RV350) || r100_cp_init_microcode()
1014 (rdev->family == CHIP_RV380) || r100_cp_init_microcode()
1015 (rdev->family == CHIP_RS400) || r100_cp_init_microcode()
1016 (rdev->family == CHIP_RS480)) { r100_cp_init_microcode()
1019 } else if ((rdev->family == CHIP_R420) || r100_cp_init_microcode()
1020 (rdev->family == CHIP_R423) || r100_cp_init_microcode()
1021 (rdev->family == CHIP_RV410)) { r100_cp_init_microcode()
1024 } else if ((rdev->family == CHIP_RS690) || r100_cp_init_microcode()
1025 (rdev->family == CHIP_RS740)) { r100_cp_init_microcode()
1028 } else if (rdev->family == CHIP_RS600) { r100_cp_init_microcode()
1031 } else if ((rdev->family == CHIP_RV515) || r100_cp_init_microcode()
1032 (rdev->family == CHIP_R520) || r100_cp_init_microcode()
1033 (rdev->family == CHIP_RV530) || r100_cp_init_microcode()
1034 (rdev->family == CHIP_R580) || r100_cp_init_microcode()
1035 (rdev->family == CHIP_RV560) || r100_cp_init_microcode()
1036 (rdev->family == CHIP_RV570)) { r100_cp_init_microcode()
2051 if (p->rdev->family >= CHIP_R200) r100_cs_parse()
2177 if (rdev->family < CHIP_R300) r100_cs_track_texture_check()
2183 if (rdev->family >= CHIP_RV515) r100_cs_track_texture_check()
2190 if (rdev->family >= CHIP_RV515) r100_cs_track_texture_check()
2384 if (rdev->family < CHIP_R300) { r100_cs_track_clear()
2386 if (rdev->family <= CHIP_RS200) r100_cs_track_clear()
2428 if (rdev->family <= CHIP_RS200) { r100_cs_track_clear()
2459 if (rdev->family == CHIP_RV200 || rdev->family == CHIP_RS200) { r100_errata()
2463 if (rdev->family == CHIP_RV100 || r100_errata()
2464 rdev->family == CHIP_RS100 || r100_errata()
2465 rdev->family == CHIP_RS200) { r100_errata()
2710 if ((rdev->family == CHIP_RV100) || r100_vram_get_type()
2711 (rdev->family == CHIP_RS100) || r100_vram_get_type()
2712 (rdev->family == CHIP_RS200)) { r100_vram_get_type()
2723 } else if (rdev->family <= CHIP_RV280) { r100_vram_get_type()
2746 if (rdev->family == CHIP_RV280 || r100_get_accessible_vram()
2747 rdev->family >= CHIP_RV350) { r100_get_accessible_vram()
2913 } else if (rdev->family < CHIP_R200) { r100_set_safe_registers()
3102 if (rdev->family <= CHIP_RS200) { r100_set_surface_reg()
3112 } else if (rdev->family <= CHIP_RV280) { r100_set_surface_reg()
3130 if (rdev->family < CHIP_R300) r100_set_surface_reg()
3286 if ((rdev->family == CHIP_RV100) || (rdev->flags & RADEON_IS_IGP)) { /* RV100, M6, IGPs */ r100_bandwidth_update()
3290 } else if (rdev->family == CHIP_R300 || r100_bandwidth_update()
3291 rdev->family == CHIP_R350) { /* r300, r350 */ r100_bandwidth_update()
3295 } else if (rdev->family == CHIP_RV350 || r100_bandwidth_update()
3296 rdev->family <= CHIP_RV380) { r100_bandwidth_update()
3301 } else if (rdev->family == CHIP_R420 || r100_bandwidth_update()
3302 rdev->family == CHIP_R423 || r100_bandwidth_update()
3303 rdev->family == CHIP_RV410) { r100_bandwidth_update()
3327 if ((rdev->family == CHIP_RV100) || rdev->flags & RADEON_IS_IGP) { r100_bandwidth_update()
3328 if (rdev->family == CHIP_RS480) /* don't think rs400 */ r100_bandwidth_update()
3335 if (rdev->family == CHIP_RS400 || r100_bandwidth_update()
3336 rdev->family == CHIP_RS480) { r100_bandwidth_update()
3364 if (rdev->family == CHIP_RV410 || r100_bandwidth_update()
3365 rdev->family == CHIP_R420 || r100_bandwidth_update()
3366 rdev->family == CHIP_R423) r100_bandwidth_update()
3386 if ((rdev->family == CHIP_RV100) || r100_bandwidth_update()
3492 if (critical_point == 0 && mode2 && rdev->family == CHIP_R300) { r100_bandwidth_update()
3501 if ((rdev->family == CHIP_R350) && r100_bandwidth_update()
3517 if ((rdev->family == CHIP_RS400) || r100_bandwidth_update()
3518 (rdev->family == CHIP_RS480)) { r100_bandwidth_update()
3557 if ((rdev->family == CHIP_R350) && r100_bandwidth_update()
3567 if ((rdev->family == CHIP_RS100) || r100_bandwidth_update()
3568 (rdev->family == CHIP_RS200)) r100_bandwidth_update()
3600 if (critical_point2 == 0 && rdev->family == CHIP_R300) { r100_bandwidth_update()
3608 if ((rdev->family == CHIP_RS400) || r100_bandwidth_update()
3609 (rdev->family == CHIP_RS480)) { r100_bandwidth_update()
3836 if (rdev->family > CHIP_RV200) r100_mc_program()
3842 if (rdev->family > CHIP_RV200) r100_mc_program()
3864 if ((rdev->family == CHIP_RV250) || (rdev->family == CHIP_RV280)) r100_clock_startup()
H A Dr600.c164 if (rdev->family >= CHIP_RS780) r600_set_uvd_clocks()
185 if (rdev->family >= CHIP_RV670 && rdev->family < CHIP_RS780) r600_set_uvd_clocks()
198 if (rdev->family >= CHIP_RS780) r600_set_uvd_clocks()
226 if (rdev->family >= CHIP_RS780) r600_set_uvd_clocks()
317 if ((rdev->flags & RADEON_IS_IGP) || (rdev->family == CHIP_R600)) { r600_pm_get_dynpm_state()
599 if (rdev->family == CHIP_R600) { r600_pm_init_profile()
1025 if ((rdev->family >= CHIP_RV770) && (rdev->family <= CHIP_RV740) && r600_pcie_gart_tlb_flush()
1426 if (rdev->family == CHIP_RS780 || rdev->family == CHIP_RS880) { r600_mc_init()
1568 if (rdev->family >= CHIP_RV770) { r600_gpu_check_soft_reset()
1644 if (rdev->family >= CHIP_RV770) r600_gpu_soft_reset()
1667 if (rdev->family >= CHIP_RV770) r600_gpu_soft_reset()
1703 if (rdev->family >= CHIP_RV770) r600_gpu_soft_reset()
1776 if (rdev->family >= CHIP_RV770) r600_gpu_pci_config_reset()
1792 if (rdev->family >= CHIP_RV770) r600_gpu_pci_config_reset()
1899 if (rdev->family <= CHIP_RV740) { r6xx_remap_render_backend()
1946 switch (rdev->family) { r600_gpu_init()
2097 if (rdev->family == CHIP_RV670) r600_gpu_init()
2102 if ((rdev->family > CHIP_R600)) r600_gpu_init()
2106 if (((rdev->family) == CHIP_R600) || r600_gpu_init()
2107 ((rdev->family) == CHIP_RV630) || r600_gpu_init()
2108 ((rdev->family) == CHIP_RV610) || r600_gpu_init()
2109 ((rdev->family) == CHIP_RV620) || r600_gpu_init()
2110 ((rdev->family) == CHIP_RS780) || r600_gpu_init()
2111 ((rdev->family) == CHIP_RS880)) { r600_gpu_init()
2126 if (((rdev->family) == CHIP_RV610) || r600_gpu_init()
2127 ((rdev->family) == CHIP_RV620) || r600_gpu_init()
2128 ((rdev->family) == CHIP_RS780) || r600_gpu_init()
2129 ((rdev->family) == CHIP_RS880)) { r600_gpu_init()
2134 } else if (((rdev->family) == CHIP_R600) || r600_gpu_init()
2135 ((rdev->family) == CHIP_RV630)) { r600_gpu_init()
2156 if ((rdev->family) == CHIP_R600) { r600_gpu_init()
2170 } else if (((rdev->family) == CHIP_RV610) || r600_gpu_init()
2171 ((rdev->family) == CHIP_RV620) || r600_gpu_init()
2172 ((rdev->family) == CHIP_RS780) || r600_gpu_init()
2173 ((rdev->family) == CHIP_RS880)) { r600_gpu_init()
2190 } else if (((rdev->family) == CHIP_RV630) || r600_gpu_init()
2191 ((rdev->family) == CHIP_RV635)) { r600_gpu_init()
2205 } else if ((rdev->family) == CHIP_RV670) { r600_gpu_init()
2228 if (((rdev->family) == CHIP_RV610) || r600_gpu_init()
2229 ((rdev->family) == CHIP_RV620) || r600_gpu_init()
2230 ((rdev->family) == CHIP_RS780) || r600_gpu_init()
2231 ((rdev->family) == CHIP_RS880)) { r600_gpu_init()
2255 switch (rdev->family) { r600_gpu_init()
2298 switch (rdev->family) { r600_gpu_init()
2384 switch (rdev->family) { r600_init_microcode()
2478 if (rdev->family >= CHIP_CEDAR) { r600_init_microcode()
2482 } else if (rdev->family >= CHIP_RV770) { r600_init_microcode()
2528 if ((rdev->family >= CHIP_RV770) && (rdev->family <= CHIP_HEMLOCK)) { r600_init_microcode()
2649 if (rdev->family >= CHIP_RV770) { r600_cp_start()
2824 if (rdev->family >= CHIP_RV770) r600_fence_ring_emit()
2884 if (rdev->family < CHIP_CAYMAN) r600_semaphore_ring_emit()
2892 if (emit_wait && (rdev->family >= CHIP_CEDAR)) { r600_semaphore_ring_emit()
3440 if ((rdev->family >= CHIP_RV770) && r600_rlc_stop()
3441 (rdev->family <= CHIP_RV740)) { r600_rlc_stop()
3479 if (rdev->family >= CHIP_RV770) { r600_rlc_resume()
3593 if (rdev->family >= CHIP_CEDAR) r600_irq_init()
3642 if (rdev->family >= CHIP_CEDAR) r600_irq_init()
3714 if ((rdev->family > CHIP_R600) && (rdev->family < CHIP_RV770)) { r600_irq_set()
3717 } else if (rdev->family >= CHIP_RV770) { r600_irq_set()
3807 if ((rdev->family > CHIP_R600) && (rdev->family < CHIP_RV770)) { r600_irq_set()
3809 } else if (rdev->family >= CHIP_RV770) { r600_irq_set()
4294 if ((rdev->family >= CHIP_RV770) && (rdev->family <= CHIP_RV740) && r600_mmio_hdp_flush()
4414 if (rdev->family <= CHIP_R600) r600_pcie_gen2_enable()
4430 if ((rdev->family == CHIP_RV670) || r600_pcie_gen2_enable()
4431 (rdev->family == CHIP_RV620) || r600_pcie_gen2_enable()
4432 (rdev->family == CHIP_RV635)) { r600_pcie_gen2_enable()
4455 if ((rdev->family == CHIP_RV670) || r600_pcie_gen2_enable()
4456 (rdev->family == CHIP_RV620) || r600_pcie_gen2_enable()
4457 (rdev->family == CHIP_RV635)) { r600_pcie_gen2_enable()
4482 if ((rdev->family == CHIP_RV670) || r600_pcie_gen2_enable()
4483 (rdev->family == CHIP_RV620) || r600_pcie_gen2_enable()
4484 (rdev->family == CHIP_RV635)) { r600_pcie_gen2_enable()
H A Drs400.c142 if (rdev->family == CHIP_RS690 || (rdev->family == CHIP_RS740)) { rs400_gart_enable()
151 if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740)) { rs400_gart_enable()
175 if ((rdev->family == CHIP_RS690) || (rdev->family == CHIP_RS740)) { rs400_gart_enable()
318 if (rdev->family == CHIP_RS690 || (rdev->family == CHIP_RS740)) { rs400_debugfs_gart_info()
/linux-4.1.27/net/ipv4/
H A Dtunnel4.c21 static inline struct xfrm_tunnel __rcu **fam_handlers(unsigned short family) fam_handlers() argument
23 return (family == AF_INET) ? &tunnel4_handlers : &tunnel64_handlers; fam_handlers()
26 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) xfrm4_tunnel_register() argument
36 for (pprev = fam_handlers(family); xfrm4_tunnel_register()
58 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) xfrm4_tunnel_deregister() argument
66 for (pprev = fam_handlers(family); xfrm4_tunnel_deregister()
H A Dxfrm4_state.c35 sel->family = AF_INET; __xfrm4_init_tempsel()
54 x->props.family = AF_INET; xfrm4_init_temprop()
74 .family = AF_INET,
H A Dping.c473 static inline int ping_supported(int family, int type, int code) ping_supported() argument
475 return (family == AF_INET && type == ICMP_ECHO && code == 0) || ping_supported()
476 (family == AF_INET6 && type == ICMPV6_ECHO_REQUEST && code == 0); ping_supported()
486 int family; ping_err() local
497 family = AF_INET; ping_err()
502 family = AF_INET6; ping_err()
512 if (!ping_supported(family, icmph->type, icmph->code)) ping_err()
578 if ((family == AF_INET && !inet_sock->recverr) || ping_err()
579 (family == AF_INET6 && !inet6_sk(sk)->recverr)) { ping_err()
583 if (family == AF_INET) { ping_err()
587 } else if (family == AF_INET6) { ping_err()
631 if (pfh->family == AF_INET6) { ping_getfrag()
655 int ping_common_sendmsg(int family, struct msghdr *msg, size_t len, ping_common_sendmsg() argument
677 if (family == AF_INET) { ping_common_sendmsg()
681 } else if (family == AF_INET6) { ping_common_sendmsg()
689 if (!ping_supported(family, type, code)) ping_common_sendmsg()
826 pfh.family = AF_INET; ping_v4_sendmsg()
858 int family = sk->sk_family; ping_recvmsg() local
889 if (family == AF_INET) { ping_recvmsg()
904 } else if (family == AF_INET6) { ping_recvmsg()
1033 sk->sk_family == state->family) sk_nulls_for_each()
1066 void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family) ping_seq_start() argument
1070 state->family = family; ping_seq_start()
1164 .family = AF_INET,
H A Dtcp_metrics.c84 if (a->family != b->family) addr_same()
86 if (a->family == AF_INET) addr_same()
246 saddr.family = req->rsk_ops->family; __tcp_get_metrics_req()
247 daddr.family = req->rsk_ops->family; __tcp_get_metrics_req()
248 switch (daddr.family) { __tcp_get_metrics_req()
288 saddr.family = AF_INET; __tcp_get_metrics_tw()
290 daddr.family = AF_INET; __tcp_get_metrics_tw()
297 saddr.family = AF_INET; __tcp_get_metrics_tw()
299 daddr.family = AF_INET; __tcp_get_metrics_tw()
303 saddr.family = AF_INET6; __tcp_get_metrics_tw()
305 daddr.family = AF_INET6; __tcp_get_metrics_tw()
338 saddr.family = AF_INET; tcp_get_metrics()
340 daddr.family = AF_INET; tcp_get_metrics()
347 saddr.family = AF_INET; tcp_get_metrics()
349 daddr.family = AF_INET; tcp_get_metrics()
353 saddr.family = AF_INET6; tcp_get_metrics()
355 daddr.family = AF_INET6; tcp_get_metrics()
796 switch (tm->tcpm_daddr.family) { tcp_metrics_fill_info()
959 addr->family = AF_INET; __parse_nl_addr()
969 addr->family = AF_INET6; __parse_nl_addr()
/linux-4.1.27/arch/x86/kernel/
H A Dverify_cpu.S78 # family > 6 || (family == 6 && model >= 0xd)
79 movl $0x1, %eax # check CPU family and model
83 andl $0x0ff00f00, %eax # mask family and extended family
86 ja verify_cpu_clear_xd # family > 6, ok
87 jb verify_cpu_check # family < 6, skip
92 jb verify_cpu_check # family == 6, model < 0xd, skip
H A Dtsc_msr.c42 u8 x86_family; /* CPU family */
61 static int match_cpu(u8 family, u8 model) match_cpu() argument
66 if ((family == freq_desc_tables[i].x86_family) && match_cpu()
/linux-4.1.27/arch/arm/mach-davinci/include/mach/
H A Dhardware.h2 * Hardware definitions common to all DaVinci family processors
17 * This header is for defines common to ALL DaVinci family chips.
/linux-4.1.27/net/core/
H A Dsock_diag.c127 if (hndl->family >= AF_MAX) sock_diag_register()
131 if (sock_diag_handlers[hndl->family]) sock_diag_register()
134 sock_diag_handlers[hndl->family] = hndl; sock_diag_register()
143 int family = hnld->family; sock_diag_unregister() local
145 if (family >= AF_MAX) sock_diag_unregister()
149 BUG_ON(sock_diag_handlers[family] != hnld); sock_diag_unregister()
150 sock_diag_handlers[family] = NULL; sock_diag_unregister()
H A Dflow.c35 u16 family; member in struct:flow_cache_entry
192 flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, flow_cache_lookup() argument
208 keysize = flow_key_size(family); flow_cache_lookup()
223 tfle->family == family && flow_cache_lookup()
238 fle->family = family; flow_cache_lookup()
264 flo = resolver(net, key, family, dir, flo, ctx); flow_cache_lookup()
H A Dfib_rules.c68 static struct fib_rules_ops *lookup_rules_ops(struct net *net, int family) lookup_rules_ops() argument
74 if (ops->family == family) { lookup_rules_ops()
116 if (ops->family == o->family) __fib_rules_register()
277 ops = lookup_rules_ops(net, frh->family); fib_nl_newrule()
434 ops = lookup_rules_ops(net, frh->family); fib_nl_delrule()
558 frh->family = ops->family; fib_nl_fill_rule()
644 int idx = 0, family; fib_nl_dumprule() local
646 family = rtnl_msg_family(cb->nlh); fib_nl_dumprule()
647 if (family != AF_UNSPEC) { fib_nl_dumprule()
649 ops = lookup_rules_ops(net, family); fib_nl_dumprule()
/linux-4.1.27/net/wimax/
H A Did-table.c3 * Mappping of generic netlink family IDs to net devices
24 * We assign a single generic netlink family ID to each device (to
27 * We need a way to map family ID to a wimax_dev pointer.
36 * match the generic link family ID against the list.
62 * Netlink family ID.
80 * The generic netlink family ID has been filled out in the
114 * @id: family ID to remove from the table
125 * Release the gennetlink family id / mapping table
/linux-4.1.27/arch/arm/mach-spear/include/mach/
H A Dmisc_regs.h4 * Miscellaneous registers definitions for SPEAr3xx machine family
H A Dirqs.h2 * IRQ helper macros for spear machine family
/linux-4.1.27/fs/dlm/
H A Dnetlink.c19 static struct genl_family family = { variable in typeref:struct:genl_family
35 data = genlmsg_put(skb, 0, dlm_nl_seqnum++, &family, 0, cmd); prepare_data()
81 return genl_register_family_with_ops(&family, dlm_nl_ops); dlm_netlink_init()
86 genl_unregister_family(&family); dlm_netlink_exit()
/linux-4.1.27/drivers/w1/slaves/
H A Dw1_smem.c36 MODULE_DESCRIPTION("Driver for 1-wire Dallas network protocol, 64bit memory family.");
37 MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_SMEM_01));
38 MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_SMEM_81));
H A Dw1_therm.c39 MODULE_DESCRIPTION("Driver for 1-wire Dallas network protocol, temperature family.");
40 MODULE_ALIAS("w1-family-" __stringify(W1_THERM_DS18S20));
41 MODULE_ALIAS("w1-family-" __stringify(W1_THERM_DS1822));
42 MODULE_ALIAS("w1-family-" __stringify(W1_THERM_DS18B20));
43 MODULE_ALIAS("w1-family-" __stringify(W1_THERM_DS1825));
44 MODULE_ALIAS("w1-family-" __stringify(W1_THERM_DS28EA00));
67 /* return the address of the refcnt in the family data */
308 w1_convert_temp(rom, sl->family->fid)); w1_slave_show()
H A Dw1_ds2413.c2 * w1_ds2413.c - w1 family 3a (DS2413) driver
25 MODULE_DESCRIPTION("w1 family 3a driver for DS2413 2 Pin IO");
26 MODULE_ALIAS("w1-family-" __stringify(W1_FAMILY_DS2413));
H A Dw1_ds2406.c2 * w1_ds2406.c - w1 family 12 (DS2406) driver
26 MODULE_DESCRIPTION("w1 family 12 driver for DS2406 2 Pin IO");
H A Dw1_ds2423.c157 MODULE_DESCRIPTION("w1 family 1d driver for DS2423, 4 counters and 4kb ram");
158 MODULE_ALIAS("w1-family-" __stringify(W1_COUNTER_DS2423));
/linux-4.1.27/arch/ia64/oprofile/
H A Dperfmon.c61 __u8 family = local_cpu_data->family; get_cpu_type() local
63 switch (family) { get_cpu_type()
/linux-4.1.27/Documentation/networking/timestamping/
H A Dtxtimestamp.c157 static void print_pktinfo(int family, int ifindex, void *saddr, void *daddr) print_pktinfo() argument
163 saddr ? inet_ntop(family, saddr, sa, sizeof(sa)) : "unknown", print_pktinfo()
164 daddr ? inet_ntop(family, daddr, da, sizeof(da)) : "unknown"); print_pktinfo()
270 static void do_test(int family, unsigned int opt) do_test() argument
275 if (family == AF_INET6 && cfg_proto != SOCK_STREAM) { do_test()
292 fd = socket(family, cfg_proto, cfg_ipproto); do_test()
301 if (family == PF_INET) { do_test()
311 if (family == AF_INET6) { do_test()
363 if (family == PF_INET) do_test()
498 static void do_main(int family) do_main() argument
500 fprintf(stderr, "family: %s\n", do_main()
501 family == PF_INET ? "INET" : "INET6"); do_main()
504 do_test(family, SOF_TIMESTAMPING_TX_SOFTWARE); do_main()
507 do_test(family, SOF_TIMESTAMPING_TX_SCHED); do_main()
510 do_test(family, SOF_TIMESTAMPING_TX_SCHED | do_main()
515 do_test(family, SOF_TIMESTAMPING_TX_ACK); do_main()
518 do_test(family, SOF_TIMESTAMPING_TX_SOFTWARE | do_main()
522 do_test(family, SOF_TIMESTAMPING_TX_SCHED | do_main()
/linux-4.1.27/drivers/hwmon/
H A Dhwmon-vid.c118 case 26: /* AMD family 10h to 15h, serial VID */ vid_from_reg()
175 u8 family; member in struct:vrm_model
196 * In theory, all NPT family 0Fh processors have 6 VID pins and should
201 {X86_VENDOR_AMD, 0xF, 0x40, 0x7F, ANY, 24}, /* NPT family 0Fh */
203 {X86_VENDOR_AMD, 0x10, 0x0, ANY, ANY, 25}, /* NPT family 10h */
204 {X86_VENDOR_AMD, 0x11, 0x0, ANY, ANY, 26}, /* family 11h */
205 {X86_VENDOR_AMD, 0x12, 0x0, ANY, ANY, 26}, /* family 12h */
206 {X86_VENDOR_AMD, 0x14, 0x0, ANY, ANY, 26}, /* family 14h */
207 {X86_VENDOR_AMD, 0x15, 0x0, ANY, ANY, 26}, /* family 15h */
272 static u8 find_vrm(u8 family, u8 model, u8 stepping, u8 vendor) find_vrm() argument
278 family == vrm_models[i].family && find_vrm()
293 if (c->x86 < 6) /* Any CPU with family lower than 6 */ vid_which_vrm()
/linux-4.1.27/include/net/netfilter/
H A Dnf_queue.h83 nfqueue_hash(const struct sk_buff *skb, u16 queue, u16 queues_total, u8 family, nfqueue_hash() argument
86 if (family == NFPROTO_IPV4) nfqueue_hash()
89 else if (family == NFPROTO_IPV6) nfqueue_hash()
H A Dnf_nat_core.h13 int nf_xfrm_me_harder(struct sk_buff *skb, unsigned int family);
H A Dnf_tables.h37 pkt->xt.family = ops->pf; nft_set_pktinfo()
90 * @afi: address family info
585 * @family: address family for AF-specific types
597 u8 family; member in struct:nft_expr_type
758 * @family: address family
766 int family; member in struct:nf_chain_type
834 * struct nft_af_info - nf_tables address family info
837 * @family: address family
838 * @nhooks: number of hooks in this family
841 * @nops: number of hook ops in this family
847 int family; member in struct:nft_af_info
869 #define MODULE_ALIAS_NFT_FAMILY(family) \
870 MODULE_ALIAS("nft-afinfo-" __stringify(family))
872 #define MODULE_ALIAS_NFT_CHAIN(family, name) \
873 MODULE_ALIAS("nft-chain-" __stringify(family) "-" name)
875 #define MODULE_ALIAS_NFT_AF_EXPR(family, name) \
876 MODULE_ALIAS("nft-expr-" __stringify(family) "-" name)
H A Dnf_log.h68 #define MODULE_ALIAS_NF_LOGGER(family, type) \
69 MODULE_ALIAS("nf-logger-" __stringify(family) "-" __stringify(type))
/linux-4.1.27/include/linux/platform_data/
H A Ddrv260x-pdata.h2 * Platform data for DRV260X haptics driver family
/linux-4.1.27/arch/sh/kernel/cpu/sh2/
H A Dprobe.c32 boot_cpu_data.family = CPU_FAMILY_SH2; cpu_probe()
/linux-4.1.27/net/sched/
H A Dem_ipset.c64 acpar.family = NFPROTO_IPV4; em_ipset_match()
70 acpar.family = NFPROTO_IPV6; em_ipset_match()
82 opt.family = acpar.family; em_ipset_match()
/linux-4.1.27/security/tomoyo/
H A Dnetwork.c355 * @family: Name of socket family ("inet" or "unix").
356 * @protocol: Name of protocol in @family.
363 const char *family, const u8 protocol, tomoyo_audit_net_log()
366 return tomoyo_supervisor(r, "network %s %s %s %s\n", family, tomoyo_audit_net_log()
615 * tomoyo_sock_family - Get socket's family.
623 u8 family; tomoyo_sock_family() local
627 family = sk->sk_family; tomoyo_sock_family()
628 switch (family) { tomoyo_sock_family()
632 return family; tomoyo_sock_family()
648 const u8 family = tomoyo_sock_family(sock->sk); tomoyo_socket_listen_permission() local
653 if (!family || (type != SOCK_STREAM && type != SOCK_SEQPACKET)) tomoyo_socket_listen_permission()
664 if (family == PF_UNIX) tomoyo_socket_listen_permission()
684 const u8 family = tomoyo_sock_family(sock->sk); tomoyo_socket_connect_permission() local
687 if (!family) tomoyo_socket_connect_permission()
702 if (family == PF_UNIX) tomoyo_socket_connect_permission()
721 const u8 family = tomoyo_sock_family(sock->sk); tomoyo_socket_bind_permission() local
724 if (!family) tomoyo_socket_bind_permission()
737 if (family == PF_UNIX) tomoyo_socket_bind_permission()
756 const u8 family = tomoyo_sock_family(sock->sk); tomoyo_socket_sendmsg_permission() local
759 if (!msg->msg_name || !family || tomoyo_socket_sendmsg_permission()
764 if (family == PF_UNIX) tomoyo_socket_sendmsg_permission()
362 tomoyo_audit_net_log(struct tomoyo_request_info *r, const char *family, const u8 protocol, const u8 operation, const char *address) tomoyo_audit_net_log() argument
/linux-4.1.27/drivers/video/fbdev/aty/
H A Dradeonfb.h61 #define IS_RV100_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_RV100) || \
62 ((rinfo)->family == CHIP_FAMILY_RV200) || \
63 ((rinfo)->family == CHIP_FAMILY_RS100) || \
64 ((rinfo)->family == CHIP_FAMILY_RS200) || \
65 ((rinfo)->family == CHIP_FAMILY_RV250) || \
66 ((rinfo)->family == CHIP_FAMILY_RV280) || \
67 ((rinfo)->family == CHIP_FAMILY_RS300))
70 #define IS_R300_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_R300) || \
71 ((rinfo)->family == CHIP_FAMILY_RV350) || \
72 ((rinfo)->family == CHIP_FAMILY_R350) || \
73 ((rinfo)->family == CHIP_FAMILY_RV380) || \
74 ((rinfo)->family == CHIP_FAMILY_R420) || \
75 ((rinfo)->family == CHIP_FAMILY_RC410) || \
76 ((rinfo)->family == CHIP_FAMILY_RS480))
316 u8 family; member in struct:radeonfb_info
H A Dradeon_backlight.c171 (rinfo->family != CHIP_FAMILY_RV200 && radeonfb_bl_init()
172 rinfo->family != CHIP_FAMILY_RV250 && radeonfb_bl_init()
173 rinfo->family != CHIP_FAMILY_RV280 && radeonfb_bl_init()
174 rinfo->family != CHIP_FAMILY_RV350); radeonfb_bl_init()
/linux-4.1.27/net/netfilter/ipset/
H A Dip_set_core.c83 find_set_type(const char *name, u8 family, u8 revision) find_set_type() argument
89 (type->family == family || find_set_type()
90 type->family == NFPROTO_UNSPEC) && find_set_type()
113 #define find_set_type_get(name, family, revision, found) \
114 __find_set_type_get(name, family, revision, found, false)
117 __find_set_type_get(const char *name, u8 family, u8 revision, __find_set_type_get() argument
127 *found = find_set_type(name, family, revision); __find_set_type_get()
142 __find_set_type_get(name, family, revision, found, true); __find_set_type_get()
149 /* Find a given set type by name and family.
153 #define find_set_type_minmax(name, family, min, max) \
154 __find_set_type_minmax(name, family, min, max, false)
157 __find_set_type_minmax(const char *name, u8 family, u8 *min, u8 *max, __find_set_type_minmax() argument
170 (type->family == family || __find_set_type_minmax()
171 type->family == NFPROTO_UNSPEC)) { __find_set_type_minmax()
183 __find_set_type_minmax(name, family, min, max, true); __find_set_type_minmax()
190 * the unique triple of name, family and revision.
198 pr_warn("ip_set type %s, family %s, revision %u:%u uses wrong protocol version %u (want %u)\n", ip_set_type_register()
199 type->name, family_name(type->family), ip_set_type_register()
206 if (find_set_type(type->name, type->family, type->revision_min)) { ip_set_type_register()
208 pr_warn("ip_set type %s, family %s with revision min %u already registered!\n", ip_set_type_register()
209 type->name, family_name(type->family), ip_set_type_register()
215 pr_debug("type %s, family %s, revision %u:%u registered.\n", ip_set_type_register()
216 type->name, family_name(type->family), ip_set_type_register()
229 if (!find_set_type(type->name, type->family, type->revision_min)) { ip_set_type_unregister()
230 pr_warn("ip_set type %s, family %s with revision min %u not registered\n", ip_set_type_unregister()
231 type->name, family_name(type->family), ip_set_type_unregister()
236 pr_debug("type %s, family %s with revision min %u unregistered.\n", ip_set_type_unregister()
237 type->name, family_name(type->family), type->revision_min); ip_set_type_unregister()
496 !(opt->family == set->family || set->family == NFPROTO_UNSPEC)) ip_set_test()
535 !(opt->family == set->family || set->family == NFPROTO_UNSPEC)) ip_set_add()
558 !(opt->family == set->family || set->family == NFPROTO_UNSPEC)) ip_set_del()
821 u8 family, revision; ip_set_create() local
836 family = nla_get_u8(attr[IPSET_ATTR_FAMILY]); ip_set_create()
838 pr_debug("setname: %s, typename: %s, family: %s, revision: %u\n", ip_set_create()
839 name, typename, family_name(family), revision); ip_set_create()
850 set->family = family; ip_set_create()
861 ret = find_set_type_get(typename, family, revision, &(set->type)); ip_set_create()
891 set->type->family == clash->type->family && ip_set_create()
1151 from->family == to->family)) ip_set_swap()
1319 set->family) || ip_set_dump_start()
1634 nla_put_u8(skb2, IPSET_ATTR_FAMILY, set->family) || ip_set_header()
1668 u8 family, min, max; ip_set_type() local
1677 family = nla_get_u8(attr[IPSET_ATTR_FAMILY]); ip_set_type()
1679 ret = find_set_type_minmax(typename, family, &min, &max); ip_set_type()
1693 nla_put_u8(skb2, IPSET_ATTR_FAMILY, family) || ip_set_type()
1920 req_get->family = ip_set(inst, id)->family; ip_set_sockfn_get()
H A Dip_set_hash_gen.h163 #define SET_HOST_MASK(family) (family == AF_INET ? 32 : 128)
166 #define NLEN(family) (SET_HOST_MASK(family) + 1)
168 #define NLEN(family) SET_HOST_MASK(family)
172 #define NLEN(family) 0
391 memset(h->nets, 0, sizeof(struct net_prefixes) * NLEN(set->family)); mtype_flush()
526 mtype_expire(set, h, NLEN(set->family), set->dsize); mtype_gc()
555 mtype_expire(set, set->data, NLEN(set->family), set->dsize); mtype_resize()
667 mtype_expire(set, h, NLEN(set->family), set->dsize); mtype_add()
684 NLEN(set->family), i); mtype_add()
686 NLEN(set->family), i); mtype_add()
702 mtype_add_cidr(h, SCIDR(d->cidr, i), NLEN(set->family), mtype_add()
763 mtype_del_cidr(h, SCIDR(d->cidr, j), NLEN(set->family), mtype_del()
821 u8 nets_length = NLEN(set->family); mtype_test_cidrs()
880 if (GCIDR(d->cidr, i) != SET_HOST_MASK(set->family)) mtype_test()
914 memsize = mtype_ahash_memsize(h, t, NLEN(set->family), set->dsize); mtype_head()
1052 if (!(set->family == NFPROTO_IPV4 || set->family == NFPROTO_IPV6)) IPSET_TOKEN()
1060 netmask = set->family == NFPROTO_IPV4 ? 32 : 128; IPSET_TOKEN()
1061 pr_debug("Create set %s with family %s\n", IPSET_TOKEN()
1062 set->name, set->family == NFPROTO_IPV4 ? "inet" : "inet6"); IPSET_TOKEN()
1087 if ((set->family == NFPROTO_IPV4 && netmask > 32) || IPSET_TOKEN()
1088 (set->family == NFPROTO_IPV6 && netmask > 128) || IPSET_TOKEN()
1104 hsize += sizeof(struct net_prefixes) * NLEN(set->family); IPSET_TOKEN()
1136 if (set->family == NFPROTO_IPV4) { IPSET_TOKEN()
1151 if (set->family == NFPROTO_IPV4) IPSET_TOKEN()
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_tables_arp.c30 .family = NFPROTO_ARP,
72 .family = NFPROTO_ARP,
H A Dnf_tables_ipv4.c48 .family = NFPROTO_IPV4,
93 .family = NFPROTO_IPV4,
/linux-4.1.27/include/dt-bindings/clock/
H A Dbcm281xx.h20 * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
27 * in this family of devices.
/linux-4.1.27/net/atm/
H A Dproc.c71 int family; member in struct:vcc_state
74 static inline int compare_family(struct sock *sk, int family) compare_family() argument
76 return !family || (sk->sk_family == family); compare_family()
79 static int __vcc_walk(struct sock **sock, int family, int *bucket, loff_t l) __vcc_walk() argument
95 l -= compare_family(sk, family); __vcc_walk()
111 return __vcc_walk(&state->sk, state->family, &state->bucket, l) ? vcc_walk()
116 int family, const struct seq_operations *ops) __vcc_seq_open()
124 state->family = family; __vcc_seq_open()
115 __vcc_seq_open(struct inode *inode, struct file *file, int family, const struct seq_operations *ops) __vcc_seq_open() argument
H A Dpvc.c107 .family = PF_ATMPVC,
143 .family = PF_ATMPVC,
150 * Initialize the ATM PVC protocol family
/linux-4.1.27/net/netlabel/
H A Dnetlabel_kapi.c57 * @family: address family
69 u16 family, netlbl_cfg_map_del()
77 switch (family) { netlbl_cfg_map_del()
91 * @family: address family
103 u16 family, netlbl_cfg_unlbl_map_add()
132 switch (family) { netlbl_cfg_unlbl_map_add()
204 * @family: address family
218 u16 family, netlbl_cfg_unlbl_static_add()
224 switch (family) { netlbl_cfg_unlbl_static_add()
248 * @family: address family
261 u16 family, netlbl_cfg_unlbl_static_del()
266 switch (family) { netlbl_cfg_unlbl_static_del()
757 * @family: protocol family
770 u16 family, netlbl_sock_setattr()
782 switch (family) { netlbl_sock_setattr()
941 switch (req->rsk_ops->family) { netlbl_req_setattr()
996 * @family: protocol family
1005 u16 family, netlbl_skbuff_setattr()
1013 switch (family) { netlbl_skbuff_setattr()
1054 * @family: protocol family
1065 u16 family, netlbl_skbuff_getattr()
1070 switch (family) { netlbl_skbuff_getattr()
1082 return netlbl_unlabel_getattr(skb, family, secattr); netlbl_skbuff_getattr()
68 netlbl_cfg_map_del(const char *domain, u16 family, const void *addr, const void *mask, struct netlbl_audit *audit_info) netlbl_cfg_map_del() argument
102 netlbl_cfg_unlbl_map_add(const char *domain, u16 family, const void *addr, const void *mask, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_map_add() argument
214 netlbl_cfg_unlbl_static_add(struct net *net, const char *dev_name, const void *addr, const void *mask, u16 family, u32 secid, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_static_add() argument
257 netlbl_cfg_unlbl_static_del(struct net *net, const char *dev_name, const void *addr, const void *mask, u16 family, struct netlbl_audit *audit_info) netlbl_cfg_unlbl_static_del() argument
769 netlbl_sock_setattr(struct sock *sk, u16 family, const struct netlbl_lsm_secattr *secattr) netlbl_sock_setattr() argument
1004 netlbl_skbuff_setattr(struct sk_buff *skb, u16 family, const struct netlbl_lsm_secattr *secattr) netlbl_skbuff_setattr() argument
1064 netlbl_skbuff_getattr(const struct sk_buff *skb, u16 family, struct netlbl_lsm_secattr *secattr) netlbl_skbuff_getattr() argument
/linux-4.1.27/net/key/
H A Daf_key.c574 static inline int pfkey_sockaddr_len(sa_family_t family) pfkey_sockaddr_len() argument
576 switch (family) { pfkey_sockaddr_len()
618 unsigned short family; pfkey_xfrm_state_lookup() local
634 family = ((const struct sockaddr *)(addr + 1))->sa_family; pfkey_xfrm_state_lookup()
635 switch (family) { pfkey_xfrm_state_lookup()
651 return xfrm_state_lookup(net, DUMMY_MARK, xaddr, sa->sadb_sa_spi, proto, family); pfkey_xfrm_state_lookup()
657 pfkey_sockaddr_size(sa_family_t family) pfkey_sockaddr_size() argument
659 return PFKEY_ALIGN8(pfkey_sockaddr_len(family)); pfkey_sockaddr_size()
693 unsigned short family) pfkey_sockaddr_fill()
695 switch (family) { pfkey_sockaddr_fill()
741 /* address family check */ __pfkey_xfrm_state2msg()
742 sockaddr_size = pfkey_sockaddr_size(x->props.family); __pfkey_xfrm_state2msg()
762 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) __pfkey_xfrm_state2msg()
891 x->props.family); __pfkey_xfrm_state2msg()
908 x->props.family); __pfkey_xfrm_state2msg()
913 x->props.family)) { __pfkey_xfrm_state2msg()
927 x->props.family); __pfkey_xfrm_state2msg()
1197 x->props.family = pfkey_sadb_addr2xfrm_addr((struct sadb_address *) ext_hdrs[SADB_EXT_ADDRESS_SRC-1], pfkey_msg2xfrm_state()
1217 x->sel.family = pfkey_sadb_addr2xfrm_addr(addr, &x->sel.saddr); pfkey_msg2xfrm_state()
1221 if (!x->sel.family) pfkey_msg2xfrm_state()
1222 x->sel.family = x->props.family; pfkey_msg2xfrm_state()
1281 unsigned short family; pfkey_getspi() local
1305 family = ((struct sockaddr *)(saddr + 1))->sa_family; pfkey_getspi()
1306 switch (family) { pfkey_getspi()
1321 if (x && !xfrm_addr_equal(&x->id.daddr, xdaddr, family)) { pfkey_getspi()
1328 x = xfrm_find_acq(net, &dummy_mark, mode, reqid, proto, xdaddr, xsaddr, 1, family); pfkey_getspi()
1813 filter->family = xfilter->sadb_x_filter_family; pfkey_dump()
1916 int family, socklen; parse_ipsecrequest() local
1918 family = pfkey_sockaddr_extract((struct sockaddr *)sa, parse_ipsecrequest()
1920 if (!family) parse_ipsecrequest()
1923 socklen = pfkey_sockaddr_len(family); parse_ipsecrequest()
1925 &t->id.daddr) != family) parse_ipsecrequest()
1927 t->encap_family = family; parse_ipsecrequest()
1929 t->encap_family = xp->family; parse_ipsecrequest()
1971 int sockaddr_size = pfkey_sockaddr_size(xp->family); pfkey_xfrm_policy2msg_size()
2014 int sockaddr_size = pfkey_sockaddr_size(xp->family); pfkey_xfrm_policy2msg()
2015 int socklen = pfkey_sockaddr_len(xp->family); pfkey_xfrm_policy2msg()
2036 xp->family)) pfkey_xfrm_policy2msg()
2052 xp->family); pfkey_xfrm_policy2msg()
2219 xp->family = pfkey_sadb_addr2xfrm_addr(sa, &xp->selector.saddr); pfkey_spdadd()
2220 xp->selector.family = xp->family; pfkey_spdadd()
2327 sel.family = pfkey_sadb_addr2xfrm_addr(sa, &sel.saddr); pfkey_spddelete()
2411 static int pfkey_sockaddr_pair_size(sa_family_t family) pfkey_sockaddr_pair_size() argument
2413 return PFKEY_ALIGN8(pfkey_sockaddr_len(family) * 2); pfkey_sockaddr_pair_size()
2418 u16 *family) parse_sockaddr_pair()
2434 *family = af; parse_sockaddr_pair()
2521 &k.local, &k.remote, &k.family); pfkey_migrate()
2533 sel.family = pfkey_sadb_addr2xfrm_addr(sa, &sel.saddr); pfkey_migrate()
3090 sockaddr_size = pfkey_sockaddr_size(x->props.family); pfkey_send_acquire()
3135 x->props.family); pfkey_send_acquire()
3151 x->props.family); pfkey_send_acquire()
3236 xp->family = sk->sk_family; pfkey_compile_policy()
3287 sockaddr_size = pfkey_sockaddr_size(x->props.family); pfkey_send_new_mapping()
3348 x->props.family); pfkey_send_new_mapping()
3371 x->props.family); pfkey_send_new_mapping()
3401 sel->family); set_sadb_address()
3407 sel->family); set_sadb_address()
3421 int family = k->family; set_sadb_kmaddress() local
3422 int socklen = pfkey_sockaddr_len(family); set_sadb_kmaddress()
3426 pfkey_sockaddr_pair_size(family)); set_sadb_kmaddress()
3435 if (!pfkey_sockaddr_fill(&k->local, 0, (struct sockaddr *)sa, family) || set_sadb_kmaddress()
3436 !pfkey_sockaddr_fill(&k->remote, 0, (struct sockaddr *)(sa+socklen), family)) set_sadb_kmaddress()
3444 uint32_t reqid, uint8_t family, set_ipsecrequest()
3449 int socklen = pfkey_sockaddr_len(family); set_ipsecrequest()
3453 pfkey_sockaddr_pair_size(family); set_ipsecrequest()
3464 if (!pfkey_sockaddr_fill(src, 0, (struct sockaddr *)sa, family) || set_ipsecrequest()
3465 !pfkey_sockaddr_fill(dst, 0, (struct sockaddr *)(sa + socklen), family)) set_ipsecrequest()
3495 pfkey_sockaddr_pair_size(k->family)); pfkey_send_migrate()
3499 sasize_sel = pfkey_sockaddr_size(sel->family); pfkey_send_migrate()
3674 .family = PF_KEY,
3698 .family = PF_KEY,
691 pfkey_sockaddr_fill(const xfrm_address_t *xaddr, __be16 port, struct sockaddr *sa, unsigned short family) pfkey_sockaddr_fill() argument
2416 parse_sockaddr_pair(struct sockaddr *sa, int ext_len, xfrm_address_t *saddr, xfrm_address_t *daddr, u16 *family) parse_sockaddr_pair() argument
3442 set_ipsecrequest(struct sk_buff *skb, uint8_t proto, uint8_t mode, int level, uint32_t reqid, uint8_t family, const xfrm_address_t *src, const xfrm_address_t *dst) set_ipsecrequest() argument
/linux-4.1.27/arch/sh/mm/
H A Dcache.c308 if (boot_cpu_data.family == CPU_FAMILY_SH2) { cpu_cache_init()
314 if (boot_cpu_data.family == CPU_FAMILY_SH2A) { cpu_cache_init()
320 if (boot_cpu_data.family == CPU_FAMILY_SH3) { cpu_cache_init()
333 if ((boot_cpu_data.family == CPU_FAMILY_SH4) || cpu_cache_init()
334 (boot_cpu_data.family == CPU_FAMILY_SH4A) || cpu_cache_init()
335 (boot_cpu_data.family == CPU_FAMILY_SH4AL_DSP)) { cpu_cache_init()
348 if (boot_cpu_data.family == CPU_FAMILY_SH5) { cpu_cache_init()
/linux-4.1.27/arch/m32r/kernel/
H A Dsetup.c305 seq_printf(m, "cpu family\t: VDEC2\n" show_cpuinfo()
308 seq_printf(m,"cpu family\t: M32700\n" show_cpuinfo()
311 seq_printf(m,"cpu family\t: M32102\n" show_cpuinfo()
314 seq_printf(m,"cpu family\t: OPSP\n" show_cpuinfo()
317 seq_printf(m, "cpu family\t: M32R-MP\n" show_cpuinfo()
320 seq_printf(m,"cpu family\t: M32104\n" show_cpuinfo()
323 seq_printf(m, "cpu family\t: Unknown\n"); show_cpuinfo()
/linux-4.1.27/net/rxrpc/
H A Dar-local.c145 srx->transport.family, rxrpc_lookup_local()
157 local->srx.transport.family, rxrpc_lookup_local()
162 local->srx.transport.family != srx->transport.family) rxrpc_lookup_local()
165 switch (srx->transport.family) { rxrpc_lookup_local()
203 local->srx.transport.family, rxrpc_lookup_local()
218 local->srx.transport.family, rxrpc_lookup_local()
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c140 unsigned int fms, family, model, stepping; validate_cpuid() local
155 family = (fms >> 8) & 0xf; validate_cpuid()
158 if (family == 6 || family == 0xf) validate_cpuid()
162 printf("CPUID %d levels family:model:stepping " validate_cpuid()
164 family, model, stepping, family, model, stepping); validate_cpuid()
/linux-4.1.27/drivers/s390/crypto/
H A Dzcrypt_pcica.h30 * The type 4 message family is associated with a PCICA card.
32 * The four members of the family are described below.
95 * The type 84 response family is associated with a PCICA card.
H A Dzcrypt_cex2a.h30 * The type 50 message family is associated with a CEX2A card.
32 * The four members of the family are described below.
127 * The type 80 response family is associated with a CEX2A card.
/linux-4.1.27/drivers/base/
H A Dsoc.c36 static DEVICE_ATTR(family, S_IRUGO, soc_info_get, NULL);
56 && (soc_dev->attr->family != NULL)) soc_attribute_mode()
78 return sprintf(buf, "%s\n", soc_dev->attr->family); soc_info_get()
/linux-4.1.27/include/linux/netfilter/
H A Dx_tables.h20 * @family: Actual NFPROTO_* through which the function is invoked
21 * (helpful when match->family == NFPROTO_UNSPEC)
40 u_int8_t family; member in struct:xt_action_param
50 * @entryinfo: the family-specific rule data
64 u_int8_t family; member in struct:xt_mtchk_param
75 u_int8_t family; member in struct:xt_mtdtor_param
82 * @entryinfo: the family-specific rule data
94 u_int8_t family; member in struct:xt_tgchk_param
102 u_int8_t family; member in struct:xt_tgdtor_param
140 unsigned short family; member in struct:xt_match
180 unsigned short family; member in struct:xt_target
196 u_int8_t af; /* address/protocol family */
/linux-4.1.27/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c748 const char *family; hwicap_of_probe() local
761 /* It's most likely that we're using V4, if the family is not hwicap_of_probe()
764 family = of_get_property(op->dev.of_node, "xlnx,family", NULL); hwicap_of_probe()
766 if (family) { hwicap_of_probe()
767 if (!strcmp(family, "virtex2p")) { hwicap_of_probe()
769 } else if (!strcmp(family, "virtex4")) { hwicap_of_probe()
771 } else if (!strcmp(family, "virtex5")) { hwicap_of_probe()
773 } else if (!strcmp(family, "virtex6")) { hwicap_of_probe()
794 const char *family; hwicap_drv_probe() local
804 /* It's most likely that we're using V4, if the family is not hwicap_drv_probe()
807 family = pdev->dev.platform_data; hwicap_drv_probe()
809 if (family) { hwicap_drv_probe()
810 if (!strcmp(family, "virtex2p")) { hwicap_drv_probe()
812 } else if (!strcmp(family, "virtex4")) { hwicap_drv_probe()
814 } else if (!strcmp(family, "virtex5")) { hwicap_drv_probe()
816 } else if (!strcmp(family, "virtex6")) { hwicap_drv_probe()
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/arch/mips/include/asm/mach-ip27/
H A Dcpu-feature-overrides.h14 * IP27 only comes with R10000 family processors all using the same config
/linux-4.1.27/arch/mips/include/asm/mach-ip28/
H A Dcpu-feature-overrides.h15 * IP28 only comes with R10000 family processors all using the same config
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dnfnetlink.h29 /* General form of address family dependent message.
/linux-4.1.27/arch/nios2/platform/
H A Dplatform.c33 soc_dev_attr->family = "Nios II"; nios2_soc_device_init()
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/arch/arm/mach-davinci/
H A Dmux.h2 * Pin-multiplex helper macros for TI DaVinci family devices
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/net/bridge/netfilter/
H A Debt_dnat.c52 .family = NFPROTO_BRIDGE,
H A Debt_pkttype.c36 .family = NFPROTO_BRIDGE,
H A Dnf_tables_bridge.c114 .family = NFPROTO_BRIDGE,
158 .family = NFPROTO_BRIDGE,
/linux-4.1.27/net/ipv6/
H A Dtunnel6.c38 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) xfrm6_tunnel_register() argument
47 for (pprev = (family == AF_INET6) ? &tunnel6_handlers : &tunnel46_handlers; xfrm6_tunnel_register()
69 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) xfrm6_tunnel_deregister() argument
77 for (pprev = (family == AF_INET6) ? &tunnel6_handlers : &tunnel46_handlers; xfrm6_tunnel_deregister()
H A Dxfrm6_state.c36 sel->family = AF_INET6; __xfrm6_init_tempsel()
55 x->props.family = AF_INET6; xfrm6_init_temprop()
173 .family = AF_INET6,
/linux-4.1.27/include/dt-bindings/input/
H A Dti-drv260x.h2 * DRV260X haptics driver family
/linux-4.1.27/arch/powerpc/perf/
H A De6500-pmu.c2 * Performance counter support for e6500 family processors.
103 .name = "e6500 family",
H A De500-pmu.c2 * Performance counter support for e500 family processors.
114 .name = "e500 family",
/linux-4.1.27/net/ipv6/netfilter/
H A Dnf_tables_ipv6.c47 .family = NFPROTO_IPV6,
92 .family = NFPROTO_IPV6,
H A Dip6t_NPT.c116 .family = NFPROTO_IPV6,
127 .family = NFPROTO_IPV6,
/linux-4.1.27/fs/cifs/
H A Dcache.c52 uint16_t family; /* address family */ member in struct:cifs_server_key
61 * Server object keyed by {IPaddress,port,family} tuple
81 key->family = sa->sa_family; cifs_server_get_key()
88 key->family = sa->sa_family; cifs_server_get_key()
95 cifs_dbg(VFS, "Unknown network family '%d'\n", sa->sa_family); cifs_server_get_key()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_fbcon.c72 if (device->info.family < NV_DEVICE_INFO_V0_TESLA) nouveau_fbcon_fillrect()
75 if (device->info.family < NV_DEVICE_INFO_V0_FERMI) nouveau_fbcon_fillrect()
104 if (device->info.family < NV_DEVICE_INFO_V0_TESLA) nouveau_fbcon_copyarea()
107 if (device->info.family < NV_DEVICE_INFO_V0_FERMI) nouveau_fbcon_copyarea()
136 if (device->info.family < NV_DEVICE_INFO_V0_TESLA) nouveau_fbcon_imageblit()
139 if (device->info.family < NV_DEVICE_INFO_V0_FERMI) nouveau_fbcon_imageblit()
281 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) nouveau_fbcon_accel_init()
284 if (drm->device.info.family < NV_DEVICE_INFO_V0_FERMI) nouveau_fbcon_accel_init()
381 if (chan && device->info.family >= NV_DEVICE_INFO_V0_TESLA) { nouveau_fbcon_create()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Dhw.c187 if (drm->device.info.family == NV_DEVICE_INFO_V0_CELSIUS && reg1 >= NV_PRAMDAC_VPLL_COEFF) { nouveau_hw_get_pllvals()
394 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) nv_save_state_ramdac()
450 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { nv_save_state_ramdac()
471 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) nv_load_state_ramdac()
522 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { nv_load_state_ramdac()
603 if (drm->device.info.family >= NV_DEVICE_INFO_V0_KELVIN) nv_save_state_ext()
606 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) nv_save_state_ext()
615 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { nv_save_state_ext()
619 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) nv_save_state_ext()
622 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) nv_save_state_ext()
634 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { nv_save_state_ext()
669 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { nv_load_state_ext()
691 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) nv_load_state_ext()
694 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) { nv_load_state_ext()
717 if (drm->device.info.family >= NV_DEVICE_INFO_V0_KELVIN) nv_load_state_ext()
720 if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) nv_load_state_ext()
727 if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) nv_load_state_ext()
733 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS) { nv_load_state_ext()
741 if (drm->device.info.family < NV_DEVICE_INFO_V0_KELVIN) { nv_load_state_ext()
H A Ddisp.h132 if (drm->device.info.family >= NV_DEVICE_INFO_V0_CELSIUS && impl != 0x0100 && nv_two_heads()
151 if (impl == 0x0310 || impl == 0x0340 || drm->device.info.family >= NV_DEVICE_INFO_V0_CURIE) nv_two_reg_pll()
/linux-4.1.27/include/linux/netfilter_bridge/
H A Debtables.h36 u_int8_t family; member in struct:ebt_match
53 u_int8_t family; member in struct:ebt_watcher
71 u_int8_t family; member in struct:ebt_target
/linux-4.1.27/include/linux/sunrpc/
H A Daddr.h114 * Just compares the family and address portion. Ignores port, but
138 * Just copies the address portion and family. Ignores port, scope, etc.
140 * the address in src. Returns true if address family is supported. Returns
/linux-4.1.27/include/uapi/linux/netfilter/ipset/
H A Dip_set.h61 IPSET_ATTR_FAMILY, /* 5: Settype family */
289 #define IP_SET_OP_GET_FNAME 0x00000008 /* Get set index and family */
293 unsigned int family; member in struct:ip_set_req_get_set_family
/linux-4.1.27/arch/sh/kernel/cpu/sh4/
H A Dprobe.c60 boot_cpu_data.family = CPU_FAMILY_SH4A; cpu_probe()
64 boot_cpu_data.family = CPU_FAMILY_SH4AL_DSP; cpu_probe()
75 boot_cpu_data.family = CPU_FAMILY_SH4; cpu_probe()
/linux-4.1.27/arch/mips/pmcs-msp71xx/
H A Dmsp_setup.c152 unsigned long family; prom_init() local
166 family = identify_family(); prom_init()
169 switch (family) { prom_init()
/linux-4.1.27/arch/m68k/coldfire/
H A Dintc-2.c7 * family, the 5270, 5271, 5274, 5275, and the 528x family which have two such
31 * Bit definitions for the ICR family of registers.
/linux-4.1.27/drivers/net/ppp/
H A Dpppox.c4 * PPPoX --- Generic PPP encapsulation socket family
129 .family = PF_PPPOX,
/linux-4.1.27/drivers/mfd/
H A Dtps6507x.c2 * tps6507x.c -- TPS6507x chip family multi-function driver
153 MODULE_DESCRIPTION("TPS6507x chip family multi-function driver");
/linux-4.1.27/drivers/misc/mic/host/
H A Dmic_main.c143 switch (mdev->family) { mic_ops_init()
155 * mic_get_family - Determine hardware family to which this MIC belongs.
159 * returns family.
163 enum mic_hw_family family; mic_get_family() local
181 family = MIC_FAMILY_X100; mic_get_family()
184 family = MIC_FAMILY_UNKNOWN; mic_get_family()
187 return family; mic_get_family()
240 mdev->family = mic_get_family(pdev); mic_device_init()
/linux-4.1.27/fs/quota/
H A Dnetlink.c16 /* Netlink family structure for quota */
20 * the family ID was also a valid multicast group ID (which
/linux-4.1.27/arch/arm/mach-tegra/
H A Dtegra.c97 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); tegra_dt_init()
104 kfree(soc_dev_attr->family); tegra_dt_init()

Completed in 7379 milliseconds

123456