Searched refs:snum (Results 1 - 25 of 38) sorted by relevance

12

/linux-master/net/ipv6/
H A Dudp_impl.h16 int udp_v6_get_port(struct sock *sk, unsigned short snum);
H A Daf_inet6.c290 unsigned short snum; local
302 snum = ntohs(addr->sin6_port);
304 snum && inet_port_requires_bind_service(net, snum) &&
407 if (snum || !(inet_test_bit(BIND_ADDRESS_NO_PORT, sk) ||
409 err = sk->sk_prot->get_port(sk, snum);
429 if (snum)
/linux-master/net/ipv4/
H A Dudp_impl.h12 int udp_v4_get_port(struct sock *sk, unsigned short snum);
H A Dudp.c235 * @snum: port number to look up
239 int udp_lib_get_port(struct sock *sk, unsigned short snum, argument
247 if (!snum) {
267 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk,
270 snum = first;
272 * Iterate on all possible values of snum for this hash.
277 if (low <= snum && snum <= high &&
278 !test_bit(snum >> udptable->log, bitmap) &&
279 !inet_is_local_reserved_port(net, snum))
354 udp_v4_get_port(struct sock *sk, unsigned short snum) argument
[all...]
H A Daf_inet.c479 unsigned short snum; local
509 snum = ntohs(addr->sin_port);
512 snum && inet_port_requires_bind_service(net, snum) &&
536 if (snum || !(inet_test_bit(BIND_ADDRESS_NO_PORT, sk) ||
538 err = sk->sk_prot->get_port(sk, snum);
556 if (snum)
H A Dping.c418 unsigned short snum; local
433 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port);
434 if (ping_get_port(sk, snum) != 0) {
453 if (snum)
/linux-master/tools/perf/scripts/python/
H A Devent_analyzing_sample.py120 snum = '#' * (int)(math.log(num, 2) + 1)
121 return snum
/linux-master/fs/reiserfs/
H A Ddo_balan.c932 if (n - tb->snum[i] >= tb->item_pos) {
934 tb->snum[i], tb->sbytes[i], tb->S_new[i]);
941 if (tb->item_pos == n - tb->snum[i] + 1 && tb->sbytes[i] != -1) {
945 /* Move snum[i]-1 items from S[0] to S_new[i] */
946 leaf_move_items(LEAF_FROM_S_TO_SNEW, tb, tb->snum[i] - 1, -1,
993 * Shift snum[0] - 1 items to S_new[i]
997 tb->snum[i] - 1, tb->sbytes[i], tb->S_new[i]);
1001 leaf_insert_into_buf(&bi, tb->item_pos - n + tb->snum[i] - 1,
1032 * Shift snum[i]-1 items in whole.
1034 * from directory item number snum[
[all...]
H A Dibalance.c1042 int snum; local
1060 snum = (insert_num + n + 1) / 2;
1061 if (n - snum >= child_pos) {
1064 /* new_insert_key = (n - snum)'th key in S[h] */
1065 memcpy(&new_insert_key, internal_key(tbSh, n - snum),
1069 LAST_TO_FIRST, snum, 0);
1070 } else if (n + insert_num - snum < child_pos) {
1074 * new_insert_key = (n + insert_item - snum)'th
1078 internal_key(tbSh, n + insert_num - snum),
1083 snum
[all...]
H A Dprints.c694 tb->rbytes, tb->blknum[0], tb->s0num, tb->snum[0],
695 tb->sbytes[0], tb->snum[1], tb->sbytes[1],
/linux-master/drivers/soc/fsl/qe/
H A Dqe.c309 qe_num_of_snum = 28; /* The default number of snum for threads is 28 */
342 int snum = -EBUSY; local
349 snum = snums[i];
353 return snum;
357 void qe_put_snum(u8 snum) argument
359 const u8 *p = memchr(snums, snum, qe_num_of_snum);
/linux-master/fs/udf/
H A Dmisc.c265 void udf_new_tag(char *data, uint16_t ident, uint16_t version, uint16_t snum, argument
271 tptr->tagSerialNum = cpu_to_le16(snum);
/linux-master/drivers/crypto/starfive/
H A Djh7110-rsa.c54 static unsigned int starfive_rsa_get_nbit(u8 *pa, u32 snum, int key_sz) argument
59 i = snum >> 3;
62 value >>= snum & 0x7;
/linux-master/net/smc/
H A Dsmc_stats.c387 int snum = cb_ctx->pos[0]; local
392 if (k < snum)
H A Dsmc_diag.c201 int snum = cb_ctx->pos[p_type]; local
215 if (num < snum)
H A Dsmc_ism.c317 int snum = cb_ctx->pos[0]; local
323 if (num < snum)
H A Dsmc_core.c486 int snum = cb_ctx->pos[0]; local
491 if (num < snum)
575 int snum = cb_ctx->pos[1]; local
582 if (num < snum)
602 int snum = cb_ctx->pos[0]; local
609 if (num < snum)
/linux-master/net/sctp/
H A Dsocket.c383 unsigned short snum; local
394 snum = ntohs(addr->v4.sin_port);
397 __func__, sk, &addr->sa, bp->port, snum, len);
408 if (!snum)
409 snum = bp->port;
410 else if (snum != bp->port) {
412 "%d\n", __func__, snum, bp->port);
417 if (snum && inet_port_requires_bind_service(net, snum) &&
431 addr->v4.sin_port = htons(snum);
8343 unsigned short snum; local
8506 sctp_get_port(struct sock *sk, unsigned short snum) argument
8702 sctp_bucket_create( struct sctp_bind_hashbucket *head, struct net *net, unsigned short snum) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c241 int snum = strtol(str, &next, 10); local
243 if (next - str == 0 || num != snum)
/linux-master/include/net/
H A Dinet_connection_sock.h258 int inet_csk_get_port(struct sock *sk, unsigned short snum);
H A Dudp.h202 int udp_lib_get_port(struct sock *sk, unsigned short snum,
H A Dinet_hashtables.h228 const unsigned short snum, int l3mdev);
/linux-master/drivers/net/ethernet/freescale/
H A Ducc_geth.c295 int snum; local
298 if ((snum = qe_get_snum()) < 0) {
301 return snum;
312 qe_put_snum((u8) snum);
317 ((u8) snum << ENET_INIT_PARAM_SNUM_SHIFT) | init_enet_offset
332 int snum; local
340 snum =
343 qe_put_snum((u8) snum);
367 int snum; local
375 snum
[all...]
/linux-master/drivers/infiniband/core/
H A Dcma.c232 struct rdma_bind_list *bind_list, int snum)
236 return xa_insert(xa, snum, bind_list, GFP_KERNEL);
240 enum rdma_ucm_port_space ps, int snum)
244 return xa_load(xa, snum);
248 int snum)
252 xa_erase(xa, snum);
3647 struct rdma_id_private *id_priv, unsigned short snum)
3659 snum);
3664 bind_list->port = snum;
3798 unsigned short snum; local
231 cma_ps_alloc(struct net *net, enum rdma_ucm_port_space ps, struct rdma_bind_list *bind_list, int snum) argument
239 cma_ps_find(struct net *net, enum rdma_ucm_port_space ps, int snum) argument
247 cma_ps_remove(struct net *net, enum rdma_ucm_port_space ps, int snum) argument
3646 cma_alloc_port(enum rdma_ucm_port_space ps, struct rdma_id_private *id_priv, unsigned short snum) argument
[all...]
/linux-master/drivers/staging/wlan-ng/
H A Dprism2sta.c568 u8 snum[HFA384x_RID_NICSERIALNUMBER_LEN]; local
829 snum, HFA384x_RID_NICSERIALNUMBER_LEN);
832 HFA384x_RID_NICSERIALNUMBER_LEN, snum);

Completed in 514 milliseconds

12