/net/bluetooth/ |
H A D | hci_sysfs.c | 10 static inline char *link_typetostr(int type) argument 12 switch (type) { 30 return sprintf(buf, "%s\n", link_typetostr(conn->type)); 43 static LINK_ATTR(type, S_IRUGO, show_link_type, NULL); 82 conn->dev.type = &bt_link; 127 static inline char *host_typetostr(int type) argument 129 switch (type) { 167 static DEVICE_ATTR(type, S_IRUGO, show_type, NULL); 197 dev->type = &bt_host;
|
/net/netfilter/ |
H A D | nft_exthdr.c | 22 u8 type; member in struct:nft_exthdr 37 err = ipv6_find_hdr(pkt->skb, &offset, priv->type, NULL, NULL); 50 [NFTA_EXTHDR_DREG] = { .type = NLA_U32 }, 51 [NFTA_EXTHDR_TYPE] = { .type = NLA_U8 }, 52 [NFTA_EXTHDR_OFFSET] = { .type = NLA_U32 }, 53 [NFTA_EXTHDR_LEN] = { .type = NLA_U32 }, 69 priv->type = nla_get_u8(tb[NFTA_EXTHDR_TYPE]); 89 if (nla_put_u8(skb, NFTA_EXTHDR_TYPE, priv->type)) 103 .type = &nft_exthdr_type,
|
H A D | nft_nat.c | 34 enum nf_nat_manip_type type:8; member in struct:nft_nat 78 nf_nat_setup_info(ct, &range, priv->type); 82 [NFTA_NAT_TYPE] = { .type = NLA_U32 }, 83 [NFTA_NAT_FAMILY] = { .type = NLA_U32 }, 84 [NFTA_NAT_REG_ADDR_MIN] = { .type = NLA_U32 }, 85 [NFTA_NAT_REG_ADDR_MAX] = { .type = NLA_U32 }, 86 [NFTA_NAT_REG_PROTO_MIN] = { .type = NLA_U32 }, 87 [NFTA_NAT_REG_PROTO_MAX] = { .type = NLA_U32 }, 88 [NFTA_NAT_FLAGS] = { .type = NLA_U32 }, 109 priv->type [all...] |
H A D | nfnetlink.c | 98 static inline const struct nfnetlink_subsystem *nfnetlink_get_subsys(u_int16_t type) argument 100 u_int8_t subsys_id = NFNL_SUBSYS_ID(type); 109 nfnetlink_find_client(u_int16_t type, const struct nfnetlink_subsystem *ss) argument 111 u_int8_t cb_id = NFNL_MSG_TYPE(type); 158 int type, err; local 164 type = nlh->nlmsg_type; 167 ss = nfnetlink_get_subsys(type); 171 request_module("nfnetlink-subsys-%d", NFNL_SUBSYS_ID(type)); 173 ss = nfnetlink_get_subsys(type); 182 nc = nfnetlink_find_client(type, s 319 int msglen, type; local 469 int type; local [all...] |
H A D | nft_reject_inet.c | 29 switch (priv->type) { 43 switch (priv->type) { 72 priv->type = ntohl(nla_get_be32(tb[NFTA_REJECT_TYPE])); 73 switch (priv->type) { 80 if (priv->type == NFT_REJECT_ICMPX_UNREACH && 99 if (nla_put_be32(skb, NFTA_REJECT_TYPE, htonl(priv->type))) 102 switch (priv->type) { 118 .type = &nft_reject_inet_type,
|
H A D | nft_immediate.c | 36 [NFTA_IMMEDIATE_DREG] = { .type = NLA_U32 }, 37 [NFTA_IMMEDIATE_DATA] = { .type = NLA_NESTED }, 62 err = nft_validate_data_load(ctx, priv->dreg, &priv->data, desc.type); 69 nft_data_uninit(&priv->data, desc.type); 108 .type = &nft_imm_type,
|
/net/netfilter/ipset/ |
H A D | ip_set_hash_ip.c | 8 /* Kernel module implementing an IP set type: the hash:ip type */ 288 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 289 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 290 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 291 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 292 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 293 [IPSET_ATTR_NETMASK] = { .type = NLA_U8 }, 294 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 297 [IPSET_ATTR_IP] = { .type [all...] |
H A D | ip_set_hash_ipport.c | 8 /* Kernel module implementing an IP set type: the hash:ip,port type */ 360 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 361 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 362 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 363 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 364 [IPSET_ATTR_PROTO] = { .type = NLA_U8 }, 365 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 366 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 369 [IPSET_ATTR_IP] = { .type [all...] |
H A D | ip_set_hash_ipportip.c | 8 /* Kernel module implementing an IP set type: the hash:ip,port,ip type */ 372 [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, 373 [IPSET_ATTR_MAXELEM] = { .type = NLA_U32 }, 374 [IPSET_ATTR_PROBES] = { .type = NLA_U8 }, 375 [IPSET_ATTR_RESIZE] = { .type = NLA_U8 }, 376 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 377 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 380 [IPSET_ATTR_IP] = { .type = NLA_NESTED }, 381 [IPSET_ATTR_IP_TO] = { .type [all...] |
H A D | ip_set_bitmap_port.c | 8 /* Kernel module implementing an IP set type: the bitmap:port type */ 208 /* Create bitmap:ip type of sets */ 285 [IPSET_ATTR_PORT] = { .type = NLA_U16 }, 286 [IPSET_ATTR_PORT_TO] = { .type = NLA_U16 }, 287 [IPSET_ATTR_TIMEOUT] = { .type = NLA_U32 }, 288 [IPSET_ATTR_CADT_FLAGS] = { .type = NLA_U32 }, 291 [IPSET_ATTR_PORT] = { .type = NLA_U16 }, 292 [IPSET_ATTR_PORT_TO] = { .type = NLA_U16 }, 293 [IPSET_ATTR_TIMEOUT] = { .type [all...] |
/net/ipv4/netfilter/ |
H A D | nf_conntrack_proto_icmp.c | 42 tuple->dst.u.icmp.type = hp->type; 64 if (orig->dst.u.icmp.type >= sizeof(invmap) || 65 !invmap[orig->dst.u.icmp.type]) 69 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; 78 return seq_printf(s, "type=%u code=%u id=%u ", 79 tuple->dst.u.icmp.type, 117 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || 118 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { [all...] |
/net/dcb/ |
H A D | dcbnl.c | 59 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1}, 60 [DCB_ATTR_STATE] = {.type = NLA_U8}, 61 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED}, 62 [DCB_ATTR_PG_CFG] = {.type = NLA_NESTED}, 63 [DCB_ATTR_SET_ALL] = {.type = NLA_U8}, 64 [DCB_ATTR_PERM_HWADDR] = {.type = NLA_FLAG}, 65 [DCB_ATTR_CAP] = {.type = NLA_NESTED}, 66 [DCB_ATTR_PFC_STATE] = {.type = NLA_U8}, 67 [DCB_ATTR_BCN] = {.type = NLA_NESTED}, 68 [DCB_ATTR_APP] = {.type 197 dcbnl_newmsg(int type, u8 cmd, u32 port, u32 seq, u32 flags, struct nlmsghdr **nlhp) argument 1629 int type; member in struct:reply_func [all...] |
/net/9p/ |
H A D | protocol.h | 31 int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type);
|
/net/ipv6/ |
H A D | ip6_icmp.c | 33 void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info) argument 42 send(skb, type, code, info);
|
/net/hsr/ |
H A D | hsr_main.c | 50 if (port->type == HSR_PT_MASTER) { 60 if (port->type == HSR_PT_SLAVE_A) { 77 if (port->type == HSR_PT_MASTER) 88 * its type. 102 if (port->type == pt)
|
H A D | hsr_slave.c | 65 if ((dev->flags & IFF_LOOPBACK) || (dev->type != ARPHRD_ETHER) || 131 enum hsr_port_type type) 136 if (type != HSR_PT_MASTER) { 142 port = hsr_port_get_hsr(hsr, type); 150 if (type != HSR_PT_MASTER) { 158 port->type = type; 130 hsr_add_port(struct hsr_priv *hsr, struct net_device *dev, enum hsr_port_type type) argument
|
/net/nfc/hci/ |
H A D | hci.h | 29 u8 header; /* type -cmd,evt,rsp- + instruction */ 70 #define HCP_HEADER(type, instr) ((((type) & 0x03) << 6) | ((instr) & 0x3f)) 75 u8 type, u8 instruction, 82 void nfc_hci_hcp_message_rx(struct nfc_hci_dev *hdev, u8 pipe, u8 type,
|
/net/tipc/ |
H A D | name_distr.h | 46 * @type: name sequence type 63 __be32 type; member in struct:distr_item
|
H A D | name_table.c | 80 * struct name_seq - container for all published instances of a name type 81 * @type: 32 bit 'type' value for name sequence 82 * @sseq: pointer to dynamically-sized array of sub-sequences of this 'type'; 87 * @subscriptions: list of subscriptions for this 'type' 91 u32 type; member in struct:name_seq 103 * accessed via hashing on 'type'; name sequence lists are *not* sorted 122 static struct publication *publ_create(u32 type, u32 lower, u32 upper, argument 132 publ->type = type; 158 tipc_nameseq_create(u32 type, struct hlist_head *seq_head) argument 248 tipc_nameseq_insert_publ(struct name_seq *nseq, u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument 467 nametbl_find_seq(u32 type) argument 481 tipc_nametbl_insert_publ(u32 type, u32 lower, u32 upper, u32 scope, u32 node, u32 port, u32 key) argument 502 tipc_nametbl_remove_publ(u32 type, u32 lower, u32 node, u32 ref, u32 key) argument 529 tipc_nametbl_translate(u32 type, u32 instance, u32 *destnode) argument 615 tipc_nametbl_mc_translate(u32 type, u32 lower, u32 upper, u32 limit, struct tipc_port_list *dports) argument 658 tipc_nametbl_publish(u32 type, u32 lower, u32 upper, u32 scope, u32 port_ref, u32 key) argument 689 tipc_nametbl_withdraw(u32 type, u32 lower, u32 ref, u32 key) argument 721 u32 type = s->seq.type; local 800 nameseq_list(struct name_seq *seq, char *buf, int len, u32 depth, u32 type, u32 lowbound, u32 upbound, u32 index) argument 857 nametbl_list(char *buf, int len, u32 depth_info, u32 type, u32 lowbound, u32 upbound) argument [all...] |
/net/batman-adv/ |
H A D | main.h | 242 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ 244 if (atomic_read(&bat_priv->log_level) & type && \ 251 static inline void _batadv_dbg(int type __always_unused, 259 #define batadv_dbg(type, bat_priv, arg...) \ 260 _batadv_dbg(type, bat_priv, 0, ## arg) 261 #define batadv_dbg_ratelimited(type, bat_priv, arg...) \ 262 _batadv_dbg(type, bat_priv, 1, ## arg) 354 uint8_t type, uint8_t version, 364 uint8_t type, uint8_t version); 376 uint8_t type, uint8_ [all...] |
/net/ceph/crush/ |
H A D | hash.c | 91 __u32 crush_hash32(int type, __u32 a) argument 93 switch (type) { 101 __u32 crush_hash32_2(int type, __u32 a, __u32 b) argument 103 switch (type) { 111 __u32 crush_hash32_3(int type, __u32 a, __u32 b, __u32 c) argument 113 switch (type) { 121 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) argument 123 switch (type) { 131 __u32 crush_hash32_5(int type, __u32 a, __u32 b, __u32 c, __u32 d, __u32 e) argument 133 switch (type) { 141 crush_hash_name(int type) argument [all...] |
/net/802/ |
H A D | fc.c | 37 unsigned short type, 47 if (type == ETH_P_IP || type == ETH_P_ARP) 57 fcllc->ethertype = htons(type); 89 printk("fc_rebuild_header: Don't know how to resolve type %04X addresses ?\n", ntohs(fcllc->ethertype)); 106 dev->type = ARPHRD_IEEE802; 36 fc_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) argument
|
/net/mac802154/ |
H A D | mib.c | 47 BUG_ON(dev->type != ARPHRD_IEEE802154); 87 BUG_ON(dev->type != ARPHRD_IEEE802154); 105 BUG_ON(dev->type != ARPHRD_IEEE802154); 133 BUG_ON(dev->type != ARPHRD_IEEE802154); 146 BUG_ON(dev->type != ARPHRD_IEEE802154); 163 BUG_ON(dev->type != ARPHRD_IEEE802154); 194 BUG_ON(dev->type != ARPHRD_IEEE802154); 225 BUG_ON(dev->type != ARPHRD_IEEE802154); 241 BUG_ON(dev->type != ARPHRD_IEEE802154); 258 BUG_ON(dev->type ! [all...] |
/net/lapb/ |
H A D | lapb_out.c | 119 void lapb_transmit_buffer(struct lapb_cb *lapb, struct sk_buff *skb, int type) argument 127 if (type == LAPB_COMMAND) 129 if (type == LAPB_RESPONSE) 132 if (type == LAPB_COMMAND) 134 if (type == LAPB_RESPONSE) 139 if (type == LAPB_COMMAND) 141 if (type == LAPB_RESPONSE) 144 if (type == LAPB_COMMAND) 146 if (type == LAPB_RESPONSE) 207 void lapb_check_need_response(struct lapb_cb *lapb, int type, in argument [all...] |
/net/ipv4/ |
H A D | ipip.c | 141 const int type = icmp_hdr(skb)->type; local 150 if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) { 157 if (type == ICMP_REDIRECT) { 168 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) 287 dev->type = ARPHRD_TUNNEL; 359 ipencap->type = nla_get_u16(data[IFLA_IPTUN_ENCAP_TYPE]); 462 tunnel->encap.type) || 478 [IFLA_IPTUN_LINK] = { .type = NLA_U32 }, 479 [IFLA_IPTUN_LOCAL] = { .type [all...] |