Home
last modified time | relevance | path

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

12345678910>>...64

/Linux-v5.4/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.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 …]
/Linux-v5.4/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-v5.4/drivers/infiniband/ulp/srp/
Dib_srp.c221 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument
227 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin()
228 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin()
280 static int srp_init_ib_qp(struct srp_target_port *target, in srp_init_ib_qp() argument
290 ret = ib_find_cached_pkey(target->srp_host->srp_dev->dev, in srp_init_ib_qp()
291 target->srp_host->port, in srp_init_ib_qp()
292 be16_to_cpu(target->ib_cm.pkey), in srp_init_ib_qp()
300 attr->port_num = target->srp_host->port; in srp_init_ib_qp()
315 struct srp_target_port *target = ch->target; in srp_new_ib_cm_id() local
318 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
[all …]
/Linux-v5.4/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
118 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/Linux-v5.4/drivers/acpi/hmat/
Dhmat.c80 struct memory_target *target; in find_mem_target() local
82 list_for_each_entry(target, &targets, node) in find_mem_target()
83 if (target->memory_pxm == mem_pxm) in find_mem_target()
84 return target; in find_mem_target()
109 struct memory_target *target; in alloc_memory_target() local
111 target = find_mem_target(mem_pxm); in alloc_memory_target()
112 if (target) in alloc_memory_target()
115 target = kzalloc(sizeof(*target), GFP_KERNEL); in alloc_memory_target()
116 if (!target) in alloc_memory_target()
119 target->memory_pxm = mem_pxm; in alloc_memory_target()
[all …]
/Linux-v5.4/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-v5.4/arch/powerpc/kernel/
Dptrace.c337 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument
343 if (target->thread.regs == NULL) in gpr_get()
346 if (!FULL_REGS(target->thread.regs)) { in gpr_get()
349 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get()
353 target->thread.regs, in gpr_get()
356 unsigned long msr = get_user_msr(target); in gpr_get()
368 &target->thread.regs->orig_gpr3, in gpr_get()
378 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
385 if (target->thread.regs == NULL) in gpr_set()
388 CHECK_FULL_REGS(target->thread.regs); in gpr_set()
[all …]
/Linux-v5.4/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 (map_groups__find_ams(&target) == 0 && in s390_call__parse()
42 map__rip_2objdump(target.map, map->map_ip(target.map, target.addr)) == ops->target.addr) in s390_call__parse()
43 ops->target.sym = target.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-v5.4/arch/x86/kernel/
Dpci-calgary_64.c508 unsigned long target = ((unsigned long)bar) | offset; in calgary_reg() local
509 return (void __iomem*)target; in calgary_reg()
533 void __iomem *target; in calgary_tce_cache_blast() local
536 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast()
537 aer = readl(target); in calgary_tce_cache_blast()
538 writel(0, target); in calgary_tce_cache_blast()
541 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_tce_cache_blast()
542 val = readl(target); in calgary_tce_cache_blast()
545 target = calgary_reg(bbar, split_queue_offset(tbl->it_busno)); in calgary_tce_cache_blast()
547 val = readq(target); in calgary_tce_cache_blast()
[all …]
/Linux-v5.4/lib/
Dsyscall.c8 static int collect_syscall(struct task_struct *target, struct syscall_info *info) in collect_syscall() argument
12 if (!try_get_task_stack(target)) { in collect_syscall()
19 regs = task_pt_regs(target); in collect_syscall()
21 put_task_stack(target); in collect_syscall()
28 info->data.nr = syscall_get_nr(target, regs); in collect_syscall()
30 syscall_get_arguments(target, regs, in collect_syscall()
33 put_task_stack(target); in collect_syscall()
62 int task_current_syscall(struct task_struct *target, struct syscall_info *info) in task_current_syscall() argument
67 if (target == current) in task_current_syscall()
68 return collect_syscall(target, info); in task_current_syscall()
[all …]
/Linux-v5.4/fs/cifs/
Dcifs_unicode.c33 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument
42 *target = ':'; in convert_sfu_char()
45 *target = '*'; in convert_sfu_char()
48 *target = '?'; in convert_sfu_char()
51 *target = '|'; in convert_sfu_char()
54 *target = '>'; in convert_sfu_char()
57 *target = '<'; in convert_sfu_char()
67 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument
70 *target = src_char - 0xF000; in convert_sfm_char()
75 *target = ':'; in convert_sfm_char()
[all …]
/Linux-v5.4/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-v5.4/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 …]
/Linux-v5.4/drivers/of/
Doverlay.c41 struct target { struct
53 struct device_node *target; member
95 struct target *target, const struct device_node *overlay_node);
168 nd.target = fragment->target; in overlay_notify()
178 of_overlay_action_name[action], ret, nd.target); in overlay_notify()
244 target_path = kasprintf(GFP_KERNEL, "%pOF", fragment->target); in dup_and_fixup_symbol_prop()
303 struct target *target, struct property *overlay_prop, in add_changeset_property() argument
310 if (target->in_livetree) in add_changeset_property()
316 if (target->in_livetree) in add_changeset_property()
317 prop = of_find_property(target->np, overlay_prop->name, NULL); in add_changeset_property()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gem/
Di915_gem_throttle.c40 struct i915_request *request, *target = NULL; in i915_gem_throttle_ioctl() local
53 if (target) { in i915_gem_throttle_ioctl()
54 list_del(&target->client_link); in i915_gem_throttle_ioctl()
55 target->file_priv = NULL; in i915_gem_throttle_ioctl()
58 target = request; in i915_gem_throttle_ioctl()
60 if (target) in i915_gem_throttle_ioctl()
61 i915_request_get(target); in i915_gem_throttle_ioctl()
64 if (!target) in i915_gem_throttle_ioctl()
67 ret = i915_request_wait(target, in i915_gem_throttle_ioctl()
70 i915_request_put(target); in i915_gem_throttle_ioctl()
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_mutex.c16 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()
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()
123 struct nfp_cpp_mutex *nfp_cpp_mutex_alloc(struct nfp_cpp *cpp, int target, in nfp_cpp_mutex_alloc() argument
126 const u32 mur = NFP_CPP_ID(target, 3, 0); /* atomic_read */ in nfp_cpp_mutex_alloc()
132 err = nfp_cpp_mutex_validate(interface, &target, address); in nfp_cpp_mutex_alloc()
148 mutex->target = target; in nfp_cpp_mutex_alloc()
[all …]
/Linux-v5.4/arch/s390/kernel/
Dptrace.c892 static int s390_regs_get(struct task_struct *target, in s390_regs_get() argument
897 if (target == current) in s390_regs_get()
898 save_access_regs(target->thread.acrs); in s390_regs_get()
903 *k++ = __peek_user(target, pos); in s390_regs_get()
910 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
919 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
926 if (target == current) in s390_regs_set()
927 save_access_regs(target->thread.acrs); in s390_regs_set()
932 rc = __poke_user(target, pos, *k++); in s390_regs_set()
943 rc = __poke_user(target, pos, word); in s390_regs_set()
[all …]
/Linux-v5.4/include/trace/events/
Dcpuhp.h13 int target,
17 TP_ARGS(cpu, target, idx, fun),
21 __field( int, target )
28 __entry->target = target;
34 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
40 int target,
45 TP_ARGS(cpu, target, idx, fun, node),
49 __field( int, target )
56 __entry->target = target;
62 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
/Linux-v5.4/fs/sysfs/
Dsymlink.c24 struct kernfs_node *kn, *target = NULL; in sysfs_do_create_link_sd() local
36 target = target_kobj->sd; in sysfs_do_create_link_sd()
37 kernfs_get(target); in sysfs_do_create_link_sd()
41 if (!target) in sysfs_do_create_link_sd()
44 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd()
45 kernfs_put(target); in sysfs_do_create_link_sd()
61 int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, in sysfs_create_link_sd() argument
64 return sysfs_do_create_link_sd(kn, target, name, 1); in sysfs_create_link_sd()
67 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link() argument
80 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link()
[all …]
/Linux-v5.4/drivers/acpi/acpica/
Drsdump.c177 u8 *target = NULL; in acpi_rs_dump_descriptor() local
187 previous_target = target; in acpi_rs_dump_descriptor()
188 target = ACPI_ADD_PTR(u8, resource, table->offset); in acpi_rs_dump_descriptor()
211 acpi_rs_out_string(name, ACPI_CAST_PTR(char, target)); in acpi_rs_dump_descriptor()
220 table->pointer[*target]); in acpi_rs_dump_descriptor()
222 acpi_rs_out_integer8(name, ACPI_GET8(target)); in acpi_rs_dump_descriptor()
228 acpi_rs_out_integer16(name, ACPI_GET16(target)); in acpi_rs_dump_descriptor()
233 acpi_rs_out_integer32(name, ACPI_GET32(target)); in acpi_rs_dump_descriptor()
238 acpi_rs_out_integer64(name, ACPI_GET64(target)); in acpi_rs_dump_descriptor()
246 table->pointer[*target & 0x01]); in acpi_rs_dump_descriptor()
[all …]
/Linux-v5.4/net/nfc/
Ddigital_technology.c165 struct nfc_target *target);
218 struct nfc_target *target = arg; in digital_in_recv_ats() local
241 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats()
245 kfree(target); in digital_in_recv_ats()
252 struct nfc_target *target) in digital_in_send_rats() argument
265 target); in digital_in_send_rats()
275 struct nfc_target *target = arg; in digital_in_recv_sel_res() local
302 rc = digital_in_send_sdd_req(ddev, target); in digital_in_recv_sel_res()
309 target->sel_res = sel_res; in digital_in_recv_sel_res()
316 rc = digital_in_send_rats(ddev, target); in digital_in_recv_sel_res()
[all …]

12345678910>>...64