/third_party/skia/tools/skp/ |
H A D | webpages_playback.py | 140 def __init__(self, parse_options): 143 self._browser_executable = parse_options.browser_executable 144 self._browser_args = '--disable-setuid-sandbox' 146 self._browser_args = '%s %s' % ( 147 self._browser_args, parse_options.browser_extra_args) 149 self._chrome_page_sets_path = os.path.join(parse_options.chrome_src_path, 151 self._all_page_sets_specified = parse_options.page_sets == 'all' 152 self._page_sets = self._ParsePageSets(parse_options.page_sets) 154 self [all...] |
/third_party/python/Lib/test/ |
H A D | test_tuple.py | 21 def test_getitem_error(self): 24 with self.assertRaisesRegex(TypeError, msg): 27 def test_constructors(self): 30 self.assertEqual(tuple(), ()) 33 self.assertTrue(t0_3 is t0_3_bis) 34 self.assertEqual(tuple([]), ()) 35 self.assertEqual(tuple([0, 1, 2, 3]), (0, 1, 2, 3)) 36 self.assertEqual(tuple(''), ()) 37 self.assertEqual(tuple('spam'), ('s', 'p', 'a', 'm')) 38 self [all...] |
H A D | test_dbm.py | 49 def init_db(self): 51 for k in self._dict: 52 f[k.encode("ascii")] = self._dict[k] 55 def keys_helper(self, f): 57 dkeys = sorted(self._dict.keys()) 58 self.assertEqual(keys, dkeys) 61 def test_error(self): 62 self.assertTrue(issubclass(self.module.error, OSError)) 64 def test_anydbm_not_existing(self) [all...] |
H A D | test_numeric_tower.py | 21 def __mul__(self, other): 25 def __truediv__(self, other): 30 def numerator(self): 31 return DummyIntegral(self) 34 def denominator(self): 39 def check_equal_hash(self, x, y): 41 self.assertEqual(hash(x), hash(y), 43 self.assertEqual(x, y) 45 def test_bools(self): 46 self [all...] |
H A D | test_utf8_mode.py | 26 def posix_locale(self): 30 def get_output(self, *args, failure=False, **kw): 31 kw = dict(self.DEFAULT_ENV, **kw) 41 def test_posix_locale(self): 45 with self.subTest(LC_ALL=loc): 46 out = self.get_output('-c', code, LC_ALL=loc) 47 self.assertEqual(out, '1') 49 def test_xoption(self): 52 out = self.get_output('-X', 'utf8', '-c', code) 53 self [all...] |
H A D | test_site.py | 67 def setUp(self): 69 self.sys_path = sys.path[:] 70 self.old_base = site.USER_BASE 71 self.old_site = site.USER_SITE 72 self.old_prefixes = site.PREFIXES 73 self.original_vars = sysconfig._CONFIG_VARS 74 self.old_vars = copy(sysconfig._CONFIG_VARS) 76 def tearDown(self): 78 sys.path[:] = self.sys_path 79 site.USER_BASE = self [all...] |
H A D | test_lzma.py | 26 def test_simple_bad_args(self): 27 self.assertRaises(TypeError, LZMACompressor, []) 28 self.assertRaises(TypeError, LZMACompressor, format=3.45) 29 self.assertRaises(TypeError, LZMACompressor, check="") 30 self.assertRaises(TypeError, LZMACompressor, preset="asdf") 31 self.assertRaises(TypeError, LZMACompressor, filters=3) 33 self.assertRaises(ValueError, LZMACompressor, format=lzma.FORMAT_AUTO) 35 with self.assertRaises(ValueError): 38 self.assertRaises(TypeError, LZMADecompressor, ()) 39 self [all...] |
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | exceptions.py | 13 def __init__(self, message=None): 16 Exception.__init__(self, message) 19 def message(self): 20 if self.args: 21 message = self.args[0] 25 def __unicode__(self): 26 return self.message or u"" 30 def __init__(self, message=None): 31 Exception.__init__(self, message) 34 def message(self) [all...] |
/third_party/skia/third_party/externals/jinja2/ |
H A D | exceptions.py | 13 def __init__(self, message=None): 16 Exception.__init__(self, message) 19 def message(self): 20 if self.args: 21 message = self.args[0] 25 def __unicode__(self): 26 return self.message or u"" 30 def __init__(self, message=None): 31 Exception.__init__(self, message) 34 def message(self) [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/tests/ |
H A D | conftest.py | 30 def __init__(self, request): 36 self._test_dir = os.path.dirname(str(request.fspath)) 39 def _run_conf(self, mode, dot_config=None, out_file='.config', 54 extra_env['srctree'] = self._test_dir 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 82 self.retcode = ps.returncode 83 self.stdout = ps.stdout.read().decode() 84 self.stderr = ps.stderr.read().decode() 89 if self.retcode == 0 and out_file: 91 self [all...] |
/kernel/linux/linux-6.6/scripts/kconfig/tests/ |
H A D | conftest.py | 30 def __init__(self, request): 36 self._test_dir = os.path.dirname(str(request.fspath)) 39 def _run_conf(self, mode, dot_config=None, out_file='.config', 54 extra_env['srctree'] = self._test_dir 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 86 self.retcode = ps.returncode 87 self.stdout = ps.stdout.read().decode() 88 self.stderr = ps.stderr.read().decode() 93 if self.retcode == 0 and out_file: 95 self [all...] |
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | descriptor_containers.cc | 81 typedef int (*CountMethod)(PyContainer* self); 82 typedef const void* (*GetByIndexMethod)(PyContainer* self, int index); 83 typedef const void* (*GetByNameMethod)(PyContainer* self, 85 typedef const void* (*GetByCamelcaseNameMethod)(PyContainer* self, 87 typedef const void* (*GetByNumberMethod)(PyContainer* self, int index); 170 static bool _GetItemByKey(PyContainer* self, PyObject* key, const void** item) { in _GetItemByKey() argument 171 switch (self->kind) { in _GetItemByKey() 185 *item = self->container_def->get_by_name_fn( in _GetItemByKey() 186 self, StringParam(name, name_size)); in _GetItemByKey() 202 *item = self in _GetItemByKey() 229 _NewKey_ByIndex(PyContainer* self, Py_ssize_t index) _NewKey_ByIndex() argument 256 _NewObj_ByIndex(PyContainer* self, Py_ssize_t index) _NewObj_ByIndex() argument 261 Length(PyContainer* self) Length() argument 267 Subscript(PyContainer* self, PyObject* key) Subscript() argument 279 AssSubscript(PyContainer* self, PyObject* key, PyObject* value) AssSubscript() argument 295 Contains(PyContainer* self, PyObject* key) Contains() argument 307 ContainerRepr(PyContainer* self) ContainerRepr() argument 333 DescriptorSequence_Equal(PyContainer* self, PyObject* other) DescriptorSequence_Equal() argument 377 DescriptorMapping_Equal(PyContainer* self, PyObject* other) DescriptorMapping_Equal() argument 423 RichCompare(PyContainer* self, PyObject* other, int opid) RichCompare() argument 457 Get(PyContainer* self, PyObject* args) Get() argument 475 Keys(PyContainer* self, PyObject* args) Keys() argument 491 Values(PyContainer* self, PyObject* args) Values() argument 507 Items(PyContainer* self, PyObject* args) Items() argument 536 Iter(PyContainer* self) Iter() argument 539 IterKeys(PyContainer* self, PyObject* args) IterKeys() argument 542 IterValues(PyContainer* self, PyObject* args) IterValues() argument 545 IterItems(PyContainer* self, PyObject* args) IterItems() argument 604 GetItem(PyContainer* self, Py_ssize_t index) GetItem() argument 616 SeqSubscript(PyContainer* self, PyObject* item) SeqSubscript() argument 635 Find(PyContainer* self, PyObject* item) Find() argument 674 Index(PyContainer* self, PyObject* item) Index() argument 685 SeqContains(PyContainer* self, PyObject* item) SeqContains() argument 696 Count(PyContainer* self, PyObject* item) Count() argument 705 Append(PyContainer* self, PyObject* args) Append() argument 715 Reversed(PyContainer* self, PyObject* args) Reversed() argument 789 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); NewMappingByName() local 801 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); NewMappingByCamelcaseName() local 818 PyContainer* self = PyObject_New(PyContainer, &DescriptorMapping_Type); NewMappingByNumber() local 830 PyContainer* self = PyObject_New(PyContainer, &DescriptorSequence_Type); NewSequence() local 842 Iterator_Dealloc(PyContainerIterator* self) Iterator_Dealloc() argument 847 Iterator_Next(PyContainerIterator* self) Iterator_Next() argument 932 PyContainerIterator* self = PyObject_New(PyContainerIterator, NewContainerIterator() local 953 GetDescriptor(PyContainer* self) GetDescriptor() argument 961 Count(PyContainer* self) Count() argument 965 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 969 GetByCamelcaseName(PyContainer* self, ConstStringParam name) GetByCamelcaseName() argument 974 GetByNumber(PyContainer* self, int number) GetByNumber() argument 978 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1039 Count(PyContainer* self) Count() argument 1043 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1047 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1091 Count(PyContainer* self) Count() argument 1095 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1099 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1150 Count(PyContainer* self) Count() argument 1158 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1162 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1214 Count(PyContainer* self) Count() argument 1218 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1222 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1266 Count(PyContainer* self) Count() argument 1270 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1274 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1320 GetDescriptor(PyContainer* self) GetDescriptor() argument 1328 Count(PyContainer* self) Count() argument 1332 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1336 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1340 GetByNumber(PyContainer* self, int number) GetByNumber() argument 1395 GetDescriptor(PyContainer* self) GetDescriptor() argument 1403 Count(PyContainer* self) Count() argument 1407 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1445 GetDescriptor(PyContainer* self) GetDescriptor() argument 1453 Count(PyContainer* self) Count() argument 1457 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1461 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1507 GetDescriptor(PyContainer* self) GetDescriptor() argument 1515 Count(PyContainer* self) Count() argument 1519 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1523 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1563 Count(PyContainer* self) Count() argument 1567 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1571 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1611 Count(PyContainer* self) Count() argument 1615 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1619 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1659 Count(PyContainer* self) Count() argument 1663 GetByName(PyContainer* self, ConstStringParam name) GetByName() argument 1667 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1707 Count(PyContainer* self) Count() argument 1711 GetByIndex(PyContainer* self, int index) GetByIndex() argument 1743 Count(PyContainer* self) Count() argument 1747 GetByIndex(PyContainer* self, int index) GetByIndex() argument [all...] |
/third_party/python/Lib/zoneinfo/ |
H A D | _zoneinfo.py | 102 def key(self): 103 return self._key 105 def utcoffset(self, dt): 106 return self._find_trans(dt).utcoff 108 def dst(self, dt): 109 return self._find_trans(dt).dstoff 111 def tzname(self, dt): 112 return self._find_trans(dt).tzname 114 def fromutc(self, dt): 119 if dt.tzinfo is not self [all...] |
/third_party/jerryscript/jerry-debugger/ |
H A D | jerry_client.py | 36 def __init__(self, debugger): 37 Cmd.__init__(self) 38 self.debugger = debugger 39 self.stop = False 40 self.quit = False 42 def precmd(self, line): 43 self.stop = False 44 if self.debugger.non_interactive: 48 def postcmd(self, stop, line): 49 return self [all...] |
/third_party/node/deps/v8/tools/dev/ |
H A D | v8gen.py | 65 def __init__(self, args): 69 self._options = self._parse_arguments(args[:index]) 70 self._gn_args = args[index + 1:] 72 def _parse_arguments(self, args): 73 self.parser = argparse.ArgumentParser( 88 subps = self.parser.add_subparsers() 93 gen_cmd.set_defaults(func=self.cmd_gen) 120 list_cmd.set_defaults(func=self.cmd_list) 127 return self [all...] |
/third_party/python/Lib/unittest/test/ |
H A D | test_break.py | 20 def setUp(self): 21 self._default_handler = signal.getsignal(signal.SIGINT) 22 if self.int_handler is not None: 23 signal.signal(signal.SIGINT, self.int_handler) 25 def tearDown(self): 26 signal.signal(signal.SIGINT, self._default_handler) 31 def withRepeats(self, test_function, repeats=None): 37 repeats = self.default_repeats 40 with self.subTest(repeat=repeat): 45 self [all...] |
H A D | test_loader.py | 32 def test___init__(self): 34 self.assertEqual([], loader.errors) 41 def test_loadTestsFromTestCase(self): 43 def test_1(self): pass 44 def test_2(self): pass 45 def foo_bar(self): pass 50 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests) 56 def test_loadTestsFromTestCase__no_matches(self): 58 def foo_bar(self): pass 63 self [all...] |
/third_party/python/Lib/test/test_importlib/source/ |
H A D | test_file_loader.py | 32 def setUp(self): 33 self.name = 'spam' 34 self.filepath = os.path.join('ham', self.name + '.py') 35 self.loader = self.machinery.SourceFileLoader(self.name, self.filepath) 37 def test_load_module_API(self): 38 class Tester(self [all...] |
/third_party/python/Lib/lib2to3/tests/data/ |
H A D | py3_test_grammar.py | 19 def testBackslash(self): 23 self.assertEquals(x, 2, 'backslash for line continuation') 27 self.assertEquals(x, 0, 'backslash ending comment') 29 def testPlainIntegers(self): 30 self.assertEquals(type(000), type(0)) 31 self.assertEquals(0xff, 255) 32 self.assertEquals(0o377, 255) 33 self.assertEquals(2147483647, 0o17777777777) 34 self.assertEquals(0b1001, 9) 36 self [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_b0.c | 115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument 119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset() 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset() 130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument 132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc() 137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument 140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set() 144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ in hw_atl_b0_tc_ptp_set() 152 hw_atl_b0_hw_qos_set(struct aq_hw_s *self) hw_atl_b0_hw_qos_set() argument 209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_hash_set() argument 237 hw_atl_b0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_set() argument 273 hw_atl_b0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) hw_atl_b0_hw_offload_set() argument 332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_tc_rate_limit() argument 449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_path() argument 474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_rss_ctrl1() argument 487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_path() argument 536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr) hw_atl_b0_hw_mac_addr_set() argument 561 hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr) hw_atl_b0_hw_init() argument 631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_start() argument 638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_start() argument 645 hw_atl_b0_hw_start(struct aq_hw_s *self) hw_atl_b0_hw_start() argument 653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_tx_ring_tail_update() argument 661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) hw_atl_b0_hw_ring_tx_xmit() argument 749 hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_rx_init() argument 791 hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_tx_init() argument 820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) hw_atl_b0_hw_ring_rx_fill() argument 840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_fill() argument 862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_receive() argument 880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_head_update() argument 906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_receive() argument 1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_enable() argument 1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_disable() argument 1023 hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask) hw_atl_b0_hw_irq_read() argument 1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl_b0_hw_packet_filter_set() argument 1070 hw_atl_b0_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl_b0_hw_multicast_list_set() argument 1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl_b0_hw_interrupt_moderation_set() argument 1199 hw_atl_b0_hw_stop(struct aq_hw_s *self) hw_atl_b0_hw_stop() argument 1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_stop() argument 1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_stop() argument 1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s *self, u64 *stamp) hw_atl_b0_get_ptp_ts() argument 1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s *self, s64 delta) hw_atl_b0_adj_sys_clock() argument 1308 hw_atl_b0_set_sys_clock(struct aq_hw_s *self, u64 time, u64 ts) hw_atl_b0_set_sys_clock() argument 1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s *self, u64 ts, u64 *time) hw_atl_b0_ts_to_sys_clock() argument 1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb) hw_atl_b0_adj_clock_freq() argument 1343 hw_atl_b0_gpio_pulse(struct aq_hw_s *self, u32 index, u64 start, u32 period) hw_atl_b0_gpio_pulse() argument 1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s *self, u32 index, u32 enable) hw_atl_b0_extts_gpio_enable() argument 1370 hw_atl_b0_get_sync_ts(struct aq_hw_s *self, u64 *ts) hw_atl_b0_get_sync_ts() argument 1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_rx_extract_ts() argument 1427 hw_atl_b0_extract_hwts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_extract_hwts() argument 1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_clear() argument 1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_set() argument 1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_set() argument 1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_clear() argument 1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl_b0_hw_vlan_set() argument 1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl_b0_hw_vlan_ctrl() argument 1590 hw_atl_b0_set_loopback(struct aq_hw_s *self, u32 mode, bool enable) hw_atl_b0_set_loopback() argument 1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s *self) hw_atl_b0_ts_ready_and_latch_high_get() argument 1623 hw_atl_b0_get_mac_temp(struct aq_hw_s *self, u32 *temp) hw_atl_b0_get_mac_temp() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_b0.c | 115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument 119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset() 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset() 130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument 132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc() 137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument 140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set() 144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ in hw_atl_b0_tc_ptp_set() 152 hw_atl_b0_hw_qos_set(struct aq_hw_s *self) hw_atl_b0_hw_qos_set() argument 209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_hash_set() argument 237 hw_atl_b0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_set() argument 273 hw_atl_b0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) hw_atl_b0_hw_offload_set() argument 332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_tc_rate_limit() argument 449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_path() argument 474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_rss_ctrl1() argument 487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_path() argument 536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, const u8 *mac_addr) hw_atl_b0_hw_mac_addr_set() argument 561 hw_atl_b0_hw_init(struct aq_hw_s *self, const u8 *mac_addr) hw_atl_b0_hw_init() argument 631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_start() argument 638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_start() argument 645 hw_atl_b0_hw_start(struct aq_hw_s *self) hw_atl_b0_hw_start() argument 653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_tx_ring_tail_update() argument 661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) hw_atl_b0_hw_ring_tx_xmit() argument 749 hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_rx_init() argument 791 hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_tx_init() argument 820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) hw_atl_b0_hw_ring_rx_fill() argument 840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_fill() argument 862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_receive() argument 880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_head_update() argument 906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_receive() argument 1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_enable() argument 1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_disable() argument 1023 hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask) hw_atl_b0_hw_irq_read() argument 1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl_b0_hw_packet_filter_set() argument 1070 hw_atl_b0_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl_b0_hw_multicast_list_set() argument 1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl_b0_hw_interrupt_moderation_set() argument 1199 hw_atl_b0_hw_stop(struct aq_hw_s *self) hw_atl_b0_hw_stop() argument 1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_stop() argument 1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_stop() argument 1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s *self, u64 *stamp) hw_atl_b0_get_ptp_ts() argument 1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s *self, s64 delta) hw_atl_b0_adj_sys_clock() argument 1308 hw_atl_b0_set_sys_clock(struct aq_hw_s *self, u64 time, u64 ts) hw_atl_b0_set_sys_clock() argument 1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s *self, u64 ts, u64 *time) hw_atl_b0_ts_to_sys_clock() argument 1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb) hw_atl_b0_adj_clock_freq() argument 1343 hw_atl_b0_gpio_pulse(struct aq_hw_s *self, u32 index, u64 start, u32 period) hw_atl_b0_gpio_pulse() argument 1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s *self, u32 index, u32 enable) hw_atl_b0_extts_gpio_enable() argument 1370 hw_atl_b0_get_sync_ts(struct aq_hw_s *self, u64 *ts) hw_atl_b0_get_sync_ts() argument 1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_rx_extract_ts() argument 1427 hw_atl_b0_extract_hwts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_extract_hwts() argument 1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_clear() argument 1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_set() argument 1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_set() argument 1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_clear() argument 1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl_b0_hw_vlan_set() argument 1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl_b0_hw_vlan_ctrl() argument 1590 hw_atl_b0_set_loopback(struct aq_hw_s *self, u32 mode, bool enable) hw_atl_b0_set_loopback() argument 1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s *self) hw_atl_b0_ts_ready_and_latch_high_get() argument 1623 hw_atl_b0_get_mac_temp(struct aq_hw_s *self, u32 *temp) hw_atl_b0_get_mac_temp() argument [all...] |
/third_party/python/Lib/distutils/ |
H A D | version.py | 38 def __init__ (self, vstring=None): 40 self.parse(vstring) 42 def __repr__ (self): 43 return "%s ('%s')" % (self.__class__.__name__, str(self)) 45 def __eq__(self, other): 46 c = self._cmp(other) 51 def __lt__(self, other): 52 c = self._cmp(other) 57 def __le__(self, othe [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_undo.py | 29 def setUp(self): 30 self.delegator = UndoDelegator() 31 self.delegator.bell = Mock() 32 self.percolator.insertfilter(self.delegator) 34 def tearDown(self): 35 self.percolator.removefilter(self.delegator) 36 self.text.delete('1.0', 'end') 37 self [all...] |
/third_party/python/Lib/test/test_importlib/resources/ |
H A D | util.py | 18 def __init__(self, **kwargs): 19 vars(self).update(kwargs) 21 def get_resource_reader(self, package): 22 return self 24 def open_resource(self, path): 25 self._path = path 26 if isinstance(self.file, Exception): 27 raise self.file 28 return self.file 30 def resource_path(self, path [all...] |
/third_party/python/Lib/html/ |
H A D | parser.py | 71 Start tags are handled by calling self.handle_starttag() or 72 self.handle_startendtag(); end tags by self.handle_endtag(). The 74 by calling self.handle_data() with the data as argument (the data 77 corresponding Unicode character (and self.handle_data() is no 79 self.handle_entityref() or self.handle_charref() with the string 86 def __init__(self, *, convert_charrefs=True): 92 self.convert_charrefs = convert_charrefs 93 self [all...] |