Displaying 20 results from an estimated 353 matches for "data_size".
2014 May 27
1
[PATCH V3] nvc0: implement clear_buffer
...rface.c
@@ -345,6 +345,156 @@ nvc0_clear_render_target(struct pipe_context *pipe,
}
static void
+nvc0_clear_buffer_cpu(struct pipe_context *pipe,
+ struct pipe_resource *res,
+ unsigned offset, unsigned size,
+ const void *data, int data_size)
+{
+ struct nv04_resource *buf = nv04_resource(res);
+ struct pipe_transfer *pt;
+ struct pipe_box box;
+ unsigned elements, i;
+
+ elements = size / data_size;
+
+ u_box_1d(0, size, &box);
+
+ uint8_t *map = buf->vtbl->transfer_map(pipe, res, 0, PIPE_TRANSFER_WRITE,
+...
2014 May 26
1
[PATCH V2] nvc0: implement clear_buffer
...rface.c
@@ -345,6 +345,156 @@ nvc0_clear_render_target(struct pipe_context *pipe,
}
static void
+nvc0_clear_buffer_cpu(struct pipe_context *pipe,
+ struct pipe_resource *res,
+ unsigned offset, unsigned size,
+ const void *data, int data_size)
+{
+ struct nv04_resource *buf = nv04_resource(res);
+ struct pipe_transfer *pt;
+ struct pipe_box box;
+ unsigned elements, i;
+
+ elements = size / data_size;
+
+ u_box_1d(0, size, &box);
+
+ uint8_t *tf_map = buf->vtbl->transfer_map(pipe, res,
+ 0, PIPE_TRANSF...
2014 May 26
2
Implement buffer_clear for nvc0
Hi, please review the following patch!
Thanks,
Tobias Klausmann
2020 May 11
1
[PATCH v3 23/75] x86/boot/compressed/64: Setup GHCB Based VC Exception handler
...-63,3 +175,45 @@ void __init do_vc_no_ghcb(struct pt_regs *regs, unsigned long exit_code)
> while (true)
> asm volatile("hlt\n");
> }
> +
> +static enum es_result vc_insn_string_read(struct es_em_ctxt *ctxt,
> + void *src, char *buf,
> + unsigned int data_size,
> + unsigned int count,
> + bool backwards)
> +{
> + int i, b = backwards ? -1 : 1;
> + enum es_result ret = ES_OK;
> +
> + for (i = 0; i < count; i++) {
> + void *s = src + (i * data_size * b);
> + char *d = buf + (i * data_size);
>From a previous r...
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF
perform a few consistency checks, syslinux was unable to run on it. I don't
pretend to have a thorough understanding of the PE+ headers, some bugs may
remain. :)
Celelibi (4):
efi: Fix PE header field rva_and_sizes_nr
efi: Location, size and alignment of .text section
efi: Useless relocations in PE file
efi: PE
2013 Nov 27
0
[PATCH 2/4] efi: Location, size and alignment of .text section
...per.c | 44 +++++++++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 19 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index ec77271..bd2c175 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -54,11 +54,15 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
struct coff_hdr c_hdr;
struct header hdr;
struct coff_reloc c_rel;
- __uint32_t total_sz = so_size;
+ __uint32_t total_sz = data_size;
__uint32_t dummy = 0;
__uint32_t hdr_sz;
__uint32_t reloc_start, reloc_end;
+ hdr_sz = 512;
+ total_sz += hdr_sz;
+ entry += hdr_sz;
+
memset(&...
2006 Aug 03
3
(no subject)
...g in via IMAP:
Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN,
rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21
Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105
(index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) == data_size)
Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN,
rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21
Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6
Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105
(index_mail_get_fixed_f...
2014 May 26
0
[PATCH] nvc0: Implement buffer_clear for this type of hardware
...@@ -345,6 +345,176 @@ nvc0_clear_render_target(struct pipe_context *pipe,
}
static void
+nvc0_clear_buffer_rgb32(struct pipe_context *pipe,
+ struct pipe_resource *res,
+ unsigned offset, unsigned size,
+ const void *data, int data_size)
+{
+ // FIXME: Find a way to do this with the GPU!
+
+ struct nvc0_context *nvc0 = nvc0_context(pipe);
+ struct nouveau_pushbuf *push = nvc0->base.pushbuf;
+ struct nv04_resource *buf = nv04_resource(res);
+
+ struct pipe_transfer *pt;
+ struct pipe_box pb;
+ unsigned elements, i;...
2004 Nov 19
0
[PATCH] add initial response support for NTLM and RPA
...000 +0300
+++ dovecot-1.0-test52/src/auth/mech-ntlm.c 2004-11-14 00:07:03.000000000 +0300
@@ -203,12 +208,14 @@ mech_ntlm_auth_continue(struct auth_requ
}
static void
-mech_ntlm_auth_initial(struct auth_request *auth_request,
- const unsigned char *data __attr_unused__,
- size_t data_size __attr_unused__,
+mech_ntlm_auth_initial(struct auth_request *request,
+ const unsigned char *data, size_t data_size,
mech_callback_t *callback)
{
- callback(auth_request, AUTH_CLIENT_RESULT_CONTINUE, NULL, 0);
+ if (data_size == 0)
+ callback(request, AUTH_CLIENT_RESULT_CONTINU...
2009 Oct 15
3
master:Error @2.0 TLS login, "Too large auth data_size sent"
fyi,
hg log | head -n 7 | grep changeset
changeset: 10074:1d2d55d9779e
@ LOGIN via Tbird ...
Oct 15 11:22:35 master: Error: service(imap-login): Too large auth
data_size sent
Oct 15 11:22:35 imap-login: Info: Disconnected: Shutting down (auth
failed, 1 attempts): user=<blakers at mx.pgnetwork.net>, method=PLAIN,
rip=192.168.1.4, lip=192.168.1.14, TLS
2010 Apr 07
1
Problem with `profiles`
...ntu 9.10, but x86.
From everything I've read and found online, `profiles` is supposed to work for
XP with no problems. When I attempt to do a SID change on NTUSER.DAT, I get
this:
semirhage:~# profiles NTUSER.DAT
ndr_pull_error(11): ndr_pull_relative_ptr1 rel_offset(716800) > ndr-
>data_size(4096)
ndr_pull_security_descriptor failed: NDR_ERR_BUFSIZE
prs_grow: Buffer overflow - unable to expand buffer by 36 bytes.
ndr_pull_error(11): ndr_pull_relative_ptr1 rel_offset(716800) > ndr-
>data_size(4096)
ndr_pull_security_descriptor failed: NDR_ERR_BUFSIZE
prs_grow: Buffer overflow - un...
2006 Oct 15
1
Dovecot rc9 error
...nt.
Oct 15 10:55:28 bajor dovecot: imap-login: Login: user=<rachele>,
method=plain, rip=192.168.1.1, lip=192.168.1.254
Oct 15 10:55:28 bajor dovecot: IMAP(rachele): file
mail-cache-transaction.c: line 709 (mail_cache_add): assertion failed:
(fixed_size == (unsigned int)-1 || fixed_size == data_size)
Oct 15 10:55:28 bajor dovecot: child 27632 (imap) killed with signal 6
Oct 15 10:55:28 bajor dovecot: imap-login: Login: user=<rachele>,
method=plain, rip=192.168.1.1, lip=192.168.1.254
Oct 15 10:55:29 bajor dovecot: IMAP(rachele): file
mail-cache-transaction.c: line 709 (mail_cache_add):...
2004 Oct 21
3
RE: build errors on cvs
Building on Solaris 8 with Sun's compiler, I get the following error.
Would you fix this? Using gcc is not really a good option for me.
/opt/forte8/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I../..
-I/opt/csw/inclu\de -fast -xarch=v8 -I/opt/csw/include -c buffer.c
"buffer.c", line 159: void function cannot return value
"buffer.c", line 205: void function cannot return
2006 Aug 03
2
(no subject)
...dovecot: imap-login: Login: user=<scottz>, method=PLAIN,
>> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21
>> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail.c: line 105
>> (index_mail_get_fixed_field): assertion failed: (buffer_get_used_size(buf) ==
>> data_size)
>> Aug 3 15:01:22 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN,
>> rip=::ffff:192.168.1.183, lip=::ffff:192.168.1.21
>> Aug 3 15:01:22 lisa dovecot: child 3208 (imap) killed with signal 6
>> Aug 3 15:01:22 lisa dovecot: IMAP(scottz): file index-mail...
2006 Oct 15
0
Dovecot rc9 error (More information)
...count.
Oct 15 10:55:28 bajor dovecot: imap-login: Login: user=<rachele>,
method=plain, rip=192.168.1.1, lip=192.168.1.254
Oct 15 10:55:28 bajor dovecot: IMAP(rachele): file
mail-cache-transaction.c: line 709 (mail_cache_add): assertion failed:
(fixed_size == (unsigned int)-1 || fixed_size == data_size)
Oct 15 10:55:28 bajor dovecot: child 27632 (imap) killed with signal 6
Oct 15 10:55:28 bajor dovecot: imap-login: Login: user=<rachele>,
method=plain, rip=192.168.1.1, lip=192.168.1.254
Oct 15 10:55:29 bajor dovecot: IMAP(rachele): file
mail-cache-transaction.c: line 709 (mail_cache_add): as...
2019 Sep 05
2
[PATCH v2] drm/virtio: Use vmalloc for command buffer allocations.
...;
- struct scatterlist *sgs[3], vcmd, vout, vresp;
+ struct scatterlist *sgs[3], vcmd, vresp;
int outcnt = 0, incnt = 0;
int ret;
@@ -268,9 +325,8 @@ static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
sgs[outcnt + incnt] = &vcmd;
outcnt++;
- if (vbuf->data_size) {
- sg_init_one(&vout, vbuf->data_buf, vbuf->data_size);
- sgs[outcnt + incnt] = &vout;
+ if (vout) {
+ sgs[outcnt + incnt] = vout;
outcnt++;
}
@@ -299,24 +355,30 @@ static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
return ret;
}
-static i...
2019 Sep 05
2
[PATCH v2] drm/virtio: Use vmalloc for command buffer allocations.
...;
- struct scatterlist *sgs[3], vcmd, vout, vresp;
+ struct scatterlist *sgs[3], vcmd, vresp;
int outcnt = 0, incnt = 0;
int ret;
@@ -268,9 +325,8 @@ static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
sgs[outcnt + incnt] = &vcmd;
outcnt++;
- if (vbuf->data_size) {
- sg_init_one(&vout, vbuf->data_buf, vbuf->data_size);
- sgs[outcnt + incnt] = &vout;
+ if (vout) {
+ sgs[outcnt + incnt] = vout;
outcnt++;
}
@@ -299,24 +355,30 @@ static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
return ret;
}
-static i...
2005 Dec 15
1
Another Assertion Failure in Current CVS Version
...: 23648 imap(username): mbox sync:
UID inserted in the middle of mailbox /mailhome/new/s/h/username/DONE
(1591 > 19, seq=19, idx_msgs=1593)
dovecot: Dec 14 15:10:33 Error: 23648 imap(username): file
mbox-sync-rewrite.c: line 106 (mbox_sync_headers_add_space): assertion
failed: (start_pos < data_size)
dovecot: Dec 14 15:10:40 Error: child 23648 (imap) killed with signal 6
(gdb) bt full
#0 0xffffe410 in ?? ()
No symbol table info available.
#1 0xbffff348 in ?? ()
No symbol table info available.
#2 0x00000006 in ?? ()
No symbol table info available.
#3 0x00005c60 in ?? ()
No symbol table in...
2013 Dec 01
0
[PATCH v2 3/4] efi: Useless relocations in PE file
...gt;
---
efi/wrapper.c | 28 +++-------------------------
1 file changed, 3 insertions(+), 25 deletions(-)
diff --git a/efi/wrapper.c b/efi/wrapper.c
index 8b553f8..4839e52 100644
--- a/efi/wrapper.c
+++ b/efi/wrapper.c
@@ -48,14 +48,12 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size,
{
struct optional_hdr o_hdr;
struct optional_hdr_pe32p o_hdr_pe32p;
- struct section t_sec, r_sec;
+ struct section t_sec;
struct extra_hdr e_hdr;
struct extra_hdr_pe32p e_hdr_pe32p;
struct coff_hdr c_hdr;
struct header hdr;
- struct coff_reloc c_rel;
__uint32_t total_sz = data_size...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...(rpa_oid) > end) {
+ *error = "not enough space for object id";
+ return NULL;
+ }
+
+ if (memcmp(p, rpa_oid, sizeof(rpa_oid))) {
+ *error = "invalid object id";
+ return NULL;
+ }
+
+ return p + sizeof(rpa_oid);
+}
+
+static int
+rpa_parse_token1(const void *data, size_t data_size, char **error)
+{
+ const unsigned char *end = ((unsigned char *) data) + data_size;
+ const unsigned char *p;
+ unsigned int version_lo, version_hi;
+
+ p = rpa_check_message(data, end, error);
+ if (!p)
+ return FALSE;
+
+ if (p + 6 > end) {
+ *error = "message too short";
+ retur...