search for: writeb

Displaying 20 results from an estimated 50 matches for "writeb".

Did you mean: write
2004 Jul 27
3
[PATCH 0/10] NTLM patchset submission
Hello all, as I promised some days ago here is NTLM (aka SPA, aka MSN) authentication support patchset. It contains common code in src/lib-ntlm directory, Samba compatible NTLM password scheme and authentication mechanism itself. All patches are against 1.0-test30. Please take a look. Best regards. -- Andrey Panin | Linux and UNIX system administrator pazke at donpac.ru | PGP key:
2015 Mar 05
3
[PATCH] virtio_mmio: fix endian-ness for mmio
..._device *vdev, unsigned offset, const void *buf, unsigned len) { struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); - const u8 *ptr = buf; - int i; + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; + u8 b; + __le16 w; + __le32 l; - for (i = 0; i < len; i++) - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); + if (vm_dev->version == 1) { + const u8 *ptr = buf; + int i; + + for (i = 0; i < len; i++) + writeb(ptr[i], base + offset + i); + + return; + } + + switch (len) { + case 1: + memcpy(&b, buf, sizeof b); + writeb(b, base +...
2015 Mar 05
3
[PATCH] virtio_mmio: fix endian-ness for mmio
..._device *vdev, unsigned offset, const void *buf, unsigned len) { struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); - const u8 *ptr = buf; - int i; + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; + u8 b; + __le16 w; + __le32 l; - for (i = 0; i < len; i++) - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); + if (vm_dev->version == 1) { + const u8 *ptr = buf; + int i; + + for (i = 0; i < len; i++) + writeb(ptr[i], base + offset + i); + + return; + } + + switch (len) { + case 1: + memcpy(&b, buf, sizeof b); + writeb(b, base +...
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
...other values. Offset is parsed as a *HEX* * number. Offsetless value defaults to 0x24. 6) setgeometry - for legacy spt and heads fields in BPB 7) setbpb * A shortcut that enables set{hidden,geometry} options; * setdrive is not covered by this shortcut, due to the ambiguity. 8) writebs, filebpb * writebs * Write updated boot sector to the disk. This is performed only * if some of the BPB's fields actually changed. * * filebpb * An option that let loaded file be treated as BPB compatible. If any of * the previous set* options is specified and file...
2015 Mar 12
1
[PATCH v2 log fixed] virtio_mmio: fix endian-ness for mmio
..._device *vdev, unsigned offset, const void *buf, unsigned len) { struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); - const u8 *ptr = buf; - int i; + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; + u8 b; + __le16 w; + __le32 l; - for (i = 0; i < len; i++) - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); + if (vm_dev->version == 1) { + const u8 *ptr = buf; + int i; + + for (i = 0; i < len; i++) + writeb(ptr[i], base + offset + i); + + return; + } + + switch (len) { + case 1: + memcpy(&b, buf, sizeof b); + writeb(b, base +...
2015 Mar 12
1
[PATCH v2 log fixed] virtio_mmio: fix endian-ness for mmio
..._device *vdev, unsigned offset, const void *buf, unsigned len) { struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); - const u8 *ptr = buf; - int i; + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; + u8 b; + __le16 w; + __le32 l; - for (i = 0; i < len; i++) - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); + if (vm_dev->version == 1) { + const u8 *ptr = buf; + int i; + + for (i = 0; i < len; i++) + writeb(ptr[i], base + offset + i); + + return; + } + + switch (len) { + case 1: + memcpy(&b, buf, sizeof b); + writeb(b, base +...
2015 Mar 12
2
[PATCH] virtio_mmio: fix endian-ness for mmio
...io_device *vm_dev = to_virtio_mmio_device(vdev); > > - const u8 *ptr = buf; > > - int i; > > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; > > + u8 b; > > + __le16 w; > > + __le32 l; > > > > - for (i = 0; i < len; i++) > > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); > > + if (vm_dev->version == 1) { > > + const u8 *ptr = buf; > > + int i; > > + > > + for (i = 0; i < len; i++) > > + writeb(ptr[i], base + offset + i); > > + > > + return; > &...
2015 Mar 12
2
[PATCH] virtio_mmio: fix endian-ness for mmio
...io_device *vm_dev = to_virtio_mmio_device(vdev); > > - const u8 *ptr = buf; > > - int i; > > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; > > + u8 b; > > + __le16 w; > > + __le32 l; > > > > - for (i = 0; i < len; i++) > > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); > > + if (vm_dev->version == 1) { > > + const u8 *ptr = buf; > > + int i; > > + > > + for (i = 0; i < len; i++) > > + writeb(ptr[i], base + offset + i); > > + > > + return; > &...
2015 Mar 12
0
[PATCH] virtio_mmio: fix endian-ness for mmio
...unsigned len) > { > struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); > - const u8 *ptr = buf; > - int i; > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; > + u8 b; > + __le16 w; > + __le32 l; > > - for (i = 0; i < len; i++) > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); > + if (vm_dev->version == 1) { > + const u8 *ptr = buf; > + int i; > + > + for (i = 0; i < len; i++) > + writeb(ptr[i], base + offset + i); > + > + return; > + } > + > + switch (len) { > + c...
2015 Mar 12
0
[PATCH] virtio_mmio: fix endian-ness for mmio
...unsigned len) > { > struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); > - const u8 *ptr = buf; > - int i; > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; > + u8 b; > + __le16 w; > + __le32 l; > > - for (i = 0; i < len; i++) > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); > + if (vm_dev->version == 1) { > + const u8 *ptr = buf; > + int i; > + > + for (i = 0; i < len; i++) > + writeb(ptr[i], base + offset + i); > + > + return; > + } > + > + switch (len) { > + c...
2015 Mar 13
0
[PATCH] virtio_mmio: fix endian-ness for mmio
...evice(vdev); >> > - const u8 *ptr = buf; >> > - int i; >> > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; >> > + u8 b; >> > + __le16 w; >> > + __le32 l; >> > >> > - for (i = 0; i < len; i++) >> > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); >> > + if (vm_dev->version == 1) { >> > + const u8 *ptr = buf; >> > + int i; >> > + >> > + for (i = 0; i < len; i++) >> > + writeb(ptr[i], base + offset + i); >> > +...
2015 Mar 13
0
[PATCH] virtio_mmio: fix endian-ness for mmio
...evice(vdev); >> > - const u8 *ptr = buf; >> > - int i; >> > + void __iomem *base = vm_dev->base + VIRTIO_MMIO_CONFIG; >> > + u8 b; >> > + __le16 w; >> > + __le32 l; >> > >> > - for (i = 0; i < len; i++) >> > - writeb(ptr[i], vm_dev->base + VIRTIO_MMIO_CONFIG + offset + i); >> > + if (vm_dev->version == 1) { >> > + const u8 *ptr = buf; >> > + int i; >> > + >> > + for (i = 0; i < len; i++) >> > + writeb(ptr[i], base + offset + i); >> > +...
2013 May 24
0
Re: [Qemu-devel] use O_DIRECT to open disk images for IDE failed under xen-4.1.2 and qemu upstream
..., all > > > > > > I use O_DIRECT to open disk images for IDE, but I'm failed. After debug, I get > > the below logs: > > > [2013-05-22 23:25:46] ide: CMD=c8 > > > [2013-05-22 23:25:46] bmdma: readb 0x00 : 0x08 > > > [2013-05-22 23:25:46] bmdma: writeb 0x00 : 0x09 > > > [2013-05-22 23:25:46] bmdma_cmd_writeb: 0x00000009 > > > [2013-05-22 23:25:46] bmdma: readb 0x02 : 0x01 > > > [2013-05-22 23:25:46] bmdma: readb 0x02 : 0x01 > > > [2013-05-22 23:25:46] bmdma: readb 0x02 : 0x01 > > > [2013-05-22 23:25:46...
2009 Jul 25
2
[RFC] patch 0/4: DRM MMIO accessor cleanup
Hi, this is continuation for the MMIO accessor rewrite and cleanup. I am currently running nv28 with these patches applied, but I cannot test on PPC. Please, review and comment. If the direction is good, I'll do the same to INSTANCE_{RD,WR} as I did for nv_{rd,wr}32, and change PRAMIN from drm_local_map to simple ioremap. Can the same be done for channel specific mappings, that is
2006 Aug 18
0
[PATCH/RFC] gcc warnings of void * arithmetic
...se, uint16_t port) +static inline uint8_t vga_mm_r(char __iomem *regbase, uint16_t port) { return readb(regbase + port); } -static inline void vga_mm_w(void __iomem *regbase, uint16_t port, uint8_t val) +static inline void vga_mm_w(char __iomem *regbase, uint16_t port, uint8_t val) { writeb(val, regbase + port); } -static inline void vga_mm_w_fast(void __iomem *regbase, uint16_t port, uint8_t reg, uint8_t val) +static inline void vga_mm_w_fast(char __iomem *regbase, uint16_t port, uint8_t reg, uint8_t val) { writew(VGA_OUT16VAL(val, reg), regbase + port); } ________________...
2023 Mar 15
0
[PATCH v3 07/38] drm: handle HAS_IOPORT dependencies
.../gpu/drm/tiny/bochs.c > @@ -2,6 +2,7 @@ > > #include <linux/module.h> > #include <linux/pci.h> > +#include <asm/bug.h> > > #include <drm/drm_aperture.h> > #include <drm/drm_atomic_helper.h> > @@ -105,7 +106,11 @@ static void bochs_vga_writeb(struct bochs_device *bochs, u16 ioport, u8 val) > > writeb(val, bochs->mmio + offset); > } else { > +#ifdef HAS_IOPORT > outb(val, ioport); > +#else > + WARN_ONCE(1, "Non-MMIO bochs device needs HAS_IOPORT"); > +#endif > } > } > > @@...
2020 Aug 26
0
[RFC v4 16/20] drm/i915/dp: Extract drm_dp_get_sink_count()
...> reads returning 0..len-1 bytes. Not necessarily part of this series, but > seems silly to set a precedent to start handling that return value all > over the place. > Yeah definitely - I'm probably going to keep this code here for now, but I would like to convert drm_dp_dpcd_readb/writeb() to just return 0 on success (all bytes written, I've never once seen a situation where we got less bytes than we read - it's always all or nothing) and negative error code on failure. I'll get to that soon > BR, > Jani. > > > + > > + return DP_GET_SINK_COUNT(cou...
2013 Sep 13
10
[PATCH RFC 0/8] xen/arm: initial cubieboard2 support.
See http://www.gossamer-threads.com/lists/xen/devel/297170 for some information on how to get this going. I''ve rebased and addressed the review comments. As before several of the patches are not to be applied because they can be done better using infrastructure from Julien''s "Allow Xen to boot with a raw Device Tree" patch. They are included for completeness. With
2013 Jun 25
0
Syslinux 6.00 released
...pngrtran.o libpng/pngwtran.o libpng/pngmem.o libpng/pngerror.o libpng/pngpread.o jpeg/tinyjpeg.o jpeg/jidctflt.o jpeg/decode1.o jpeg/decode3.o jpeg/rgb24.o jpeg/bgr24.o jpeg/yuv420p.o jpeg/grey.o jpeg/rgba32.o jpeg/bgra32.o pci/cfgtype.o pci/scan.o pci/bios.o pci/readb.o pci/readw.o pci/readl.o pci/writeb.o pci/writew.o pci/writel.o sys/vesacon_write.o sys/vesaserial_write.o sys/vesa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o sys/vesa/alphatbl.o sys/vesa/screencpy.o sys/vesa/fmtpixel.o syslinux/reboot.o syslinux/keyboard.o syslinux/version.o syslinux/pxe_get_cached.o syslinux/pxe_get_nic.o...
2018 Aug 02
1
[PATCH 1/2] Add fabs() implementation
...x) + */ + + .text + .globl fabs + .type fabs, at function +fabs: + fldl 4(%esp) + fabs + ret + + .size fabs,.-fabs diff --git a/mk/lib.mk b/mk/lib.mk index 54f1fd54..d5660242 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -107,7 +107,7 @@ LIBOTHER_OBJS = \ pci/readb.o pci/readw.o pci/readl.o \ pci/writeb.o pci/writew.o pci/writel.o \ \ - sys/x86_init_fpu.o math/pow.o math/strtod.o \ + sys/x86_init_fpu.o math/pow.o math/fabs.o math/strtod.o \ syslinux/disk.o \ \ syslinux/setup_data.o -- 2.17.1