Home
last modified time | relevance | path

Searched refs:ppid (Results 1 – 25 of 86) sorted by relevance

1234

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c8 mlx5_esw_get_port_parent_id(struct mlx5_core_dev *dev, struct netdev_phys_item_id *ppid) in mlx5_esw_get_port_parent_id() argument
13 ppid->id_len = sizeof(parent_id); in mlx5_esw_get_port_parent_id()
14 memcpy(ppid->id, &parent_id, sizeof(parent_id)); in mlx5_esw_get_port_parent_id()
28 struct netdev_phys_item_id ppid = {}; in mlx5_esw_dl_port_alloc() local
38 mlx5_esw_get_port_parent_id(dev, &ppid); in mlx5_esw_dl_port_alloc()
47 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
48 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
51 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
52 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
[all …]
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c8 mlx5e_devlink_get_port_parent_id(struct mlx5_core_dev *dev, struct netdev_phys_item_id *ppid) in mlx5e_devlink_get_port_parent_id() argument
13 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id()
14 memcpy(ppid->id, &parent_id, sizeof(parent_id)); in mlx5e_devlink_get_port_parent_id()
21 struct netdev_phys_item_id ppid = {}; in mlx5e_devlink_port_register() local
29 mlx5e_devlink_get_port_parent_id(priv->mdev, &ppid); in mlx5e_devlink_port_register()
30 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register()
31 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
/linux-5.19.10/drivers/spmi/
Dspmi-pmic-arb.c117 u16 ppid; member
186 int (*ppid_to_apid)(struct spmi_pmic_arb *pmic_arb, u16 ppid);
588 u16 ppid = pmic_arb->apid_data[apid].ppid; in cleanup_irq() local
589 u8 sid = ppid >> 8; in cleanup_irq()
590 u8 per = ppid & 0xFF; in cleanup_irq()
598 irq_mask, ppid); in cleanup_irq()
603 irq_mask, ppid); in cleanup_irq()
610 u8 sid = (pmic_arb->apid_data[apid].ppid >> 8) & 0xF; in periph_interrupt()
611 u8 per = pmic_arb->apid_data[apid].ppid & 0xFF; in periph_interrupt()
802 u16 apid, ppid; in qpnpint_irq_domain_translate() local
[all …]
/linux-5.19.10/tools/testing/selftests/cgroup/
Dtest_kill.c48 int ppid = getppid(); in child_fn() local
50 while (getppid() == ppid) in child_fn()
53 return getppid() == ppid; in child_fn()
206 int ppid; in forkbomb_fn() local
211 ppid = getppid(); in forkbomb_fn()
213 while (getppid() == ppid) in forkbomb_fn()
216 return getppid() == ppid; in forkbomb_fn()
Dtest_freezer.c123 int ppid = getppid(); in child_fn() local
125 while (getppid() == ppid) in child_fn()
128 return getppid() == ppid; in child_fn()
342 int ppid; in forkbomb_fn() local
347 ppid = getppid(); in forkbomb_fn()
349 while (getppid() == ppid) in forkbomb_fn()
352 return getppid() == ppid; in forkbomb_fn()
Dtest_memcontrol.c196 int ppid = getppid(); in alloc_pagecache_50M_noexit() local
201 while (getppid() == ppid) in alloc_pagecache_50M_noexit()
209 int ppid = getppid(); in alloc_anon_noexit() local
217 while (getppid() == ppid) in alloc_anon_noexit()
/linux-5.19.10/tools/testing/selftests/powerpc/signal/
Dsignal.c40 pid_t ppid = getpid(); in test_signal() local
63 signal_self(ppid, SIGUSR1); in test_signal()
85 rc = signal_self(ppid, SIGUSR1); in test_signal()
/linux-5.19.10/tools/testing/selftests/vm/
Dmemfd_secret.c109 pid_t ppid = getppid(); in try_ptrace() local
119 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0); in try_ptrace()
125 ret = waitpid(ppid, &status, WUNTRACED); in try_ptrace()
126 if ((ret != ppid) || !(WIFSTOPPED(status))) { in try_ptrace()
132 if (ptrace(PTRACE_PEEKDATA, ppid, mem, 0)) in try_ptrace()
Dmrelease_test.c30 int ppid = getppid(); in alloc_noexit() local
52 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c34 struct netdev_phys_item_id *ppid) in nfp_port_get_port_parent_id() argument
43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_get_port_parent_id()
44 memcpy(&ppid->id, serial, ppid->id_len); in nfp_port_get_port_parent_id()
/linux-5.19.10/net/bridge/
Dbr_switchdev.c196 if (netdev_phys_item_id_same(&joining->ppid, &p->ppid)) { in nbp_switchdev_hwdom_set()
226 struct netdev_phys_item_id ppid, in nbp_switchdev_add() argument
237 if (!netdev_phys_item_id_same(&p->ppid, &ppid)) { in nbp_switchdev_add()
252 p->ppid = ppid; in nbp_switchdev_add()
784 struct netdev_phys_item_id ppid; in br_switchdev_port_offload() local
787 err = dev_get_port_parent_id(dev, &ppid, false); in br_switchdev_port_offload()
791 err = nbp_switchdev_add(p, ppid, tx_fwd_offload, extack); in br_switchdev_port_offload()
/linux-5.19.10/Documentation/trace/postprocess/
Dtrace-pagealloc-postprocess.pl169 my $ppid;
180 $ppid = $1;
181 return guess_process_pid($ppid, read_statline($ppid));
/linux-5.19.10/drivers/net/ethernet/microchip/sparx5/
Dsparx5_netdev.c191 struct netdev_phys_item_id *ppid) in sparx5_get_port_parent_id() argument
196 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id()
197 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
/linux-5.19.10/tools/testing/selftests/resctrl/
Dresctrl.h43 kill(ppid, SIGKILL); \
78 extern pid_t bm_pid, ppid;
/linux-5.19.10/tools/testing/selftests/uevent/
Duevent_filtering.c221 pid_t ppid; in set_death_signal() local
226 ppid = getppid(); in set_death_signal()
227 if (ppid == 1) { in set_death_signal()
/linux-5.19.10/tools/testing/selftests/ptrace/
Dpeeksiginfo.c168 pid_t ppid = getppid(); in main() local
170 if (ppid != getppid()) in main()
/linux-5.19.10/fs/proc/
Darray.c152 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local
156 ppid = pid_alive(p) ? in task_state()
183 seq_put_decimal_ull(m, "\nPPid:\t", ppid); in task_state()
462 pid_t ppid = 0, pgid = -1, sid = -1; in do_task_stat() local
543 ppid = task_tgid_nr_ns(task->real_parent, ns); in do_task_stat()
572 seq_put_decimal_ll(m, " ", ppid); in do_task_stat()
/linux-5.19.10/tools/perf/util/
Dsynthetic-events.c73 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__get_comm_ids() argument
82 *ppid = -1; in perf_event__get_comm_ids()
140 *ppid = atoi(ppids); in perf_event__get_comm_ids()
155 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__prepare_comm() argument
159 *ppid = -1; in perf_event__prepare_comm()
166 tgid, ppid, kernel) != 0) { in perf_event__prepare_comm()
195 pid_t tgid, ppid; in perf_event__synthesize_comm() local
198 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid, in perf_event__synthesize_comm()
262 pid_t pid, pid_t tgid, pid_t ppid, in perf_event__synthesize_fork() argument
274 event->fork.ppid = ppid; in perf_event__synthesize_fork()
[all …]
/linux-5.19.10/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c41 struct netdev_phys_item_id *ppid);
449 struct netdev_phys_item_id *ppid) in lio_vf_get_port_parent_id() argument
455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
456 ether_addr_copy(ppid->id, (void *)&lio->linfo.hw_addr + 2); in lio_vf_get_port_parent_id()
/linux-5.19.10/arch/um/os-Linux/
Dstart_up.c32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local
51 else if (sc_result == ppid) in ptrace_child()
/linux-5.19.10/tools/perf/
Dbuiltin-timechart.c94 int ppid; member
243 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument
247 pp = find_create_pid(tchart, ppid); in pid_fork()
248 p->ppid = ppid; in pid_fork()
330 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
985 if (cursor->ppid > p->ppid || in sort_pids()
986 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
/linux-5.19.10/include/linux/
Dsctp.h224 __u32 ppid; member
239 __u32 ppid; member
/linux-5.19.10/net/core/
Ddev.h73 struct netdev_phys_item_id *ppid);
Dnet-sysfs.c513 struct netdev_phys_item_id ppid; in phys_port_id_show() local
515 ret = dev_get_phys_port_id(netdev, &ppid); in phys_port_id_show()
517 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
572 struct netdev_phys_item_id ppid = { }; in phys_switch_id_show() local
574 ret = dev_get_port_parent_id(netdev, &ppid, false); in phys_switch_id_show()
576 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
/linux-5.19.10/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c188 struct netdev_phys_item_id *ppid) in qtnf_netdev_port_parent_id() argument
193 ppid->id_len = sizeof(bus->hw_id); in qtnf_netdev_port_parent_id()
194 memcpy(&ppid->id, bus->hw_id, ppid->id_len); in qtnf_netdev_port_parent_id()

1234