| /linux/tools/perf/util/ |
| H A D | target.h | 8 struct target { struct 46 enum target_errno target__validate(struct target *target); 50 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen); 52 static inline bool target__has_task(struct target *target) in target__has_task() argument 54 return target->tid || target->pid; in target__has_task() 57 static inline bool target__has_cpu(struct target *target) in target__has_cpu() argument 59 return target->system_wide || target->cpu_list; in target__has_cpu() 62 static inline bool target__none(struct target *target) in target__none() argument 64 return !target__has_task(target) && !target__has_cpu(target); in target__none() 67 static inline bool target__enable_on_exec(struct target *target) in target__enable_on_exec() argument [all …]
|
| H A D | target.c | 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->system_wide) { in target__validate() 33 target->system_wide = false; in target__validate() 39 if (target->bpf_str && target->cpu_list) { in target__validate() 40 target->cpu_list = NULL; in target__validate() 46 if (target->bpf_str && target->tid) { in target__validate() [all …]
|
| /linux/arch/powerpc/kernel/ptrace/ |
| H A D | ptrace-tm.c | 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() 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() 106 membuf_store(&to_msr, get_user_ckpt_msr(target)); in tm_cgpr_get() 134 int tm_cgpr_set(struct task_struct *target, const struct user_regset *regset, in tm_cgpr_set() argument [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-spe.c | 19 int evr_active(struct task_struct *target, const struct user_regset *regset) in evr_active() argument 21 flush_spe_to_thread(target); in evr_active() 22 return target->thread.used_spe ? regset->n : 0; in evr_active() 25 int evr_get(struct task_struct *target, const struct user_regset *regset, in evr_get() argument 28 flush_spe_to_thread(target); in evr_get() 30 membuf_write(&to, &target->thread.evr, sizeof(target->thread.evr)); in evr_get() 35 return membuf_write(&to, &target->thread.acc, in evr_get() 39 int evr_set(struct task_struct *target, const struct user_regset *regset, in evr_set() argument 45 flush_spe_to_thread(target); in evr_set() 48 &target->thread.evr, in evr_set() [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/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() 173 static void get_htc_packet(struct htc_target *target, in get_htc_packet() argument 203 static int htc_issue_packets(struct htc_target *target, in htc_issue_packets() argument [all …]
|
| /linux/drivers/acpi/numa/ |
| H A D | hmat.c | 102 struct memory_target *target; in find_mem_target() local 104 list_for_each_entry(target, &targets, node) in find_mem_target() 105 if (target->memory_pxm == mem_pxm) in find_mem_target() 106 return target; in find_mem_target() 123 struct memory_target *target; in hmat_get_extended_linear_cache_size() local 127 target = find_mem_target(pxm); in hmat_get_extended_linear_cache_size() 128 if (!target) in hmat_get_extended_linear_cache_size() 131 list_for_each_entry(tcache, &target->caches, node) { in hmat_get_extended_linear_cache_size() 136 res = &target->memregions; in hmat_get_extended_linear_cache_size() 151 struct memory_target *target; in acpi_find_genport_target() local [all …]
|
| /linux/drivers/infiniband/ulp/srp/ |
| H A D | ib_srp.c | 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() 305 struct srp_target_port *target = ch->target; in srp_new_ib_cm_id() local 308 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id() [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, in test_tc_opts_before_target() 263 test_tc_opts_after_target(int target) test_tc_opts_after_target() argument 454 test_tc_opts_revision_target(int target) test_tc_opts_revision_target() argument 563 test_tc_chain_classic(int target,bool chain_tc_old) test_tc_chain_classic() argument 666 test_tc_opts_replace_target(int target) test_tc_opts_replace_target() argument 873 test_tc_opts_invalid_target(int target) test_tc_opts_invalid_target() argument 1026 test_tc_opts_prepend_target(int target) test_tc_opts_prepend_target() argument 1166 test_tc_opts_append_target(int target) test_tc_opts_append_target() argument 1306 test_tc_opts_dev_cleanup_target(int target) test_tc_opts_dev_cleanup_target() argument 1396 test_tc_opts_mixed_target(int target) test_tc_opts_mixed_target() argument 1572 test_tc_opts_demixed_target(int target) test_tc_opts_demixed_target() argument 1651 test_tc_opts_detach_target(int target) test_tc_opts_detach_target() argument 1822 test_tc_opts_detach_before_target(int target) test_tc_opts_detach_before_target() argument 2029 test_tc_opts_detach_after_target(int target) test_tc_opts_detach_after_target() argument 2245 test_tc_opts_delete_empty(int target,bool chain_tc_old) test_tc_opts_delete_empty() argument 2276 test_tc_chain_mixed(int target) test_tc_chain_mixed() argument 2405 test_tc_opts_max_target(int target,int flags,bool relative) test_tc_opts_max_target() argument 2461 test_tc_opts_query_target(int target) test_tc_opts_query_target() argument 2757 test_tc_opts_query_attach_target(int target) test_tc_opts_query_attach_target() argument [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/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/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 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 43 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h [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 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 static int gfpr_get(struct task_struct *target, struct membuf *to) in gfpr_get() argument 123 return membuf_write(to, &target->thread.fpu.fpr, in gfpr_get() [all …]
|
| /linux/drivers/platform/x86/lenovo/ |
| H A D | Makefile | 10 lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES) += wmi-hotkey-utilities.o 11 lenovo-target-$(CONFIG_LENOVO_YMC) += ymc.o 12 lenovo-target-$(CONFIG_YOGABOOK) += yogabook.o 13 lenovo-target-$(CONFIG_YT2_1380) += yoga-tab2-pro-1380-fastcharger.o 14 lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA) += wmi-camera.o 15 lenovo-target-$(CONFIG_LENOVO_WMI_DATA01) += wmi-capdata01.o 16 lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS) += wmi-events.o 17 lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS) += wmi-helpers.o 18 lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE) += wmi-gamezone.o 19 lenovo-target-$(CONFIG_LENOVO_WMI_TUNING) += wmi-other.o [all …]
|
| /linux/drivers/misc/lkdtm/ |
| H A D | fortify.c | 15 struct target { in lkdtm_FORTIFY_STR_OBJECT() struct 18 } target[3] = {}; in lkdtm_FORTIFY_STR_OBJECT() local 28 strncpy(target[0].a, target[1].a, size); in lkdtm_FORTIFY_STR_OBJECT() 31 fortify_scratch_space = target[0].a[3]; in lkdtm_FORTIFY_STR_OBJECT() 39 struct target { in lkdtm_FORTIFY_STR_MEMBER() struct 42 } target; in lkdtm_FORTIFY_STR_MEMBER() local 60 strncpy(target.a, src, size); in lkdtm_FORTIFY_STR_MEMBER() 63 fortify_scratch_space = target.a[3]; in lkdtm_FORTIFY_STR_MEMBER() 74 struct target { in lkdtm_FORTIFY_MEM_OBJECT() struct 77 } target = {}; in lkdtm_FORTIFY_MEM_OBJECT() local [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | ptrace_32.c | 47 static int regwindow32_get(struct task_struct *target, in regwindow32_get() argument 54 if (target == current) { in regwindow32_get() 58 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_get() 65 static int regwindow32_set(struct task_struct *target, in regwindow32_set() argument 72 if (target == current) { in regwindow32_set() 76 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_set() 83 static int genregs32_get(struct task_struct *target, in genregs32_get() argument 87 const struct pt_regs *regs = target->thread.kregs; in genregs32_get() 90 if (target == current) in genregs32_get() 96 if (regwindow32_get(target, regs, uregs)) in genregs32_get() [all …]
|
| H A D | ptrace_64.c | 160 static int get_from_target(struct task_struct *target, unsigned long uaddr, in get_from_target() argument 163 if (target == current) { in get_from_target() 167 int len2 = access_process_vm(target, uaddr, kbuf, len, in get_from_target() 175 static int set_to_target(struct task_struct *target, unsigned long uaddr, in set_to_target() argument 178 if (target == current) { in set_to_target() 182 int len2 = access_process_vm(target, uaddr, kbuf, len, in set_to_target() 190 static int regwindow64_get(struct task_struct *target, in regwindow64_get() argument 200 if (get_from_target(target, rw_addr, &win32, sizeof(win32))) in regwindow64_get() 208 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get() 215 static int regwindow64_set(struct task_struct *target, in regwindow64_set() argument [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | ftm-initiator.c | 309 struct iwl_tof_range_req_ap_entry_v2 *target) in iwl_mvm_ftm_put_target_v2() argument 313 ret = iwl_mvm_ftm_target_chandef_v1(mvm, peer, &target->channel_num, in iwl_mvm_ftm_put_target_v2() 314 &target->bandwidth, in iwl_mvm_ftm_put_target_v2() 315 &target->ctrl_ch_position); in iwl_mvm_ftm_put_target_v2() 319 memcpy(target->bssid, peer->addr, ETH_ALEN); in iwl_mvm_ftm_put_target_v2() 320 target->burst_period = in iwl_mvm_ftm_put_target_v2() 322 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2() 323 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2() 324 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2() 325 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2() [all …]
|
| /linux/fs/smb/client/ |
| H A D | cifs_unicode.c | 31 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument 40 *target = ':'; in convert_sfu_char() 43 *target = '*'; in convert_sfu_char() 46 *target = '?'; in convert_sfu_char() 49 *target = '|'; in convert_sfu_char() 52 *target = '>'; in convert_sfu_char() 55 *target = '<'; in convert_sfu_char() 65 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument 68 *target = src_char - 0xF000; in convert_sfm_char() 73 *target = ':'; in convert_sfm_char() [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() 69 int task_current_syscall(struct task_struct *target, struct syscall_info *info) in task_current_syscall() argument 74 if (target == current) in task_current_syscall() 75 return collect_syscall(target, info); in task_current_syscall() [all …]
|
| /linux/drivers/power/sequencing/ |
| H A D | core.c | 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() 203 if (!target->name) { in pwrseq_target_new() 204 kfree(target); in pwrseq_target_new() 208 target->post_enable = data->post_enable; in pwrseq_target_new() 210 return target; in pwrseq_target_new() 213 static void pwrseq_target_free(struct pwrseq_target *target) in pwrseq_target_free() argument 215 if (!IS_ERR_OR_NULL(target->unit)) in pwrseq_target_free() [all …]
|