Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 10 of 10) sorted by relevance

/net/sunrpc/
Dxdr.c67 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int nbytes) in xdr_encode_opaque_fixed() argument
69 if (likely(nbytes != 0)) { in xdr_encode_opaque_fixed()
70 unsigned int quadlen = XDR_QUADLEN(nbytes); in xdr_encode_opaque_fixed()
71 unsigned int padding = (quadlen << 2) - nbytes; in xdr_encode_opaque_fixed()
74 memcpy(p, ptr, nbytes); in xdr_encode_opaque_fixed()
76 memset((char *)p + nbytes, 0, padding); in xdr_encode_opaque_fixed()
91 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int nbytes) in xdr_encode_opaque() argument
93 *p++ = cpu_to_be32(nbytes); in xdr_encode_opaque()
94 return xdr_encode_opaque_fixed(p, ptr, nbytes); in xdr_encode_opaque()
949 size_t nbytes) in xdr_get_next_encode_buffer() argument
[all …]
/net/atm/
Dmpoa_proc.c52 size_t nbytes, loff_t *ppos);
207 size_t nbytes, loff_t *ppos) in proc_mpc_write() argument
212 if (nbytes == 0) in proc_mpc_write()
215 if (nbytes >= PAGE_SIZE) in proc_mpc_write()
216 nbytes = PAGE_SIZE-1; in proc_mpc_write()
222 for (p = page, len = 0; len < nbytes; p++) { in proc_mpc_write()
/net/ethtool/
Dbitset.c249 unsigned int nbytes = nwords * sizeof(u32); in ethnl_put_bitset32() local
252 attr = nla_reserve(skb, ETHTOOL_A_BITSET_VALUE, nbytes); in ethnl_put_bitset32()
256 memcpy(dst, val, nbytes); in ethnl_put_bitset32()
261 attr = nla_reserve(skb, ETHTOOL_A_BITSET_MASK, nbytes); in ethnl_put_bitset32()
265 memcpy(dst, mask, nbytes); in ethnl_put_bitset32()
/net/core/
Dnetprio_cgroup.c196 char *buf, size_t nbytes, loff_t off) in write_priomap() argument
216 return ret ?: nbytes; in write_priomap()
/net/can/j1939/
Dtransport.c1811 int nbytes; in j1939_xtp_rx_dat_one() local
1861 nbytes = se_skb->len - offset; in j1939_xtp_rx_dat_one()
1862 if (nbytes > 7) in j1939_xtp_rx_dat_one()
1863 nbytes = 7; in j1939_xtp_rx_dat_one()
1864 if (nbytes <= 0 || (nbytes + 1) > skb->len) { in j1939_xtp_rx_dat_one()
1866 __func__, session, nbytes, skb->len); in j1939_xtp_rx_dat_one()
1872 memcpy(&tpdat[offset], &dat[1], nbytes); in j1939_xtp_rx_dat_one()
1876 err = memcmp(&tpdat[offset], &dat[1], nbytes); in j1939_xtp_rx_dat_one()
1881 nbytes, &dat[1], in j1939_xtp_rx_dat_one()
1882 nbytes, &tpdat[offset]); in j1939_xtp_rx_dat_one()
/net/rds/
Dmessage.c425 unsigned long to_copy, nbytes; in rds_message_copy_from_user() local
453 nbytes = copy_page_from_iter(sg_page(sg), sg->offset + sg_off, in rds_message_copy_from_user()
455 if (nbytes != to_copy) in rds_message_copy_from_user()
/net/batman-adv/
Dtp_meter.c535 u8 *buf, size_t nbytes) in batadv_tp_fill_prerandom() argument
544 tp_vars->prerandom_offset += nbytes; in batadv_tp_fill_prerandom()
548 while (nbytes) { in batadv_tp_fill_prerandom()
551 to_copy = min(nbytes, bytes_inbuf); in batadv_tp_fill_prerandom()
555 nbytes -= to_copy; in batadv_tp_fill_prerandom()
/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c609 int nblocks, nbytes; in gss_krb5_aes_encrypt() local
669 nbytes = buf->len - offset - GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt()
670 nblocks = (nbytes + blocksize - 1) / blocksize; in gss_krb5_aes_encrypt()
/net/ipv6/
Dtcp_ipv6.c671 const struct tcphdr *th, int nbytes) in tcp_v6_md5_hash_headers() argument
682 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_headers()
/net/ipv4/
Dtcp_ipv4.c1306 const struct tcphdr *th, int nbytes) in tcp_v4_md5_hash_headers() argument
1317 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_headers()