Lines Matching +defs:val +defs:proto

692 static inline void sk_peek_offset_bwd(struct sock *sk, int val)  in sk_peek_offset_bwd()
702 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
1058 static inline void sk_wmem_queued_add(struct sock *sk, int val) in sk_wmem_queued_add()
1063 static inline void sk_forward_alloc_add(struct sock *sk, int val) in sk_forward_alloc_add()
1229 struct proto { struct
1241 struct proto_accept_arg *arg); argument
1243 int (*ioctl)(struct sock *sk, int cmd,
1245 int (*init)(struct sock *sk);
1246 void (*destroy)(struct sock *sk);
1247 void (*shutdown)(struct sock *sk, int how);
1248 int (*setsockopt)(struct sock *sk, int level,
1251 int (*getsockopt)(struct sock *sk, int level,
1254 void (*keepalive)(struct sock *sk, int valbool);
1256 int (*compat_ioctl)(struct sock *sk,
1259 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1261 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1263 void (*splice_eof)(struct socket *sock);
1264 int (*bind)(struct sock *sk,
1266 int (*bind_add)(struct sock *sk,
1269 int (*backlog_rcv) (struct sock *sk,
1271 bool (*bpf_bypass_getsockopt)(int level,
1274 void (*release_cb)(struct sock *sk);
1277 int (*hash)(struct sock *sk);
1278 void (*unhash)(struct sock *sk);
1279 void (*rehash)(struct sock *sk);
1280 int (*get_port)(struct sock *sk, unsigned short snum);
1281 void (*put_port)(struct sock *sk);
1283 int (*psock_update_sk_prot)(struct sock *sk,
1290 unsigned int inuse_idx;
1294 int (*forward_alloc_get)(const struct sock *sk);
1297 bool (*stream_memory_free)(const struct sock *sk, int wake);
1298 bool (*sock_is_readable)(struct sock *sk);
1300 void (*enter_memory_pressure)(struct sock *sk);
1301 void (*leave_memory_pressure)(struct sock *sk);
1302 atomic_long_t *memory_allocated; /* Current allocated memory. */
1303 int __percpu *per_cpu_fw_alloc;
1304 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1313 unsigned long *memory_pressure;
1314 long *sysctl_mem;
1316 int *sysctl_wmem;
1317 int *sysctl_rmem;
1318 u32 sysctl_wmem_offset;
1319 u32 sysctl_rmem_offset;
1321 int max_header;
1322 bool no_autobind;
1324 struct kmem_cache *slab;
1325 unsigned int obj_size;
1326 unsigned int ipv6_pinfo_offset;
1327 slab_flags_t slab_flags;
1351 int proto_register(struct proto *prot, int alloc_slab); argument
1433 int val[PROTO_INUSE_NR]; member
1437 const struct proto *prot, int val) in sock_prot_inuse_add()
1442 static inline void sock_inuse_add(const struct net *net, int val) in sock_inuse_add()
1451 const struct proto *prot, int val) in sock_prot_inuse_add()
1455 static inline void sock_inuse_add(const struct net *net, int val) in sock_inuse_add()
1849 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
1992 int val = READ_ONCE(sk->sk_tx_queue_mapping); in sk_tx_queue_get() local
2526 u32 val; in sk_stream_moderate_sndbuf() local
2903 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2912 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()
2925 static inline void sk_pacing_shift_update(struct sock *sk, int val) in sk_pacing_shift_update()