/linux/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-tm.c | 52 * @target: The target task. 58 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset) in tm_cgpr_active() argument 63 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_active() 71 * @target: The target task. 86 int tm_cgpr_get(struct task_struct *target, const struct user_regset *regset, in tm_cgpr_get() argument 97 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_get() 100 flush_tmregs_to_thread(target); in tm_cgpr_get() 101 flush_fp_to_thread(target); in tm_cgpr_get() 102 flush_altivec_to_thread(target); in tm_cgpr_get() 104 membuf_write(&to, &target->thread.ckpt_regs, sizeof(struct user_pt_regs)); in tm_cgpr_get() [all …]
|
H A D | ptrace-vsx.c | 21 int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument 27 flush_fp_to_thread(target); in fpr_get() 31 buf[i] = target->thread.TS_FPR(i); in fpr_get() 32 buf[32] = target->thread.fp_state.fpscr; in fpr_get() 49 int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument 56 flush_fp_to_thread(target); in fpr_set() 59 buf[i] = target->thread.TS_FPR(i); in fpr_set() 60 buf[32] = target->thread.fp_state.fpscr; in fpr_set() 68 target->thread.TS_FPR(i) = buf[i]; in fpr_set() 69 target->thread.fp_state.fpscr = buf[32]; in fpr_set() [all …]
|
H A D | ptrace-decl.h | 73 int fpr_set(struct task_struct *target, const struct user_regset *regset, 79 int vsr_active(struct task_struct *target, const struct user_regset *regset); 81 int vsr_set(struct task_struct *target, const struct user_regset *regset, 87 int vr_active(struct task_struct *target, const struct user_regset *regset); 89 int vr_set(struct task_struct *target, const struct user_regset *regset, 95 int evr_active(struct task_struct *target, const struct user_regset *regset); 97 int evr_set(struct task_struct *target, const struct user_regset *regset, 103 int gpr32_get_common(struct task_struct *target, 107 int gpr32_set_common(struct task_struct *target, 121 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset); [all …]
|
H A D | ptrace-view.c | 218 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument 225 if (target->thread.regs == NULL) in gpr_get() 228 membuf_write(&to, target->thread.regs, sizeof(struct user_pt_regs)); in gpr_get() 230 membuf_store(&to_msr, get_user_msr(target)); in gpr_get() 238 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 245 if (target->thread.regs == NULL) in gpr_set() 249 target->thread.regs, in gpr_set() 257 ret = set_user_msr(target, reg); in gpr_set() 265 &target->thread.regs->orig_gpr3, in gpr_set() 279 ret = set_user_trap(target, reg); in gpr_set() [all …]
|
/linux/tools/perf/util/ |
H A D | target.c | 3 * Helper functions for handling target threads/cpus 8 #include "target.h" 17 enum target_errno target__validate(struct target *target) in target__validate() argument 21 if (target->pid) in target__validate() 22 target->tid = target->pid; in target__validate() 25 if (target->tid && target->cpu_list) { in target__validate() 26 target->cpu_list = NULL; in target__validate() 32 if (target->tid && target->uid_str) { in target__validate() 33 target->uid_str = NULL; in target__validate() 39 if (target->uid_str && target->cpu_list) { in target__validate() [all …]
|
/linux/drivers/infiniband/ulp/srp/ |
H A D | ib_srp.c | 90 "Enable workarounds for Topspin/Cisco SRP target bugs if != 0"); 137 …"Number of RDMA channels to use for communication with an SRP target. Using more than one channel … 211 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument 217 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin() 218 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin() 270 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument 280 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp() 281 target->srp_host->port, in srp_init_ib_qp() 282 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp() 290 attr->port_num = target->srp_host->port; in srp_init_ib_qp() [all …]
|
/linux/drivers/acpi/numa/ |
H A D | hmat.c | 103 struct memory_target *target; in find_mem_target() local 105 list_for_each_entry(target, &targets, node) in find_mem_target() 106 if (target->memory_pxm == mem_pxm) in find_mem_target() 107 return target; in find_mem_target() 113 struct memory_target *target; in acpi_find_genport_target() local 117 list_for_each_entry(target, &targets, node) { in acpi_find_genport_target() 118 uid_ptr = target->gen_port_device_handle + 8; in acpi_find_genport_target() 121 return target; in acpi_find_genport_target() 140 struct memory_target *target; in acpi_get_genport_coordinates() local 143 target = acpi_find_genport_target(uid); in acpi_get_genport_coordinates() [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | htc-ops.h | 28 static inline int ath6kl_htc_wait_target(struct htc_target *target) in ath6kl_htc_wait_target() argument 30 return target->dev->ar->htc_ops->wait_target(target); in ath6kl_htc_wait_target() 33 static inline int ath6kl_htc_start(struct htc_target *target) in ath6kl_htc_start() argument 35 return target->dev->ar->htc_ops->start(target); in ath6kl_htc_start() 38 static inline int ath6kl_htc_conn_service(struct htc_target *target, in ath6kl_htc_conn_service() argument 42 return target->dev->ar->htc_ops->conn_service(target, req, resp); in ath6kl_htc_conn_service() 45 static inline int ath6kl_htc_tx(struct htc_target *target, in ath6kl_htc_tx() argument 48 return target->dev->ar->htc_ops->tx(target, packet); in ath6kl_htc_tx() 51 static inline void ath6kl_htc_stop(struct htc_target *target) in ath6kl_htc_stop() argument 53 return target->dev->ar->htc_ops->stop(target); in ath6kl_htc_stop() [all …]
|
H A D | htc_mbox.c | 28 static void ath6kl_htc_mbox_cleanup(struct htc_target *target); 29 static void ath6kl_htc_mbox_stop(struct htc_target *target); 30 static int ath6kl_htc_mbox_add_rxbuf_multiple(struct htc_target *target, 32 static void ath6kl_htc_set_credit_dist(struct htc_target *target, 374 static void htc_reclaim_txctrl_buf(struct htc_target *target, in htc_reclaim_txctrl_buf() argument 377 spin_lock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf() 378 list_add_tail(&pkt->list, &target->free_ctrl_txbuf); in htc_reclaim_txctrl_buf() 379 spin_unlock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf() 382 static struct htc_packet *htc_get_control_buf(struct htc_target *target, in htc_get_control_buf() argument 388 buf_list = tx ? &target->free_ctrl_txbuf : &target->free_ctrl_rxbuf; in htc_get_control_buf() [all …]
|
H A D | htc_pipe.c | 56 ep->ep_cb.tx_comp_multi(ep->target, queue_to_indicate); in do_send_completion() 72 ep->ep_cb.tx_complete(ep->target, packet); in do_send_completion() 77 static void send_packet_completion(struct htc_target *target, in send_packet_completion() argument 80 struct htc_endpoint *ep = &target->endpoint[packet->endpoint]; in send_packet_completion() 91 static void get_htc_packet_credit_based(struct htc_target *target, in get_htc_packet_credit_based() argument 118 if (transfer_len <= target->tgt_cred_sz) { in get_htc_packet_credit_based() 122 credits_required = transfer_len / target->tgt_cred_sz; in get_htc_packet_credit_based() 123 remainder = transfer_len % target->tgt_cred_sz; in get_htc_packet_credit_based() 146 /* check if we need credits back from the target */ in get_htc_packet_credit_based() 149 /* tell the target we need credits ASAP! */ in get_htc_packet_credit_based() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_opts.c | 111 static void test_tc_opts_before_target(int target) in test_tc_opts_before_target() argument 139 assert_mprog_count(target, 0); in test_tc_opts_before_target() 141 err = bpf_prog_attach_opts(fd1, loopback, target, &opta); in test_tc_opts_before_target() 145 assert_mprog_count(target, 1); in test_tc_opts_before_target() 147 err = bpf_prog_attach_opts(fd2, loopback, target, &opta); in test_tc_opts_before_target() 151 assert_mprog_count(target, 2); in test_tc_opts_before_target() 158 err = bpf_prog_query_opts(loopback, target, &optq); in test_tc_opts_before_target() 181 err = bpf_prog_attach_opts(fd3, loopback, target, &opta); in test_tc_opts_before_target() 188 err = bpf_prog_query_opts(loopback, target, &optq); in test_tc_opts_before_target() 204 err = bpf_prog_attach_opts(fd4, loopback, target, &opta); in test_tc_opts_before_target() [all …]
|
H A D | tc_links.c | 115 static void test_tc_links_before_target(int target) in test_tc_links_before_target() argument 130 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_before_target() 132 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_before_target() 134 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_before_target() 136 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_before_target() 152 assert_mprog_count(target, 0); in test_tc_links_before_target() 162 assert_mprog_count(target, 1); in test_tc_links_before_target() 172 assert_mprog_count(target, 2); in test_tc_links_before_target() 181 err = bpf_prog_query_opts(loopback, target, &optq); in test_tc_links_before_target() 228 assert_mprog_count(target, 4); in test_tc_links_before_target() [all …]
|
/linux/Documentation/target/ |
H A D | tcm_mod_builder.rst | 13 mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD 15 This script will create a new drivers/target/$TCM_NEW_MOD/, and will do the following 17 1) Generate new API callers for drivers/target/target_core_fabric_configs.c logic 23 the TransportID / Initiator and Target WWPN related handlers for 25 using drivers/target/target_core_fabric_lib.c logic. 32 …target:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_n… 33 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../ 36 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 39 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000 41 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h [all …]
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_io.c | 16 enum ocelot_target target; in __ocelot_bulk_read_ix() local 19 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_bulk_read_ix() 20 WARN_ON(!target); in __ocelot_bulk_read_ix() 22 return regmap_bulk_read(ocelot->targets[target], addr + offset, in __ocelot_bulk_read_ix() 29 enum ocelot_target target; in __ocelot_read_ix() local 32 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_read_ix() 33 WARN_ON(!target); in __ocelot_read_ix() 35 regmap_read(ocelot->targets[target], addr + offset, &val); in __ocelot_read_ix() 43 enum ocelot_target target; in __ocelot_write_ix() local 46 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_write_ix() [all …]
|
/linux/tools/testing/selftests/sysctl/ |
H A D | sysctl.sh | 17 # TEST_ID:TEST_COUNT:ENABLED:TARGET:SKIP_NO_TARGET 22 # TARGET: test target file required on the test_sysctl module 23 # SKIP_NO_TARGET: 1 skip if TARGET not there 24 # 0 run eventhough TARGET not there 129 TRIGGER=$(basename ${TARGET}) 149 echo -n $VAL > $TARGET 154 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then 155 if [ -f ${TARGET} ]; then 156 echo "${ORIG}" > "${TARGET}" 163 echo "${TEST_STR}" > "${TARGET}" [all …]
|
/linux/arch/parisc/net/ |
H A D | bpf_jit.h | 99 #define hppa_ldo(im14, reg, target) \ argument 100 hppa_t1_insn(0x0d, reg, target, im14) /* ldo val14(reg),target */ 103 #define hppa_or(reg1, reg2, target) \ argument 104 hppa_t6_insn(0x02, reg2, reg1, 0, 0, 0x09, target) /* or reg1,reg2,target */ 105 #define hppa_or_cond(reg1, reg2, cond, f, target) \ argument 106 hppa_t6_insn(0x02, reg2, reg1, cond, f, 0x09, target) 107 #define hppa_and(reg1, reg2, target) \ argument 108 hppa_t6_insn(0x02, reg2, reg1, 0, 0, 0x08, target) /* and reg1,reg2,target */ 109 #define hppa_and_cond(reg1, reg2, cond, f, target) \ argument 110 hppa_t6_insn(0x02, reg2, reg1, cond, f, 0x08, target) [all …]
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_debug.c | 323 static int kfd_dbg_set_workaround(struct kfd_process *target, bool enable) in kfd_dbg_set_workaround() argument 325 struct process_queue_manager *pqm = &target->pqm; in kfd_dbg_set_workaround() 342 target->runtime_info.runtime_state = r == -EBUSY ? in kfd_dbg_set_workaround() 504 static void kfd_dbg_clear_process_address_watch(struct kfd_process *target) in kfd_dbg_clear_process_address_watch() argument 508 for (i = 0; i < target->n_pdds; i++) in kfd_dbg_clear_process_address_watch() 510 kfd_dbg_trap_clear_dev_address_watch(target->pdds[i], j); in kfd_dbg_clear_process_address_watch() 513 int kfd_dbg_trap_set_flags(struct kfd_process *target, uint32_t *flags) in kfd_dbg_trap_set_flags() argument 515 uint32_t prev_flags = target->dbg_flags; in kfd_dbg_trap_set_flags() 518 for (i = 0; i < target->n_pdds; i++) { in kfd_dbg_trap_set_flags() 520 kfd_topology_device_by_id(target->pdds[i]->dev->id); in kfd_dbg_trap_set_flags() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | ptrace.c | 474 static int hw_break_get(struct task_struct *target, in hw_break_get() argument 492 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get() 495 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get() 506 static int hw_break_set(struct task_struct *target, in hw_break_set() argument 529 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set() 540 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set() 555 static int gpr_get(struct task_struct *target, in gpr_get() argument 559 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get() 563 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 568 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set() [all …]
|
/linux/arch/loongarch/kernel/ |
H A D | ptrace.c | 50 static void init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument 52 /* The target already has context */ in init_fp_ctx() 53 if (tsk_used_math(target)) in init_fp_ctx() 57 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx() 58 set_stopped_child_used_math(target); in init_fp_ctx() 75 static int gpr_get(struct task_struct *target, in gpr_get() argument 80 struct pt_regs *regs = task_pt_regs(target); in gpr_get() 90 static int gpr_set(struct task_struct *target, in gpr_set() argument 99 struct pt_regs *regs = task_pt_regs(target); in gpr_set() 121 gfpr_get(struct task_struct * target,struct membuf * to) gfpr_get() argument 127 gfpr_get_simd(struct task_struct * target,struct membuf * to) gfpr_get_simd() argument 145 fpr_get(struct task_struct * target,const struct user_regset * regset,struct membuf to) fpr_get() argument 164 gfpr_set(struct task_struct * target,unsigned int * pos,unsigned int * count,const void ** kbuf,const void __user ** ubuf) gfpr_set() argument 173 gfpr_set_simd(struct task_struct * target,unsigned int * pos,unsigned int * count,const void ** kbuf,const void __user ** ubuf) gfpr_set_simd() argument 197 fpr_set(struct task_struct * target,const struct user_regset * regset,unsigned int pos,unsigned int count,const void * kbuf,const void __user * ubuf) fpr_set() argument 229 cfg_get(struct task_struct * target,const struct user_regset * regset,struct membuf to) cfg_get() argument 248 cfg_set(struct task_struct * target,const struct user_regset * regset,unsigned int pos,unsigned int count,const void * kbuf,const void __user * ubuf) cfg_set() argument 258 copy_pad_fprs(struct task_struct * target,const struct user_regset * regset,struct membuf * to,unsigned int live_sz) copy_pad_fprs() argument 278 simd_get(struct task_struct * target,const struct user_regset * regset,struct membuf to) simd_get() argument 308 simd_set(struct task_struct * target,const struct user_regset * regset,unsigned int pos,unsigned int count,const void * kbuf,const void __user * ubuf) simd_set() argument 343 lbt_get(struct task_struct * target,const struct user_regset * regset,struct membuf to) lbt_get() argument 359 lbt_set(struct task_struct * target,const struct user_regset * regset,unsigned int pos,unsigned int count,const void * kbuf,const void __user * ubuf) lbt_set() argument 671 hw_break_get(struct task_struct * target,const struct user_regset * regset,struct membuf to) hw_break_get() argument 712 hw_break_set(struct task_struct * target,const struct user_regset * regset,unsigned int pos,unsigned int count,const void * kbuf,const void __user * ubuf) hw_break_set() argument 953 read_user(struct task_struct * target,unsigned long addr,unsigned long __user * data) read_user() argument 978 write_user(struct task_struct * target,unsigned long addr,unsigned long data) write_user() argument [all...] |
/linux/drivers/power/sequencing/ |
H A D | core.c | 39 * Target - a target is a set of units (composed of the "final" unit and its 68 * @name: Name of this target. 177 * struct pwrseq_target - Private power-sequence target data. 179 * @name: Name of the target. 180 * @unit: Final unit for this target. 181 * @post_enable: Callback run after the target unit has been enabled, *after* 196 struct pwrseq_target *target; in pwrseq_target_new() local 198 target = kzalloc(sizeof(*target), GFP_KERNEL); in pwrseq_target_new() 199 if (!target) in pwrseq_target_new() 202 target->name = kstrdup_const(data->name, GFP_KERNEL); in pwrseq_target_new() [all …]
|
/linux/lib/ |
H A D | syscall.c | 8 static int collect_syscall(struct task_struct *target, struct syscall_info *info) in collect_syscall() argument 13 if (!try_get_task_stack(target)) { in collect_syscall() 20 regs = task_pt_regs(target); in collect_syscall() 22 put_task_stack(target); in collect_syscall() 29 info->data.nr = syscall_get_nr(target, regs); in collect_syscall() 31 syscall_get_arguments(target, regs, args); in collect_syscall() 40 put_task_stack(target); in collect_syscall() 46 * @target: thread to examine 53 * If @target is blocked in a system call, returns zero with @info.data.nr 57 * call is still in progress. Note we may get this result if @target [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ftm-initiator.c | 410 struct iwl_tof_range_req_ap_entry_v2 *target) in iwl_mvm_ftm_put_target_v2() argument 414 ret = iwl_mvm_ftm_target_chandef_v1(mvm, peer, &target->channel_num, in iwl_mvm_ftm_put_target_v2() 415 &target->bandwidth, in iwl_mvm_ftm_put_target_v2() 416 &target->ctrl_ch_position); in iwl_mvm_ftm_put_target_v2() 420 memcpy(target->bssid, peer->addr, ETH_ALEN); in iwl_mvm_ftm_put_target_v2() 421 target->burst_period = in iwl_mvm_ftm_put_target_v2() 423 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2() 424 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2() 425 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2() 426 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_mutex.c | 16 int target; member 51 nfp_cpp_mutex_validate(u16 interface, int *target, unsigned long long address) in nfp_cpp_mutex_validate() argument 62 if (*target != NFP_CPP_TARGET_MU) in nfp_cpp_mutex_validate() 71 * @target: NFP CPP target ID (ie NFP_CPP_TARGET_CLS or NFP_CPP_TARGET_MU) 72 * @address: Offset into the address space of the NFP CPP target ID 75 * The CPP target:address must point to a 64-bit aligned location, and 87 int target, unsigned long long address, u32 key) in nfp_cpp_mutex_init() argument 89 const u32 muw = NFP_CPP_ID(target, 4, 0); /* atomic_write */ in nfp_cpp_mutex_init() 93 err = nfp_cpp_mutex_validate(interface, &target, address); in nfp_cpp_mutex_init() 111 * @target: NFP CPP target ID (ie NFP_CPP_TARGET_CLS or NFP_CPP_TARGET_MU) [all …]
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-driver-ib_srp | 5 Description: Interface for making ib_srp connect to a new target. 6 One can request ib_srp to connect to a new target by writing 11 byte identifier extension in the 16-byte SRP target port 12 identifier. The target port identifier is sent by ib_srp 13 to the target in the SRP_LOGIN_REQ request. 15 byte I/O controller GUID portion of the 16-byte target port 23 the SRP target. How to find out the value of the service ID 24 is specified in the documentation of the SRP target. 31 class defines the format of the SRP initiator and target 35 identifier. This data is sent by the initiator to the target [all …]
|
/linux/drivers/macintosh/ |
H A D | windfarm_pid.c | 36 s32 target; in wf_pid_run() local 66 /* Calculate target */ in wf_pid_run() 67 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run() 70 target += st->target; in wf_pid_run() 71 target = max(target, st->param.min); in wf_pid_run() 72 target = min(target, st->param.max); in wf_pid_run() 73 st->target = target; in wf_pid_run() 75 return st->target; in wf_pid_run() 91 s32 error, target, sval, adj; in wf_cpu_pid_run() local 136 /* Calculate target */ in wf_cpu_pid_run() [all …]
|