Home
last modified time | relevance | path

Searched full:target (Results 1 – 25 of 4621) sorted by relevance

12345678910>>...185

/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-tm.c52 * @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
92 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_get()
95 flush_tmregs_to_thread(target); in tm_cgpr_get()
96 flush_fp_to_thread(target); in tm_cgpr_get()
97 flush_altivec_to_thread(target); in tm_cgpr_get()
99 membuf_write(&to, &target->thread.ckpt_regs, in tm_cgpr_get()
[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 …]
/kernel/linux/linux-5.10/tools/perf/util/
Dtarget.h8 struct target { struct
47 enum target_errno target__validate(struct target *target);
48 enum target_errno target__parse_uid(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 || target->uid_str; 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()
[all …]
Dtarget.c3 * 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 …]
/kernel/linux/linux-4.19/tools/perf/util/
Dtarget.h8 struct target { struct
47 enum target_errno target__validate(struct target *target);
48 enum target_errno target__parse_uid(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 || target->uid_str; 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()
[all …]
Dtarget.c2 * Helper functions for handling target threads/cpus
9 #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 …]
/kernel/linux/linux-4.19/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()
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 …]
/kernel/linux/linux-5.10/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()
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 …]
/kernel/linux/linux-4.19/drivers/infiniband/ulp/srp/
Dib_srp.c96 "Enable workarounds for Topspin/Cisco SRP target bugs if != 0");
138 …"Number of RDMA channels to use for communication with an SRP target. Using more than one channel …
210 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument
216 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin()
217 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin()
269 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument
279 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
280 target->srp_host->port, in srp_init_ib_qp()
281 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp()
289 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srp/
Dib_srp.c95 "Enable workarounds for Topspin/Cisco SRP target bugs if != 0");
142 …"Number of RDMA channels to use for communication with an SRP target. Using more than one channel …
216 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()
[all …]
/kernel/linux/linux-5.10/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()
34 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send()
87 static void htc_process_target_rdy(struct htc_target *target, in htc_process_target_rdy() argument
93 target->credit_size = be16_to_cpu(htc_ready_msg->credit_size); in htc_process_target_rdy()
95 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy()
98 atomic_inc(&target->tgt_ready); in htc_process_target_rdy()
99 complete(&target->target_wait); in htc_process_target_rdy()
102 static void htc_process_conn_rsp(struct htc_target *target, in htc_process_conn_rsp() argument
121 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/kernel/linux/linux-4.19/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()
34 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb); in htc_issue_send()
87 static void htc_process_target_rdy(struct htc_target *target, in htc_process_target_rdy() argument
93 target->credit_size = be16_to_cpu(htc_ready_msg->credit_size); in htc_process_target_rdy()
95 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy()
98 atomic_inc(&target->tgt_ready); in htc_process_target_rdy()
99 complete(&target->target_wait); in htc_process_target_rdy()
102 static void htc_process_conn_rsp(struct htc_target *target, in htc_process_conn_rsp() argument
121 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/kernel/linux/linux-5.10/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
23 the TransportID / Initiator and Target WWPN related handlers for
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
[all …]
/kernel/linux/linux-4.19/Documentation/target/
Dtcm_mod_builder.txt11 mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD
13 This script will create a new drivers/target/$TCM_NEW_MOD/, and will do the following
15 *) Generate new API callers for drivers/target/target_core_fabric_configs.c logic
21 the TransportID / Initiator and Target WWPN related handlers for
23 using drivers/target/target_core_fabric_lib.c logic.
30 target:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_na…
31 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../
34 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000
37 /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/tcm_nab5000_base.h
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_io.c15 u16 target = reg >> TARGET_OFFSET; in __ocelot_read_ix() local
18 WARN_ON(!target); in __ocelot_read_ix()
20 regmap_read(ocelot->targets[target], in __ocelot_read_ix()
21 ocelot->map[target][reg & REG_MASK] + offset, &val); in __ocelot_read_ix()
28 u16 target = reg >> TARGET_OFFSET; in __ocelot_write_ix() local
30 WARN_ON(!target); in __ocelot_write_ix()
32 regmap_write(ocelot->targets[target], in __ocelot_write_ix()
33 ocelot->map[target][reg & REG_MASK] + offset, val); in __ocelot_write_ix()
40 u16 target = reg >> TARGET_OFFSET; in __ocelot_rmw_ix() local
42 WARN_ON(!target); in __ocelot_rmw_ix()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/numa/
Dhmat.c95 struct memory_target *target; in find_mem_target() local
97 list_for_each_entry(target, &targets, node) in find_mem_target()
98 if (target->memory_pxm == mem_pxm) in find_mem_target()
99 return target; in find_mem_target()
126 struct memory_target *target; in alloc_memory_target() local
128 target = find_mem_target(mem_pxm); in alloc_memory_target()
129 if (!target) { in alloc_memory_target()
130 target = kzalloc(sizeof(*target), GFP_KERNEL); in alloc_memory_target()
131 if (!target) in alloc_memory_target()
133 target->memory_pxm = mem_pxm; in alloc_memory_target()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/sysctl/
Dsysctl.sh27 # TEST_ID:TEST_COUNT:ENABLED:TARGET
32 # TARGET: test target file required on the test_sysctl module
133 TRIGGER=$(basename ${TARGET})
153 echo -n $VAL > $TARGET
158 if [ ! -z $TARGET ] && [ ! -z $ORIG ]; then
159 if [ -f ${TARGET} ]; then
160 echo "${ORIG}" > "${TARGET}"
167 echo "${TEST_STR}" > "${TARGET}"
223 echo "== Testing sysctl behavior against ${TARGET} =="
237 if verify "${TARGET}"; then
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/
DMakefile85 @for TARGET in $(TARGETS); do \
86 BUILD_TARGET=$$BUILD/$$TARGET; \
88 make OUTPUT=$$BUILD_TARGET -C $$TARGET;\
92 @for TARGET in $(TARGETS); do \
93 BUILD_TARGET=$$BUILD/$$TARGET; \
94 make OUTPUT=$$BUILD_TARGET -C $$TARGET run_tests;\
98 @for TARGET in $(TARGETS_HOTPLUG); do \
99 BUILD_TARGET=$$BUILD/$$TARGET; \
100 make OUTPUT=$$BUILD_TARGET -C $$TARGET;\
104 @for TARGET in $(TARGETS_HOTPLUG); do \
[all …]
/kernel/linux/linux-5.10/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()
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 …]
/kernel/linux/linux-4.19/lib/
Dsyscall.c8 static int collect_syscall(struct task_struct *target, long *callno, in collect_syscall() argument
14 if (!try_get_task_stack(target)) { in collect_syscall()
21 regs = task_pt_regs(target); in collect_syscall()
23 put_task_stack(target); in collect_syscall()
30 *callno = syscall_get_nr(target, regs); in collect_syscall()
32 syscall_get_arguments(target, regs, 0, maxargs, args); in collect_syscall()
34 put_task_stack(target); in collect_syscall()
40 * @target: thread to examine
47 * If @target is blocked in a system call, returns zero with *@callno
51 * call is still in progress. Note we may get this result if @target
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/sysctl/
Dsysctl.sh138 TRIGGER=$(basename ${TARGET})
155 echo -n $VAL > $TARGET
160 if [ ! -z $TARGET ]; then
161 echo "${ORIG}" > "${TARGET}"
167 echo "${TEST_STR}" > "${TARGET}"
207 echo "== Testing sysctl behavior against ${TARGET} =="
221 if verify "${TARGET}"; then
230 if ! verify "${TARGET}"; then
239 if verify "${TARGET}"; then
252 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
[all …]

12345678910>>...185