/freebsd/sys/dev/usb/controller/ |
H A D | ehci_pci.c | 105 ehci_pci_match(device_t self) in ehci_pci_match() argument 247 ehci_pci_probe(device_t self) in ehci_pci_probe() argument 252 device_set_desc(self, desc); in ehci_pci_probe() 312 sc->sc_bus.parent = self; in ehci_pci_attach() 323 pci_enable_busmaster(self); in ehci_pci_attach() 425 pci_get_devid(self)); in ehci_pci_attach() 456 ehci_pci_via_quirk(self); in ehci_pci_attach() 469 device_printf(self, in ehci_pci_attach() 482 device_printf(self, in ehci_pci_attach() 500 ehci_pci_detach(self); in ehci_pci_attach() [all …]
|
H A D | ohci_pci.c | 117 ohci_pci_match(device_t self) in ohci_pci_match() argument 191 ohci_pci_probe(device_t self) in ohci_pci_probe() argument 196 device_set_desc(self, desc); in ohci_pci_probe() 204 ohci_pci_attach(device_t self) in ohci_pci_attach() argument 211 sc->sc_bus.parent = self; in ohci_pci_attach() 221 sc->sc_dev = self; in ohci_pci_attach() 223 pci_enable_busmaster(self); in ohci_pci_attach() 290 pci_get_devid(self)); in ohci_pci_attach() 315 ohci_pci_detach(self); in ohci_pci_attach() 320 ohci_pci_detach(device_t self) in ohci_pci_detach() argument [all …]
|
H A D | xhci_pci.c | 92 xhci_pci_match(device_t self) in xhci_pci_match() argument 234 xhci_pci_probe(device_t self) in xhci_pci_probe() argument 239 device_set_desc(self, desc); in xhci_pci_probe() 344 pci_enable_busmaster(self); in xhci_pci_attach() 357 device_printf(self, in xhci_pci_attach() 388 pci_release_msi(self); in xhci_pci_attach() 415 pci_get_devid(self)); in xhci_pci_attach() 428 pci_release_msi(self); in xhci_pci_attach() 460 xhci_pci_detach(self); in xhci_pci_attach() 476 pci_disable_busmaster(self); in xhci_pci_detach() [all …]
|
H A D | uhci_pci.c | 101 uhci_pci_match(device_t self) in uhci_pci_match() argument 271 uhci_pci_probe(device_t self) in uhci_pci_probe() argument 276 device_set_desc(self, desc); in uhci_pci_probe() 284 uhci_pci_attach(device_t self) in uhci_pci_attach() argument 291 sc->sc_bus.parent = self; in uhci_pci_attach() 301 sc->sc_dev = self; in uhci_pci_attach() 303 pci_enable_busmaster(self); in uhci_pci_attach() 357 pci_get_devid(self)); in uhci_pci_attach() 409 uhci_pci_detach(self); in uhci_pci_attach() 414 uhci_pci_detach(device_t self) in uhci_pci_detach() argument [all …]
|
/freebsd/tests/sys/net/routing/ |
H A D | test_rtsock_multipath.py | 19 self.rtsock = Rtsock() 101 msg = self.rtsock.new_rtm_add(self.PREFIX, gw) 104 msg = self.rtsock.new_rtm_del(self.PREFIX, gw) 107 msg = self.rtsock.new_rtm_change(self.PREFIX, gw) 146 msg = self.rtsock.new_rtm_add(self.PREFIX, gw) 170 msg = self.rtsock.new_rtm_add(self.PREFIX, gw) 173 msg = self.rtsock.new_rtm_del(self.PREFIX, target_gw) 195 msg = self.rtsock.new_rtm_add(self.PREFIX, gw) 198 msg = self.rtsock.new_rtm_change(self.PREFIX, target_gw) 211 msg = self.rtsock.new_rtm_add(self.PREFIX, gw) [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/examples/p2p/ |
H A D | p2p_listen.py | 58 self.daemon = True 63 self.wpas_wpas_dbus_interfaces_opath = self.wpas_dbus_opath + \ 74 self.wpas_object = self.bus.get_object( 76 self.wpas_dbus_opath) 77 self.wpas = dbus.Interface(self.wpas_object, 83 self.path = self.wpas.GetInterface( 92 self.interface_object = self.bus.get_object( 93 self.wpas_dbus_interface, self.path) 94 self.p2p_interface = dbus.Interface(self.interface_object, 102 def run(self): argument [all …]
|
H A D | p2p_disconnect.py | 53 self.timeout = timeout 57 self.daemon = True 62 self.wpas_wpas_dbus_interfaces_opath = self.wpas_dbus_opath + \ 73 self.wpas_object = self.bus.get_object( 75 self.wpas_dbus_opath) 76 self.wpas = dbus.Interface(self.wpas_object, 82 self.path = self.wpas.GetInterface( 91 self.interface_object = self.bus.get_object( 92 self.wpas_dbus_interface, self.path) 93 self.p2p_interface = dbus.Interface(self.interface_object, [all …]
|
/freebsd/contrib/lib9p/pytest/ |
H A D | protocol.py | 479 self.seq = seq 490 def __repr__(self): argument 491 return '{0}({1!r})'.format(self.__class__.__name__, self.seq) 502 if self.autos: 569 return '{0}({1!r})'.format(self.__class__.__name__, self.version) 571 def __str__(self): argument 689 pkt = packinfo.pack(self.auto_vars, self.conditions, data, rodata) 831 def version(self): argument 1393 if self.ttype == 'type' and self.value.isdigit(): 1394 self.ival = int(self.value) [all …]
|
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
H A D | test_libzfs_core.py | 305 def setUp(self): argument 308 def tearDown(self): argument 313 self.assertTrue( 4149 self._root = _Filesystem(self._pool_name) 4159 self._pool_name, self._pool_file_path] 4202 def reset(self): argument 4317 self.reset() 4322 def reset(self): argument 4330 fsname = self._name + b'/fs' + str(self._fs_id).encode() 4349 return self._makeSnapName(self._snap_id) [all …]
|
/freebsd/tests/atf_python/ |
H A D | atf_pytest.py | 17 def runtest(self): argument 19 instance = self.parent.cls() 23 cleanup(self.nodeid) 40 self.description = self._get_test_description(obj) 42 self.obj = obj 106 ret.append("descr: {}".format(self._get_test_description(self.obj))) 107 if self.has_cleanup: 109 for key, value in self._convert_marks(self.obj).items(): 124 def setup_configure(self): argument 187 self._tests_state_map[test_name] = self.ReportState(state, reason) [all …]
|
H A D | ktest.py | 35 self.descr = descr 36 self._kcls = kcls 38 def runtest(self): argument 43 def collect(self): argument 44 obj = self.obj 54 orig = pytest.Class.from_parent(self.parent, name=self.name, obj=obj) 71 self.nlsock = Nlsock(NlConst.NETLINK_GENERIC, self.helper) 72 self.family_id = self._get_family_id() 85 def _load_ktests(self): argument 103 def load_ktests(self): argument [all …]
|
/freebsd/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBBlockExtensions.i | 6 def get_range_at_index(self, idx): 7 if idx < self.GetNumRanges(): 8 return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)] 14 self.sbblock = sbblock 16 def __len__(self): 17 if self.sbblock: 22 count = len(self) 35 return self.ranges_access (self) 42 … self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]) 45 def get_call_site(self): [all …]
|
H A D | SBTargetExtensions.i | 37 def __eq__(self, other): 45 def __len__(self): 46 if self.sbtarget: 96 return self.modules_access(self) 105 def module_iter(self): 120 def __len__(self): 121 if self.sbtarget: 135 return self.bkpts_access(self) 154 def __len__(self): 155 if self.sbtarget: [all …]
|
/freebsd/tests/atf_python/sys/net/ |
H A D | rtsock.py | 332 return self.print_rtm_type(self.rtm_type) 347 self._attrs = {} 368 self.add_sa_attr(attr_type, self.sa.ip_sa(ip)) 371 self.add_sa_attr(attr_type, self.sa.ip6_sa(ip6, scopeid)) 374 self.add_sa_attr(attr_type, self.sa.link_sa(ifindex)) 431 assert self.rtm_type_str == self.print_rtm_type(rtm_type) 476 return self 506 def __init__(self): argument 507 self.socket = self._setup_rtsock() 509 self.msgmap = self.build_msgmap() [all …]
|
/freebsd/crypto/heimdal/lib/wind/ |
H A D | generate.py | 43 def __init__(self, name) : argument 52 def close(self) : argument 54 self.file.close() 60 def makeGuard(self) : argument 62 return string.upper(string.translate(self.name, self.guardTrans)) 64 def __init__(self, name) : argument 67 self.guard = self.makeGuard() 68 self.file.write('#ifndef ' + self.guard + '\n') 69 self.file.write('#define ' + self.guard + ' 1\n') 71 def close(self) : argument [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-shuffle-test.py | 182 def setUp(self): argument 193 self.assertTrue( 196 self.assertTrue( 199 self.assertTrue( 204 self.assertTrue( 208 self.assertTrue( 212 self.assertTrue( 216 self.assertTrue( 344 self.assertTrue( 347 self.assertTrue( [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | dataset.py | 51 self.name = t[0] 52 self.number = t[1] 53 self.type = t[2] 55 self.default = t[3] 57 self.default = t[4] 58 self.attr = t[5] 60 self.values = t[7] 61 self.colname = t[8] 120 self.name = name 151 def parent(self): argument [all …]
|
/freebsd/tools/tools/notescheck/ |
H A D | notescheck.py | 56 self.name = name 67 (self.name, self.type, type, location)) 76 def title(self): argument 81 return '%s %s' % (self.type, self.name) 83 def warn(self): argument 86 if self.defines == self.tests: 111 (self.title(), format_set(self.tests))) 117 (self.title(), format_set(self.defines))) 121 notest = self.defines - self.tests 128 (self.title(), format_set(self.defines), format_set(self.tests))) [all …]
|
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 234 def test_add_4(self): argument 246 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 281 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 292 def test_add_6(self): argument 301 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 326 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 353 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 378 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 427 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) 501 lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip)) [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_filter_xz.c | 394 self->name = "xz"; in xz_bidder_init() 402 self->name = "lzma"; in lzma_bidder_init() 410 self->name = "lzip"; in lzip_bidder_init() 489 self->data = state; in xz_lzma_bidder_init() 524 set_error(self, ret); in xz_lzma_bidder_init() 528 self->data = NULL; in xz_lzma_bidder_init() 576 set_error(self, ret); in lzip_init() 582 set_error(self, ret); in lzip_init() 771 self->name = "lzma"; in lzma_bidder_init() 785 self->name = "xz"; in xz_bidder_init() [all …]
|
/freebsd/tests/sys/netinet6/frag6/ |
H A D | sniffer.py | 11 self._args = args 15 self._endme = False 17 self.start() 20 ret = self._check_function(self._args, packet) 25 def setEnd(self): argument 26 self._endme = True 28 def stopFilter(self, pkt): argument 30 self._checkPacket(pkt) 31 if self.foundCorrectPacket or self._endme: 36 def run(self): argument [all …]
|
/freebsd/tests/sys/opencrypto/ |
H A D | cryptodev.py | 179 self._ses = None 212 def __del__(self): argument 360 self.fp = None 364 self.fp = open(self.fname) 365 return self 372 return self 448 self.fp = None 451 self.fp = open(self.fname) 453 return self 484 self.section_values = self.global_values.copy() [all …]
|
/freebsd/crypto/openssl/util/perl/TLSProxy/ |
H A D | NewSessionTicket.pm | 33 $self->{ticket} = ""; 35 return $self; 40 my $self = shift; 47 $self->ticket($ticket); 54 my $self = shift; 59 $data .= $self->ticket; 61 $self->data($data); 67 my $self = shift; 75 my $self = shift; 77 $self->{ticket} = shift; [all …]
|
/freebsd/tests/sys/kern/ |
H A D | sonewconn_overflow.py | 43 def __init__(self): argument 46 self.sockets = [] 47 self.ls = None 51 self.af = af 52 self.addr = addr 64 def __del__(self): argument 71 def __init__(self): argument 75 def __init__(self): argument 79 def __init__(self): argument 81 def __del__(self): argument [all …]
|
/freebsd/contrib/libucl/python/tests/ |
H A D | test_dump.py | 6 def test_no_args(self): argument 10 def test_none(self): argument 13 def test_null(self): argument 18 def test_int(self): argument 23 def test_nested_int(self): argument 28 def test_int_array(self): argument 33 def test_str(self): argument 39 def test_unicode(self): argument 44 def test_float(self): argument 49 def test_boolean(self): argument [all …]
|