Home
last modified time | relevance | path

Searched refs:snum (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/fs/reiserfs/
Ddo_balan.c932 if (n - tb->snum[i] >= tb->item_pos) { in balance_leaf_new_nodes_insert()
934 tb->snum[i], tb->sbytes[i], tb->S_new[i]); in balance_leaf_new_nodes_insert()
941 if (tb->item_pos == n - tb->snum[i] + 1 && tb->sbytes[i] != -1) { in balance_leaf_new_nodes_insert()
946 leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i] - 1, -1, in balance_leaf_new_nodes_insert()
997 tb->snum[i] - 1, tb->sbytes[i], tb->S_new[i]); in balance_leaf_new_nodes_insert()
1001 leaf_insert_into_buf(&bi, tb->item_pos - n + tb->snum[i] - 1, in balance_leaf_new_nodes_insert()
1036 leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i], in balance_leaf_new_nodes_paste_dirent()
1058 leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i], in balance_leaf_new_nodes_paste_dirent()
1099 leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i], n_shift, in balance_leaf_new_nodes_paste_shift()
1162 leaf_mi = leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i], in balance_leaf_new_nodes_paste_whole()
[all …]
Dibalance.c1042 int snum; in balance_internal() local
1060 snum = (insert_num + n + 1) / 2; in balance_internal()
1061 if (n - snum >= child_pos) { in balance_internal()
1065 memcpy(&new_insert_key, internal_key(tbSh, n - snum), in balance_internal()
1069 LAST_TO_FIRST, snum, 0); in balance_internal()
1070 } else if (n + insert_num - snum < child_pos) { in balance_internal()
1078 internal_key(tbSh, n + insert_num - snum), in balance_internal()
1083 snum - insert_num, 0); in balance_internal()
1092 snum - 1, in balance_internal()
1106 k = snum - n + child_pos - 1; in balance_internal()
Dprints.c694 tb->rbytes, tb->blknum[0], tb->s0num, tb->snum[0], in store_print_tb()
695 tb->sbytes[0], tb->snum[1], tb->sbytes[1], in store_print_tb()
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/
Dqe.c341 int snum = -EBUSY; in qe_get_snum() local
348 snum = snums[i]; in qe_get_snum()
352 return snum; in qe_get_snum()
356 void qe_put_snum(u8 snum) in qe_put_snum() argument
358 const u8 *p = memchr(snums, snum, qe_num_of_snum); in qe_put_snum()
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Devent_analyzing_sample.py120 snum = '#' * (int)(math.log(num, 2) + 1)
121 return snum
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Daf_ninet.c253 u_short snum; in ninet_bind() local
263 snum = ntohs(addr->sin_port); in ninet_bind()
264 if (snum && snum < PROT_SOCK) in ninet_bind()
282 if ((snum || !inet->bind_address_no_port) && in ninet_bind()
283 sk->sk_prot->get_port(sk, snum)) { in ninet_bind()
Dudp.c130 int nip_udp_get_port(struct sock *sk, unsigned short snum) in nip_udp_get_port() argument
134 hash2_nulladdr = nip_udp_portaddr_hash(sock_net(sk), &nip_any_addr, snum); in nip_udp_get_port()
140 return udp_lib_get_port(sk, snum, hash2_nulladdr); in nip_udp_get_port()
/kernel/linux/linux-5.10/net/ipv4/
Dudp.c230 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port() argument
238 if (!snum) { in udp_lib_get_port()
258 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
261 snum = first; in udp_lib_get_port()
268 if (low <= snum && snum <= high && in udp_lib_get_port()
269 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
270 !inet_is_local_reserved_port(net, snum)) in udp_lib_get_port()
272 snum += rand; in udp_lib_get_port()
273 } while (snum != first); in udp_lib_get_port()
279 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
[all …]
Dudp_impl.h12 int udp_v4_get_port(struct sock *sk, unsigned short snum);
Daf_inet.c470 unsigned short snum; in __inet_bind() local
503 snum = ntohs(addr->sin_port); in __inet_bind()
505 if (snum && inet_port_requires_bind_service(net, snum) && in __inet_bind()
529 if (snum || !(inet->bind_address_no_port || in __inet_bind()
531 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind()
547 if (snum) in __inet_bind()
Dinet_hashtables.c76 const unsigned short snum, in inet_bind_bucket_create() argument
84 tb->port = snum; in inet_bind_bucket_create()
105 const unsigned short snum) in inet_bind_hash() argument
107 inet_sk(sk)->inet_num = snum; in inet_bind_hash()
Dping.c413 unsigned short snum; in ping_bind() local
428 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind()
429 if (ping_get_port(sk, snum) != 0) { in ping_bind()
448 if (snum) in ping_bind()
/kernel/linux/linux-5.10/net/ipv6/
Dudp_impl.h16 int udp_v6_get_port(struct sock *sk, unsigned short snum);
Daf_inet6.c292 unsigned short snum; in __inet6_bind() local
304 snum = ntohs(addr->sin6_port); in __inet6_bind()
305 if (snum && inet_port_requires_bind_service(net, snum) && in __inet6_bind()
411 if (snum || !(inet->bind_address_no_port || in __inet6_bind()
413 if (sk->sk_prot->get_port(sk, snum)) { in __inet6_bind()
431 if (snum) in __inet6_bind()
/kernel/linux/linux-5.10/fs/udf/
Dmisc.c285 void udf_new_tag(char *data, uint16_t ident, uint16_t version, uint16_t snum, in udf_new_tag() argument
291 tptr->tagSerialNum = cpu_to_le16(snum); in udf_new_tag()
/kernel/linux/linux-5.10/include/net/
Dinet_hashtables.h203 const unsigned short snum, int l3mdev);
214 const unsigned short snum);
Dudplite.h126 int udplite_get_port(struct sock *sk, unsigned short snum,
Dudp.h213 int udp_lib_get_port(struct sock *sk, unsigned short snum,
287 int udp_get_port(struct sock *sk, unsigned short snum,
Dinet_connection_sock.h255 int inet_csk_get_port(struct sock *sk, unsigned short snum);
/kernel/linux/linux-5.10/net/smc/
Dsmc_diag.c209 int snum = cb_ctx->pos[p_type]; in smc_diag_dump_proto() local
223 if (num < snum) in smc_diag_dump_proto()
/kernel/linux/linux-5.10/net/sctp/
Dsocket.c380 unsigned short snum; in sctp_do_bind() local
391 snum = ntohs(addr->v4.sin_port); in sctp_do_bind()
394 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind()
405 if (!snum) in sctp_do_bind()
406 snum = bp->port; in sctp_do_bind()
407 else if (snum != bp->port) { in sctp_do_bind()
409 "%d\n", __func__, snum, bp->port); in sctp_do_bind()
414 if (snum && inet_port_requires_bind_service(net, snum) && in sctp_do_bind()
428 addr->v4.sin_port = htons(snum); in sctp_do_bind()
8066 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Ducc_geth.c275 int snum; in fill_init_enet_entries() local
278 if ((snum = qe_get_snum()) < 0) { in fill_init_enet_entries()
281 return snum; in fill_init_enet_entries()
292 qe_put_snum((u8) snum); in fill_init_enet_entries()
297 ((u8) snum << ENET_INIT_PARAM_SNUM_SHIFT) | init_enet_offset in fill_init_enet_entries()
312 int snum; in return_init_enet_entries() local
320 snum = in return_init_enet_entries()
323 qe_put_snum((u8) snum); in return_init_enet_entries()
347 int snum; in dump_init_enet_entries() local
355 snum = in dump_init_enet_entries()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcma.c231 struct rdma_bind_list *bind_list, int snum) in cma_ps_alloc() argument
235 return xa_insert(xa, snum, bind_list, GFP_KERNEL); in cma_ps_alloc()
239 enum rdma_ucm_port_space ps, int snum) in cma_ps_find() argument
243 return xa_load(xa, snum); in cma_ps_find()
247 int snum) in cma_ps_remove() argument
251 xa_erase(xa, snum); in cma_ps_remove()
3493 struct rdma_id_private *id_priv, unsigned short snum) in cma_alloc_port() argument
3505 snum); in cma_alloc_port()
3510 bind_list->port = snum; in cma_alloc_port()
3644 unsigned short snum; in cma_use_port() local
[all …]
/kernel/linux/linux-5.10/security/selinux/
Dhooks.c4606 unsigned short snum; in selinux_socket_bind() local
4632 snum = ntohs(addr4->sin_port); in selinux_socket_bind()
4639 snum = ntohs(addr6->sin6_port); in selinux_socket_bind()
4648 ad.u.net->sport = htons(snum); in selinux_socket_bind()
4651 if (snum) { in selinux_socket_bind()
4656 if (inet_port_requires_bind_service(sock_net(sk), snum) || in selinux_socket_bind()
4657 snum < low || snum > high) { in selinux_socket_bind()
4659 snum, &sid); in selinux_socket_bind()
4750 unsigned short snum; in selinux_socket_connect_helper() local
4763 snum = ntohs(addr4->sin_port); in selinux_socket_connect_helper()
[all …]
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/
Dprism2sta.c587 u8 snum[HFA384x_RID_NICSERIALNUMBER_LEN]; in prism2sta_getcardinfo() local
847 snum, HFA384x_RID_NICSERIALNUMBER_LEN); in prism2sta_getcardinfo()
850 HFA384x_RID_NICSERIALNUMBER_LEN, snum); in prism2sta_getcardinfo()

12