Home
last modified time | relevance | path

Searched refs:slen (Results 76 – 100 of 167) sorted by relevance

1234567

/openbmc/qemu/hw/char/
H A Dsclpconsole-lm.c148 int *slen) in read_event_data() argument
161 avail = *slen - sizeof(OprtnsCommand); in read_event_data()
189 *slen = avail - src_len; in read_event_data()
/openbmc/linux/drivers/crypto/
H A Dqcom-rng.c77 const u8 *src, unsigned int slen, in qcom_rng_generate() argument
99 unsigned int slen) in qcom_rng_seed() argument
/openbmc/linux/include/linux/netfilter/
H A Dnf_conntrack_sip.h67 unsigned int slen; member
80 .slen = (__search) ? sizeof(__search) - 1 : 0, \
/openbmc/linux/fs/erofs/
H A Dfscache.c147 size_t slen = len - done; in erofs_fscache_read_folios_async() local
151 sstart, &slen, LLONG_MAX, &flags, 0); in erofs_fscache_read_folios_async()
152 if (WARN_ON(slen == 0)) in erofs_fscache_read_folios_async()
161 lstart + done, slen); in erofs_fscache_read_folios_async()
172 done += slen; in erofs_fscache_read_folios_async()
/openbmc/linux/arch/sparc/kernel/
H A Diommu.c478 unsigned long paddr, npages, entry, out_entry = 0, slen; in dma_4u_map_sg() local
481 slen = s->length; in dma_4u_map_sg()
483 if (slen == 0) { in dma_4u_map_sg()
489 npages = iommu_num_pages(paddr, slen, IO_PAGE_SIZE); in dma_4u_map_sg()
537 outs->dma_length = slen; in dma_4u_map_sg()
542 dma_next = dma_addr + slen; in dma_4u_map_sg()
H A Dpci_sun4v.c524 unsigned long paddr, npages, entry, out_entry = 0, slen; in dma_4v_map_sg() local
526 slen = s->length; in dma_4v_map_sg()
528 if (slen == 0) { in dma_4v_map_sg()
534 npages = iommu_num_pages(paddr, slen, IO_PAGE_SIZE); in dma_4v_map_sg()
581 outs->dma_length = slen; in dma_4v_map_sg()
586 dma_next = dma_addr + slen; in dma_4v_map_sg()
/openbmc/linux/fs/nfs/
H A Dnfs42xattr.c181 size_t alloclen, slen; in nfs4_xattr_alloc_entry() local
190 slen = strlen(name) + 1; in nfs4_xattr_alloc_entry()
191 alloclen += slen; in nfs4_xattr_alloc_entry()
193 slen = 0; in nfs4_xattr_alloc_entry()
209 memcpy(namep, name, slen); in nfs4_xattr_alloc_entry()
222 valp = buf + sizeof(struct nfs4_xattr_entry) + slen; in nfs4_xattr_alloc_entry()
H A Dunlink.c465 int slen; in nfs_sillyrename() local
468 slen = scnprintf(silly, sizeof(silly), in nfs_sillyrename()
476 sdentry = lookup_one_len(silly, dentry->d_parent, slen); in nfs_sillyrename()
/openbmc/linux/fs/unicode/
H A Dutf8n.h41 unsigned int slen; member
/openbmc/linux/drivers/media/common/saa7146/
H A Dsaa7146_core.c170 int slen = 0; in saa7146_vmalloc_build_pgtable() local
182 slen = dma_map_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable()
183 if (0 == slen) in saa7146_vmalloc_build_pgtable()
186 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable()
/openbmc/linux/include/net/
H A Dseg6_hmac.h31 u8 slen; member
/openbmc/linux/arch/powerpc/kernel/
H A Diommu.c499 unsigned long vaddr, npages, entry, slen; in ppc_iommu_map_sg() local
501 slen = s->length; in ppc_iommu_map_sg()
503 if (slen == 0) { in ppc_iommu_map_sg()
509 npages = iommu_num_pages(vaddr, slen, IOMMU_PAGE_SIZE(tbl)); in ppc_iommu_map_sg()
511 if (tbl->it_page_shift < PAGE_SHIFT && slen >= PAGE_SIZE && in ppc_iommu_map_sg()
517 DBG(" - vaddr: %lx, size: %lx\n", vaddr, slen); in ppc_iommu_map_sg()
567 outs->dma_length = slen; in ppc_iommu_map_sg()
571 dma_next = dma_addr + slen; in ppc_iommu_map_sg()
/openbmc/qemu/hw/usb/
H A Ddev-uas.c417 int len, slen = 0; in usb_uas_queue_sense() local
423 slen = scsi_req_get_sense(req->req, st->status.sense.sense_data, in usb_uas_queue_sense()
425 st->status.sense.sense_length = cpu_to_be16(slen); in usb_uas_queue_sense()
427 len = sizeof(uas_iu_sense) - sizeof(st->status.sense.sense_data) + slen; in usb_uas_queue_sense()
435 int len, slen = 0; in usb_uas_queue_fake_sense() local
444 slen = 18; in usb_uas_queue_fake_sense()
445 len = sizeof(uas_iu_sense) - sizeof(st->status.sense.sense_data) + slen; in usb_uas_queue_fake_sense()
/openbmc/linux/crypto/
H A Djitterentropy-kcapi.c263 const u8 *src, unsigned int slen, in jent_kcapi_random() argument
301 const u8 *seed, unsigned int slen) in jent_kcapi_reset() argument
/openbmc/linux/lib/
H A Dstring_helpers.c640 size_t slen, dlen; in kstrdup_quotable() local
647 slen = strlen(src); in kstrdup_quotable()
649 dlen = string_escape_mem(src, slen, NULL, 0, flags, esc); in kstrdup_quotable()
654 WARN_ON(string_escape_mem(src, slen, dst, dlen, flags, esc) != dlen); in kstrdup_quotable()
H A Dtest_bitmap.c499 int ret, slen; in test_bitmap_printlist() local
506 slen = snprintf(expected, 256, "0-%ld", PAGE_SIZE * 8 - 1); in test_bitmap_printlist()
507 if (slen < 0) in test_bitmap_printlist()
514 if (ret != slen + 1) { in test_bitmap_printlist()
515 pr_err("bitmap_print_to_pagebuf: result is %d, expected %d\n", ret, slen); in test_bitmap_printlist()
520 if (strncmp(buf, expected, slen)) { in test_bitmap_printlist()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dplpks.c205 size_t slen = 0; in construct_label() local
212 slen = strlen(component); in construct_label()
213 if (slen > sizeof(label->attr.prefix)) in construct_label()
223 memcpy(&label->attr.prefix, component, slen); in construct_label()
/openbmc/linux/include/crypto/
H A Dakcipher.h391 const void *src, unsigned int slen,
409 const void *src, unsigned int slen,
/openbmc/u-boot/fs/ubifs/
H A Dubifs.c123 const u8 *src, unsigned int slen, u8 *dst, in crypto_comp_decompress() argument
131 memcpy(dst, src, slen); in crypto_comp_decompress()
132 *dlen = slen; in crypto_comp_decompress()
136 err = compr->decompress(src, slen, dst, &tmp_len); in crypto_comp_decompress()
139 "error %d", slen, compr->name, err); in crypto_comp_decompress()
/openbmc/linux/drivers/block/aoe/
H A Daoedev.c243 user_req(char *s, size_t slen, struct aoedev *d) in user_req() argument
253 if (slen < lim) in user_req()
254 lim = slen; in user_req()
/openbmc/linux/kernel/debug/kdb/
H A Dkdb_io.c40 int slen = strlen(buffer); in kgdb_transition_check() local
41 if (slen > 3 && buffer[slen - 3] == '#') { in kgdb_transition_check()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsk_assign.c126 socklen_t slen = sizeof(ss); in get_port() local
129 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
/openbmc/linux/fs/overlayfs/
H A Dinode.c448 size_t slen = strnlen(s, len) + 1; in ovl_listxattr() local
451 if (WARN_ON(slen > len)) in ovl_listxattr()
454 len -= slen; in ovl_listxattr()
456 res -= slen; in ovl_listxattr()
457 memmove(s, s + slen, len); in ovl_listxattr()
459 s += slen; in ovl_listxattr()
/openbmc/linux/fs/smb/client/
H A Dnetmisc.c153 int rc, alen, slen; in cifs_convert_address() local
176 slen = len - (alen + 1); in cifs_convert_address()
177 if (slen <= 0 || slen > 12) in cifs_convert_address()
179 memcpy(scope_id, pct + 1, slen); in cifs_convert_address()
180 scope_id[slen] = '\0'; in cifs_convert_address()
/openbmc/linux/drivers/scsi/
H A Dscsi_ioctl.c45 unsigned int len, slen; in ioctl_probe() local
57 slen = strlen(string); in ioctl_probe()
58 if (len > slen) in ioctl_probe()
59 len = slen + 1; in ioctl_probe()

1234567