| /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(const 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(const struct target *targe argument 23 attr_maptarget global() argument 62 target__none(struct target * target) target__none() argument 67 target__enable_on_exec(struct target * target) target__enable_on_exec() argument 78 target__has_per_thread(struct target * target) target__has_per_thread() argument 83 target__uses_dummy_map(struct target * target) target__uses_dummy_map() 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 …]
|
| /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 | 92 "Enable workarounds for Topspin/Cisco SRP target bugs if != 0"); 139 "Number of RDMA channels to use for communication with an SRP target. Using more than one channel improves performance if the HCA supports multiple completion vectors. The default value is the minimum of four times the number of online CPU sockets and the number of completion vectors supported by the HCA."); 213 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument 219 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin() 220 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin() 272 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument 282 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp() 283 target->srp_host->port, in srp_init_ib_qp() 284 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp() 292 attr->port_num = target in srp_init_ib_qp() 307 struct srp_target_port *target = ch->target; srp_new_ib_cm_id() local 333 struct srp_target_port *target = ch->target; srp_new_rdma_cm_id() local 377 struct srp_target_port *target = ch->target; srp_new_cm_id() local 499 srp_alloc_fr_pool(struct srp_target_port * target) srp_alloc_fr_pool() argument 527 struct srp_target_port *target = ch->target; srp_create_ch_ib() local 638 srp_free_ch_ib(struct srp_target_port * target,struct srp_rdma_ch * ch) srp_free_ch_ib() argument 702 struct srp_target_port *target = ch->target; srp_path_rec_completion() local 715 struct srp_target_port *target = ch->target; srp_ib_lookup_path() local 754 struct srp_target_port *target = ch->target; srp_rdma_lookup_path() local 774 struct srp_target_port *target = ch->target; srp_lookup_path() local 800 struct srp_target_port *target = ch->target; srp_send_req() local 922 srp_queue_remove_work(struct srp_target_port * target) srp_queue_remove_work() argument 939 srp_disconnect_target(struct srp_target_port * target) srp_disconnect_target() argument 967 struct srp_target_port *target = host_to_target(shost); srp_exit_cmd_priv() local 985 struct srp_target_port *target = host_to_target(shost); srp_init_cmd_priv() local 1039 srp_remove_target(struct srp_target_port * target) srp_remove_target() argument 1071 struct srp_target_port *target = srp_remove_work() local 1081 struct srp_target_port *target = rport->lld_data; srp_rport_delete() local 1090 srp_connected_ch(struct srp_target_port * target) srp_connected_ch() argument 1103 struct srp_target_port *target = ch->target; srp_connect_ch() local 1182 struct srp_target_port *target = ch->target; srp_unmap_data() local 1285 struct srp_target_port *target = context->srp_target; srp_terminate_cmd() local 1297 struct srp_target_port *target = rport->lld_data; srp_terminate_io() local 1335 struct srp_target_port *target = rport->lld_data; srp_rport_reconnect() local 1427 struct srp_target_port *target = ch->target; srp_map_finish_fr() local 1533 struct srp_target_port *target = ch->target; srp_map_sg_dma() local 1556 struct srp_target_port *target = ch->target; srp_map_idb() local 1625 struct srp_target_port *target = ch->target; srp_map_data() local 1839 struct srp_target_port *target = ch->target; __srp_get_tx_iu() local 1893 struct srp_target_port *target = ch->target; srp_post_send() local 1917 struct srp_target_port *target = ch->target; srp_post_recv() local 1937 struct srp_target_port *target = ch->target; srp_process_rsp() local 1997 struct srp_target_port *target = ch->target; srp_response_common() local 2046 struct srp_target_port *target = ch->target; srp_process_aer_req() local 2065 struct srp_target_port *target = ch->target; srp_recv_done() local 2130 struct srp_target_port *target; srp_tl_err_work() local 2141 struct srp_target_port *target = ch->target; srp_handle_qp_err() local 2157 struct srp_target_port *target = host_to_target(shost); srp_queuecommand() local 2258 struct srp_target_port *target = ch->target; srp_alloc_iu_bufs() local 2335 struct srp_target_port *target = ch->target; srp_cm_rep_handler() local 2427 struct srp_target_port *target = ch->target; srp_ib_cm_rej_handler() local 2513 struct srp_target_port *target = ch->target; srp_ib_cm_handler() local 2574 struct srp_target_port *target = ch->target; srp_rdma_cm_rej_handler() local 2625 struct srp_target_port *target = ch->target; srp_rdma_cm_handler() local 2718 struct srp_target_port *target = ch->target; srp_send_tsk_mgmt() local 2783 struct srp_target_port *target = host_to_target(scmnd->device->host); srp_abort() local 2813 struct srp_target_port *target = host_to_target(scmnd->device->host); srp_reset_device() local 2831 struct srp_target_port *target = host_to_target(scmnd->device->host); srp_reset_host() local 2841 struct srp_target_port *target = host_to_target(shost); srp_target_alloc() local 2852 struct srp_target_port *target = host_to_target(shost); srp_sdev_configure() local 2867 struct srp_target_port *target = host_to_target(class_to_shost(dev)); id_ext_show() local 2877 struct srp_target_port *target = host_to_target(class_to_shost(dev)); ioc_guid_show() local 2887 struct srp_target_port *target = host_to_target(class_to_shost(dev)); service_id_show() local 2900 struct srp_target_port *target = host_to_target(class_to_shost(dev)); pkey_show() local 2913 struct srp_target_port *target = host_to_target(class_to_shost(dev)); sgid_show() local 2923 struct srp_target_port *target = host_to_target(class_to_shost(dev)); dgid_show() local 2937 struct srp_target_port *target = host_to_target(class_to_shost(dev)); orig_dgid_show() local 2950 struct srp_target_port *target = host_to_target(class_to_shost(dev)); req_lim_show() local 2967 struct srp_target_port *target = host_to_target(class_to_shost(dev)); zero_req_lim_show() local 2977 struct srp_target_port *target = host_to_target(class_to_shost(dev)); local_ib_port_show() local 2987 struct srp_target_port *target = host_to_target(class_to_shost(dev)); local_ib_device_show() local 2998 struct srp_target_port *target = host_to_target(class_to_shost(dev)); ch_count_show() local 3008 struct srp_target_port *target = host_to_target(class_to_shost(dev)); comp_vector_show() local 3018 struct srp_target_port *target = host_to_target(class_to_shost(dev)); tl_retry_count_show() local 3028 struct srp_target_port *target = host_to_target(class_to_shost(dev)); cmd_sg_entries_show() local 3038 struct srp_target_port *target = host_to_target(class_to_shost(dev)); allow_ext_sg_show() local 3110 srp_add_target(struct srp_host * host,struct srp_target_port * target) srp_add_target() argument 3186 srp_conn_unique(struct srp_host * host,struct srp_target_port * target) srp_conn_unique() argument 3324 srp_parse_options(struct net * net,const char * buf,struct srp_target_port * target) srp_parse_options() argument 3690 struct srp_target_port *target; add_target_store() local 4084 struct srp_target_port *target; srp_remove_one() local [all...] |
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | htc_hst.c | 21 static int htc_issue_send(struct htc_target *target, struct sk_buff* skb, in htc_issue_send() argument 26 struct htc_endpoint *endpoint = &target->endpoint[epid]; in htc_issue_send() 35 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send() 88 static void htc_process_target_rdy(struct htc_target *target, in htc_process_target_rdy() argument 94 target->credit_size = be16_to_cpu(htc_ready_msg->credit_size); in htc_process_target_rdy() 96 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy() 99 atomic_inc(&target->tgt_ready); in htc_process_target_rdy() 100 complete(&target->target_wait); in htc_process_target_rdy() 103 static void htc_process_conn_rsp(struct htc_target *target, in htc_process_conn_rsp() argument 128 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp() [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 …]
|
| /linux/tools/perf/util/annotate-arch/ |
| H A D | annotate-loongarch.c | 23 struct addr_map_symbol target; in loongarch_call__parse() local 29 ops->target.addr = strtoull(c, &endptr, 16); in loongarch_call__parse() 43 ops->target.name = strdup(name); in loongarch_call__parse() 46 if (ops->target.name == NULL) in loongarch_call__parse() 49 target = (struct addr_map_symbol) { in loongarch_call__parse() 51 .addr = map__objdump_2mem(map, ops->target.addr), in loongarch_call__parse() 54 if (maps__find_ams(thread__maps(ms->thread), &target) == 0 && in loongarch_call__parse() 55 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in loongarch_call__parse() 56 ops->target.sym = target.ms.sym; in loongarch_call__parse() 58 addr_map_symbol__exit(&target); in loongarch_call__parse() [all …]
|
| H A D | annotate-s390.c | 19 struct addr_map_symbol target; in s390_call__parse() local 25 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse() 42 ops->target.name = strdup(name); in s390_call__parse() 45 if (ops->target.name == NULL) in s390_call__parse() 48 target = (struct addr_map_symbol) { in s390_call__parse() 50 .addr = map__objdump_2mem(map, ops->target.addr), in s390_call__parse() 53 if (maps__find_ams(thread__maps(ms->thread), &target) == 0 && in s390_call__parse() 54 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in s390_call__parse() 55 ops->target.sym = target.ms.sym; in s390_call__parse() 57 addr_map_symbol__exit(&target); in s390_call__parse() [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/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() 511 static void kfd_dbg_clear_process_address_watch(struct kfd_process *target) in kfd_dbg_clear_process_address_watch() argument 515 for (i = 0; i < target->n_pdds; i++) in kfd_dbg_clear_process_address_watch() 517 kfd_dbg_trap_clear_dev_address_watch(target->pdds[i], j); in kfd_dbg_clear_process_address_watch() 520 int kfd_dbg_trap_set_flags(struct kfd_process *target, uint32_t *flags) in kfd_dbg_trap_set_flags() argument 522 uint32_t prev_flags = target->dbg_flags; in kfd_dbg_trap_set_flags() 525 for (i = 0; i < target->n_pdds; i++) { in kfd_dbg_trap_set_flags() 529 kfd_topology_device_by_id(target in kfd_dbg_trap_set_flags() 604 kfd_dbg_trap_deactivate(struct kfd_process * target,bool unwind,int unwind_count) kfd_dbg_trap_deactivate() argument 658 kfd_dbg_clean_exception_status(struct kfd_process * target) kfd_dbg_clean_exception_status() argument 683 kfd_dbg_trap_disable(struct kfd_process * target) kfd_dbg_trap_disable() argument 713 kfd_dbg_trap_activate(struct kfd_process * target) kfd_dbg_trap_activate() argument 788 kfd_dbg_trap_enable(struct kfd_process * target,uint32_t fd,void __user * runtime_info,uint32_t * runtime_size) kfd_dbg_trap_enable() argument 869 kfd_dbg_trap_set_wave_launch_override(struct kfd_process * target,uint32_t trap_override,uint32_t trap_mask_bits,uint32_t trap_mask_request,uint32_t * trap_mask_prev,uint32_t * trap_mask_supported) kfd_dbg_trap_set_wave_launch_override() argument 912 kfd_dbg_trap_set_wave_launch_mode(struct kfd_process * target,uint8_t wave_launch_mode) kfd_dbg_trap_set_wave_launch_mode() argument 944 kfd_dbg_trap_query_exception_info(struct kfd_process * target,uint32_t source_id,uint32_t exception_code,bool clear_exception,void __user * info,uint32_t * info_size) kfd_dbg_trap_query_exception_info() argument 1064 kfd_dbg_trap_device_snapshot(struct kfd_process * target,uint64_t exception_clear_mask,void __user * user_info,uint32_t * number_of_device_infos,uint32_t * entry_size) kfd_dbg_trap_device_snapshot() argument 1143 kfd_dbg_set_enabled_debug_exception_mask(struct kfd_process * target,uint64_t exception_set_mask) kfd_dbg_set_enabled_debug_exception_mask() argument [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/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/arch/s390/kernel/ |
| H A D | ptrace.c | 509 static int s390_regs_get(struct task_struct *target, in s390_regs_get() argument 514 if (target == current) in s390_regs_get() 515 save_access_regs(target->thread.acrs); in s390_regs_get() 518 membuf_store(&to, __peek_user(target, pos)); in s390_regs_get() 522 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument 529 if (target == current) in s390_regs_set() 530 save_access_regs(target->thread.acrs); in s390_regs_set() 535 rc = __poke_user(target, pos, *k++); in s390_regs_set() 546 rc = __poke_user(target, pos, word); in s390_regs_set() 552 if (rc == 0 && target == current) in s390_regs_set() [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 …]
|
| /linux/fs/smb/client/ |
| H A D | cifs_unicode.c | 17 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument 26 *target = ':'; in convert_sfu_char() 29 *target = '*'; in convert_sfu_char() 32 *target = '?'; in convert_sfu_char() 35 *target = '|'; in convert_sfu_char() 38 *target = '>'; in convert_sfu_char() 41 *target = '<'; in convert_sfu_char() 51 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument 54 *target = src_char - 0xF000; in convert_sfm_char() 59 *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 …]
|