search for: __le32_to_cpu

Displaying 20 results from an estimated 21 matches for "__le32_to_cpu".

2020 Jul 17
0
[PATCH] virtio_ring: use alloc_pages_node for NUMA-aware allocation
...attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp at intel.com> All error/warnings (new ones prefixed by >>): #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:...
2020 Sep 22
0
[PATCH 3/8] vhost scsi: alloc cmds per vq instead of session
...y add following tag as appropriate Reported-by: kernel test robot <lkp at intel.com> All warnings (new ones prefixed by >>): include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))...
2020 Aug 31
3
[PATCH v10 0/2] s390: virtio: let arch validate VIRTIO features
Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. The tests are back to virtio_finalize_features. No more argument for the architecture callback which only reports if the architecture needs guest memory access restrictions for VIRTIO. I renamed the callback to arch_has_restricted_virtio_memory_access, and the config option to
2020 Sep 07
8
[PATCH v11 0/2] s390: virtio: let arch validate VIRTIO features
Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. The tests are back to virtio_finalize_features. No more argument for the architecture callback which only reports if the architecture needs guest memory access restrictions for VIRTIO. I renamed the callback to arch_has_restricted_virtio_memory_access, the config option to
2020 Sep 07
8
[PATCH v11 0/2] s390: virtio: let arch validate VIRTIO features
Hi all, The goal of the series is to give a chance to the architecture to validate VIRTIO device features. The tests are back to virtio_finalize_features. No more argument for the architecture callback which only reports if the architecture needs guest memory access restrictions for VIRTIO. I renamed the callback to arch_has_restricted_virtio_memory_access, the config option to
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...rn 0; + + /* There is at least one feature not supported by ext3 */ + if ((sb->s_feature_incompat + & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_UNSUPPORTED)) || + (sb->s_feature_ro_compat + & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_UNSUPPORTED))) { *bytes = (unsigned long long)__le32_to_cpu(sb->s_blocks_count) - << (10 + __le32_to_cpu(sb->s_log_block_size)); + << (10 + __le32_to_cpu(sb->s_log_block_size)); + *test_fs = (sb->s_flags & + __cpu_to_le32(EXT2_FLAGS_TEST_FILESYS)) != 0; return 1; } return 0; } +static int ext4_image(const...
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
...nsigned long long *bytes) { const struct ext3_super_block *sb = (const struct ext3_super_block *)buf; @@ -209,43 +128,11 @@ static int base_ext4_image(const void *buf, unsigned long long *bytes, & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_UNSUPPORTED))) { *bytes = (unsigned long long)__le32_to_cpu(sb->s_blocks_count) << (10 + __le32_to_cpu(sb->s_log_block_size)); - *test_fs = (sb->s_flags & - __cpu_to_le32(EXT2_FLAGS_TEST_FILESYS)) != 0; return 1; } return 0; } -static int ext4_image(const void *buf, unsigned long long *bytes) -{ - int ret, test_fs, ex...
2008 Mar 03
0
[BUG][PATCH] fstype: wrong size returned for jfs
...7.orig/usr/kinit/fstype/fstype.c 2007-09-04 09:17:12.000000000 +0100 +++ klibc-1.5.7/usr/kinit/fstype/fstype.c 2008-03-03 16:57:34.522813138 +0000 @@ -205,7 +205,7 @@ const struct jfs_superblock *sb = (const struct jfs_superblock *)buf; if (!memcmp(sb->s_magic, JFS_MAGIC, 4)) { - *bytes = __le32_to_cpu(sb->s_size); + *bytes = __le64_to_cpu(sb->s_size) << __le16_to_cpu(sb->s_l2pbsize); return 1; } return 0; HTH, Stephane
2011 Mar 11
1
[PATH 9/12] VTPM mini-os: New stubdom applications
This patch ports 5 new applications to the stubdom makefile structure for inclusion into stubdom domains. While these are required for vtpm-stubdom and vtpmmgrdom they could be used with other stubdom applications. -libgmp 4.3.2 -openssl 1.0.0a -polarssl 0.12.1 -berlios tpm_emulator 0.6.1 -vtpm_manager (from the tools directory) Signed off by: Matthew Fioravante
2007 Aug 15
0
[git patch] fstype support + minor stuff
...C) + && (sb->s_feature_incompat + & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_EXTENTS) + || sb->s_feature_incompat + & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_64BIT) + || sb->s_feature_incompat + & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_MMP))) { + *bytes = (unsigned long long)__le32_to_cpu(sb->s_blocks_count) + << (10 + __le32_to_cpu(sb->s_log_block_size)); + return 1; + } + return 0; +} + static int ext3_image(const void *buf, unsigned long long *bytes) { const struct ext3_super_block *sb = @@ -302,6 +321,7 @@ static struct imagetype images[] = { {0, "ro...
2008 Jun 16
0
latest fixes
...pu_to_le32(EXT3_FEATURE_RO_COMPAT_SUPP) || sb->s_feature_incompat - & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_64BIT) + & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_UNSUPPORTED) || sb->s_feature_incompat & __cpu_to_le32(EXT4_FEATURE_INCOMPAT_MMP))) { *bytes = (unsigned long long)__le32_to_cpu(sb->s_blocks_count) commit 34a10f9b28a011e2cf42226ef260ad0d73ddc5b3 Author: David H?rdeman <david at hardeman.nu> Date: Sun Jun 8 23:43:28 2008 +0200 [klibc] mount: allow multiple fs on vfstype arg Basically it fixes the argument parsing when running something like &qu...
2017 Jul 12
0
[PATCH v12 8/8] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ
...0, NULL, vb, NULL); + virtqueue_kick_sync(vb->cmd_vq); +} + +static void cmdq_handle(struct virtio_balloon *vb) +{ + struct virtio_balloon_cmdq_hdr *hdr; + unsigned int len; + + while ((hdr = (struct virtio_balloon_cmdq_hdr *) + virtqueue_get_buf(vb->cmd_vq, &len)) != NULL) { + switch (__le32_to_cpu(hdr->cmd)) { + case VIRTIO_BALLOON_CMDQ_REPORT_STATS: + cmdq_handle_stats(vb); + break; + case VIRTIO_BALLOON_CMDQ_REPORT_UNUSED_PAGES: + cmdq_handle_unused_pages(vb); + break; + default: + dev_warn(&vb->vdev->dev, "%s: wrong cmd\n", __func__); + return; + } +...
2017 Jul 13
2
[PATCH v12 8/8] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ
...md_vq); > +} > + > +static void cmdq_handle(struct virtio_balloon *vb) > +{ > + struct virtio_balloon_cmdq_hdr *hdr; > + unsigned int len; > + > + while ((hdr = (struct virtio_balloon_cmdq_hdr *) > + virtqueue_get_buf(vb->cmd_vq, &len)) != NULL) { > + switch (__le32_to_cpu(hdr->cmd)) { > + case VIRTIO_BALLOON_CMDQ_REPORT_STATS: > + cmdq_handle_stats(vb); > + break; > + case VIRTIO_BALLOON_CMDQ_REPORT_UNUSED_PAGES: > + cmdq_handle_unused_pages(vb); > + break; > + default: > + dev_warn(&vb->vdev->dev, "%s: wrong cm...
2017 Jul 13
2
[PATCH v12 8/8] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ
...md_vq); > +} > + > +static void cmdq_handle(struct virtio_balloon *vb) > +{ > + struct virtio_balloon_cmdq_hdr *hdr; > + unsigned int len; > + > + while ((hdr = (struct virtio_balloon_cmdq_hdr *) > + virtqueue_get_buf(vb->cmd_vq, &len)) != NULL) { > + switch (__le32_to_cpu(hdr->cmd)) { > + case VIRTIO_BALLOON_CMDQ_REPORT_STATS: > + cmdq_handle_stats(vb); > + break; > + case VIRTIO_BALLOON_CMDQ_REPORT_UNUSED_PAGES: > + cmdq_handle_unused_pages(vb); > + break; > + default: > + dev_warn(&vb->vdev->dev, "%s: wrong cm...
2008 Mar 25
2
bunch of small fixes
hello hpa, nothing particular stands out, just syncing with latest Debian upload and subsequent patch emails. please review merge or nack. thanks :) maks git pull git://git.debian.org/~maks/klibc.git maks for the changes: Aaron Griffin (1): [klibc] kinit: skip md assembly if mdX exists Colin Watson (1): [klibc] mount/umount FUSE support Harald Jenny (1): [klibc] fstype:
2012 Nov 06
0
[ablock84-btrfs:btrfs-far 19/20] fs/far/far-path.c:42:2: error: implicit declaration of function 'IS_ERR'
...from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/vmalloc.h:4, from fs/far/far-mem.h:23, from fs/far/far-attr.c:21: include/uapi/linux/byteorder/big_endian.h:33:0: warning: "__le32_to_cpu" redefined [enabled by default] In file included from include/linux/byteorder/little_endian.h:4:0, from fs/far/far-attr.h:30, from fs/far/far-attr.c:19: include/uapi/linux/byteorder/little_endian.h:33:0: note: this is the location of the previous definition In...
2017 Jul 12
19
[PATCH v12 0/8] Virtio-balloon Enhancement
This patch series enhances the existing virtio-balloon with the following new features: 1) fast ballooning: transfer ballooned pages between the guest and host in chunks using sgs, instead of one by one; and 2) cmdq: a new virtqueue to send commands between the device and driver. Currently, it supports commands to report memory stats (replace the old statq mechanism) and report guest unused pages.
2017 Jul 12
19
[PATCH v12 0/8] Virtio-balloon Enhancement
This patch series enhances the existing virtio-balloon with the following new features: 1) fast ballooning: transfer ballooned pages between the guest and host in chunks using sgs, instead of one by one; and 2) cmdq: a new virtqueue to send commands between the device and driver. Currently, it supports commands to report memory stats (replace the old statq mechanism) and report guest unused pages.
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...ty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -412,15 +412,13 @@ static void read_mem32(u32 *buf, const void __iomem *mem_addr_start, switch (size_bytes) { case 2: /* 2 bytes */ buf16 = (u16 *) buf; *buf16 = __le16_to_cpu(readw(ptr)); goto out; - break; case 4: /* 4 bytes */ *(buf) = __le32_to_cpu(readl(ptr)); goto out; - break; } while (i < size_bytes) { if (size_bytes - i == 2) { /* Handle 2 bytes in the end */ @@ -458,19 +456,18 @@ static u32 write_mem32(void __iomem *mem_addr_start, const u32 *buf, switch (size_bytes) { case 2: /* 2 bytes */ buf16 = (const u16...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...ty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -412,15 +412,13 @@ static void read_mem32(u32 *buf, const void __iomem *mem_addr_start, switch (size_bytes) { case 2: /* 2 bytes */ buf16 = (u16 *) buf; *buf16 = __le16_to_cpu(readw(ptr)); goto out; - break; case 4: /* 4 bytes */ *(buf) = __le32_to_cpu(readl(ptr)); goto out; - break; } while (i < size_bytes) { if (size_bytes - i == 2) { /* Handle 2 bytes in the end */ @@ -458,19 +456,18 @@ static u32 write_mem32(void __iomem *mem_addr_start, const u32 *buf, switch (size_bytes) { case 2: /* 2 bytes */ buf16 = (const u16...