Home
last modified time | relevance | path

Searched full:snum (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/soc/fsl/qe/
H A Dqe.c116 /* Here device is the SNUM, not sub-block */ in qe_issue_cmd()
119 /* Here device is the SNUM, and mcnProtocol is in qe_issue_cmd()
280 * QE Module Control chapter, SNUM table
309 qe_num_of_snum = 28; /* The default number of snum for threads is 28 */ in qe_snums_init()
342 int snum = -EBUSY; in qe_get_snum() local
349 snum = snums[i]; in qe_get_snum()
353 return snum; in qe_get_snum()
357 void qe_put_snum(u8 snum) in qe_put_snum() argument
359 const u8 *p = memchr(snums, snum, qe_num_of_snum); in qe_put_snum()
/linux/net/ipv4/
H A Dudp.c236 * @snum: port number to look up
240 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port() argument
248 if (!snum) { in udp_lib_get_port()
268 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
271 snum = first; in udp_lib_get_port()
273 * Iterate on all possible values of snum for this hash. in udp_lib_get_port()
278 if (low <= snum && snum <= high && in udp_lib_get_port()
279 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
280 !inet_is_local_reserved_port(net, snum)) in udp_lib_get_port()
282 snum += rand; in udp_lib_get_port()
[all …]
H A Dudp_impl.h12 int udp_v4_get_port(struct sock *sk, unsigned short snum);
H A Dping.c418 unsigned short snum; in ping_bind() local
433 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind()
434 if (ping_get_port(sk, snum) != 0) { in ping_bind()
453 if (snum) in ping_bind()
H A Dinet_hashtables.c62 * The bindhash mutex for snum's hash chain must be held here.
67 const unsigned short snum, in inet_bind_bucket_create() argument
75 tb->port = snum; in inet_bind_bucket_create()
H A Dinet_connection_sock.c512 * if snum is zero it means select any available local port.
515 int inet_csk_get_port(struct sock *sk, unsigned short snum) in inet_csk_get_port() argument
521 int ret = -EADDRINUSE, port = snum, l3mdev; in inet_csk_get_port()
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
H A Dfsl,qe.yaml52 defining the array of serial number (SNUM) values for the virtual
75 define how many serial number(SNUM) the QE can use
/linux/net/ipv6/
H A Daf_inet6.c288 unsigned short snum; in __inet6_bind() local
300 snum = ntohs(addr->sin6_port); in __inet6_bind()
302 snum && inet_port_requires_bind_service(net, snum) && in __inet6_bind()
405 if (snum || !(inet_test_bit(BIND_ADDRESS_NO_PORT, sk) || in __inet6_bind()
407 err = sk->sk_prot->get_port(sk, snum); in __inet6_bind()
427 if (snum) in __inet6_bind()
H A Dudp_impl.h16 int udp_v6_get_port(struct sock *sk, unsigned short snum);
H A Dudp.c96 int udp_v6_get_port(struct sock *sk, unsigned short snum) in udp_v6_get_port() argument
99 ipv6_portaddr_hash(sock_net(sk), &in6addr_any, snum); in udp_v6_get_port()
105 return udp_lib_get_port(sk, snum, hash2_nulladdr); in udp_v6_get_port()
/linux/tools/perf/scripts/python/
H A Devent_analyzing_sample.py120 snum = '#' * (int)(math.log(num, 2) + 1)
121 return snum
/linux/fs/udf/
H A Dmisc.c265 void udf_new_tag(char *data, uint16_t ident, uint16_t version, uint16_t snum, in udf_new_tag() argument
271 tptr->tagSerialNum = cpu_to_le16(snum); in udf_new_tag()
/linux/net/smc/
H A Dsmc_stats.c393 int snum = cb_ctx->pos[0]; in smc_nl_get_fback_stats() local
398 if (k < snum) in smc_nl_get_fback_stats()
H A Dsmc_diag.c201 int snum = cb_ctx->pos[p_type]; in smc_diag_dump_proto() local
215 if (num < snum) in smc_diag_dump_proto()
H A Dsmc_ism.c362 int snum = cb_ctx->pos[0]; in smc_nl_prep_smcd_dev() local
368 if (num < snum) in smc_nl_prep_smcd_dev()
H A Dsmc_core.c519 int snum = cb_ctx->pos[0]; in smc_nl_fill_lgr_list() local
524 if (num < snum) in smc_nl_fill_lgr_list()
612 int snum = cb_ctx->pos[1]; in smc_nl_handle_smcd_lgr() local
619 if (num < snum) in smc_nl_handle_smcd_lgr()
639 int snum = cb_ctx->pos[0]; in smc_nl_fill_smcd_dev() local
646 if (num < snum) in smc_nl_fill_smcd_dev()
H A Dsmc_ib.c611 int snum = cb_ctx->pos[0]; in smc_nl_prep_smcr_dev() local
616 if (num < snum) in smc_nl_prep_smcr_dev()
/linux/net/sctp/
H A Dsocket.c383 unsigned short snum; in sctp_do_bind() local
394 snum = ntohs(addr->v4.sin_port); in sctp_do_bind()
397 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind()
408 if (!snum) in sctp_do_bind()
409 snum = bp->port; in sctp_do_bind()
410 else if (snum != bp->port) { in sctp_do_bind()
412 "%d\n", __func__, snum, bp->port); in sctp_do_bind()
417 if (snum && inet_port_requires_bind_service(net, snum) && in sctp_do_bind()
431 addr->v4.sin_port = htons(snum); in sctp_do_bind()
8339 struct sctp_bind_hashbucket *head, struct net *, unsigned short snum);
[all …]
/linux/Documentation/arch/powerpc/
H A Dqe_firmware.rst158 | | | for each SNUM of Ethernet TX thread. |
160 | | | CECR = 0x7'b{0}, 8'b{Enet TX thread SNUM}, |
/linux/drivers/infiniband/core/
H A Dcma.c232 struct rdma_bind_list *bind_list, int snum) in cma_ps_alloc() argument
236 return xa_insert(xa, snum, bind_list, GFP_KERNEL); in cma_ps_alloc()
240 enum rdma_ucm_port_space ps, int snum) in cma_ps_find() argument
244 return xa_load(xa, snum); in cma_ps_find()
248 int snum) in cma_ps_remove() argument
252 xa_erase(xa, snum); in cma_ps_remove()
3665 struct rdma_id_private *id_priv, unsigned short snum) in cma_alloc_port() argument
3677 snum); in cma_alloc_port()
3682 bind_list->port = snum; in cma_alloc_port()
3816 unsigned short snum; in cma_use_port() local
[all …]
/linux/security/selinux/
H A Dhooks.c4727 unsigned short snum; in selinux_socket_bind() local
4760 snum = ntohs(addr4->sin_port); in selinux_socket_bind()
4767 snum = ntohs(addr6->sin6_port); in selinux_socket_bind()
4776 ad.u.net->sport = htons(snum); in selinux_socket_bind()
4779 if (snum) { in selinux_socket_bind()
4784 if (inet_port_requires_bind_service(sock_net(sk), snum) || in selinux_socket_bind()
4785 snum < low || snum > high) { in selinux_socket_bind()
4787 snum, &sid); in selinux_socket_bind()
4876 unsigned short snum; in selinux_socket_connect_helper() local
4889 snum = ntohs(addr4->sin_port); in selinux_socket_connect_helper()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c244 int snum = strtol(str, &next, 10); in match_number() local
246 if (next - str == 0 || num != snum) in match_number()
/linux/drivers/firmware/efi/
H A Dcper-arm.c277 printk("%snum errors: %d\n", pfx, err_info->multiple_error + 1); in cper_print_proc_arm()
/linux/drivers/crypto/
H A Dhifn_795x.c424 u8 snum; member
1033 unsigned dlen, unsigned slen, u16 mask, u8 snum) in hifn_setup_base_command() argument
1047 base_cmd->session_num = __cpu_to_le16(snum | in hifn_setup_base_command()
1123 nbytes, mask, dev->snum); in hifn_setup_cmd_desc()
1556 dev->snum++; in hifn_setup_session()
/linux/include/net/
H A Dinet_hashtables.h228 const unsigned short snum, int l3mdev);

12