/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | devlink_port.c | 8 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() 29 struct netdev_phys_item_id ppid = {}; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() local 34 mlx5_esw_get_port_parent_id(dev, &ppid); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 41 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 42 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 46 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 50 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | devlink.c | 41 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 46 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id() 47 memcpy(ppid->id, &parent_id, sizeof(parent_id)); in mlx5e_devlink_get_port_parent_id() 55 struct netdev_phys_item_id ppid = {}; in mlx5e_devlink_port_register() local 62 mlx5e_devlink_get_port_parent_id(mdev, &ppid); in mlx5e_devlink_port_register() 63 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register() 64 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
|
/linux/drivers/spmi/ |
H A D | spmi-pmic-arb.c | 127 u16 ppid; member 231 int (*ppid_to_apid)(struct spmi_pmic_arb_bus *bus, u16 ppid); 643 u16 ppid = bus->apid_data[apid].ppid; in cleanup_irq() local 644 u8 sid = ppid >> 8; in cleanup_irq() 645 u8 per = ppid & 0xFF; in cleanup_irq() 659 u8 sid = (bus->apid_data[apid].ppid >> 8) & 0xF; in periph_interrupt() 660 u8 per = bus->apid_data[apid].ppid & 0xFF; in periph_interrupt() 906 u16 apid, ppid; in qpnpint_irq_domain_translate() local 919 ppid = intspec[0] << 8 | intspec[1]; in qpnpint_irq_domain_translate() 920 rc = pmic_arb->ver_ops->ppid_to_apid(bus, ppid); in qpnpint_irq_domain_translate() [all …]
|
/linux/tools/testing/selftests/cgroup/ |
H 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()
|
H 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()
|
/linux/tools/testing/selftests/powerpc/signal/ |
H 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/tools/testing/selftests/resctrl/ |
H A D | resctrl_val.c | 451 static pid_t bm_pid, ppid; variable 509 static void parent_exit(pid_t ppid) in parent_exit() argument 511 kill(ppid, SIGKILL); in parent_exit() 641 parent_exit(ppid); in run_benchmark() 655 parent_exit(ppid); in run_benchmark() 669 parent_exit(ppid); in run_benchmark() 706 ppid = getpid(); in resctrl_val() 740 parent_exit(ppid); in resctrl_val() 758 parent_exit(ppid); in resctrl_val()
|
/linux/tools/testing/selftests/mm/ |
H A D | memfd_secret.c | 150 pid_t ppid = getppid(); in try_ptrace() local 160 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0); in try_ptrace() 166 ret = waitpid(ppid, &status, WUNTRACED); in try_ptrace() 167 if ((ret != ppid) || !(WIFSTOPPED(status))) { in try_ptrace() 173 if (ptrace(PTRACE_PEEKDATA, ppid, mem, 0)) in try_ptrace()
|
H A D | mrelease_test.c | 22 int ppid = getppid(); in alloc_noexit() local 40 while (getppid() == ppid && timeout > 0) { in alloc_noexit()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H 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/net/bridge/ |
H A D | br_switchdev.c | 209 if (netdev_phys_item_id_same(&joining->ppid, &p->ppid)) { in nbp_switchdev_hwdom_set() 239 struct netdev_phys_item_id ppid, in nbp_switchdev_add() argument 250 if (!netdev_phys_item_id_same(&p->ppid, &ppid)) { in nbp_switchdev_add() 265 p->ppid = ppid; in nbp_switchdev_add() 829 struct netdev_phys_item_id ppid; in br_switchdev_port_offload() local 832 err = dev_get_port_parent_id(dev, &ppid, false); in br_switchdev_port_offload() 836 err = nbp_switchdev_add(p, ppid, tx_fwd_offload, extack); in br_switchdev_port_offload()
|
/linux/tools/perf/util/ |
H A D | thread.h | 39 pid_t ppid; in DECLARE_RC_STRUCT() local 162 return RC_CHK_ACCESS(thread)->ppid; in thread__ppid() 165 static inline void thread__set_ppid(struct thread *thread, pid_t ppid) in thread__set_ppid() argument 167 RC_CHK_ACCESS(thread)->ppid = ppid; in thread__set_ppid()
|
H 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() 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/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 169 my $ppid; 180 $ppid = $1; 181 return guess_process_pid($ppid, read_statline($ppid));
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_devlink.c | 188 struct netdev_phys_item_id *ppid) in i40e_devlink_set_switch_id() argument 192 ppid->id_len = sizeof(id); in i40e_devlink_set_switch_id() 193 put_unaligned_be64(id, &ppid->id); in i40e_devlink_set_switch_id()
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_netdev.c | 202 struct netdev_phys_item_id *ppid) in sparx5_get_port_parent_id() argument 207 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id() 208 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
|
/linux/tools/perf/tests/shell/ |
H A D | test_intel_pt.sh | 264 ppid=$! 265 echo "perf PID is $ppid" 266 wait_for_perf_to_start ${ppid} "${errfile}" || return 1 270 is_running ${ppid} || return 1 274 wait_for_process_to_exit ${ppid} || return 1
|
/linux/tools/testing/selftests/uevent/ |
H A D | uevent_filtering.c | 223 pid_t ppid; in set_death_signal() local 228 ppid = getppid(); in set_death_signal() 229 if (ppid == 1) { in set_death_signal()
|
/linux/fs/proc/ |
H A D | array.c | 156 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local 160 ppid = pid_alive(p) ? in task_state() 187 seq_put_decimal_ull(m, "\nPPid:\t", ppid); in task_state() 475 pid_t ppid = 0, pgid = -1, sid = -1; in do_task_stat() local 534 ppid = task_tgid_nr_ns(task->real_parent, ns); in do_task_stat() 594 seq_put_decimal_ll(m, " ", ppid); in do_task_stat()
|
/linux/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 168 pid_t ppid = getppid(); in main() local 170 if (ppid != getppid()) in main()
|
/linux/arch/um/os-Linux/ |
H A D | start_up.c | 35 int pid = os_getpid(), ppid = getppid(); in ptrace_child() local 54 else if (sc_result == ppid) in ptrace_child()
|
/linux/tools/perf/ |
H A D | builtin-timechart.c | 96 int ppid; member 255 static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp) in pid_fork() argument 259 pp = find_create_pid(tchart, ppid); in pid_fork() 260 p->ppid = ppid; in pid_fork() 339 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event() 993 if (cursor->ppid > p->ppid || in sort_pids() 994 (cursor->ppid == p->ppid && cursor->pid > p->pid)) { in sort_pids()
|
/linux/include/linux/ |
H A D | sctp.h | 224 __u32 ppid; member 239 __u32 ppid; member
|
/linux/drivers/net/ethernet/sfc/ |
H A D | ef100_rep.c | 82 struct netdev_phys_item_id *ppid) in efx_ef100_rep_get_port_parent_id() argument 90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id() 91 memcpy(ppid->id, nic_data->port_id, sizeof(nic_data->port_id)); in efx_ef100_rep_get_port_parent_id()
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H 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()
|