/linux-6.6.21/drivers/net/ethernet/sunplus/ |
D | spl2sw_desc.c | 13 void spl2sw_rx_descs_flush(struct spl2sw_common *comm) in spl2sw_rx_descs_flush() argument 20 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_flush() 21 rx_skbinfo = comm->rx_skb_info[i]; in spl2sw_rx_descs_flush() 22 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_flush() 24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush() 25 RXD_EOR | comm->rx_desc_buff_size : in spl2sw_rx_descs_flush() 26 comm->rx_desc_buff_size; in spl2sw_rx_descs_flush() 33 void spl2sw_tx_descs_clean(struct spl2sw_common *comm) in spl2sw_tx_descs_clean() argument 37 if (!comm->tx_desc) in spl2sw_tx_descs_clean() 41 comm->tx_desc[i].cmd1 = 0; in spl2sw_tx_descs_clean() [all …]
|
D | spl2sw_mac.c | 16 void spl2sw_mac_hw_stop(struct spl2sw_common *comm) in spl2sw_mac_hw_stop() argument 20 if (comm->enable == 0) { in spl2sw_mac_hw_stop() 22 writel(0xffffffff, comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_mac_hw_stop() 23 writel(0xffffffff, comm->l2sw_reg_base + L2SW_SW_INT_STATUS_0); in spl2sw_mac_hw_stop() 26 reg = readl(comm->l2sw_reg_base + L2SW_CPU_CNTL); in spl2sw_mac_hw_stop() 28 writel(reg, comm->l2sw_reg_base + L2SW_CPU_CNTL); in spl2sw_mac_hw_stop() 32 reg = readl(comm->l2sw_reg_base + L2SW_PORT_CNTL0); in spl2sw_mac_hw_stop() 33 reg |= FIELD_PREP(MAC_DIS_PORT, ~comm->enable); in spl2sw_mac_hw_stop() 34 writel(reg, comm->l2sw_reg_base + L2SW_PORT_CNTL0); in spl2sw_mac_hw_stop() 37 void spl2sw_mac_hw_start(struct spl2sw_common *comm) in spl2sw_mac_hw_start() argument [all …]
|
D | spl2sw_int.c | 19 struct spl2sw_common *comm = container_of(napi, struct spl2sw_common, rx_napi); in spl2sw_rx_poll() local 36 rx_pos = comm->rx_pos[queue]; in spl2sw_rx_poll() 37 rx_count = comm->rx_desc_num[queue]; in spl2sw_rx_poll() 40 sinfo = comm->rx_skb_info[queue] + rx_pos; in spl2sw_rx_poll() 41 desc = comm->rx_desc[queue] + rx_pos; in spl2sw_rx_poll() 48 if (port < MAX_NETDEV_NUM && comm->ndev[port]) in spl2sw_rx_poll() 49 stats = &comm->ndev[port]->stats; in spl2sw_rx_poll() 60 dma_unmap_single(&comm->pdev->dev, sinfo->mapping, in spl2sw_rx_poll() 61 comm->rx_desc_buff_size, DMA_FROM_DEVICE); in spl2sw_rx_poll() 66 skb->protocol = eth_type_trans(skb, comm->ndev[port]); in spl2sw_rx_poll() [all …]
|
D | spl2sw_driver.c | 28 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_open() local 33 comm->enable |= mac->lan_port; in spl2sw_ethernet_open() 35 spl2sw_mac_hw_start(comm); in spl2sw_ethernet_open() 38 mask = readl(comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 40 writel(mask, comm->l2sw_reg_base + L2SW_SW_INT_MASK_0); in spl2sw_ethernet_open() 52 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_stop() local 56 comm->enable &= ~mac->lan_port; in spl2sw_ethernet_stop() 60 spl2sw_mac_hw_stop(comm); in spl2sw_ethernet_stop() 69 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_start_xmit() local 78 if (unlikely(comm->tx_desc_full == 1)) { in spl2sw_ethernet_start_xmit() [all …]
|
D | spl2sw_mdio.c | 18 static int spl2sw_mdio_access(struct spl2sw_common *comm, u8 cmd, u8 addr, u8 regnum, u16 wdata) in spl2sw_mdio_access() argument 27 reg = readl(comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mdio_access() 37 spin_lock_irq(&comm->mdio_lock); in spl2sw_mdio_access() 38 writel(reg, comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mdio_access() 39 writel(reg2, comm->l2sw_reg_base + L2SW_PHY_CNTL_REG0); in spl2sw_mdio_access() 40 spin_unlock_irq(&comm->mdio_lock); in spl2sw_mdio_access() 43 comm->l2sw_reg_base + L2SW_PHY_CNTL_REG1); in spl2sw_mdio_access() 49 reg = readl(comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mdio_access() 52 writel(reg, comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mdio_access() 62 struct spl2sw_common *comm = bus->priv; in spl2sw_mii_read() local [all …]
|
D | spl2sw_desc.h | 9 void spl2sw_rx_descs_flush(struct spl2sw_common *comm); 10 void spl2sw_tx_descs_clean(struct spl2sw_common *comm); 11 void spl2sw_rx_descs_clean(struct spl2sw_common *comm); 12 void spl2sw_descs_clean(struct spl2sw_common *comm); 13 void spl2sw_descs_free(struct spl2sw_common *comm); 14 void spl2sw_tx_descs_init(struct spl2sw_common *comm); 15 int spl2sw_rx_descs_init(struct spl2sw_common *comm); 16 int spl2sw_descs_alloc(struct spl2sw_common *comm); 17 int spl2sw_descs_init(struct spl2sw_common *comm);
|
D | spl2sw_phy.c | 18 struct spl2sw_common *comm = mac->comm; in spl2sw_mii_link_change() local 21 reg = readl(comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mii_link_change() 51 writel(reg, comm->l2sw_reg_base + L2SW_MAC_FORCE_MODE); in spl2sw_mii_link_change() 56 int spl2sw_phy_connect(struct spl2sw_common *comm) in spl2sw_phy_connect() argument 64 if (comm->ndev[i]) { in spl2sw_phy_connect() 65 ndev = comm->ndev[i]; in spl2sw_phy_connect() 79 void spl2sw_phy_remove(struct spl2sw_common *comm) in spl2sw_phy_remove() argument 85 if (comm->ndev[i]) { in spl2sw_phy_remove() 86 ndev = comm->ndev[i]; in spl2sw_phy_remove()
|
D | spl2sw_mac.h | 9 void spl2sw_mac_hw_stop(struct spl2sw_common *comm); 10 void spl2sw_mac_hw_start(struct spl2sw_common *comm); 13 void spl2sw_mac_hw_init(struct spl2sw_common *comm); 15 void spl2sw_mac_init(struct spl2sw_common *comm); 16 void spl2sw_mac_soft_reset(struct spl2sw_common *comm);
|
/linux-6.6.21/tools/perf/util/ |
D | comm.c | 108 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() 110 struct comm *comm = zalloc(sizeof(*comm)); in comm__new() local 112 if (!comm) in comm__new() 115 comm->start = timestamp; in comm__new() 116 comm->exec = exec; in comm__new() 118 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new() 119 if (!comm->comm_str) { in comm__new() 120 free(comm); in comm__new() 124 return comm; in comm__new() 127 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override() argument [all …]
|
D | thread.c | 43 struct comm *comm; in thread__new() local 64 comm = comm__new(comm_str, 0, false); in thread__new() 66 if (!comm) in thread__new() 69 list_add(&comm->list, thread__comm_list(thread)); in thread__new() 95 struct comm *comm, *tmp_comm; in thread__delete() local 112 list_for_each_entry_safe(comm, tmp_comm, thread__comm_list(thread), list) { in thread__delete() 113 list_del_init(&comm->list); in thread__delete() 114 comm__free(comm); in thread__delete() 203 struct comm *thread__comm(struct thread *thread) in thread__comm() 208 return list_first_entry(thread__comm_list(thread), struct comm, list); in thread__comm() [all …]
|
D | comm.h | 11 struct comm { struct 22 void comm__free(struct comm *comm); argument 23 struct comm *comm__new(const char *str, u64 timestamp, bool exec); 24 const char *comm__str(const struct comm *comm); 25 int comm__override(struct comm *comm, const char *str, u64 timestamp,
|
D | db-export.c | 82 static int __db_export__comm(struct db_export *dbe, struct comm *comm, in __db_export__comm() argument 85 comm->db_id = ++dbe->comm_last_db_id; in __db_export__comm() 88 return dbe->export_comm(dbe, comm, thread); in __db_export__comm() 93 int db_export__comm(struct db_export *dbe, struct comm *comm, in db_export__comm() argument 96 if (comm->db_id) in db_export__comm() 99 return __db_export__comm(dbe, comm, thread); in db_export__comm() 108 int db_export__exec_comm(struct db_export *dbe, struct comm *comm, in db_export__exec_comm() argument 113 if (comm->db_id) in db_export__exec_comm() 116 err = __db_export__comm(dbe, comm, main_thread); in db_export__exec_comm() 130 return db_export__comm_thread(dbe, comm, main_thread); in db_export__exec_comm() [all …]
|
D | db-export.h | 16 struct comm; 46 int (*export_comm)(struct db_export *dbe, struct comm *comm, 49 struct comm *comm, struct thread *thread); 86 int db_export__comm(struct db_export *dbe, struct comm *comm, 88 int db_export__exec_comm(struct db_export *dbe, struct comm *comm, 90 int db_export__comm_thread(struct db_export *dbe, struct comm *comm,
|
/linux-6.6.21/drivers/staging/media/meson/vdec/ |
D | codec_hevc_common.c | 57 struct codec_hevc_common *comm, in codec_hevc_setup_buffers_gxbb() argument 77 buf_y_paddr = comm->fbc_buffer_paddr[idx]; in codec_hevc_setup_buffers_gxbb() 112 struct codec_hevc_common *comm, in codec_hevc_setup_buffers_gxl() argument 131 buf_y_paddr = comm->mmu_header_paddr[idx]; in codec_hevc_setup_buffers_gxl() 133 buf_y_paddr = comm->fbc_buffer_paddr[idx]; in codec_hevc_setup_buffers_gxl() 154 struct codec_hevc_common *comm) in codec_hevc_free_fbc_buffers() argument 161 if (comm->fbc_buffer_vaddr[i]) { in codec_hevc_free_fbc_buffers() 163 comm->fbc_buffer_vaddr[i], in codec_hevc_free_fbc_buffers() 164 comm->fbc_buffer_paddr[i]); in codec_hevc_free_fbc_buffers() 165 comm->fbc_buffer_vaddr[i] = NULL; in codec_hevc_free_fbc_buffers() [all …]
|
/linux-6.6.21/tools/perf/tests/ |
D | keep-tracking.c | 33 static int find_comm(struct evlist *evlist, const char *comm) in find_comm() argument 46 (pid_t)event->comm.pid == getpid() && in find_comm() 47 (pid_t)event->comm.tid == getpid() && in find_comm() 48 strcmp(event->comm.comm, comm) == 0) in find_comm() 79 const char *comm; in test__keep_tracking() local 99 evsel->core.attr.comm = 1; in test__keep_tracking() 118 comm = "Test COMM 1"; in test__keep_tracking() 119 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking() 123 found = find_comm(evlist, comm); in test__keep_tracking() 140 comm = "Test COMM 2"; in test__keep_tracking() [all …]
|
D | switch-tracking.c | 75 union perf_event *event, const char *comm, int nr) in check_comm() argument 78 (pid_t)event->comm.pid == getpid() && in check_comm() 79 (pid_t)event->comm.tid == getpid() && in check_comm() 80 strcmp(event->comm.comm, comm) == 0) { in check_comm() 86 pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr); in check_comm() 345 const char *comm; in test__switch_tracking() local 442 if (!tracking_evsel->core.attr.mmap || !tracking_evsel->core.attr.comm) { in test__switch_tracking() 450 if (evsel->core.attr.mmap || evsel->core.attr.comm) { in test__switch_tracking() 483 comm = "Test COMM 1"; in test__switch_tracking() 484 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking() [all …]
|
/linux-6.6.21/tools/perf/scripts/python/ |
D | netdev-times.py | 232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 235 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 241 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument 247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument 257 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret) [all …]
|
D | intel-pt-events.py | 231 def common_start_str(comm, sample): argument 239 …return "VM:%5d VCPU:%03d %16s %5u/%-5u [%03u] %9u.%09u " % (machine_pid, vcpu, comm, pid, tid, cp… 241 return "%16s %5u/%-5u [%03u] %9u.%09u " % (comm, pid, tid, cpu, ts / 1000000000, ts %1000000000) 243 def print_common_start(comm, sample, name): argument 251 print(common_start_str(comm, sample) + "%8s %21s" % (name, flags_disp), end=' ') 253 def print_instructions_start(comm, sample): argument 255 print(common_start_str(comm, sample) + "x", end=' ') 257 print(common_start_str(comm, sample), end=' ') 299 def print_srccode(comm, param_dict, sample, symbol, dso, with_insn): argument 302 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40) [all …]
|
/linux-6.6.21/include/trace/events/ |
D | sched.h | 23 __array( char, comm, TASK_COMM_LEN ) 28 memcpy(__entry->comm, t->comm, TASK_COMM_LEN); 32 TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid) 148 __array( char, comm, TASK_COMM_LEN ) 155 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); 162 __entry->comm, __entry->pid, __entry->prio, 242 memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN); 246 memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN); 281 __array( char, comm, TASK_COMM_LEN ) 289 memcpy(__entry->comm, p->comm, TASK_COMM_LEN); [all …]
|
D | task.h | 17 __array( char, comm, TASK_COMM_LEN) 24 memcpy(__entry->comm, task->comm, TASK_COMM_LEN); 30 __entry->pid, __entry->comm, 36 TP_PROTO(struct task_struct *task, const char *comm), 38 TP_ARGS(task, comm), 49 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN); 50 strscpy(entry->newcomm, comm, TASK_COMM_LEN);
|
D | block.h | 184 __array( char, comm, TASK_COMM_LEN ) 196 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 203 __entry->nr_sector, __entry->comm) 323 __array( char, comm, TASK_COMM_LEN ) 331 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 337 __entry->nr_sector, __entry->comm) 414 __array( char, comm, TASK_COMM_LEN ) 418 memcpy(__entry->comm, current->comm, TASK_COMM_LEN); 421 TP_printk("[%s]", __entry->comm) 432 __array( char, comm, TASK_COMM_LEN ) [all …]
|
/linux-6.6.21/tools/perf/scripts/perl/ |
D | rw-by-pid.pl | 48 $reads{$common_pid}{comm} = $common_comm; 70 $writes{$common_pid}{comm} = $common_comm; 84 my $comm = $reads{$pid}{comm} || ""; 89 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm, 103 my $comm = $reads{$pid}{comm} || ""; 105 push @errcounts, [$pid, $comm, $error, $errcount]; 125 my $comm = $writes{$pid}{comm} || ""; 129 printf("%6s %-20s %10s %10s\n", $pid, $comm, 143 my $comm = $writes{$pid}{comm} || ""; 145 push @errcounts, [$pid, $comm, $error, $errcount];
|
/linux-6.6.21/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | EventClass.py | 26 def create_event(name, comm, dso, symbol, raw_buf): argument 28 event = PebsEvent(name, comm, dso, symbol, raw_buf) 30 event = PebsNHM(name, comm, dso, symbol, raw_buf) 32 event = PerfEvent(name, comm, dso, symbol, raw_buf) 38 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument 40 self.comm = comm 49 (self.name, self.symbol, self.comm, self.dso)) 58 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument 72 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type) 87 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument [all …]
|
/linux-6.6.21/drivers/scsi/aacraid/ |
D | comminit.c | 375 struct aac_queue_block * comm = dev->queues; in aac_comm_init() local 397 comm->queue[HostNormCmdQueue].base = queues; in aac_comm_init() 398 aac_queue_init(dev, &comm->queue[HostNormCmdQueue], headers, HOST_NORM_CMD_ENTRIES); in aac_comm_init() 403 comm->queue[HostHighCmdQueue].base = queues; in aac_comm_init() 404 aac_queue_init(dev, &comm->queue[HostHighCmdQueue], headers, HOST_HIGH_CMD_ENTRIES); in aac_comm_init() 410 comm->queue[AdapNormCmdQueue].base = queues; in aac_comm_init() 411 aac_queue_init(dev, &comm->queue[AdapNormCmdQueue], headers, ADAP_NORM_CMD_ENTRIES); in aac_comm_init() 417 comm->queue[AdapHighCmdQueue].base = queues; in aac_comm_init() 418 aac_queue_init(dev, &comm->queue[AdapHighCmdQueue], headers, ADAP_HIGH_CMD_ENTRIES); in aac_comm_init() 424 comm->queue[HostNormRespQueue].base = queues; in aac_comm_init() [all …]
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | pids.c | 50 e->id, e->pid, e->comm); in add_ref() 56 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 66 e->id, e->pid, e->comm); in add_ref() 74 e->id, e->pid, e->comm); in add_ref() 79 memcpy(ref->comm, e->comm, sizeof(ref->comm)); in add_ref() 220 jsonw_string_field(json_writer, "comm", ref->comm); in emit_obj_refs_json() 249 printf("%s%s(%d)", i == 0 ? "" : ", ", ref->comm, ref->pid); in emit_obj_refs_plain()
|