/Linux-v4.19/tools/bpf/bpftool/ |
D | json_writer.c | 33 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument 36 for (i = 0; i < self->depth; ++i) in jsonw_indent() 37 fputs(" ", self->out); in jsonw_indent() 41 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument 43 if (!self->pretty) in jsonw_eol() 46 putc('\n', self->out); in jsonw_eol() 47 jsonw_indent(self); in jsonw_eol() 51 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument 53 if (self->sep != '\0') in jsonw_eor() 54 putc(self->sep, self->out); in jsonw_eor() [all …]
|
D | json_writer.h | 31 void jsonw_pretty(json_writer_t *self, bool on); 34 void jsonw_name(json_writer_t *self, const char *name); 37 void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap); 38 void jsonw_printf(json_writer_t *self, const char *fmt, ...); 39 void jsonw_string(json_writer_t *self, const char *value); 40 void jsonw_bool(json_writer_t *self, bool value); 41 void jsonw_float(json_writer_t *self, double number); 42 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num); 43 void jsonw_uint(json_writer_t *self, uint64_t number); 44 void jsonw_hu(json_writer_t *self, unsigned short number); [all …]
|
/Linux-v4.19/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | SchedGui.py | 23 def __init__(self, sched_tracer, title, parent = None, id = -1): argument 24 wx.Frame.__init__(self, parent, id, title) 26 (self.screen_width, self.screen_height) = wx.GetDisplaySize() 27 self.screen_width -= 10 28 self.screen_height -= 10 29 self.zoom = 0.5 30 self.scroll_scale = 20 31 self.sched_tracer = sched_tracer 32 self.sched_tracer.set_root_win(self) 33 (self.ts_start, self.ts_end) = sched_tracer.interval() [all …]
|
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_b0.c | 88 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument 92 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset() 96 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 98 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset() 103 static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) in hw_atl_b0_hw_qos_set() argument 111 hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U); in hw_atl_b0_hw_qos_set() 112 hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(self, 0xA); in hw_atl_b0_hw_qos_set() 115 hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() 118 hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() 119 hw_atl_tps_tx_pkt_shed_data_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() [all …]
|
D | hw_atl_a0.c | 85 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) in hw_atl_a0_hw_reset() argument 89 hw_atl_glb_glb_reg_res_dis_set(self, 1U); in hw_atl_a0_hw_reset() 90 hw_atl_pci_pci_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 91 hw_atl_rx_rx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 92 hw_atl_tx_tx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 95 hw_atl_glb_soft_res_set(self, 1); in hw_atl_a0_hw_reset() 98 AQ_HW_WAIT_FOR(hw_atl_glb_soft_res_get(self) == 0, 1000U, 10U); in hw_atl_a0_hw_reset() 102 hw_atl_itr_irq_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 103 hw_atl_itr_res_irq_set(self, 1U); in hw_atl_a0_hw_reset() 106 AQ_HW_WAIT_FOR(hw_atl_itr_res_irq_get(self) == 0, 1000U, 10U); in hw_atl_a0_hw_reset() [all …]
|
D | hw_atl_utils.c | 52 static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self, 55 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw() argument 59 err = hw_atl_utils_soft_reset(self); in hw_atl_utils_initfw() 63 hw_atl_utils_hw_chip_features_init(self, in hw_atl_utils_initfw() 64 &self->chip_features); in hw_atl_utils_initfw() 66 hw_atl_utils_get_fw_version(self, &self->fw_ver_actual); in hw_atl_utils_initfw() 69 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 72 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 75 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 79 self->fw_ver_actual); in hw_atl_utils_initfw() [all …]
|
/Linux-v4.19/tools/kvm/kvm_stat/ |
D | kvm_stat | 264 def tracepoint_is_child(self, field): argument 271 def __init__(self, exit_reasons): argument 272 self.sc_perf_evt_open = 298 273 self.ioctl_numbers = IOCTL_NUMBERS 274 self.exit_reasons = exit_reasons 276 def debugfs_is_child(self, field): argument 282 def __init__(self): argument 283 self.sc_perf_evt_open = 319 284 self.ioctl_numbers = IOCTL_NUMBERS 285 self.ioctl_numbers['ENABLE'] = 0x20002400 [all …]
|
/Linux-v4.19/tools/perf/scripts/python/ |
D | call-graph-from-sql.py | 65 def __init__(self, db, row, parent_item): argument 66 self.db = db 67 self.row = row 68 self.parent_item = parent_item 69 self.query_done = False; 70 self.child_count = 0 71 self.child_items = [] 72 self.data = ["", "", "", "", "", "", ""] 73 self.comm_id = 0 74 self.thread_id = 0 [all …]
|
D | sched-migration.py | 43 def __repr__(self): argument 51 def __init__(self, sleeper): argument 52 self.sleeper = sleeper 54 def __repr__(self): argument 55 return "%s gone to sleep" % thread_name(self.sleeper) 62 def __init__(self, wakee): argument 63 self.wakee = wakee 65 def __repr__(self): argument 66 return "%s woke up" % thread_name(self.wakee) 73 def __init__(self, child): argument [all …]
|
D | compaction-times.py | 29 def __init__(self, re): argument 30 self.re = re 32 def filter(self, pid, comm): argument 33 m = self.re.search(comm) 37 def __init__(self, low, high): argument 38 self.low = (0 if low == "" else int(low)) 39 self.high = (0 if high == "" else int(high)) 41 def filter(self, pid, comm): argument 42 return not (pid >= self.low and (self.high == 0 or pid <= self.high)) 55 def __init__(self, aval, bval, alabel = None, blabel = None): argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 39 static void aq_nic_update_ndev_stats(struct aq_nic_s *self); 41 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument 43 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 64 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument 66 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_start() 89 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_start() 98 cfg->vecs = min(cfg->vecs, self->irqvecs); in aq_nic_cfg_start() 111 cfg->irq_type = aq_pci_func_get_irq_type(self); in aq_nic_cfg_start() 124 static int aq_nic_update_link_status(struct aq_nic_s *self) in aq_nic_update_link_status() argument 126 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status() [all …]
|
D | aq_ring.c | 19 static struct aq_ring_s *aq_ring_alloc(struct aq_ring_s *self, in aq_ring_alloc() argument 24 self->buff_ring = in aq_ring_alloc() 25 kcalloc(self->size, sizeof(struct aq_ring_buff_s), GFP_KERNEL); in aq_ring_alloc() 27 if (!self->buff_ring) { in aq_ring_alloc() 31 self->dx_ring = dma_alloc_coherent(aq_nic_get_dev(aq_nic), in aq_ring_alloc() 32 self->size * self->dx_size, in aq_ring_alloc() 33 &self->dx_ring_pa, GFP_KERNEL); in aq_ring_alloc() 34 if (!self->dx_ring) { in aq_ring_alloc() 41 aq_ring_free(self); in aq_ring_alloc() 42 self = NULL; in aq_ring_alloc() [all …]
|
D | aq_vec.c | 37 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local 45 if (!self) { in aq_vec_poll() 48 for (i = 0U, ring = self->ring[0]; in aq_vec_poll() 49 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll() 50 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll() 51 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll() 52 self->aq_hw, in aq_vec_poll() 64 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll() 84 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll() 85 self->aq_hw, in aq_vec_poll() [all …]
|
/Linux-v4.19/scripts/kconfig/tests/ |
D | conftest.py | 30 def __init__(self, request): argument 36 self._test_dir = os.path.dirname(str(request.fspath)) 39 def _run_conf(self, mode, dot_config=None, out_file='.config', argument 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.config = f.read() [all …]
|
/Linux-v4.19/tools/testing/selftests/tc-testing/ |
D | TdcPlugin.py | 4 def __init__(self): argument 6 print(' -- {}.__init__'.format(self.sub_class)) 8 def pre_suite(self, testcount, testidlist): argument 10 self.testcount = testcount 11 self.testidlist = testidlist 12 if self.args.verbose > 1: 13 print(' -- {}.pre_suite'.format(self.sub_class)) 15 def post_suite(self, index): argument 18 if self.args.verbose > 1: 19 print(' -- {}.post_suite'.format(self.sub_class)) [all …]
|
/Linux-v4.19/tools/perf/tests/ |
D | attr.py | 28 def __init__(self, test, msg): argument 29 self.msg = msg 30 self.test = test 31 def getMsg(self): argument 32 return '\'%s\' - %s' % (self.test.path, self.msg) 35 def __init__(self, test, arch): argument 36 self.arch = arch 37 self.test = test 38 def getMsg(self): argument 39 return '[%s] \'%s\'' % (self.arch, self.test.path) [all …]
|
/Linux-v4.19/scripts/ |
D | bpf_helpers_doc.py | 17 def __init__(self, line='<line not provided>', reader=None): argument 19 BaseException.__init__(self, 23 BaseException.__init__(self, 'Error parsing line: %s' % line) 32 def __init__(self, proto='', desc='', ret=''): argument 33 self.proto = proto 34 self.desc = desc 35 self.ret = ret 37 def proto_break_down(self): argument 46 capture = proto_re.match(self.proto) 71 def __init__(self, filename): argument [all …]
|
D | spdxcheck.py | 15 def __init__(self, tok, txt): argument 16 self.tok = tok 17 self.txt = txt 20 def __init__(self, el, txt): argument 21 self.el = el 22 self.txt = txt 25 def __init__(self): argument 26 self.license_files = 0 27 self.exception_files = 0 28 self.licenses = [ ] [all …]
|
/Linux-v4.19/tools/testing/selftests/tc-testing/plugin-lib/ |
D | nsPlugin.py | 11 def __init__(self): argument 12 self.sub_class = 'ns/SubPlugin' 15 def pre_suite(self, testcount, testidlist): argument 19 if self.args.namespace: 20 self._ns_create() 22 def post_suite(self, index): argument 25 if self.args.verbose: 26 print('{}.post_suite'.format(self.sub_class)) 28 if self.args.namespace: 29 self._ns_destroy() [all …]
|
D | valgrindPlugin.py | 21 def __init__(self): argument 22 self.sub_class = 'valgrind/SubPlugin' 23 self.tap = '' 26 def pre_suite(self, testcount, testidlist): argument 29 if self.args.verbose > 1: 30 print('{}.pre_suite'.format(self.sub_class)) 31 if self.args.valgrind: 32 self._add_to_tap('1..{}\n'.format(self.testcount)) 34 def post_suite(self, index): argument 37 self._add_to_tap('\n|---\n') [all …]
|
/Linux-v4.19/drivers/net/wireless/st/cw1200/ |
D | cw1200_sdio.c | 69 static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self, in cw1200_sdio_memcpy_fromio() argument 73 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio() 76 static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self, in cw1200_sdio_memcpy_toio() argument 80 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio() 83 static void cw1200_sdio_lock(struct hwbus_priv *self) in cw1200_sdio_lock() argument 85 sdio_claim_host(self->func); in cw1200_sdio_lock() 88 static void cw1200_sdio_unlock(struct hwbus_priv *self) in cw1200_sdio_unlock() argument 90 sdio_release_host(self->func); in cw1200_sdio_unlock() 95 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler() local 98 if (self->core) in cw1200_sdio_irq_handler() [all …]
|
D | cw1200_spi.c | 60 static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self, in cw1200_spi_memcpy_fromio() argument 92 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio() 99 ret = spi_sync(self->func, &m); in cw1200_spi_memcpy_fromio() 115 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio() 126 static int cw1200_spi_memcpy_toio(struct hwbus_priv *self, in cw1200_spi_memcpy_toio() argument 157 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio() 179 rval = spi_sync(self->func, &m); in cw1200_spi_memcpy_toio() 187 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio() 197 static void cw1200_spi_lock(struct hwbus_priv *self) in cw1200_spi_lock() argument 205 add_wait_queue(&self->wq, &wait); in cw1200_spi_lock() [all …]
|
/Linux-v4.19/Documentation/sphinx/ |
D | kernel_include.py | 61 def run(self): argument 63 os.path.expandvars(self.arguments[0])) 67 raise self.severe( 69 % (self.name, path)) 71 self.arguments[0] = path 74 return self._run() 76 def _run(self): argument 84 if not self.state.document.settings.file_insertion_enabled: 85 raise self.warning('"%s" directive disabled.' % self.name) 86 source = self.state_machine.input_lines.source( [all …]
|
D | rstFlatTable.py | 122 def run(self): argument 124 if not self.content: 125 error = self.state_machine.reporter.error( 126 'The "%s" directive is empty; content required.' % self.name, 127 nodes.literal_block(self.block_text, self.block_text), 128 line=self.lineno) 131 title, messages = self.make_title() 133 self.state.nested_parse(self.content, self.content_offset, node) 135 tableBuilder = ListTableBuilder(self) 150 def __init__(self, directive): argument [all …]
|
/Linux-v4.19/scripts/gdb/linux/ |
D | symbols.py | 23 def __init__(self, spec, gdb_command): argument 24 super(LoadModuleBreakpoint, self).__init__(spec, internal=True) 25 self.silent = True 26 self.gdb_command = gdb_command 28 def stop(self): argument 31 cmd = self.gdb_command 70 def __init__(self): argument 71 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES, 74 def _update_module_files(self): argument 75 self.module_files = [] [all …]
|