search for: header_length

Displaying 12 results from an estimated 12 matches for "header_length".

2012 Oct 18
3
ask a question about ERST
.../erst.c Tue Aug 09 18:06:43 2011 +0100 @@ -715,13 +715,7 @@ static int __init erst_check_table(struct acpi_table_erst *erst_tab) { - /* - * Some old BIOSes include the ACPI standard header in the ERST header - * length; new BIOSes do not. Our check allows for both methods. - */ - if ((erst_tab->header_length != - (sizeof(struct acpi_table_erst) - sizeof(erst_tab->header))) - && (erst_tab->header_length != sizeof(struct acpi_table_erst))) + if (erst_tab->header_length != sizeof(struct acpi_table_erst)) return -EINVAL; if (erst_tab->header.length < sizeof(struct acpi_table_erst)) r...
2004 Dec 20
1
HP-UX/AIX sendfile patches.
...fi ;; + *aix*) + AC_CACHE_CHECK([for AIX send_file support],samba_cv_HAVE_SENDFILE,[ + AC_TRY_LINK([\ + #include <sys/socket.h>], + [\ + int fromfd, tofd; + size_t total=0; + struct sf_parms hdtrl; + ssize_t nwritten; + off64_t offset; + + hdtrl.header_data = 0; + hdtrl.header_length = 0; + hdtrl.file_descriptor = fromfd; + hdtrl.file_offset = 0; + hdtrl.file_bytes = 0; + hdtrl.trailer_data = 0; + hdtrl.trailer_length = 0; + + nwritten = send_file(&tofd, &hdtrl, 0); + ], + samba_cv_HAVE_SENDFILE=yes,samba_cv_HAVE_SENDFILE=no)]) + if test x"$samba_cv_HAVE_SE...
2013 Sep 12
3
[PATCH 1/1 V3] x86/AMD-Vi: Add additional check for invalid special->handle
...4x:%02x:%02x.%u)\n", + apic, handle, seg, PCI_BUS(bdf), + PCI_SLOT(bdf), PCI_FUNC(bdf)); + ret = 1; + } + + return ret; +} + static u16 __init parse_ivhd_device_special( const struct acpi_ivrs_device8c *special, u16 seg, u16 header_length, u16 block_length, struct amd_iommu *iommu) @@ -698,16 +725,18 @@ static u16 __init parse_ivhd_device_special( return 0; } - AMD_IOMMU_DEBUG("IVHD Special: %04x:%02x:%02x.%u variety %#x handle %#x\n", + AMD_IOMMU_DEBUG("IVHD Special: %04x:%02x:%02x.%u variety %#...
2007 Apr 20
0
8 commits - libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_root_sprite.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c NEWS test/parse.c
...t a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index f8a34b1..8d172a9 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -238,11 +238,11 @@ swfdec_swf_decoder_parse (SwfdecDecoder break; case SWFDEC_STATE_PARSETAG: { - int header_length; - int x; + guint header_length; + guint x; SwfdecTagFunc *func; - int tag; - int tag_len; + guint tag; + guint tag_len; if (!swfdec_swf_decoder_deflate_all (s)) return SWFDEC_STATUS_ERROR; diff-tree 826b8d99b1b4fd4d7c2571def8bc10c4a6539c17 (from...
2010 Aug 20
0
[PATCH 1/2] Implement APEI ERST feature to Xen
...rc = __erst_clear_from_nvram(record_id); + else + rc = __erst_clear_from_storage(record_id); + spin_unlock_irqrestore(&erst_lock, flags); + + return rc; +} + +static int erst_check_table(struct acpi_table_erst *erst_tab) +{ + if (erst_tab->header_length != sizeof(struct acpi_table_erst)) + return -EINVAL; + if (erst_tab->header.length < sizeof(struct acpi_table_erst)) + return -EINVAL; + if (erst_tab->entries != + (erst_tab->header.length - sizeof(struct acpi_table_erst)) / +...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...der * s, guint tag); G_END_DECLS diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index 33fb719..77a1f66 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -282,7 +282,7 @@ swfdec_swf_decoder_parse (SwfdecDecoder { guint header_length; guint x; - SwfdecTagFunc *func; + SwfdecTagFunc func; guint tag; guint tag_len; @@ -341,7 +341,7 @@ swfdec_swf_decoder_parse (SwfdecDecoder tag, swfdec_swf_decoder_get_tag_name (tag)); } else if (s->main_sprite->parse_frame < s->main_sprit...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...b.end = buffer->data + buffer->length; + swfdec_bits_init (&s->b, buffer); swfdec_bits_get_u16 (&s->b); tag_len = swfdec_bits_get_u32 (&s->b); @@ -313,21 +301,11 @@ swfdec_swf_decoder_parse (SwfdecDecoder buffer = swfdec_buffer_queue_pull (s->input_queue, header_length); swfdec_buffer_unref (buffer); - if (tag_len > 0) { + if (tag_len > 0) buffer = swfdec_buffer_queue_pull (s->input_queue, tag_len); - s->b.buffer = buffer; - s->b.ptr = buffer->data; - s->b.idx = 0; - s->b.end = buffer->data + buffer->length; - en...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...coder_parent_class)->dispose (object); } @@ -96,14 +97,12 @@ swfdec_flv_decoder_dispose (GObject *object) static SwfdecStatus swfdec_flv_decoder_parse_header (SwfdecFlvDecoder *flv) { - SwfdecDecoder *dec = SWFDEC_DECODER (flv); SwfdecBuffer *buffer; SwfdecBits bits; guint version, header_length; gboolean has_audio, has_video; - /* NB: we're still reading from the original queue, since deflating is not initialized yet */ - buffer = swfdec_buffer_queue_peek (dec->queue, 9); + buffer = swfdec_buffer_queue_peek (flv->queue, 9); if (buffer == NULL) return SWFDEC_STATU...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...n SWFDEC_STATUS_INIT; } @@ -292,7 +294,8 @@ swfdec_swf_decoder_parse (SwfdecDecoder *dec) return SWFDEC_STATUS_ERROR; ret = swf_parse_header2 (s); break; - case SWFDEC_STATE_PARSETAG: + case SWFDEC_STATE_PARSE_FIRST_TAG: + case SWFDEC_STATE_PARSE_TAG: { guint header_length; guint x; @@ -336,6 +339,10 @@ swfdec_swf_decoder_parse (SwfdecDecoder *dec) func = swfdec_swf_decoder_get_tag_func (tag); if (tag == 0) { s->state = SWFDEC_STATE_EOF; + } else if ((swfdec_swf_decoder_get_tag_flag (tag) & SWFDEC_TAG_FIRST_ONLY) + && s-&...
2013 Jul 22
69
[xen-unstable] Commit 2ca9fbd739b8a72b16dd790d0fff7b75f5488fb8 AMD IOMMU: allocate IRTE entries instead of using a static mapping, makes dom0 boot process stall several times.
Hi Jan, After commit 2ca9fbd739b8a72b16dd790d0fff7b75f5488fb8 AMD IOMMU: allocate IRTE entries instead of using a static mapping, booting dom0 stalls several times. Sometimes this results in RCU stall warnings from the dom0 kernel, hitting the "any" key, on normal or serial console, makes the boot continue for a while but it stalls several times. (It also stalls on shutdown BTW) I have
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...b.end = buffer->data + buffer->length; + swfdec_bits_init (&s->b, buffer); swfdec_bits_get_u16 (&s->b); tag_len = swfdec_bits_get_u32 (&s->b); @@ -313,21 +301,11 @@ swfdec_swf_decoder_parse (SwfdecDecoder buffer = swfdec_buffer_queue_pull (s->input_queue, header_length); swfdec_buffer_unref (buffer); - if (tag_len > 0) { + if (tag_len > 0) buffer = swfdec_buffer_queue_pull (s->input_queue, tag_len); - s->b.buffer = buffer; - s->b.ptr = buffer->data; - s->b.idx = 0; - s->b.end = buffer->data + buffer->length; - en...