Displaying 17 results from an estimated 17 matches for "top_size".
Did you mean:
nop_size
2006 Aug 24
5
TreeCtrl background?
...l.rb:15:in `initialize''
from TestTextCtrl.rb:24:in `on_init''
from TestTextCtrl.rb:30
Using the following (probably overly verbose) program:
require ''wx''
include Wx
class MyFrame < Frame
def initialize(title)
super(nil, -1, title)
@top_sizer = BoxSizer.new( Wx::VERTICAL )
@panel = Panel.new(self)
@panel.set_auto_layout(true)
@panel.set_sizer(@top_sizer)
@test_text_ctrl = TextCtrl.new(@panel, -1, "")
style = @test_text_ctrl.get_default_style()
style.set_background_colour(WHITE)
@test_text_ctrl.set...
2007 Jul 21
0
[1138] trunk/wxruby2/samples/html/html.rb: Place HTMLWindow in a panel so gets correct bg color on MSW
...;span class="cx">
</span><span class="cx"> def setup_panel
</span><ins>+ panel = Wx::Panel.new(self, -1)
+
</ins><span class="cx"> sizer = Wx::BoxSizer.new(Wx::VERTICAL)
</span><span class="cx"> top_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
</span><span class="cx">
</span><del>- @go_butt = Wx::StaticText.new(self, -1, ''Location:'')
</del><ins>+ @go_butt = Wx::StaticText.new(panel, -1, ''Location:'')
</ins&...
2006 Aug 24
0
Re: TextCtrl background? (was TreeCtrl background?)
...rl.rb:24:in `on_init''
> from TestTextCtrl.rb:30
>
>
> Using the following (probably overly verbose) program:
>
> require ''wx''
> include Wx
>
> class MyFrame < Frame
> def initialize(title)
> super(nil, -1, title)
> @top_sizer = BoxSizer.new( Wx::VERTICAL )
> @panel = Panel.new(self)
> @panel.set_auto_layout(true)
> @panel.set_sizer(@top_sizer)
> @test_text_ctrl = TextCtrl.new(@panel, -1, "")
>
> style = @test_text_ctrl.get_default_style()
> style.set_background_col...
2018 Feb 14
0
[PATCH 1/4] iommu: Add virtio-iommu driver
...tio_iommu_req_* structure
+ *
+ * Returns 0 if the request was successful, or an error number otherwise. No
+ * distinction is done between transport and request errors.
+ */
+static int viommu_send_req_sync(struct viommu_dev *viommu, void *top)
+{
+ int ret;
+ int nr_sent;
+ void *bottom;
+ size_t top_size, bottom_size;
+ struct virtio_iommu_req_tail *tail;
+ struct virtio_iommu_req_head *head = top;
+ struct viommu_request req = {
+ .written = 0
+ };
+
+ ret = viommu_get_req_size(viommu, head, &top_size, &bottom_size);
+ if (ret)
+ return ret;
+
+ bottom = top + top_size;
+ tail = bottom +...
2017 Nov 17
0
[RFC PATCH v2 1/5] iommu: Add virtio-iommu driver
...eturns 0 if the request was successful, or an error number otherwise. No
+ * distinction is done between transport and request errors.
+ */
+static int viommu_send_req_sync(struct viommu_dev *viommu, void *top)
+{
+ int ret;
+ int nr_sent;
+ void *bottom;
+ struct viommu_request req = {0};
+ size_t top_size, bottom_size;
+ struct virtio_iommu_req_tail *tail;
+ struct virtio_iommu_req_head *head = top;
+
+ ret = viommu_get_req_size(viommu, head, &top_size, &bottom_size);
+ if (ret)
+ return ret;
+
+ bottom = top + top_size;
+ tail = bottom + bottom_size - sizeof(*tail);
+
+ sg_init_one(&re...
2018 Mar 23
1
[PATCH 1/4] iommu: Add virtio-iommu driver
...s 0 if the request was successful, or an error number otherwise. No
> + * distinction is done between transport and request errors.
> + */
> +static int viommu_send_req_sync(struct viommu_dev *viommu, void *top)
> +{
> + int ret;
> + int nr_sent;
> + void *bottom;
> + size_t top_size, bottom_size;
> + struct virtio_iommu_req_tail *tail;
> + struct virtio_iommu_req_head *head = top;
> + struct viommu_request req = {
> + .written = 0
> + };
> +
> + ret = viommu_get_req_size(viommu, head, &top_size, &bottom_size);
> + if (ret)
> + return ret;
&...
2018 Jan 15
1
[RFC PATCH v2 1/5] iommu: Add virtio-iommu driver
...tatic int viommu_send_req_sync(struct viommu_dev *viommu, void *top)
> +{
> + int ret;
> + int nr_sent;
> + void *bottom;
> + struct viommu_request req = {0};
^
drivers/iommu/virtio-iommu.c:326:9: warning: (near initialization for
?req.top?) [-Wmissing-braces]
> + size_t top_size, bottom_size;
> + struct virtio_iommu_req_tail *tail;
> + struct virtio_iommu_req_head *head = top;
> +
> + ret = viommu_get_req_size(viommu, head, &top_size, &bottom_size);
> + if (ret)
> + return ret;
> +
> + bottom = top + top_size;
> + tail = bottom + bottom_...
2018 Feb 14
12
[PATCH 0/4] Add virtio-iommu driver
Implement the virtio-iommu driver following version 0.6 of the
specification [1]. Previous version, RFCv2, was sent in November [2].
This version addresses Eric's comments and changes the device number.
(Since last week I also tested and fixed the probe/release functions,
they now use devm properly.)
I did not include ACPI support because the next IORT specifications
isn't ready yet (even
2018 Feb 14
12
[PATCH 0/4] Add virtio-iommu driver
Implement the virtio-iommu driver following version 0.6 of the
specification [1]. Previous version, RFCv2, was sent in November [2].
This version addresses Eric's comments and changes the device number.
(Since last week I also tested and fixed the probe/release functions,
they now use devm properly.)
I did not include ACPI support because the next IORT specifications
isn't ready yet (even
2017 Nov 17
11
[RFC PATCH v2 0/5] Add virtio-iommu driver
Implement the virtio-iommu driver following version 0.5 of the
specification [1]. Previous version of this code was sent back in April
[2], implementing the first public RFC. Since then there has been lots of
progress and discussion on the specification side, and I think the driver
is in a good shape now.
The reason patches 1-3 are only RFC is that I'm waiting on feedback from
the Virtio TC
2017 Nov 17
11
[RFC PATCH v2 0/5] Add virtio-iommu driver
Implement the virtio-iommu driver following version 0.5 of the
specification [1]. Previous version of this code was sent back in April
[2], implementing the first public RFC. Since then there has been lots of
progress and discussion on the specification side, and I think the driver
is in a good shape now.
The reason patches 1-3 are only RFC is that I'm waiting on feedback from
the Virtio TC
2006 Nov 06
3
HtmlWindow and friends
Hi
Attached is a patch to add HtmlWindow and some of its friends, including
HtmlEasyPrinting. Also a sample.
I haven''t tried exposing the parsing and rendering API yet to allow
custom tags etc - I just wanted to get basic HTML and the 0.6.0
compatibility classes first. There may well be some quite easy classes left.
There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...t (nil)
+ # -1 means this frame will be supplied a default id
+ super(nil, -1, title, pos, size, style)
+ setup_menus
+ setup_panel
+ create_status_bar(2)
+ set_status_text("Welcome to wxRuby!")
+ end
+
+ def setup_panel
+ sizer = Wx::BoxSizer.new(Wx::VERTICAL)
+ top_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
+
+ @go_butt = Wx::StaticText.new(self, -1, ''Location:'')
+ top_sizer.add(@go_butt, 0, Wx::ALL, 4)
+ @addr_bar = Wx::TextCtrl.new(self, -1, ''HOME'', Wx::DEFAULT_POSITION,
+ Wx::DEFAULT...
2017 Oct 09
0
[virtio-dev] [RFC] virtio-iommu version 0.4
..._addr = cpu_to_le64(iova),
+ .size = cpu_to_le64(unmapped),
+ };
+
+ ret = viommu_send_req_sync(vdomain->viommu, req);
+ kfree(req);
if (ret)
return 0;
@@ -626,12 +647,16 @@ static size_t viommu_map_sg(struct iommu_domain *domain, unsigned long iova,
unsigned long mapped_iova;
size_t top_size, bottom_size;
struct viommu_request reqs[nents];
- struct virtio_iommu_req_map map_reqs[nents];
+ struct virtio_iommu_req_map *map_reqs;
struct viommu_domain *vdomain = to_viommu_domain(domain);
if (!vdomain->attached)
return 0;
+ map_reqs = kcalloc(nents, sizeof(*map_reqs), GFP_KERNE...
2007 Mar 15
20
C''mon ARC, stay small...
Running an mmap-intensive workload on ZFS on a X4500, Solaris 10 11/06
(update 3). All file IO is mmap(file), read memory segment, unmap, close.
Tweaked the arc size down via mdb to 1GB. I used that value because
c_min was also 1GB, and I was not sure if c_max could be larger than
c_min....Anyway, I set c_max to 1GB.
After a workload run....:
> arc::print -tad
{
. . .
ffffffffc02e29e8
2017 Aug 04
7
[RFC] virtio-iommu version 0.4
This is the continuation of my proposal for virtio-iommu, the para-
virtualized IOMMU. Here is a summary of the changes since last time [1]:
* The virtio-iommu document now resembles an actual specification. It is
split into a formal description of the virtio device, and implementation
notes. Please find sources and binaries at [2].
* Added a probe request to describe to the guest different
2017 Aug 04
7
[RFC] virtio-iommu version 0.4
This is the continuation of my proposal for virtio-iommu, the para-
virtualized IOMMU. Here is a summary of the changes since last time [1]:
* The virtio-iommu document now resembles an actual specification. It is
split into a formal description of the virtio device, and implementation
notes. Please find sources and binaries at [2].
* Added a probe request to describe to the guest different