/linux/ipc/ |
H A D | msgutil.c | 61 size_t alen; in alloc_msg() local 63 alen = min(len, DATALEN_MSG); in alloc_msg() 64 msg = kmem_buckets_alloc(msg_buckets, sizeof(*msg) + alen, GFP_KERNEL); in alloc_msg() 71 len -= alen; in alloc_msg() 78 alen = min(len, DATALEN_SEG); in alloc_msg() 79 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg() 85 len -= alen; in alloc_msg() 100 size_t alen; in load_msg() local 106 alen = min(len, DATALEN_MSG); in load_msg() 107 if (copy_from_user(msg + 1, src, alen)) in load_msg() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_gs.c | 1601 uint16_t alen; in qla2x00_hba_attributes() local 1608 alen = sizeof(eiter->a.node_name); in qla2x00_hba_attributes() 1609 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes() 1610 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes() 1611 size += alen; in qla2x00_hba_attributes() 1617 alen = scnprintf( in qla2x00_hba_attributes() 1620 alen += FDMI_ATTR_ALIGNMENT(alen); in qla2x00_hba_attributes() 1621 alen += FDMI_ATTR_TYPELEN(eiter); in qla2x00_hba_attributes() 1622 eiter->len = cpu_to_be16(alen); in qla2x00_hba_attributes() 1623 size += alen; in qla2x00_hba_attributes() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | ip_defrag.c | 134 static void send_fragment(int fd_raw, struct sockaddr *addr, socklen_t alen, in send_fragment() argument 194 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_fragment() 204 socklen_t alen, bool ipv6) in send_udp_frags() argument 248 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 259 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 264 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 269 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 278 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 281 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags() 315 res = sendto(fd_raw, ip_frame, frag_len, 0, addr, alen); in send_udp_frags() [all …]
|
H A D | nettest.c | 265 static int tcp_md5sig(int sd, void *addr, socklen_t alen, struct sock_args *args) in tcp_md5sig() argument 282 memcpy(&md5sig.tcpm_addr, addr, alen); in tcp_md5sig() 315 int alen; in tcp_md5_remote() local 322 alen = sizeof(sin); in tcp_md5_remote() 328 alen = sizeof(sin6); in tcp_md5_remote() 335 if (tcp_md5sig(sd, addr, alen, args)) in tcp_md5_remote() 718 socklen_t alen = sizeof(local_addr); in show_sockstat() local 725 if (getsockname(sd, sa, &alen) == 0) { in show_sockstat() 738 if (getpeername(sd, sa, &alen) == 0) { in show_sockstat() 940 static int send_msg_no_cmsg(int sd, void *addr, socklen_t alen) in send_msg_no_cmsg() argument [all …]
|
H A D | udpgso.c | 350 struct sockaddr *addr, socklen_t alen) in send_one() argument 364 msg.msg_namelen = alen; in send_one() 404 struct sockaddr *addr, socklen_t alen) in run_one() argument 427 sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); in run_one() 471 static void run_all(int fdt, int fdr, struct sockaddr *addr, socklen_t alen) in run_all() argument 481 run_one(test, fdt, fdr, addr, alen); in run_all() 485 static void run_test(struct sockaddr *addr, socklen_t alen) in run_test() argument 495 if (bind(fdr, addr, alen)) in run_test() 511 run_all(fdt, fdr, addr, alen); in run_test() 514 if (connect(fdt, addr, alen)) in run_test()
|
H A D | so_txtime.c | 287 static int setup_tx(struct sockaddr *addr, socklen_t alen) in setup_tx() argument 295 if (connect(fd, addr, alen)) in setup_tx() 307 static int setup_rx(struct sockaddr *addr, socklen_t alen) in setup_rx() argument 316 if (bind(fd, addr, alen)) in setup_rx() 325 static void do_test_tx(struct sockaddr *addr, socklen_t alen) in do_test_tx() argument 333 fdt = setup_tx(addr, alen); in do_test_tx() 347 static void do_test_rx(struct sockaddr *addr, socklen_t alen) in do_test_rx() argument 351 fdr = setup_rx(addr, alen); in do_test_rx()
|
H A D | psock_snd.c | 136 const int alen = sizeof(uint32_t); in build_udp_header() local 145 udph->check = build_ip_csum(header - (2 * alen), alen, in build_udp_header()
|
/linux/drivers/media/pci/ngene/ |
H A D | ngene-dvb.c | 257 u32 alen; in tsout_exchange() local 259 alen = dvb_ringbuffer_avail(&dev->tsout_rbuf); in tsout_exchange() 260 alen -= alen % 188; in tsout_exchange() 262 if (alen < len) in tsout_exchange() 263 FillTSBuffer(buf + alen, len - alen, flags); in tsout_exchange() 265 alen = len; in tsout_exchange() 266 dvb_ringbuffer_read(&dev->tsout_rbuf, buf, alen); in tsout_exchange() 268 swap_buffer((u32 *)buf, alen); in tsout_exchange()
|
/linux/drivers/net/mdio/ |
H A D | mdio-mvusb.c | 35 int err, alen; in mvusb_mdio_read() local 40 mvusb->buf, 6, &alen, 100); in mvusb_mdio_read() 45 &mvusb->buf[MVUSB_CMD_VAL], 2, &alen, 100); in mvusb_mdio_read() 55 int alen; in mvusb_mdio_write() local 61 mvusb->buf, 8, &alen, 100); in mvusb_mdio_write()
|
/linux/drivers/spi/ |
H A D | spi-falcon.c | 105 unsigned int len, alen, dumlen; in falcon_sflash_xfer() local 175 alen = 0; in falcon_sflash_xfer() 178 if (alen < 3) { in falcon_sflash_xfer() 180 alen++; in falcon_sflash_xfer() 194 priv->sfcmd |= (alen << SFCMD_ALEN_OFFSET) | in falcon_sflash_xfer() 196 if (alen > 0) in falcon_sflash_xfer() 201 alen, val, dumlen); in falcon_sflash_xfer()
|
/linux/lib/crypto/ |
H A D | aesgcm.c | 569 int alen; member 602 .alen = 20, 661 .alen = 20, 676 .alen = 20, 709 aesgcm_tv[i].assoc, aesgcm_tv[i].alen, in libaesgcm_init() 718 aesgcm_tv[i].alen, aesgcm_tv[i].iv, tagbuf); in libaesgcm_init() 726 aesgcm_tv[i].alen, aesgcm_tv[i].iv, tagbuf) in libaesgcm_init()
|
/linux/fs/ubifs/ |
H A D | lpt_commit.c | 184 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 223 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 224 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 266 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 267 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 286 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 287 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 302 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() 303 upd_ltab(c, lnum, c->leb_size - alen, alen - offs); in layout_cnodes() 304 dbg_chk_lpt_sz(c, 4, alen - offs); in layout_cnodes() [all …]
|
H A D | lpt.c | 602 int lnum, err = 0, node_sz, iopos, i, j, cnt, len, alen, row; in ubifs_create_dflt_lpt() local 702 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt() 703 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt() 704 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 705 err = ubifs_leb_change(c, lnum++, buf, alen); in ubifs_create_dflt_lpt() 735 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt() 736 set_ltab(c, lnum, c->leb_size - alen, in ubifs_create_dflt_lpt() 737 alen - len); in ubifs_create_dflt_lpt() 738 memset(p, 0xff, alen - len); in ubifs_create_dflt_lpt() 739 err = ubifs_leb_change(c, lnum++, buf, alen); in ubifs_create_dflt_lpt() [all …]
|
/linux/drivers/net/wireless/intersil/p54/ |
H A D | p54usb.c | 398 int alen; in p54u_write() local 409 return usb_bulk_msg(priv->udev, ep, buf, sizeof(*buf), &alen, 1000); in p54u_write() 419 int alen, err; in p54u_read() local 430 read, sizeof(*read), &alen, 1000); in p54u_read() 435 reg, sizeof(*reg), &alen, 1000); in p54u_read() 446 int alen; in p54u_bulk_msg() local 448 data, len, &alen, 2000); in p54u_bulk_msg() 500 int err, alen; in p54u_upload_firmware_3887() local 578 usb_rcvbulkpipe(priv->udev, P54U_PIPE_DATA), buf, 128, &alen, 1000))) { in p54u_upload_firmware_3887() 579 if (alen > 2 && !memcmp(buf, "OK", 2)) in p54u_upload_firmware_3887() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_rxtx.c | 49 unsigned int alen = crypto_aead_authsize(x->data); in mlx5e_ipsec_remove_trailer() local 56 ret = skb_copy_bits(skb, skb->len - alen - 2, &plen, 1); in mlx5e_ipsec_remove_trailer() 60 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer() 201 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local 208 alen = crypto_aead_authsize(aead); in mlx5e_ipsec_set_state() 212 tailen = plen + alen; in mlx5e_ipsec_set_state()
|
/linux/fs/ntfs3/ |
H A D | attrib.c | 151 enum ALLOCATE_OPT opt, CLST *alen, const size_t fr, in attr_allocate_clusters() argument 203 *alen = vcn - vcn0; in attr_allocate_clusters() 236 CLST len, alen; in attr_make_nonresident() local 274 alen = 0; in attr_make_nonresident() 279 ALLOCATE_DEF, &alen, 0, NULL, in attr_make_nonresident() 318 attr_s->name_len, run, 0, alen, in attr_make_nonresident() 416 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; in attr_set_size() local 424 alen = 0; in attr_set_size() 571 alen = to_allocate; in attr_set_size() 576 is_mft ? ALLOCATE_MFT : ALLOCATE_DEF, &alen, in attr_set_size() [all …]
|
/linux/tools/lib/bpf/ |
H A D | nlattr.c | 167 int hlen, alen; in libbpf_nla_dump_errormsg() local 181 alen = (void *)nlh + nlh->nlmsg_len - (void *)attr; in libbpf_nla_dump_errormsg() 183 if (libbpf_nla_parse(tb, NLMSGERR_ATTR_MAX, attr, alen, in libbpf_nla_dump_errormsg()
|
/linux/drivers/crypto/ |
H A D | omap-aes-gcm.c | 48 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local 51 alen = ALIGN(dd->assoc_len, AES_BLOCK_SIZE); in omap_aes_gcm_done_task() 73 omap_crypto_cleanup(&dd->in_sgl[0], NULL, 0, alen, in omap_aes_gcm_done_task() 94 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local 110 alen = ALIGN(assoclen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers() 171 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
|
/linux/net/netfilter/ |
H A D | nft_nat.c | 174 unsigned int alen, plen; in nft_nat_init() local 203 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init() 206 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init() 217 &priv->sreg_addr_min, alen); in nft_nat_init() 224 alen); in nft_nat_init()
|
H A D | nft_tproxy.c | 196 unsigned int alen = 0; in nft_tproxy_init() local 228 alen = sizeof_field(union nf_inet_addr, in); in nft_tproxy_init() 235 alen = sizeof_field(union nf_inet_addr, in6); in nft_tproxy_init() 258 &priv->sreg_addr, alen); in nft_tproxy_init()
|
/linux/net/ipv6/ |
H A D | esp6.c | 565 int alen; in esp6_output_tail() local 587 alen = crypto_aead_authsize(aead); in esp6_output_tail() 610 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 638 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 687 int alen; in esp6_output() local 701 alen = crypto_aead_authsize(aead); in esp6_output() 715 esp.tailen = esp.tfclen + esp.plen + alen; in esp6_output() 739 int alen, hlen, elen; in esp_remove_trailer() local 745 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 749 ret = skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2); in esp_remove_trailer() [all …]
|
/linux/net/ipv4/ |
H A D | esp4.c | 534 int alen; in esp_output_tail() local 556 alen = crypto_aead_authsize(aead); in esp_output_tail() 579 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 607 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 655 int alen; in esp_output() local 669 alen = crypto_aead_authsize(aead); in esp_output() 683 esp.tailen = esp.tfclen + esp.plen + alen; in esp_output() 707 int alen, hlen, elen; in esp_remove_trailer() local 713 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 717 if (skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2)) in esp_remove_trailer() [all …]
|
/linux/drivers/usb/serial/ |
H A D | whiteheat.c | 220 int alen; in whiteheat_attach() local 244 &alen, COMMAND_TIMEOUT_MS); in whiteheat_attach() 249 } else if (alen != 2) { in whiteheat_attach() 251 serial->type->description, alen); in whiteheat_attach() 260 sizeof(*hw_info) + 1, &alen, COMMAND_TIMEOUT_MS); in whiteheat_attach() 265 } else if (alen != sizeof(*hw_info) + 1) { in whiteheat_attach() 267 serial->type->description, alen); in whiteheat_attach()
|
/linux/tools/testing/selftests/bpf/ |
H A D | netlink_helpers.c | 313 int alen) in addattr_l() argument 315 int len = RTA_LENGTH(alen); in addattr_l() 326 if (alen) in addattr_l() 327 memcpy(RTA_DATA(rta), data, alen); in addattr_l()
|
/linux/drivers/media/usb/gspca/ |
H A D | stk014.c | 92 int alen, ret; in rcv_val() local 109 &alen, in rcv_val() 123 int alen, ret; in snd_val() local 152 &alen, in snd_val()
|