/Linux-v6.6/ipc/ |
D | msgutil.c | 50 size_t alen; in alloc_msg() local 52 alen = min(len, DATALEN_MSG); in alloc_msg() 53 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg() 60 len -= alen; in alloc_msg() 67 alen = min(len, DATALEN_SEG); in alloc_msg() 68 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg() 74 len -= alen; in alloc_msg() 89 size_t alen; in load_msg() local 95 alen = min(len, DATALEN_MSG); in load_msg() 96 if (copy_from_user(msg + 1, src, alen)) in load_msg() [all …]
|
/Linux-v6.6/drivers/scsi/qla2xxx/ |
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-v6.6/crypto/ |
D | testmgr.h | 118 unsigned int alen; member 15251 .alen = 20, 15323 .alen = 20, 15353 .alen = 20, 15577 .alen = 20, 15596 .alen = 8, 15616 .alen = 32, 15626 .alen = 0, 15641 .alen = 32, 15656 .alen = 32, [all …]
|
/Linux-v6.6/tools/testing/selftests/net/ |
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 …]
|
D | udpgso.c | 369 int fd, ret, alen, off = 0; in set_route_mtu() local 371 alen = is_ipv4 ? sizeof(addr4) : sizeof(addr6); in set_route_mtu() 387 rt->rtm_dst_len = alen << 3; in set_route_mtu() 395 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu() 397 memcpy(RTA_DATA(rta), &addr4, alen); in set_route_mtu() 399 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu() 452 struct sockaddr *addr, socklen_t alen) in send_one() argument 466 msg.msg_namelen = alen; in send_one() 506 struct sockaddr *addr, socklen_t alen) in run_one() argument 522 sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); in run_one() [all …]
|
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 …]
|
D | so_txtime.c | 284 static int setup_tx(struct sockaddr *addr, socklen_t alen) in setup_tx() argument 292 if (connect(fd, addr, alen)) in setup_tx() 304 static int setup_rx(struct sockaddr *addr, socklen_t alen) in setup_rx() argument 313 if (bind(fd, addr, alen)) in setup_rx() 322 static void do_test_tx(struct sockaddr *addr, socklen_t alen) in do_test_tx() argument 330 fdt = setup_tx(addr, alen); in do_test_tx() 344 static void do_test_rx(struct sockaddr *addr, socklen_t alen) in do_test_rx() argument 348 fdr = setup_rx(addr, alen); in do_test_rx()
|
/Linux-v6.6/drivers/media/pci/ngene/ |
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-v6.6/arch/powerpc/crypto/ |
D | aes-gcm-p10-glue.c | 42 unsigned char *aad, unsigned int alen); 88 unsigned char *aad, int alen) in set_aad() argument 93 gctx->aadLen = alen; in set_aad() 94 i = alen & ~0xf; in set_aad() 98 alen -= i; in set_aad() 100 if (alen) { in set_aad() 101 for (i = 0; i < alen; i++) in set_aad() 147 __be64 alen = cpu_to_be64(gctx->aadLen << 3); in finish_tag() local 157 *((__be64 *)(aclen)) = alen; in finish_tag()
|
/Linux-v6.6/drivers/net/mdio/ |
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-v6.6/drivers/spi/ |
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-v6.6/lib/crypto/ |
D | aesgcm.c | 556 int alen; member 589 .alen = 20, 648 .alen = 20, 663 .alen = 20, 696 aesgcm_tv[i].assoc, aesgcm_tv[i].alen, in libaesgcm_init() 705 aesgcm_tv[i].alen, aesgcm_tv[i].iv, tagbuf); in libaesgcm_init() 713 aesgcm_tv[i].alen, aesgcm_tv[i].iv, tagbuf) in libaesgcm_init()
|
/Linux-v6.6/fs/ubifs/ |
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 …]
|
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-v6.6/drivers/net/wireless/intersil/p54/ |
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-v6.6/fs/ntfs3/ |
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 271 alen = 0; in attr_make_nonresident() 276 ALLOCATE_DEF, &alen, 0, NULL, in attr_make_nonresident() 316 attr_s->name_len, run, 0, alen, in attr_make_nonresident() 414 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; in attr_set_size() local 422 alen = 0; in attr_set_size() 569 alen = to_allocate; in attr_set_size() 574 is_mft ? ALLOCATE_MFT : ALLOCATE_DEF, &alen, in attr_set_size() [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
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-v6.6/drivers/scsi/bfa/ |
D | bfi.h | 862 struct bfi_alen_s alen; member 897 struct bfi_alen_s alen; member 915 struct bfi_alen_s alen; member 934 struct bfi_alen_s alen; member 1036 struct bfi_alen_s alen; /* 12 bytes */ member 1197 struct bfi_alen_s alen; member 1207 struct bfi_alen_s alen; member 1220 struct bfi_alen_s alen; member 1232 struct bfi_alen_s alen; member 1294 struct bfi_alen_s alen; member [all …]
|
/Linux-v6.6/tools/lib/bpf/ |
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-v6.6/drivers/crypto/ |
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-v6.6/net/netfilter/ |
D | nft_nat.c | 170 unsigned int alen, plen; in nft_nat_init() local 199 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init() 202 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init() 213 &priv->sreg_addr_min, alen); in nft_nat_init() 220 alen); in nft_nat_init()
|
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-v6.6/net/ipv4/ |
D | esp4.c | 535 int alen; in esp_output_tail() local 557 alen = crypto_aead_authsize(aead); in esp_output_tail() 580 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 608 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 656 int alen; in esp_output() local 670 alen = crypto_aead_authsize(aead); in esp_output() 684 esp.tailen = esp.tfclen + esp.plen + alen; in esp_output() 708 int alen, hlen, elen; in esp_remove_trailer() local 714 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 718 if (skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2)) in esp_remove_trailer() [all …]
|
/Linux-v6.6/net/ipv6/ |
D | esp6.c | 572 int alen; in esp6_output_tail() local 594 alen = crypto_aead_authsize(aead); in esp6_output_tail() 617 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 645 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 694 int alen; in esp6_output() local 708 alen = crypto_aead_authsize(aead); in esp6_output() 722 esp.tailen = esp.tfclen + esp.plen + alen; in esp6_output() 746 int alen, hlen, elen; in esp_remove_trailer() local 752 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 756 ret = skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2); in esp_remove_trailer() [all …]
|
/Linux-v6.6/drivers/usb/serial/ |
D | whiteheat.c | 222 int alen; in whiteheat_attach() local 246 &alen, COMMAND_TIMEOUT_MS); in whiteheat_attach() 251 } else if (alen != 2) { in whiteheat_attach() 253 serial->type->description, alen); in whiteheat_attach() 262 sizeof(*hw_info) + 1, &alen, COMMAND_TIMEOUT_MS); in whiteheat_attach() 267 } else if (alen != sizeof(*hw_info) + 1) { in whiteheat_attach() 269 serial->type->description, alen); in whiteheat_attach()
|