| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | hv_vhca.c | 83 if (!agent || !agent->invalidate) in mlx5_hv_vhca_invalidate_work() 89 agent->invalidate(agent, hwork->block_mask); in mlx5_hv_vhca_invalidate_work() 122 if (!agent || !agent->control) in mlx5_hv_vhca_agents_control() 128 agent->control(agent, block); in mlx5_hv_vhca_agents_control() 140 if (agent) in mlx5_hv_vhca_capabilities() 234 if (agent) in mlx5_hv_vhca_cleanup() 276 agent = kzalloc(sizeof(*agent), GFP_KERNEL); in mlx5_hv_vhca_agent_create() 277 if (!agent) in mlx5_hv_vhca_agent_create() 293 return agent; in mlx5_hv_vhca_agent_create() 302 if (WARN_ON(agent != hv_vhca->agents[agent->type])) { in mlx5_hv_vhca_agent_destroy() [all …]
|
| A D | hv_vhca.h | 45 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
|
| /linux/drivers/infiniband/core/ |
| A D | mad_rmpp.c | 47 struct ib_mad_agent_private *agent; member 92 spin_lock_irqsave(&agent->lock, flags); 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() 185 msg = alloc_response_msg(&agent->agent, recv_wc); in ack_ds_ack() 219 msg = alloc_response_msg(&agent->agent, recv_wc); in nack_recv() 286 rmpp_recv->ah = ib_create_ah_from_wc(agent->agent.qp->pd, in create_rmpp_recv() 289 agent->agent.port_num); in create_rmpp_recv() 293 rmpp_recv->agent = agent; in create_rmpp_recv() 682 ack_ds_ack(agent, mad_recv_wc); in process_rmpp_ack() [all …]
|
| A D | agent.c | 50 struct ib_mad_agent *agent[2]; member 65 if (entry->agent[0] && in __ib_get_agent_port() 70 if (entry->agent[1] && in __ib_get_agent_port() 95 struct ib_mad_agent *agent; in agent_send_response() local 110 agent = port_priv->agent[qpn]; in agent_send_response() 178 if (IS_ERR(port_priv->agent[0])) { in ib_agent_port_open() 179 ret = PTR_ERR(port_priv->agent[0]); in ib_agent_port_open() 190 if (IS_ERR(port_priv->agent[1])) { in ib_agent_port_open() 203 if (port_priv->agent[0]) in ib_agent_port_open() 226 if (port_priv->agent[1]) in ib_agent_port_close() [all …]
|
| A D | security.c | 691 if (!rdma_protocol_ib(agent->device, agent->port_num)) in ib_mad_agent_security_setup() 705 dev_name(&agent->device->dev), in ib_mad_agent_security_setup() 706 agent->port_num); in ib_mad_agent_security_setup() 710 WRITE_ONCE(agent->smp_allowed, true); in ib_mad_agent_security_setup() 723 if (!rdma_protocol_ib(agent->device, agent->port_num)) in ib_mad_agent_security_cleanup() 726 if (agent->qp->qp_type == IB_QPT_SMI) { in ib_mad_agent_security_cleanup() 728 list_del(&agent->mad_agent_sec_list); in ib_mad_agent_security_cleanup() 737 if (!rdma_protocol_ib(map->agent.device, map->agent.port_num)) in ib_mad_enforce_security() 741 if (!READ_ONCE(map->agent.smp_allowed)) in ib_mad_enforce_security() 747 map->agent.port_num, in ib_mad_enforce_security() [all …]
|
| A D | user_mad.c | 264 if (rdma_cap_opa_mad(agent->device, agent->port_num)) in recv_handler() 278 ret = ib_init_ah_attr_from_wc(agent->device, agent->port_num, in recv_handler() 550 if (!agent) { in ib_umad_write() 759 agent = NULL; in ib_umad_reg_agent() 780 file->agent[agent_id] = agent; in ib_umad_reg_agent() 786 if (ret && agent) in ib_umad_reg_agent() 873 agent = NULL; in ib_umad_reg_agent2() 889 file->agent[agent_id] = agent; in ib_umad_reg_agent2() 895 if (ret && agent) in ib_umad_reg_agent2() 924 agent = file->agent[id]; in ib_umad_unreg_agent() [all …]
|
| A D | mad.c | 528 agent); in ib_unregister_mad_agent() 817 agent.rmpp_version; in alloc_send_rmpp_list() 829 return agent->rmpp_version && !(agent->flags & IB_MAD_USER_RMPP); in ib_mad_kernel_rmpp_agent() 847 agent); in ib_create_send_mad() 1212 if (method->agent[i]) in check_method_table() 1271 if (method->agent[i] == agent) in remove_methods_mad_agent() 1850 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, NULL, in ib_mad_complete_recv() 2256 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in ib_mad_complete_send_wr() 2429 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in cancel_mads() 2569 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in local_completions() [all …]
|
| A D | sa_query.c | 91 struct ib_mad_agent *agent; member 1530 struct ib_mad_agent *agent; in ib_sa_path_rec_get() local 1543 agent = port->agent; in ib_sa_path_rec_get() 1577 init_mad(&query->sa_query, agent); in ib_sa_path_rec_get() 1657 struct ib_mad_agent *agent; in ib_sa_mcmember_rec_query() local 1665 agent = port->agent; in ib_sa_mcmember_rec_query() 1747 struct ib_mad_agent *agent; in ib_sa_guid_info_rec_query() local 1761 agent = port->agent; in ib_sa_guid_info_rec_query() 1884 struct ib_mad_agent *agent; in ib_sa_classport_info_rec_query() local 1890 agent = port->agent; in ib_sa_classport_info_rec_query() [all …]
|
| /linux/drivers/md/dm-vdo/ |
| A D | dedupe.c | 262 struct data_vio *agent; member 528 lock->agent = new_agent; in retire_lock_agent() 584 exit_hash_lock(agent); in start_bypassing() 597 lock->agent = data_vio; in vdo_clean_failed_hash_lock() 617 lock->agent = NULL; in vdo_clean_failed_hash_lock() 694 vdo_release_physical_zone_pbn_lock(agent->duplicate.zone, agent->duplicate.pbn, in unlock_duplicate_pbn() 829 lock->agent = agent; in finish_deduping() 1029 lock->agent = NULL; in start_deduping() 1038 agent = NULL; in start_deduping() 1138 agent->is_duplicate = blocks_equal(agent->vio.data, agent->scratch_block); in verify_callback() [all …]
|
| A D | packer.c | 278 struct data_vio *agent = as_data_vio(completion); in finish_compressed_write() local 281 assert_data_vio_in_allocated_zone(agent); in finish_compressed_write() 293 release_compressed_write_waiter(agent, &agent->allocation); in finish_compressed_write() 298 struct data_vio *agent = as_data_vio(completion); in handle_compressed_write_error() local 317 write_data_vio(agent); in handle_compressed_write_error() 435 if (agent == NULL) in write_bin() 438 compression = &agent->compression; in write_bin() 452 abort_packing(agent); in write_bin() 469 REQ_OP_WRITE, agent->allocation.pbn); in write_bin() 471 continue_data_vio_with_error(agent, result); in write_bin() [all …]
|
| /linux/drivers/mfd/ |
| A D | twl4030-irq.c | 441 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask() 449 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask() 461 agent->edge_change |= BIT(data->irq - agent->irq_base); in twl4030_sih_set_type() 498 if (agent->edge_change) { in twl4030_sih_bus_sync_unlock() 503 agent->edge_change = 0; in twl4030_sih_bus_sync_unlock() 616 struct sih_agent *agent; in twl4030_sih_setup() local 634 agent = kzalloc(sizeof(*agent), GFP_KERNEL); in twl4030_sih_setup() 635 if (!agent) in twl4030_sih_setup() 638 agent->irq_base = irq_base; in twl4030_sih_setup() 639 agent->sih = sih; in twl4030_sih_setup() [all …]
|
| /linux/drivers/target/sbp/ |
| A D | sbp_target.c | 1018 agent = kmalloc(sizeof(*agent), GFP_KERNEL); in sbp_target_agent_register() 1019 if (!agent) in sbp_target_agent_register() 1026 agent->handler.callback_data = agent; in sbp_target_agent_register() 1037 kfree(agent); in sbp_target_agent_register() 1041 return agent; in sbp_target_agent_register() 1048 kfree(agent); in sbp_target_agent_unregister() 1640 agent = kmalloc(sizeof(*agent), GFP_KERNEL); in sbp_management_agent_register() 1641 if (!agent) in sbp_management_agent_register() 1648 agent->handler.callback_data = agent; in sbp_management_agent_register() 1661 return agent; in sbp_management_agent_register() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | hv_vhca_stats.c | 60 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() 99 priv = mlx5_hv_vhca_agent_priv(agent); in mlx5e_hv_vhca_stats_control() 126 struct mlx5_hv_vhca_agent *agent; in mlx5e_hv_vhca_stats_create() local 138 if (IS_ERR_OR_NULL(agent)) { in mlx5e_hv_vhca_stats_create() 139 if (IS_ERR(agent)) in mlx5e_hv_vhca_stats_create() 142 PTR_ERR(agent)); in mlx5e_hv_vhca_stats_create() 148 priv->stats_agent.agent = agent; in mlx5e_hv_vhca_stats_create() 154 if (IS_ERR_OR_NULL(priv->stats_agent.agent)) in mlx5e_hv_vhca_stats_destroy() [all …]
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| A D | mad.c | 46 static void rvt_send_mad_handler(struct ib_mad_agent *agent, in rvt_send_mad_handler() argument 62 struct ib_mad_agent *agent; in rvt_create_mad_agents() local 69 agent = ib_register_mad_agent(&rdi->ibdev, p + 1, in rvt_create_mad_agents() 73 if (IS_ERR(agent)) { in rvt_create_mad_agents() 74 ret = PTR_ERR(agent); in rvt_create_mad_agents() 78 rvp->send_agent = agent; in rvt_create_mad_agents() 90 agent = rvp->send_agent; in rvt_create_mad_agents() 92 ib_unregister_mad_agent(agent); in rvt_create_mad_agents() 109 struct ib_mad_agent *agent; in rvt_free_mad_agents() local 116 agent = rvp->send_agent; in rvt_free_mad_agents() [all …]
|
| /linux/tools/virtio/virtio-trace/ |
| A D | README | 5 overhead. Trace agent has the following functions: 11 The trace agent operates as follows: 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent 51 agent-ctl-path.{in,out}. 61 id=channel0,name=agent-ctl-path\ 93 0) Build trace agent in a guest 100 2) Run trace agent in the guest 101 This agent must be operated as root. 102 # ./trace-agent [all …]
|
| A D | Makefile | 5 all: trace-agent 10 trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o 14 rm -f *.o trace-agent
|
| /linux/drivers/firmware/arm_scmi/transports/ |
| A D | optee.c | 160 struct device *dev = agent->dev; in open_session() 204 close_session(agent, tee_session); in get_capabilities() 218 agent->caps = caps; in get_capabilities() 531 struct scmi_optee_agent *agent; in scmi_optee_service_probe() local 545 agent = devm_kzalloc(dev, sizeof(*agent), GFP_KERNEL); in scmi_optee_service_probe() 546 if (!agent) { in scmi_optee_service_probe() 551 agent->dev = dev; in scmi_optee_service_probe() 552 agent->tee_ctx = tee_ctx; in scmi_optee_service_probe() 554 mutex_init(&agent->mu); in scmi_optee_service_probe() 556 ret = get_capabilities(agent); in scmi_optee_service_probe() [all …]
|
| /linux/include/trace/events/ |
| A D | ib_mad.h | 247 TP_PROTO(struct ib_mad_agent_private *agent), 248 TP_ARGS(agent), 259 __entry->dev_index = agent->agent.device->index; 260 __entry->port_num = agent->agent.port_num; 261 __entry->hi_tid = agent->agent.hi_tid; 263 if (agent->reg_req) { 266 agent->reg_req->mgmt_class_version; 281 TP_ARGS(agent)); 284 TP_ARGS(agent)); 287 TP_ARGS(agent)); [all …]
|
| /linux/security/yama/ |
| A D | yama_lsm.c | 49 struct task_struct *agent; member 59 agent_cmd = kstrdup_quotable_cmdline(info->agent, GFP_KERNEL); in __report_access() 64 info->agent->pid); in __report_access() 69 put_task_struct(info->agent); in __report_access() 76 struct task_struct *agent) in report_access() argument 79 char agent_comm[sizeof(agent->comm)]; in report_access() 90 get_task_comm(agent_comm, agent), agent->pid); in report_access() 99 get_task_struct(agent); in report_access() 102 info->agent = agent; in report_access() 108 put_task_struct(agent); in report_access()
|
| /linux/drivers/infiniband/hw/mthca/ |
| A D | mthca_mad.c | 170 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn]; in forward_trap() local 174 if (agent) { 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 332 agent = dev->send_agent[p][q]; in mthca_free_agents() [all …]
|
| /linux/Documentation/firmware-guide/acpi/ |
| A D | intel-pmc-mux.rst | 13 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
|
| /linux/tools/perf/jvmti/ |
| A D | jvmti_agent.h | 21 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,
|
| /linux/Documentation/admin-guide/perf/ |
| A D | xgene-pmu.rst | 19 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
|
| /linux/Documentation/devicetree/bindings/mailbox/ |
| A D | xlnx,zynqmp-ipi-mailbox.yaml | 12 agent owns registers used for notification and buffers for message. 71 Remote Xilinx IPI agent ID of which the mailbox is connected to. 101 Remote Xilinx IPI agent ID of which the mailbox is connected to. 132 - description: Remote IPI agent control register region 133 - description: Remote IPI agent optional message buffers 171 - description: Host IPI agent control register region 172 - description: Host IPI agent optional message buffers
|
| /linux/Documentation/networking/ |
| A D | tls-handshake.rst | 25 User handshake agent 29 Linux kernel. To provide a handshake service, a handshake agent 35 An open socket is passed to a handshake agent via a netlink operation, 36 which creates a socket descriptor in the agent's file descriptor table. 37 If the handshake completes successfully, the handshake agent promotes 39 SOL_TLS socket options. The handshake agent returns the socket to the 80 handshake agent to exit after a number of milliseconds. This enables the 81 socket to be fully closed once both the kernel and the handshake agent 85 keys, and pre-shared keys are provided to the handshake agent in keys 125 The handshake agent presents no peer identity information to the remote [all …]
|