Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 25 of 80) sorted by relevance

1234

/Linux-v6.1/ipc/
Dmsgutil.c50 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.1/drivers/scsi/qla2xxx/
Dqla_gs.c1601 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.1/crypto/
Dtestmgr.h118 unsigned int alen; member
14904 .alen = 20,
14938 .alen = 20,
16330 .alen = 16,
16358 .alen = 16,
16391 .alen = 16,
16423 .alen = 16,
16465 .alen = 24,
16511 .alen = 16,
16554 .alen = 16,
[all …]
/Linux-v6.1/tools/testing/selftests/net/
Dip_defrag.c134 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 …]
Dnettest.c262 static int tcp_md5sig(int sd, void *addr, socklen_t alen, struct sock_args *args) in tcp_md5sig() argument
279 memcpy(&md5sig.tcpm_addr, addr, alen); in tcp_md5sig()
312 int alen; in tcp_md5_remote() local
319 alen = sizeof(sin); in tcp_md5_remote()
325 alen = sizeof(sin6); in tcp_md5_remote()
332 if (tcp_md5sig(sd, addr, alen, args)) in tcp_md5_remote()
673 socklen_t alen = sizeof(local_addr); in show_sockstat() local
680 if (getsockname(sd, sa, &alen) == 0) { in show_sockstat()
693 if (getpeername(sd, sa, &alen) == 0) { in show_sockstat()
895 static int send_msg_no_cmsg(int sd, void *addr, socklen_t alen) in send_msg_no_cmsg() argument
[all …]
Dudpgso.c369 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 …]
Dso_txtime.c284 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()
Dpsock_snd.c136 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-v6.1/drivers/media/pci/ngene/
Dngene-dvb.c257 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.1/drivers/net/mdio/
Dmdio-mvusb.c35 int err, alen; in mvusb_mdio_read() local
43 mvusb->buf, 6, &alen, 100); in mvusb_mdio_read()
48 &mvusb->buf[MVUSB_CMD_VAL], 2, &alen, 100); in mvusb_mdio_read()
58 int alen; in mvusb_mdio_write() local
67 mvusb->buf, 8, &alen, 100); in mvusb_mdio_write()
/Linux-v6.1/drivers/spi/
Dspi-falcon.c105 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.1/fs/ubifs/
Dlpt_commit.c184 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 …]
Dlpt.c602 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.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c48 unsigned int alen = crypto_aead_authsize(x->data); in mlx5e_ipsec_remove_trailer() local
55 ret = skb_copy_bits(skb, skb->len - alen - 2, &plen, 1); in mlx5e_ipsec_remove_trailer()
59 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer()
198 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local
205 alen = crypto_aead_authsize(aead); in mlx5e_ipsec_set_state()
209 tailen = plen + alen; in mlx5e_ipsec_set_state()
/Linux-v6.1/drivers/net/wireless/intersil/p54/
Dp54usb.c398 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.1/drivers/scsi/bfa/
Dbfi.h862 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.1/tools/lib/bpf/
Dnlattr.c167 int hlen, alen; in libbpf_nla_dump_errormsg() local
181 alen = nlh->nlmsg_len - hlen; in libbpf_nla_dump_errormsg()
183 if (libbpf_nla_parse(tb, NLMSGERR_ATTR_MAX, attr, alen, in libbpf_nla_dump_errormsg()
/Linux-v6.1/fs/ntfs3/
Dattrib.c174 enum ALLOCATE_OPT opt, CLST *alen, const size_t fr, in attr_allocate_clusters() argument
210 *alen = vcn - vcn0; in attr_allocate_clusters()
243 CLST len, alen; in attr_make_nonresident() local
278 alen = 0; in attr_make_nonresident()
283 ALLOCATE_DEF, &alen, 0, NULL); in attr_make_nonresident()
322 attr_s->name_len, run, 0, alen, in attr_make_nonresident()
420 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; in attr_set_size() local
427 alen = 0; in attr_set_size()
573 alen = to_allocate; in attr_set_size()
578 is_mft ? ALLOCATE_MFT : 0, &alen, in attr_set_size()
[all …]
/Linux-v6.1/drivers/crypto/
Domap-aes-gcm.c45 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local
48 alen = ALIGN(dd->assoc_len, AES_BLOCK_SIZE); in omap_aes_gcm_done_task()
70 omap_crypto_cleanup(&dd->in_sgl[0], NULL, 0, alen, in omap_aes_gcm_done_task()
91 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local
107 alen = ALIGN(assoclen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers()
168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
/Linux-v6.1/net/netfilter/
Dnft_nat.c169 unsigned int alen, plen; in nft_nat_init() local
198 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init()
201 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init()
212 &priv->sreg_addr_min, alen); in nft_nat_init()
219 alen); in nft_nat_init()
Dnft_tproxy.c196 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.1/net/ipv4/
Desp4.c535 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.1/net/ipv6/
Desp6.c572 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.1/drivers/usb/serial/
Dwhiteheat.c222 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()
/Linux-v6.1/drivers/media/usb/gspca/
Dstk014.c92 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()

1234