Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 1807) sorted by relevance

12345678910>>...73

/Linux-v6.1/tools/perf/util/
Dtarget.c17 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()
40 target->cpu_list = NULL; in target__validate()
46 if (target->tid && target->system_wide) { in target__validate()
[all …]
Dtarget.h8 struct target { struct
55 enum target_errno target__validate(struct target *target);
56 enum target_errno target__parse_uid(struct target *target);
58 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen);
60 static inline bool target__has_task(struct target *target) in target__has_task() argument
62 return target->tid || target->pid || target->uid_str; in target__has_task()
65 static inline bool target__has_cpu(struct target *target) in target__has_cpu() argument
67 return target->system_wide || target->cpu_list; in target__has_cpu()
70 static inline bool target__none(struct target *target) in target__none() argument
72 return !target__has_task(target) && !target__has_cpu(target); in target__none()
[all …]
/Linux-v6.1/arch/powerpc/kernel/ptrace/
Dptrace-tm.c58 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 …]
Dptrace-vsx.c21 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 …]
Dptrace-decl.h67 int fpr_set(struct task_struct *target, const struct user_regset *regset,
73 int vsr_active(struct task_struct *target, const struct user_regset *regset);
75 int vsr_set(struct task_struct *target, const struct user_regset *regset,
81 int vr_active(struct task_struct *target, const struct user_regset *regset);
83 int vr_set(struct task_struct *target, const struct user_regset *regset,
89 int evr_active(struct task_struct *target, const struct user_regset *regset);
91 int evr_set(struct task_struct *target, const struct user_regset *regset,
97 int gpr32_get_common(struct task_struct *target,
101 int gpr32_set_common(struct task_struct *target,
115 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset);
[all …]
Dptrace-spe.c19 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-v6.1/drivers/net/wireless/ath/ath6kl/
Dhtc-ops.h28 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 …]
Dhtc_mbox.c28 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,
375 static void htc_reclaim_txctrl_buf(struct htc_target *target, in htc_reclaim_txctrl_buf() argument
378 spin_lock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf()
379 list_add_tail(&pkt->list, &target->free_ctrl_txbuf); in htc_reclaim_txctrl_buf()
380 spin_unlock_bh(&target->htc_lock); in htc_reclaim_txctrl_buf()
383 static struct htc_packet *htc_get_control_buf(struct htc_target *target, in htc_get_control_buf() argument
389 buf_list = tx ? &target->free_ctrl_txbuf : &target->free_ctrl_rxbuf; in htc_get_control_buf()
[all …]
Dhtc_pipe.c56 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-v6.1/drivers/infiniband/ulp/srp/
Dib_srp.c216 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument
222 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin()
223 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin()
275 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument
285 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
286 target->srp_host->port, in srp_init_ib_qp()
287 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp()
295 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
310 struct srp_target_port *target = ch->target; in srp_new_ib_cm_id() local
313 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
[all …]
/Linux-v6.1/drivers/net/wireless/ath/ath9k/
Dhtc_hst.c21 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
122 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/Linux-v6.1/drivers/net/ethernet/mscc/
Docelot_io.c16 u16 target = reg >> TARGET_OFFSET; in __ocelot_bulk_read_ix() local
18 WARN_ON(!target); in __ocelot_bulk_read_ix()
20 return regmap_bulk_read(ocelot->targets[target], in __ocelot_bulk_read_ix()
21 ocelot->map[target][reg & REG_MASK] + offset, in __ocelot_bulk_read_ix()
28 u16 target = reg >> TARGET_OFFSET; in __ocelot_read_ix() local
31 WARN_ON(!target); in __ocelot_read_ix()
33 regmap_read(ocelot->targets[target], in __ocelot_read_ix()
34 ocelot->map[target][reg & REG_MASK] + offset, &val); in __ocelot_read_ix()
41 u16 target = reg >> TARGET_OFFSET; in __ocelot_write_ix() local
43 WARN_ON(!target); in __ocelot_write_ix()
[all …]
/Linux-v6.1/drivers/acpi/numa/
Dhmat.c94 struct memory_target *target; in find_mem_target() local
96 list_for_each_entry(target, &targets, node) in find_mem_target()
97 if (target->memory_pxm == mem_pxm) in find_mem_target()
98 return target; in find_mem_target()
125 struct memory_target *target; in alloc_memory_target() local
127 target = find_mem_target(mem_pxm); in alloc_memory_target()
128 if (!target) { in alloc_memory_target()
129 target = kzalloc(sizeof(*target), GFP_KERNEL); in alloc_memory_target()
130 if (!target) in alloc_memory_target()
132 target->memory_pxm = mem_pxm; in alloc_memory_target()
[all …]
/Linux-v6.1/Documentation/target/
Dtcm_mod_builder.rst13 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.
32target:/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-v6.1/arch/loongarch/kernel/
Dptrace.c45 static void init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument
48 if (tsk_used_math(target)) in init_fp_ctx()
52 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx()
53 set_stopped_child_used_math(target); in init_fp_ctx()
70 static int gpr_get(struct task_struct *target, in gpr_get() argument
75 struct pt_regs *regs = task_pt_regs(target); in gpr_get()
85 static int gpr_set(struct task_struct *target, in gpr_set() argument
94 struct pt_regs *regs = task_pt_regs(target); in gpr_set()
116 static int gfpr_get(struct task_struct *target, struct membuf *to) in gfpr_get() argument
118 return membuf_write(to, &target->thread.fpu.fpr, in gfpr_get()
[all …]
/Linux-v6.1/tools/perf/arch/s390/annotate/
Dinstructions.c9 struct addr_map_symbol target = { in s390_call__parse() local
17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse()
34 ops->target.name = strdup(name); in s390_call__parse()
37 if (ops->target.name == NULL) in s390_call__parse()
39 target.addr = map__objdump_2mem(map, ops->target.addr); in s390_call__parse()
41 if (maps__find_ams(ms->maps, &target) == 0 && in s390_call__parse()
42 map__rip_2objdump(target.ms.map, map->map_ip(target.ms.map, target.addr)) == ops->target.addr) in s390_call__parse()
43 ops->target.sym = target.ms.sym; in s390_call__parse()
60 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse() local
72 target = ++s; in s390_mov__parse()
[all …]
/Linux-v6.1/drivers/misc/lkdtm/
Dfortify.c15 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
57 strncpy(target.a, src, size); in lkdtm_FORTIFY_STR_MEMBER()
60 fortify_scratch_space = target.a[3]; in lkdtm_FORTIFY_STR_MEMBER()
71 struct target { in lkdtm_FORTIFY_MEM_OBJECT() struct
74 } target = {}; in lkdtm_FORTIFY_MEM_OBJECT() local
[all …]
/Linux-v6.1/lib/
Dsyscall.c8 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-v6.1/arch/sparc/kernel/
Dptrace_32.c47 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 …]
Dptrace_64.c160 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-v6.1/fs/cifs/
Dcifs_unicode.c32 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument
41 *target = ':'; in convert_sfu_char()
44 *target = '*'; in convert_sfu_char()
47 *target = '?'; in convert_sfu_char()
50 *target = '|'; in convert_sfu_char()
53 *target = '>'; in convert_sfu_char()
56 *target = '<'; in convert_sfu_char()
66 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument
69 *target = src_char - 0xF000; in convert_sfm_char()
74 *target = ':'; in convert_sfm_char()
[all …]
/Linux-v6.1/arch/arm64/kernel/
Dptrace.c473 static int hw_break_get(struct task_struct *target, in hw_break_get() argument
491 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get()
494 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get()
505 static int hw_break_set(struct task_struct *target, in hw_break_set() argument
530 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set()
541 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set()
559 static int gpr_get(struct task_struct *target, in gpr_get() argument
563 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get()
567 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
572 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set()
[all …]
/Linux-v6.1/drivers/macintosh/
Dwindfarm_pid.c36 s32 target; in wf_pid_run() local
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
137 target = st->target + (s32)((deriv + prop) >> 36); in wf_cpu_pid_run()
138 target = max(target, st->param.min); in wf_cpu_pid_run()
[all …]
/Linux-v6.1/drivers/of/
Doverlay.c41 struct target { struct
53 struct device_node *target; member
99 struct target *target, const struct device_node *overlay_node);
166 nd.target = fragment->target; in overlay_notify()
174 of_overlay_action_name(action), ret, nd.target); in overlay_notify()
240 target_path = kasprintf(GFP_KERNEL, "%pOF", fragment->target); in dup_and_fixup_symbol_prop()
301 struct target *target, struct property *overlay_prop, in add_changeset_property() argument
307 if (target->in_livetree) in add_changeset_property()
313 if (target->in_livetree) in add_changeset_property()
314 prop = of_find_property(target->np, overlay_prop->name, NULL); in add_changeset_property()
[all …]
/Linux-v6.1/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c104 int srp_target_alloc(struct srp_target *target, struct device *dev, in srp_target_alloc() argument
109 spin_lock_init(&target->lock); in srp_target_alloc()
111 target->dev = dev; in srp_target_alloc()
113 target->srp_iu_size = iu_size; in srp_target_alloc()
114 target->rx_ring_size = nr; in srp_target_alloc()
115 target->rx_ring = srp_ring_alloc(target->dev, nr, iu_size); in srp_target_alloc()
116 if (!target->rx_ring) in srp_target_alloc()
118 err = srp_iu_pool_alloc(&target->iu_queue, nr, target->rx_ring); in srp_target_alloc()
122 dev_set_drvdata(target->dev, target); in srp_target_alloc()
126 srp_ring_free(target->dev, target->rx_ring, nr, iu_size); in srp_target_alloc()
[all …]

12345678910>>...73