Home
last modified time | relevance | path

Searched refs:agent (Results 1 – 25 of 72) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dhv_vhca.c34 void (*control)(struct mlx5_hv_vhca_agent *agent,
36 void (*invalidate)(struct mlx5_hv_vhca_agent *agent,
38 void (*cleanup)(struct mlx5_hv_vhca_agent *agent);
81 struct mlx5_hv_vhca_agent *agent = hv_vhca->agents[i]; in mlx5_hv_vhca_invalidate_work() local
83 if (!agent || !agent->invalidate) in mlx5_hv_vhca_invalidate_work()
86 if (!(BIT(agent->type) & hwork->block_mask)) in mlx5_hv_vhca_invalidate_work()
89 agent->invalidate(agent, hwork->block_mask); in mlx5_hv_vhca_invalidate_work()
120 struct mlx5_hv_vhca_agent *agent = hv_vhca->agents[i]; in mlx5_hv_vhca_agents_control() local
122 if (!agent || !agent->control) in mlx5_hv_vhca_agents_control()
125 if (!(AGENT_MASK(agent->type) & block->control)) in mlx5_hv_vhca_agents_control()
[all …]
Dhv_vhca.h45 void (*cleanup)(struct mlx5_hv_vhca_agent *agent),
48 void mlx5_hv_vhca_agent_destroy(struct mlx5_hv_vhca_agent *agent);
49 int mlx5_hv_vhca_agent_write(struct mlx5_hv_vhca_agent *agent,
51 void *mlx5_hv_vhca_agent_priv(struct mlx5_hv_vhca_agent *agent);
86 void (*cleanup)(struct mlx5_hv_vhca_agent *agent), in mlx5_hv_vhca_agent_create() argument
92 static inline void mlx5_hv_vhca_agent_destroy(struct mlx5_hv_vhca_agent *agent) in mlx5_hv_vhca_agent_destroy() argument
97 mlx5_hv_vhca_write_agent(struct mlx5_hv_vhca_agent *agent, in mlx5_hv_vhca_write_agent() argument
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dmad_rmpp.c47 struct ib_mad_agent_private *agent; member
87 void ib_cancel_rmpp_recvs(struct ib_mad_agent_private *agent) in ib_cancel_rmpp_recvs() argument
92 spin_lock_irqsave(&agent->lock, flags); in ib_cancel_rmpp_recvs()
93 list_for_each_entry(rmpp_recv, &agent->rmpp_list, list) { in ib_cancel_rmpp_recvs()
97 spin_unlock_irqrestore(&agent->lock, flags); in ib_cancel_rmpp_recvs()
99 flush_workqueue(agent->qp_info->port_priv->wq); in ib_cancel_rmpp_recvs()
102 &agent->rmpp_list, list) { in ib_cancel_rmpp_recvs()
137 msg = ib_create_send_mad(&rmpp_recv->agent->agent, recv_wc->wc->src_qp, in ack_recv()
151 static struct ib_mad_send_buf *alloc_response_msg(struct ib_mad_agent *agent, in alloc_response_msg() argument
158 ah = ib_create_ah_from_wc(agent->qp->pd, recv_wc->wc, in alloc_response_msg()
[all …]
Dagent.c50 struct ib_mad_agent *agent[2]; member
62 if (entry->agent[1]->device == device && in __ib_get_agent_port()
63 entry->agent[1]->port_num == port_num) in __ib_get_agent_port()
86 struct ib_mad_agent *agent; in agent_send_response() local
101 agent = port_priv->agent[qpn]; in agent_send_response()
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
112 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, in agent_send_response()
165 port_priv->agent[0] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
169 if (IS_ERR(port_priv->agent[0])) { in ib_agent_port_open()
170 ret = PTR_ERR(port_priv->agent[0]); in ib_agent_port_open()
[all …]
Dsecurity.c689 int ib_mad_agent_security_setup(struct ib_mad_agent *agent, in ib_mad_agent_security_setup() argument
694 if (!rdma_protocol_ib(agent->device, agent->port_num)) in ib_mad_agent_security_setup()
697 INIT_LIST_HEAD(&agent->mad_agent_sec_list); in ib_mad_agent_security_setup()
699 ret = security_ib_alloc_security(&agent->security); in ib_mad_agent_security_setup()
707 ret = security_ib_endport_manage_subnet(agent->security, in ib_mad_agent_security_setup()
708 dev_name(&agent->device->dev), in ib_mad_agent_security_setup()
709 agent->port_num); in ib_mad_agent_security_setup()
713 WRITE_ONCE(agent->smp_allowed, true); in ib_mad_agent_security_setup()
714 list_add(&agent->mad_agent_sec_list, &mad_agent_list); in ib_mad_agent_security_setup()
720 security_ib_free_security(agent->security); in ib_mad_agent_security_setup()
[all …]
Duser_mad.c120 struct ib_mad_agent *agent[IB_UMAD_MAX_AGENTS]; member
175 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
179 struct ib_mad_agent *agent, in queue_packet() argument
189 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
209 static void send_handler(struct ib_mad_agent *agent, in send_handler() argument
212 struct ib_umad_file *file = agent->context; in send_handler()
222 if (!queue_packet(file, agent, packet)) in send_handler()
228 static void recv_handler(struct ib_mad_agent *agent, in recv_handler() argument
232 struct ib_umad_file *file = agent->context; in recv_handler()
252 if (rdma_cap_opa_mad(agent->device, agent->port_num)) in recv_handler()
[all …]
Dmad.c389 mad_agent_priv->agent.rmpp_version = rmpp_version; in ib_register_mad_agent()
390 mad_agent_priv->agent.device = device; in ib_register_mad_agent()
391 mad_agent_priv->agent.recv_handler = recv_handler; in ib_register_mad_agent()
392 mad_agent_priv->agent.send_handler = send_handler; in ib_register_mad_agent()
393 mad_agent_priv->agent.context = context; in ib_register_mad_agent()
394 mad_agent_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_agent()
395 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent()
396 mad_agent_priv->agent.flags = registration_flags; in ib_register_mad_agent()
408 ret2 = ib_mad_agent_security_setup(&mad_agent_priv->agent, qp_type); in ib_register_mad_agent()
418 ret2 = xa_alloc_cyclic(&ib_mad_clients, &mad_agent_priv->agent.hi_tid, in ib_register_mad_agent()
[all …]
Dsa_query.c91 struct ib_mad_agent *agent; member
764 dev_name(&query->port->agent->device->dev), in ib_nl_set_path_rec_attrs()
917 static void send_handler(struct ib_mad_agent *agent,
1004 send_handler(query->port->agent, &mad_send_wc); in ib_nl_request_timeout()
1131 send_handler(query->port->agent, &mad_send_wc); in ib_nl_handle_resolve_resp()
1176 struct ib_mad_agent *agent; in ib_sa_cancel_query() local
1184 agent = query->port->agent; in ib_sa_cancel_query()
1194 ib_cancel_mad(agent, mad_buf); in ib_sa_cancel_query()
1315 query->mad_buf = ib_create_send_mad(query->port->agent, 1, in alloc_mad()
1338 static void init_mad(struct ib_sa_query *query, struct ib_mad_agent *agent) in init_mad() argument
[all …]
Dmad_rmpp.h46 ib_process_rmpp_recv_wc(struct ib_mad_agent_private *agent,
54 void ib_cancel_rmpp_recvs(struct ib_mad_agent_private *agent);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhv_vhca_stats.c60 struct mlx5_hv_vhca_agent *agent; in mlx5e_hv_vhca_stats_work() local
70 agent = sagent->agent; in mlx5e_hv_vhca_stats_work()
76 rc = mlx5_hv_vhca_agent_write(agent, buf, buf_len); in mlx5e_hv_vhca_stats_work()
93 static void mlx5e_hv_vhca_stats_control(struct mlx5_hv_vhca_agent *agent, in mlx5e_hv_vhca_stats_control() argument
99 priv = mlx5_hv_vhca_agent_priv(agent); in mlx5e_hv_vhca_stats_control()
116 static void mlx5e_hv_vhca_stats_cleanup(struct mlx5_hv_vhca_agent *agent) in mlx5e_hv_vhca_stats_cleanup() argument
118 struct mlx5e_priv *priv = mlx5_hv_vhca_agent_priv(agent); in mlx5e_hv_vhca_stats_cleanup()
126 struct mlx5_hv_vhca_agent *agent; in mlx5e_hv_vhca_stats_create() local
132 agent = mlx5_hv_vhca_agent_create(priv->mdev->hv_vhca, in mlx5e_hv_vhca_stats_create()
138 if (IS_ERR_OR_NULL(agent)) { in mlx5e_hv_vhca_stats_create()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dtwl4030-irq.c438 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_mask() local
440 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask()
441 agent->imr_change_pending = true; in twl4030_sih_mask()
446 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_unmask() local
448 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask()
449 agent->imr_change_pending = true; in twl4030_sih_unmask()
454 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_set_type() local
460 agent->edge_change |= BIT(data->irq - agent->irq_base); in twl4030_sih_set_type()
467 struct sih_agent *agent = irq_data_get_irq_chip_data(data); in twl4030_sih_bus_lock() local
469 mutex_lock(&agent->irq_lock); in twl4030_sih_bus_lock()
[all …]
/kernel/linux/linux-5.10/drivers/target/sbp/
Dsbp_target.c259 struct sbp_management_agent *agent, struct sbp_management_request *req, in sbp_management_request_login() argument
262 struct sbp_tport *tport = agent->tport; in sbp_management_request_login()
478 struct sbp_management_agent *agent, struct sbp_management_request *req, in sbp_management_request_query_logins() argument
490 struct sbp_management_agent *agent, struct sbp_management_request *req, in sbp_management_request_reconnect() argument
493 struct sbp_tport *tport = agent->tport; in sbp_management_request_reconnect()
549 struct sbp_management_agent *agent, struct sbp_management_request *req, in sbp_management_request_logout() argument
552 struct sbp_tport *tport = agent->tport; in sbp_management_request_logout()
669 struct sbp_target_agent *agent) in tgt_agent_rw_agent_state() argument
677 spin_lock_bh(&agent->lock); in tgt_agent_rw_agent_state()
678 state = agent->state; in tgt_agent_rw_agent_state()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dmad.c88 static void rvt_send_mad_handler(struct ib_mad_agent *agent, in rvt_send_mad_handler() argument
104 struct ib_mad_agent *agent; in rvt_create_mad_agents() local
111 agent = ib_register_mad_agent(&rdi->ibdev, p + 1, in rvt_create_mad_agents()
115 if (IS_ERR(agent)) { in rvt_create_mad_agents()
116 ret = PTR_ERR(agent); in rvt_create_mad_agents()
120 rvp->send_agent = agent; in rvt_create_mad_agents()
132 agent = rvp->send_agent; in rvt_create_mad_agents()
134 ib_unregister_mad_agent(agent); in rvt_create_mad_agents()
151 struct ib_mad_agent *agent; in rvt_free_mad_agents() local
158 agent = rvp->send_agent; in rvt_free_mad_agents()
[all …]
/kernel/linux/linux-5.10/tools/virtio/virtio-trace/
DREADME4 Trace agent is a user tool for sending trace data of a guest to a Host in low
5 overhead. Trace agent has the following functions:
11 The trace agent operates as follows:
16 4) After the controller of the trace agent receives a start order from a host,
28 Makefile: Makefile of trace agent for virtio-trace
29 trace-agent.c: includes main function, sets up for operating trace agent
30 trace-agent.h: includes all structures and some macros
31 trace-agent-ctl.c: includes controller function for read/write threads
32 trace-agent-rw.c: includes read/write threads function
38 To use this trace agent for virtio-trace, we need to prepare some virtio-serial
[all …]
DMakefile5 all: trace-agent
10 trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
14 rm -f *.o trace-agent
/kernel/linux/linux-5.10/include/trace/events/
Dib_mad.h56 __entry->dev_index = wr->mad_agent_priv->agent.device->index;
57 __entry->port_num = wr->mad_agent_priv->agent.port_num;
145 __entry->dev_index = wr->mad_agent_priv->agent.device->index;
146 __entry->port_num = wr->mad_agent_priv->agent.port_num;
252 TP_PROTO(struct ib_mad_agent_private *agent),
253 TP_ARGS(agent),
264 __entry->dev_index = agent->agent.device->index;
265 __entry->port_num = agent->agent.port_num;
266 __entry->hi_tid = agent->agent.hi_tid;
268 if (agent->reg_req) {
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_mad.c170 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn]; in forward_trap() local
174 if (agent) { in forward_trap()
175 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
277 static void send_handler(struct ib_mad_agent *agent, in send_handler() argument
285 struct ib_mad_agent *agent; in mthca_create_agents() local
293 agent = ib_register_mad_agent(&dev->ib_dev, p + 1, in mthca_create_agents()
297 if (IS_ERR(agent)) { in mthca_create_agents()
298 ret = PTR_ERR(agent); in mthca_create_agents()
301 dev->send_agent[p][q] = agent; in mthca_create_agents()
327 struct ib_mad_agent *agent; in mthca_free_agents() local
[all …]
/kernel/linux/linux-5.10/security/yama/
Dyama_lsm.c48 struct task_struct *agent; member
58 agent_cmd = kstrdup_quotable_cmdline(info->agent, GFP_KERNEL); in __report_access()
63 info->agent->pid); in __report_access()
68 put_task_struct(info->agent); in __report_access()
75 struct task_struct *agent) in report_access() argument
78 char agent_comm[sizeof(agent->comm)]; in report_access()
89 get_task_comm(agent_comm, agent), agent->pid); in report_access()
98 get_task_struct(agent); in report_access()
101 info->agent = agent; in report_access()
107 put_task_struct(agent); in report_access()
/kernel/linux/linux-5.10/tools/perf/jvmti/
Djvmti_agent.h21 int jvmti_close(void *agent);
22 int jvmti_write_code(void *agent, char const *symbol_name,
26 int jvmti_write_debug_info(void *agent, uint64_t code, int nr_lines,
Djvmti_agent.c331 jvmti_close(void *agent) in jvmti_close() argument
334 FILE *fp = agent; in jvmti_close()
359 jvmti_write_code(void *agent, char const *sym, in jvmti_write_code() argument
365 FILE *fp = agent; in jvmti_write_code()
417 jvmti_write_debug_info(void *agent, uint64_t code, in jvmti_write_debug_info() argument
424 FILE *fp = agent; in jvmti_write_debug_info()
/kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/
Dintel-pmc-mux.rst13 platforms that allow the mux-agent to be configured from the operating system
16 The North Mux-Agent (aka. Intel PMC Mux Control, or just mux-agent) driver
30 For every USB Type-C connector under the mux-agent control on the system, there
31 is a separate child node under the PMC mux-agent device node. Those nodes do not
32 represent the actual connectors, but instead the "channels" in the mux-agent
67 Mux-agent specific _DSD Device Properties
79 these device properties as-is when sending the mux-agent specific messages to
94 be "fixed" from the mux-agent's point of view, which means the mux-agent driver
114 The following ASL is an example that shows the mux-agent node, and two
/kernel/linux/linux-5.10/Documentation/admin-guide/perf/
Dxgene-pmu.rst19 config1 (agent ID) fields of the perf_event_attr structure. The "events"
24 Most of the SoC PMU has a specific list of agent ID used for monitoring
28 the bit number corresponding to the agent is set, the event is counted only if
29 it is caused by a request from that agent. Each agent ID bit is inversely mapped
31 counted for all agent requests (config1 = 0x0). For all the supported agents of
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mailbox/
Dxlnx,zynqmp-ipi-mailbox.txt6 agent owns registers used for notification and buffers for message.
34 IPI agent node:
39 - xlnx,ipi-id: local Xilinx IPI agent ID
60 - xlnx,ipi-id: remote Xilinx IPI agent ID of which the mailbox is
65 - method: The method of accessing the IPI agent registers.
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/omap/
Dl4.txt19 - reg : registers link agent and interconnect agent and access protection
20 - reg-names : "la" for link agent, "ia0" to "ia3" for one to three
21 interconnect agent instances, "ap" for access if it exists
/kernel/linux/linux-5.10/arch/mips/dec/
Dkn02xa-berr.c53 const char *kind, *agent, *cycle, *event; in dec_kn02xa_be_backend() local
66 agent = cpustr; in dec_kn02xa_be_backend()
84 kind, agent, cycle, event, address); in dec_kn02xa_be_backend()

123