Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 221) sorted by relevance

123456789

/dragonfly/contrib/bmake/mk/
HDmeta2deps.py198 def __init__(self, name, conf={}): argument
239 self.name = name
240 self.debug = conf.get('debug', 0)
241 self.debug_out = conf.get('debug_out', sys.stderr)
243 self.machine = conf.get('MACHINE', '')
244 self.machine_arch = conf.get('MACHINE_ARCH', '')
245 self.target_spec = conf.get('TARGET_SPEC', self.machine)
246 self.exts = target_spec_exts(self.target_spec)
247 self.curdir = conf.get('CURDIR')
248 self.reldir = conf.get('RELDIR')
[all …]
/dragonfly/sys/libprop/
HDprop_rb.c113 struct rb_node *parent, *tmp, *self = RB_ITEMTONODE(rbto, object); in _prop_rb_tree_insert_node() local
169 RB_NODETOITEM(rbto, prev), RB_NODETOITEM(rbto, self)) < 0); in _prop_rb_tree_insert_node()
171 RB_NODETOITEM(rbto, self), RB_NODETOITEM(rbto, next)) < 0); in _prop_rb_tree_insert_node()
178 RB_SET_FATHER(self, parent); in _prop_rb_tree_insert_node()
179 RB_SET_POSITION(self, position); in _prop_rb_tree_insert_node()
181 RB_MARK_BLACK(self); /* root is always black */ in _prop_rb_tree_insert_node()
183 rbt->rbt_minmax[RB_DIR_LEFT] = self; in _prop_rb_tree_insert_node()
184 rbt->rbt_minmax[RB_DIR_RIGHT] = self; in _prop_rb_tree_insert_node()
196 rbt->rbt_minmax[position] = self; in _prop_rb_tree_insert_node()
202 RB_MARK_RED(self); in _prop_rb_tree_insert_node()
[all …]
/dragonfly/contrib/dhcpcd/compat/
HDrb.c191 struct rb_node *parent, *tmp, *self = RB_ITEMTONODE(rbto, object); in rb_tree_insert_node() local
247 RB_NODETOITEM(rbto, prev), RB_NODETOITEM(rbto, self)) < 0); in rb_tree_insert_node()
249 RB_NODETOITEM(rbto, self), RB_NODETOITEM(rbto, next)) < 0); in rb_tree_insert_node()
256 RB_SET_FATHER(self, parent); in rb_tree_insert_node()
257 RB_SET_POSITION(self, position); in rb_tree_insert_node()
259 RB_MARK_BLACK(self); /* root is always black */ in rb_tree_insert_node()
261 rbt->rbt_minmax[RB_DIR_LEFT] = self; in rb_tree_insert_node()
262 rbt->rbt_minmax[RB_DIR_RIGHT] = self; in rb_tree_insert_node()
274 rbt->rbt_minmax[position] = self; in rb_tree_insert_node()
280 RB_MARK_RED(self); in rb_tree_insert_node()
[all …]
/dragonfly/contrib/gdb-7/gdb/
HDgdb-gdb.py38 def __init__(self, name, value): argument
39 self.name = name
40 self.value = value
41 self.short_name = name.replace("TYPE_FLAG_", '')
42 if self.short_name == name:
43 self.short_name = name.replace("TYPE_INSTANCE_FLAG_", '')
44 def __cmp__(self, other): argument
46 return self.value.__cmp__(other.value)
63 def __init__(self, val): argument
64 self.val = val
[all …]
/dragonfly/sys/bus/u4b/controller/
HDehci_pci.c98 ehci_pci_match(device_t self) in ehci_pci_match() argument
100 uint32_t device_id = pci_get_devid(self); in ehci_pci_match()
208 if ((pci_get_class(self) == PCIC_SERIALBUS) in ehci_pci_match()
209 && (pci_get_subclass(self) == PCIS_SERIALBUS_USB) in ehci_pci_match()
210 && (pci_get_progif(self) == PCI_INTERFACE_EHCI)) { in ehci_pci_match()
217 ehci_pci_probe(device_t self) in ehci_pci_probe() argument
219 const char *desc = ehci_pci_match(self); in ehci_pci_probe()
222 device_set_desc(self, desc); in ehci_pci_probe()
230 ehci_pci_ati_quirk(device_t self, uint8_t is_sb700) in ehci_pci_ati_quirk() argument
249 val = pci_read_config(self, 0x53, 1); in ehci_pci_ati_quirk()
[all …]
HDohci_pci.c93 ohci_pci_take_controller(device_t self) in ohci_pci_take_controller() argument
98 if (pci_get_powerstate(self) != PCI_POWERSTATE_D0) { in ohci_pci_take_controller()
99 device_printf(self, "chip is in D%d mode " in ohci_pci_take_controller()
100 "-- setting to D0\n", pci_get_powerstate(self)); in ohci_pci_take_controller()
101 reg = pci_read_config(self, PCI_CBMEM, 4); in ohci_pci_take_controller()
102 int_line = pci_read_config(self, PCIR_INTLINE, 4); in ohci_pci_take_controller()
103 pci_set_powerstate(self, PCI_POWERSTATE_D0); in ohci_pci_take_controller()
104 pci_write_config(self, PCI_CBMEM, reg, 4); in ohci_pci_take_controller()
105 pci_write_config(self, PCIR_INTLINE, int_line, 4); in ohci_pci_take_controller()
111 ohci_pci_match(device_t self) in ohci_pci_match() argument
[all …]
HDuhci_pci.c84 uhci_pci_take_controller(device_t self) in uhci_pci_take_controller() argument
86 pci_write_config(self, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN, 2); in uhci_pci_take_controller()
92 uhci_pci_match(device_t self) in uhci_pci_match() argument
94 uint32_t device_id = pci_get_devid(self); in uhci_pci_match()
226 if ((pci_get_class(self) == PCIC_SERIALBUS) && in uhci_pci_match()
227 (pci_get_subclass(self) == PCIS_SERIALBUS_USB) && in uhci_pci_match()
228 (pci_get_progif(self) == PCI_INTERFACE_UHCI)) { in uhci_pci_match()
235 uhci_pci_probe(device_t self) in uhci_pci_probe() argument
237 const char *desc = uhci_pci_match(self); in uhci_pci_probe()
240 device_set_desc(self, desc); in uhci_pci_probe()
[all …]
HDxhci_pci.c89 xhci_pci_match(device_t self) in xhci_pci_match() argument
91 uint32_t device_id = pci_get_devid(self); in xhci_pci_match()
127 if ((pci_get_class(self) == PCIC_SERIALBUS) in xhci_pci_match()
128 && (pci_get_subclass(self) == PCIS_SERIALBUS_USB) in xhci_pci_match()
129 && (pci_get_progif(self) == PCIP_SERIALBUS_USB_XHCI)) { in xhci_pci_match()
136 xhci_pci_probe(device_t self) in xhci_pci_probe() argument
138 const char *desc = xhci_pci_match(self); in xhci_pci_probe()
141 device_set_desc(self, desc); in xhci_pci_probe()
163 xhci_pci_port_route(device_t self, uint32_t set, uint32_t clear) in xhci_pci_port_route() argument
169 temp = pci_read_config(self, PCI_XHCI_INTEL_USB3_PSSEN, 4) | in xhci_pci_port_route()
[all …]
/dragonfly/contrib/gdb-7/gdb/python/lib/gdb/
HDprinting.py51 def __init__(self, name, subprinters=None): argument
52 self.name = name
53 self.subprinters = subprinters
54 self.enabled = True
56 def __call__(self, val): argument
71 def __init__(self, name): argument
72 self.name = name
73 self.enabled = True
165 def __init__(self, name, regexp, gen_printer): argument
166 super(RegexpCollectionPrettyPrinter.RegexpSubprinter, self).__init__(name)
[all …]
/dragonfly/contrib/libarchive/libarchive/
HDarchive_read_support_filter_xz.c204 xz_bidder_bid(struct archive_read_filter_bidder *self, in xz_bidder_bid() argument
210 (void)self; /* UNUSED */ in xz_bidder_bid()
238 lzma_bidder_bid(struct archive_read_filter_bidder *self, in lzma_bidder_bid() argument
247 (void)self; /* UNUSED */ in lzma_bidder_bid()
379 lzip_bidder_bid(struct archive_read_filter_bidder *self, in lzip_bidder_bid() argument
383 (void)self; /* UNUSED */ in lzip_bidder_bid()
393 xz_bidder_init(struct archive_read_filter *self) in xz_bidder_init() argument
395 self->code = ARCHIVE_FILTER_XZ; in xz_bidder_init()
396 self->name = "xz"; in xz_bidder_init()
397 return (xz_lzma_bidder_init(self)); in xz_bidder_init()
[all …]
HDarchive_rb.c158 struct archive_rb_node *self) in __archive_rb_tree_insert_node() argument
181 const signed int diff = (*compare_nodes)(tmp, self); in __archive_rb_tree_insert_node()
196 RB_SET_FATHER(self, parent); in __archive_rb_tree_insert_node()
197 RB_SET_POSITION(self, position); in __archive_rb_tree_insert_node()
199 RB_MARK_BLACK(self); /* root is always black */ in __archive_rb_tree_insert_node()
206 RB_MARK_RED(self); in __archive_rb_tree_insert_node()
209 self->rb_left = parent->rb_nodes[position]; in __archive_rb_tree_insert_node()
210 self->rb_right = parent->rb_nodes[position]; in __archive_rb_tree_insert_node()
211 parent->rb_nodes[position] = self; in __archive_rb_tree_insert_node()
217 __archive_rb_tree_insert_rebalance(rbt, self); in __archive_rb_tree_insert_node()
[all …]
HDarchive_read_support_filter_lzop.c134 lzop_bidder_bid(struct archive_read_filter_bidder *self, in lzop_bidder_bid() argument
140 (void)self; /* UNUSED */ in lzop_bidder_bid()
159 lzop_bidder_init(struct archive_read_filter *self) in lzop_bidder_init() argument
163 r = __archive_read_program(self, "lzop -d"); in lzop_bidder_init()
167 self->code = ARCHIVE_FILTER_LZOP; in lzop_bidder_init()
168 self->name = "lzop"; in lzop_bidder_init()
183 lzop_bidder_init(struct archive_read_filter *self) in lzop_bidder_init() argument
187 self->code = ARCHIVE_FILTER_LZOP; in lzop_bidder_init()
188 self->name = "lzop"; in lzop_bidder_init()
192 archive_set_error(&self->archive->archive, ENOMEM, in lzop_bidder_init()
[all …]
HDarchive_read_support_filter_lz4.c141 lz4_reader_bid(struct archive_read_filter_bidder *self, in lz4_reader_bid() argument
149 (void)self; /* UNUSED */ in lz4_reader_bid()
195 lz4_reader_init(struct archive_read_filter *self) in lz4_reader_init() argument
199 r = __archive_read_program(self, "lz4 -d -q"); in lz4_reader_init()
203 self->code = ARCHIVE_FILTER_LZ4; in lz4_reader_init()
204 self->name = "lz4"; in lz4_reader_init()
221 lz4_reader_init(struct archive_read_filter *self) in lz4_reader_init() argument
225 self->code = ARCHIVE_FILTER_LZ4; in lz4_reader_init()
226 self->name = "lz4"; in lz4_reader_init()
230 archive_set_error(&self->archive->archive, ENOMEM, in lz4_reader_init()
[all …]
HDarchive_read_support_filter_gzip.c238 gzip_bidder_bid(struct archive_read_filter_bidder *self, in gzip_bidder_bid() argument
243 (void)self; /* UNUSED */ in gzip_bidder_bid()
258 gzip_bidder_init(struct archive_read_filter *self) in gzip_bidder_init() argument
262 r = __archive_read_program(self, "gzip -d"); in gzip_bidder_init()
266 self->code = ARCHIVE_FILTER_GZIP; in gzip_bidder_init()
267 self->name = "gzip"; in gzip_bidder_init()
274 gzip_read_header(struct archive_read_filter *self, struct archive_entry *entry) in gzip_read_header() argument
278 state = (struct private_data *)self->data; in gzip_read_header()
304 gzip_bidder_init(struct archive_read_filter *self) in gzip_bidder_init() argument
310 self->code = ARCHIVE_FILTER_GZIP; in gzip_bidder_init()
[all …]
HDarchive_read_support_filter_bzip2.c115 bzip2_reader_bid(struct archive_read_filter_bidder *self, struct archive_read_filter *filter) in bzip2_reader_bid() argument
121 (void)self; /* UNUSED */ in bzip2_reader_bid()
160 bzip2_reader_init(struct archive_read_filter *self) in bzip2_reader_init() argument
164 r = __archive_read_program(self, "bzip2 -d"); in bzip2_reader_init()
168 self->code = ARCHIVE_FILTER_BZIP2; in bzip2_reader_init()
169 self->name = "bzip2"; in bzip2_reader_init()
186 bzip2_reader_init(struct archive_read_filter *self) in bzip2_reader_init() argument
192 self->code = ARCHIVE_FILTER_BZIP2; in bzip2_reader_init()
193 self->name = "bzip2"; in bzip2_reader_init()
198 archive_set_error(&self->archive->archive, ENOMEM, in bzip2_reader_init()
[all …]
/dragonfly/contrib/gdb-7/gdb/python/
HDpy-objfile.c48 objfpy_get_filename (PyObject *self, void *closure) in objfpy_get_filename() argument
50 objfile_object *obj = (objfile_object *) self; in objfpy_get_filename()
61 objfile_object *self = (objfile_object *) o; in objfpy_dealloc() local
63 Py_XDECREF (self->printers); in objfpy_dealloc()
64 Py_XDECREF (self->type_printers); in objfpy_dealloc()
65 Py_TYPE (self)->tp_free (self); in objfpy_dealloc()
71 objfile_object *self = (objfile_object *) type->tp_alloc (type, 0); in objfpy_new() local
73 if (self) in objfpy_new()
75 self->objfile = NULL; in objfpy_new()
77 self->printers = PyList_New (0); in objfpy_new()
[all …]
HDpy-value.c81 value_object *self = (value_object *) obj; in valpy_dealloc() local
84 if (self->prev) in valpy_dealloc()
85 self->prev->next = self->next; in valpy_dealloc()
88 gdb_assert (values_in_python == self); in valpy_dealloc()
89 values_in_python = self->next; in valpy_dealloc()
91 if (self->next) in valpy_dealloc()
92 self->next->prev = self->prev; in valpy_dealloc()
94 value_free (self->value); in valpy_dealloc()
96 if (self->address) in valpy_dealloc()
99 Py_DECREF (self->address); in valpy_dealloc()
[all …]
HDpy-progspace.c51 pspy_get_filename (PyObject *self, void *closure) in pspy_get_filename() argument
53 pspace_object *obj = (pspace_object *) self; in pspy_get_filename()
67 pspy_dealloc (PyObject *self) in pspy_dealloc() argument
69 pspace_object *ps_self = (pspace_object *) self; in pspy_dealloc()
73 Py_TYPE (self)->tp_free (self); in pspy_dealloc()
79 pspace_object *self = (pspace_object *) type->tp_alloc (type, 0); in pspy_new() local
81 if (self) in pspy_new()
83 self->pspace = NULL; in pspy_new()
85 self->printers = PyList_New (0); in pspy_new()
86 if (!self->printers) in pspy_new()
[all …]
HDpy-param.c111 parmpy_object *self = (parmpy_object *) obj; in get_attr() local
113 return gdbpy_parameter_value (self->type, &self->value); in get_attr()
122 set_parameter_value (parmpy_object *self, PyObject *value) in set_parameter_value() argument
126 switch (self->type) in set_parameter_value()
133 && (self->type == var_filename in set_parameter_value()
143 xfree (self->value.stringval); in set_parameter_value()
144 if (self->type == var_optional_filename) in set_parameter_value()
145 self->value.stringval = xstrdup (""); in set_parameter_value()
147 self->value.stringval = NULL; in set_parameter_value()
157 xfree (self->value.stringval); in set_parameter_value()
[all …]
HDpy-block.c85 blpy_iter (PyObject *self) in blpy_iter() argument
90 BLPY_REQUIRE_VALID (self, block); in blpy_iter()
99 Py_INCREF (self); in blpy_iter()
100 block_iter_obj->source = (block_object *) self; in blpy_iter()
106 blpy_get_start (PyObject *self, void *closure) in blpy_get_start() argument
110 BLPY_REQUIRE_VALID (self, block); in blpy_get_start()
116 blpy_get_end (PyObject *self, void *closure) in blpy_get_end() argument
120 BLPY_REQUIRE_VALID (self, block); in blpy_get_end()
126 blpy_get_function (PyObject *self, void *closure) in blpy_get_function() argument
131 BLPY_REQUIRE_VALID (self, block); in blpy_get_function()
[all …]
/dragonfly/contrib/gdb-7/gdb/python/lib/gdb/command/
HDtype_printers.py28 def __init__ (self): argument
29 super(InfoTypePrinter, self).__init__("info type-printers",
32 def list_type_printers(self, type_printers): argument
45 def invoke(self, arg, from_tty): argument
51 self.list_type_printers(objfile.type_printers)
55 self.list_type_printers(gdb.current_progspace().type_printers)
59 self.list_type_printers(gdb.type_printers)
62 def __init__(self, setting, name): argument
63 super(_EnableOrDisableCommand, self).__init__(name, gdb.COMMAND_DATA)
64 self.setting = setting
[all …]
/dragonfly/sys/bus/firewire/
HDfwohci_pci.c64 static int fwohci_pci_attach(device_t self);
65 static int fwohci_pci_detach(device_t self);
200 fwohci_pci_init(device_t self) in fwohci_pci_init() argument
219 cmd = pci_read_config(self, PCIR_COMMAND, 2); in fwohci_pci_init()
222 pci_write_config(self, PCIR_COMMAND, cmd, 2); in fwohci_pci_init()
224 latency = olatency = pci_read_config(self, PCIR_LATTIMER, 1); in fwohci_pci_init()
228 pci_write_config(self, PCIR_LATTIMER, latency, 1); in fwohci_pci_init()
231 cache_line = ocache_line = pci_read_config(self, PCIR_CACHELNSZ, 1); in fwohci_pci_init()
235 pci_write_config(self, PCIR_CACHELNSZ, cache_line, 1); in fwohci_pci_init()
239 device_printf(self, "latency timer %d -> %d.\n", in fwohci_pci_init()
[all …]
/dragonfly/contrib/binutils-2.27/gprof/
HDutils.c43 print_name_only (Sym *self) in print_name_only() argument
45 const char *name = self->name; in print_name_only()
61 if ((line_granularity || inline_file_names) && self->file) in print_name_only()
63 filename = self->file->name; in print_name_only()
73 filename = self->file->name; in print_name_only()
78 sprintf (buf, " (%s:%d @ %lx)", filename, self->line_num, in print_name_only()
79 (unsigned long) self->addr); in print_name_only()
83 sprintf (buf, " (%s:%d)", filename, self->line_num); in print_name_only()
92 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order)); in print_name_only()
93 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract)); in print_name_only()
[all …]
/dragonfly/contrib/binutils-2.34/gprof/
HDutils.c43 print_name_only (Sym *self) in print_name_only() argument
45 const char *name = self->name; in print_name_only()
61 if ((line_granularity || inline_file_names) && self->file) in print_name_only()
63 filename = self->file->name; in print_name_only()
73 filename = self->file->name; in print_name_only()
78 sprintf (buf, " (%s:%d @ %lx)", filename, self->line_num, in print_name_only()
79 (unsigned long) self->addr); in print_name_only()
83 sprintf (buf, " (%s:%d)", filename, self->line_num); in print_name_only()
92 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order)); in print_name_only()
93 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract)); in print_name_only()
[all …]
/dragonfly/crypto/openssh/
HDnchan.c97 debug2("channel %d: input %s -> %s", c->self, istates[c->istate], in chan_set_istate()
107 debug2("channel %d: output %s -> %s", c->self, ostates[c->ostate], in chan_set_ostate()
115 debug2("channel %d: read failed", c->self); in chan_read_failed()
123 c->self, c->istate); in chan_read_failed()
131 debug2("channel %d: ibuf empty", c->self); in chan_ibuf_empty()
134 c->self); in chan_ibuf_empty()
145 c->self, c->istate); in chan_ibuf_empty()
153 debug2("channel %d: obuf empty", c->self); in chan_obuf_empty()
156 c->self); in chan_obuf_empty()
166 c->self, c->ostate); in chan_obuf_empty()
[all …]

123456789