/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | devlink_port.c | 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() 55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 141 struct netdev_phys_item_id ppid = {}; in mlx5_esw_devlink_sf_port_register() local 153 mlx5_esw_get_port_parent_id(dev, &ppid); in mlx5_esw_devlink_sf_port_register() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | devlink.c | 8 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/drivers/spmi/ |
A D | spmi-pmic-arb.c | 117 u16 ppid; member 487 u16 ppid = pmic_arb->apid_data[apid].ppid; in cleanup_irq() local 697 u16 apid, ppid; in qpnpint_irq_domain_translate() local 805 pmic_arb->apid_data[apid].ppid = ppid; in pmic_arb_ppid_to_apid_v1() 815 pmic_arb->apid_data[apid].ppid = ppid; in pmic_arb_ppid_to_apid_v1() 853 apidd->ppid = id; in pmic_arb_find_apid() 854 if (id == ppid) { in pmic_arb_find_apid() 881 u16 i, apid, ppid; in pmic_arb_read_apid_map_v5() local 925 apidd->ppid = ppid; in pmic_arb_read_apid_map_v5() 931 for (ppid = 0; ppid < PMIC_ARB_MAX_PPID; ppid++) { in pmic_arb_read_apid_map_v5() [all …]
|
/linux/tools/testing/selftests/cgroup/ |
A D | test_kill.c | 48 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()
|
A D | test_freezer.c | 123 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()
|
A D | test_memcontrol.c | 199 int ppid = getppid(); in alloc_pagecache_50M_noexit() local 204 while (getppid() == ppid) in alloc_pagecache_50M_noexit() 212 int ppid = getppid(); in alloc_anon_noexit() local 217 while (getppid() == ppid) in alloc_anon_noexit()
|
/linux/tools/testing/selftests/vm/ |
A D | memfd_secret.c | 109 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()
|
/linux/tools/testing/selftests/powerpc/signal/ |
A D | signal.c | 40 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/net/bridge/ |
A D | br_switchdev.c | 194 if (netdev_phys_item_id_same(&joining->ppid, &p->ppid)) { in nbp_switchdev_hwdom_set() 224 struct netdev_phys_item_id ppid, in nbp_switchdev_add() argument 235 if (!netdev_phys_item_id_same(&p->ppid, &ppid)) { in nbp_switchdev_add() 250 p->ppid = ppid; in nbp_switchdev_add() 726 struct netdev_phys_item_id ppid; in br_switchdev_port_offload() local 729 err = dev_get_port_parent_id(dev, &ppid, false); in br_switchdev_port_offload() 733 err = nbp_switchdev_add(p, ppid, tx_fwd_offload, extack); in br_switchdev_port_offload()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_port.c | 34 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/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_netdev.c | 171 struct netdev_phys_item_id *ppid) in sparx5_get_port_parent_id() argument 176 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id() 177 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
|
/linux/Documentation/trace/postprocess/ |
A D | trace-pagealloc-postprocess.pl | 169 my $ppid; 180 $ppid = $1; 181 return guess_process_pid($ppid, read_statline($ppid));
|
/linux/tools/testing/selftests/resctrl/ |
A D | resctrl.h | 40 kill(ppid, SIGKILL); \ 75 extern pid_t bm_pid, ppid;
|
/linux/tools/testing/selftests/uevent/ |
A D | uevent_filtering.c | 221 pid_t ppid; in set_death_signal() local 226 ppid = getppid(); in set_death_signal() 227 if (ppid == 1) { in set_death_signal()
|
/linux/tools/perf/util/ |
A D | synthetic-events.c | 73 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() 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 274 event->fork.ppid = ppid; in perf_event__synthesize_fork() 275 event->fork.ptid = ppid; in perf_event__synthesize_fork() 277 event->fork.ppid = tgid; in perf_event__synthesize_fork() 723 pid_t tgid, ppid; in __event__synthesize_thread() local [all …]
|
A D | thread.c | 48 thread->ppid = -1; in thread__new() 403 thread->ppid = parent->tid; in thread__fork()
|
/linux/fs/proc/ |
A D | array.c | 150 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local 154 ppid = pid_alive(p) ? in task_state() 181 seq_put_decimal_ull(m, "\nPPid:\t", ppid); in task_state() 460 pid_t ppid = 0, pgid = -1, sid = -1; in do_task_stat() local 537 ppid = task_tgid_nr_ns(task->real_parent, ns); in do_task_stat() 566 seq_put_decimal_ll(m, " ", ppid); in do_task_stat()
|
/linux/tools/testing/selftests/ptrace/ |
A D | peeksiginfo.c | 168 pid_t ppid = getppid(); in main() local 170 if (ppid != getppid()) in main()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_vf_rep.c | 41 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/tools/perf/ |
A D | builtin-timechart.c | 93 int ppid; member 242 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument 246 pp = find_create_pid(tchart, ppid); in pid_fork() 247 p->ppid = ppid; in pid_fork() 329 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event() 984 if (cursor->ppid > p->ppid || in sort_pids() 985 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
|
/linux/arch/um/os-Linux/ |
A D | start_up.c | 32 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local 51 else if (sc_result == ppid) in ptrace_child()
|
/linux/include/linux/ |
A D | sctp.h | 224 __u32 ppid; member 239 __u32 ppid; member
|
/linux/net/core/ |
A D | net-sysfs.c | 519 struct netdev_phys_item_id ppid; in phys_port_id_show() local 521 ret = dev_get_phys_port_id(netdev, &ppid); in phys_port_id_show() 523 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show() 578 struct netdev_phys_item_id ppid = { }; in phys_switch_id_show() local 580 ret = dev_get_port_parent_id(netdev, &ppid, false); in phys_switch_id_show() 582 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
A D | core.c | 188 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()
|
/linux/drivers/net/ethernet/sfc/ |
A D | efx_common.h | 112 struct netdev_phys_item_id *ppid);
|