/kernel/linux/linux-5.10/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_dl_port_alloc() local 39 mlx5_esw_get_port_parent_id(dev, &ppid); in mlx5_esw_dl_port_alloc() 48 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc() 49 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc() 52 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid in mlx5_esw_dl_port_alloc() [all...] |
/kernel/linux/linux-6.6/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 in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 108 struct netdev_phys_item_id ppid = {}; mlx5_esw_offloads_sf_devlink_port_attrs_set() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | devlink.c | 33 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 38 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id() 39 memcpy(ppid->id, &parent_id, sizeof(parent_id)); in mlx5e_devlink_get_port_parent_id() 47 struct netdev_phys_item_id ppid = {}; in mlx5e_devlink_port_register() local 54 mlx5e_devlink_get_port_parent_id(mdev, &ppid); in mlx5e_devlink_port_register() 55 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register() 56 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
|
/kernel/linux/linux-5.10/drivers/spmi/ |
H A D | spmi-pmic-arb.c | 117 u16 ppid; member 168 * @ppid_to_apid: finds the apid for a given ppid. 172 * on v2 offset of per-ee and per-ppid channel. 186 int (*ppid_to_apid)(struct spmi_pmic_arb *pmic_arb, u16 ppid); 487 u16 ppid = pmic_arb->apid_data[apid].ppid; in cleanup_irq() local 488 u8 sid = ppid >> 8; in cleanup_irq() 489 u8 per = ppid & 0xFF; in cleanup_irq() 496 dev_err_ratelimited(&pmic_arb->spmic->dev, "failed to ack irq_mask = 0x%x for ppid = %x\n", in cleanup_irq() 497 irq_mask, ppid); in cleanup_irq() 697 u16 apid, ppid; qpnpint_irq_domain_translate() local 777 pmic_arb_ppid_to_apid_v1(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v1() argument 831 pmic_arb_find_apid(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_find_apid() argument 864 pmic_arb_ppid_to_apid_v2(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v2() argument 881 u16 i, apid, ppid; pmic_arb_read_apid_map_v5() local 945 pmic_arb_ppid_to_apid_v5(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v5() argument 958 u16 ppid; pmic_arb_offset_v2() local 980 u16 ppid = (sid << 8) | (addr >> 8); pmic_arb_offset_v5() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/getppid/ |
H A D | getppid01.c | 17 pid_t ppid, pid_max; in verify_getppid() local 21 ppid = getppid(); in verify_getppid() 22 if (ppid > pid_max) in verify_getppid() 23 tst_res(TFAIL, "getppid() returned %d, out of range!", ppid); in verify_getppid() 25 tst_res(TPASS, "getppid() returned %d", ppid); in verify_getppid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 1-1.c | 35 int ret, ppid; in main() local 56 ppid = getpid(); in main() 58 if (pid != ppid) { in main() 59 printf("Test FAILED: Pids are different %i != %i\n", pid, ppid); in main()
|
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/ |
H A D | cgroup_fj_stress.sh | 65 local ppid="$3" 72 if [ -z "$ppid" ]; then 77 pid="$ppid" 88 attach_task "$new_path" $((cur_depth+1)) "$ppid" 91 if [ -n "$ppid" ]; then
|
/kernel/linux/linux-6.6/drivers/spmi/ |
H A D | spmi-pmic-arb.c | 123 u16 ppid; member 186 * @ppid_to_apid: finds the apid for a given ppid. 190 * on v2 offset of per-ee and per-ppid channel. 205 int (*ppid_to_apid)(struct spmi_pmic_arb *pmic_arb, u16 ppid); 608 u16 ppid = pmic_arb->apid_data[apid].ppid; in cleanup_irq() local 609 u8 sid = ppid >> 8; in cleanup_irq() 610 u8 per = ppid & 0xFF; in cleanup_irq() 623 u8 sid = (pmic_arb->apid_data[apid].ppid >> 8) & 0xF; in periph_interrupt() 624 u8 per = pmic_arb->apid_data[apid].ppid in periph_interrupt() 865 u16 apid, ppid; qpnpint_irq_domain_translate() local 945 pmic_arb_ppid_to_apid_v1(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v1() argument 999 pmic_arb_find_apid(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_find_apid() argument 1032 pmic_arb_ppid_to_apid_v2(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v2() argument 1049 u16 i, apid, ppid, apid_max; pmic_arb_read_apid_map_v5() local 1122 pmic_arb_ppid_to_apid_v5(struct spmi_pmic_arb *pmic_arb, u16 ppid) pmic_arb_ppid_to_apid_v5() argument 1135 u16 ppid; pmic_arb_offset_v2() local 1157 u16 ppid = (sid << 8) | (addr >> 8); pmic_arb_offset_v5() local 1191 u16 ppid = (sid << 8) | (addr >> 8); pmic_arb_offset_v7() local [all...] |
/third_party/ltp/utils/sctp/func_tests/ |
H A D | test_inaddr_any.c | 84 uint32_t ppid; in main() local 168 ppid = rand(); /* Choose an arbitrary value. */ in main() 170 sinfo->sinfo_ppid = ppid; in main() 202 MSG_EOR, stream, ppid); in main() 216 ppid++; in main() 218 sinfo->sinfo_ppid = ppid; in main() 232 MSG_EOR, stream, ppid); in main() 237 MSG_EOR, stream, ppid); in main()
|
H A D | test_sctp_sendrecvmsg.c | 82 uint32_t ppid; in main() local 170 ppid = rand(); in main() 174 ppid, 0, stream, 0, 0); in main() 224 strlen(message) + 1, MSG_EOR, stream, ppid); in main() 244 ppid++; in main() 248 ppid, 0, stream, 0, 0); in main() 253 ppid, 0, stream, 2000, 0); in main() 260 ppid, 0, stream, 0, 0); in main() 269 ppid, 0, stream, 2000, 0); in main() 295 strlen(nottlmsg) + 1, MSG_EOR, stream, ppid); in main() [all...] |
H A D | test_timetolive.c | 106 uint32_t ppid; in main() local 210 ppid = rand(); /* Choose an arbitrary value. */ in main() 212 sinfo->sinfo_ppid = ppid; in main() 259 MSG_EOR, stream, ppid); in main() 284 ppid++; in main() 286 sinfo->sinfo_ppid = ppid; in main() 300 sinfo->sinfo_ppid = ppid; in main() 313 sinfo->sinfo_ppid = ppid; in main() 326 sinfo->sinfo_ppid = ppid; in main() 354 MSG_EOR, stream, ppid); in main() [all...] |
H A D | test_fragments.c | 91 uint32_t ppid; in main() local 160 ppid = rand(); /* Choose an arbitrary value. */ in main() 162 sinfo->sinfo_ppid = ppid; in main() 203 test_check_msg_data(&inmessage, error, msg_len, MSG_EOR, stream, ppid); in main() 265 MSG_EOR, stream, ppid); in main() 271 stream, ppid); in main() 279 MSG_EOR, stream, ppid); in main()
|
H A D | test_peeloff.c | 77 uint32_t ppid; in main() local 149 ppid = rand(); /* Choose an arbitrary value. */ in main() 151 sinfo->sinfo_ppid = ppid; in main() 196 MSG_EOR, stream, ppid); in main() 237 MSG_EOR, stream, ppid); in main() 258 MSG_EOR, stream, ppid); in main() 277 MSG_EOR, stream, ppid); in main()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns20.c | 33 pid_t cpid, ppid; in child_func() local 36 ppid = getppid(); in child_func() 38 if (cpid != 1 || ppid != 0) { in child_func() 39 tst_res(TFAIL, "Got unexpected result of cpid=%d ppid=%d", cpid, ppid); in child_func()
|
H A D | pidns01.c | 22 pid_t cpid, ppid; in child_func() local 25 ppid = getppid(); in child_func() 28 TST_EXP_EQ_LI(ppid, 0); in child_func()
|
H A D | pidns16.c | 31 pid_t cpid, ppid; in child_func() local 34 ppid = getppid(); in child_func() 37 TST_EXP_EQ_LI(ppid, 0); in child_func()
|
H A D | pidns17.c | 25 pid_t cpid, ppid; in child_func() local 28 ppid = getppid(); in child_func() 31 TST_EXP_EQ_LI(ppid, 0); in child_func()
|
/kernel/linux/linux-6.6/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()
|
/third_party/libevdev/test/ |
H A D | test-main.c | 37 int ppid = getppid(); in is_debugger_attached() local 38 if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) { in is_debugger_attached() 39 waitpid(ppid, NULL, 0); in is_debugger_attached() 41 ptrace(PTRACE_DETACH, ppid, NULL, NULL); in is_debugger_attached()
|
/third_party/ltp/testcases/kernel/syscalls/setpgid/ |
H A D | setpgid02.c | 24 static pid_t pgid, pid, ppid, inval_pgid; variable 33 {&ppid, &pgid, ESRCH}, 40 ppid = getppid(); in setup()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_051.cpp | 40 pid_t ppid = getppid(); in TestThread() local 42 printf("TestThread ppid : %d g_ppid : %d\n", ppid, g_ppid); in TestThread() 44 ICUNIT_ASSERT_EQUAL(ppid, g_ppid, g_ppid); in TestThread() 83 printf("testcase ppid : %d\n", g_ppid); in Testcase()
|
H A D | process_test_050.cpp | 38 pid_t ppid = getppid(); in TestThread() local 40 printf("TestThread ppid : %d g_ppid : %d\n", ppid, g_ppid); in TestThread() 42 ICUNIT_ASSERT_EQUAL(ppid, g_ppid, g_ppid); in TestThread() 68 printf("testcase ppid : %d\n", g_ppid); in Testcase()
|
H A D | process_test_052.cpp | 41 pid_t ppid = getppid(); in TestThread() local 43 printf("TestThread ppid : %d g_ppid : %d\n", ppid, g_ppid); in TestThread() 45 ICUNIT_ASSERT_EQUAL(ppid, g_ppid, g_ppid); in TestThread() 66 printf("testcase ppid : %d\n", g_ppid); in Testcase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | memfd_secret.c | 112 pid_t ppid = getppid(); in try_ptrace() local 122 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0); in try_ptrace() 128 ret = waitpid(ppid, &status, WUNTRACED); in try_ptrace() 129 if ((ret != ppid) || !(WIFSTOPPED(status))) { in try_ptrace() 135 if (ptrace(PTRACE_PEEKDATA, ppid, mem, 0)) in try_ptrace()
|
/kernel/linux/linux-5.10/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()
|