Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dsmi.c129 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp, in smi_handle_dr_smp_send() argument
133 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_send()
134 smp->initial_path, in smi_handle_dr_smp_send()
135 smp->return_path, in smi_handle_dr_smp_send()
136 ib_get_smp_direction(smp), in smi_handle_dr_smp_send()
137 smp->dr_dlid == IB_LID_PERMISSIVE, in smi_handle_dr_smp_send()
138 smp->dr_slid == IB_LID_PERMISSIVE); in smi_handle_dr_smp_send()
141 enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp, in opa_smi_handle_dr_smp_send() argument
145 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_send()
146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send()
[all …]
Dopa_smi.h42 enum smi_action opa_smi_handle_dr_smp_recv(struct opa_smp *smp, bool is_switch,
44 int opa_smi_get_fwd_port(struct opa_smp *smp);
45 extern enum smi_forward_action opa_smi_check_forward_dr_smp(struct opa_smp *smp);
46 extern enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp,
53 static inline enum smi_action opa_smi_check_local_smp(struct opa_smp *smp, in opa_smi_check_local_smp() argument
59 !opa_get_smp_direction(smp) && in opa_smi_check_local_smp()
60 (smp->hop_ptr == smp->hop_cnt + 1)) ? in opa_smi_check_local_smp()
68 static inline enum smi_action opa_smi_check_local_returning_smp(struct opa_smp *smp, in opa_smi_check_local_returning_smp() argument
74 opa_get_smp_direction(smp) && in opa_smi_check_local_returning_smp()
75 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD; in opa_smi_check_local_returning_smp()
Dsmi.h54 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, bool is_switch,
56 int smi_get_fwd_port(struct ib_smp *smp);
57 extern enum smi_forward_action smi_check_forward_dr_smp(struct ib_smp *smp);
58 extern enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
65 static inline enum smi_action smi_check_local_smp(struct ib_smp *smp, in smi_check_local_smp() argument
71 !ib_get_smp_direction(smp) && in smi_check_local_smp()
72 (smp->hop_ptr == smp->hop_cnt + 1)) ? in smi_check_local_smp()
80 static inline enum smi_action smi_check_local_returning_smp(struct ib_smp *smp, in smi_check_local_returning_smp() argument
86 ib_get_smp_direction(smp) && in smi_check_local_returning_smp()
87 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD); in smi_check_local_returning_smp()
Dmad.c743 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() local
744 struct opa_smp *opa_smp = (struct opa_smp *)smp; in handle_outgoing_dr_smp()
761 smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in handle_outgoing_dr_smp()
772 if (opa && smp->class_version == OPA_SMP_CLASS_VERSION) { in handle_outgoing_dr_smp()
800 if ((ib_get_smp_direction(smp) ? smp->dr_dlid : smp->dr_slid) == in handle_outgoing_dr_smp()
802 smi_handle_dr_smp_send(smp, rdma_cap_ib_switch(device), port_num) == in handle_outgoing_dr_smp()
808 drslid = be16_to_cpu(smp->dr_slid); in handle_outgoing_dr_smp()
811 if (smi_check_local_smp(smp, device) == IB_SMI_DISCARD && in handle_outgoing_dr_smp()
812 smi_check_local_returning_smp(smp, device) == IB_SMI_DISCARD) in handle_outgoing_dr_smp()
837 if (opa && smp->base_version == OPA_MGMT_BASE_VERSION) { in handle_outgoing_dr_smp()
[all …]
/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_smp.c104 static void update_smp_state(struct mdp5_smp *smp,
108 struct mdp5_kms *get_kms(struct mdp5_smp *smp) in get_kms() argument
110 struct msm_drm_private *priv = smp->dev->dev_private; in get_kms()
134 return mdp5_cfg->smp.clients[pipe] + plane; in pipe2client()
138 static int smp_request_block(struct mdp5_smp *smp, in smp_request_block() argument
141 struct mdp5_kms *mdp5_kms = get_kms(smp); in smp_request_block()
142 struct mdp5_client_smp_state *ps = &smp->client_state[cid]; in smp_request_block()
143 int i, ret, avail, cur_nblks, cnt = smp->blk_cnt; in smp_request_block()
147 reserved = smp->reserved[cid]; in smp_request_block()
149 spin_lock_irqsave(&smp->state_lock, flags); in smp_request_block()
[all …]
Dmdp5_smp.h40 void mdp5_smp_destroy(struct mdp5_smp *smp);
42 int mdp5_smp_request(struct mdp5_smp *smp, enum mdp5_pipe pipe,
44 void mdp5_smp_configure(struct mdp5_smp *smp, enum mdp5_pipe pipe);
45 void mdp5_smp_commit(struct mdp5_smp *smp, enum mdp5_pipe pipe);
46 void mdp5_smp_release(struct mdp5_smp *smp, enum mdp5_pipe pipe);
Dmdp5_cfg.c32 .smp = {
102 .smp = {
172 .smp = {
251 .smp = {
311 .smp = {
Dmdp5_kms.c669 if (mdp5_kms->smp) in mdp5_destroy()
670 mdp5_smp_destroy(mdp5_kms->smp); in mdp5_destroy()
752 mdp5_kms->smp = mdp5_smp_init(mdp5_kms->dev, &config->hw->smp); in mdp5_init()
753 if (IS_ERR(mdp5_kms->smp)) { in mdp5_init()
754 ret = PTR_ERR(mdp5_kms->smp); in mdp5_init()
755 mdp5_kms->smp = NULL; in mdp5_init()
Dmdp5_plane.c706 if (mdp5_kms->smp) { in mdp5_plane_mode_set()
707 ret = mdp5_smp_request(mdp5_kms->smp, in mdp5_plane_mode_set()
719 if (mdp5_kms->smp) in mdp5_plane_mode_set()
720 mdp5_smp_configure(mdp5_kms->smp, pipe); in mdp5_plane_mode_set()
839 if (mdp5_kms->smp) in mdp5_plane_complete_flip()
840 mdp5_smp_commit(mdp5_kms->smp, pipe); in mdp5_plane_complete_flip()
866 if (!plane_enabled(plane->state) && mdp5_kms->smp) { in mdp5_plane_complete_commit()
868 mdp5_smp_release(mdp5_kms->smp, pipe); in mdp5_plane_complete_commit()
Dmdp5_cfg.h83 struct mdp5_smp_block smp; member
Dmdp5_kms.h44 struct mdp5_smp *smp; member
/drivers/infiniband/hw/hfi1/
Dmad.c61 static int reply(struct ib_mad_hdr *smp) in reply() argument
67 smp->method = IB_MGMT_METHOD_GET_RESP; in reply()
68 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
69 smp->status |= IB_SMP_DIRECTION; in reply()
73 static inline void clear_opa_smp_data(struct opa_smp *smp) in clear_opa_smp_data() argument
75 void *data = opa_get_smp_data(smp); in clear_opa_smp_data()
76 size_t size = opa_get_smp_data_size(smp); in clear_opa_smp_data()
95 struct opa_smp *smp; in send_trap() local
128 smp = send_buf->mad; in send_trap()
129 smp->base_version = OPA_MGMT_BASE_VERSION; in send_trap()
[all …]
Dud.c579 struct rvt_qp *qp, u16 slid, struct opa_smp *smp) in opa_smp_check() argument
598 if (smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE && in opa_smp_check()
599 smp->mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED) { in opa_smp_check()
624 switch (smp->method) { in opa_smp_check()
640 if (smp->method == IB_MGMT_METHOD_TRAP) in opa_smp_check()
643 smp->status |= IB_SMP_UNSUP_METHOD; in opa_smp_check()
753 struct opa_smp *smp = (struct opa_smp *)data; in hfi1_ud_rcv() local
755 if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp)) in hfi1_ud_rcv()
762 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in hfi1_ud_rcv()
/drivers/infiniband/hw/qib/
Dqib_mad.c40 static int reply(struct ib_smp *smp) in reply() argument
46 smp->method = IB_MGMT_METHOD_GET_RESP; in reply()
47 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply()
48 smp->status |= IB_SMP_DIRECTION; in reply()
52 static int reply_failure(struct ib_smp *smp) in reply_failure() argument
58 smp->method = IB_MGMT_METHOD_GET_RESP; in reply_failure()
59 if (smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in reply_failure()
60 smp->status |= IB_SMP_DIRECTION; in reply_failure()
68 struct ib_smp *smp; in qib_send_trap() local
92 smp = send_buf->mad; in qib_send_trap()
[all …]
Dqib_ud.c507 struct ib_smp *smp; in qib_ud_rcv() local
512 smp = (struct ib_smp *) data; in qib_ud_rcv()
515 smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in qib_ud_rcv()
Dqib_iba7322.c5479 struct ib_smp *smp; in try_7322_ipg() local
5509 smp = send_buf->mad; in try_7322_ipg()
5510 smp->base_version = IB_MGMT_BASE_VERSION; in try_7322_ipg()
5511 smp->mgmt_class = IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE; in try_7322_ipg()
5512 smp->class_version = 1; in try_7322_ipg()
5513 smp->method = IB_MGMT_METHOD_SEND; in try_7322_ipg()
5514 smp->hop_cnt = 1; in try_7322_ipg()
5515 smp->attr_id = QIB_VENDOR_IPG; in try_7322_ipg()
5516 smp->attr_mod = 0; in try_7322_ipg()
/drivers/scsi/csiostor/
Dcsio_defs.h84 csio_set_state(void *smp, void *state) in csio_set_state() argument
86 ((struct csio_sm *)smp)->sm_state = (csio_sm_state_t)state; in csio_set_state()
90 csio_init_state(struct csio_sm *smp, void *state) in csio_init_state() argument
92 csio_set_state(smp, state); in csio_init_state()
96 csio_post_event(void *smp, uint32_t evt) in csio_post_event() argument
98 ((struct csio_sm *)smp)->sm_state(smp, evt); in csio_post_event()
102 csio_get_state(void *smp) in csio_get_state() argument
104 return ((struct csio_sm *)smp)->sm_state; in csio_get_state()
108 csio_match_state(void *smp, void *state) in csio_match_state() argument
110 return (csio_get_state(smp) == (csio_sm_state_t)state); in csio_match_state()
/drivers/sh/intc/
Dcore.c167 unsigned int smp) in save_reg() argument
174 d->smp[cnt] = smp; in save_reg()
184 unsigned int i, k, smp; in register_intc_controller() local
238 d->smp = kzalloc(d->nr_reg * sizeof(*d->smp), GFP_NOWAIT); in register_intc_controller()
239 if (!d->smp) in register_intc_controller()
246 smp = IS_SMP(hw->mask_regs[i]); in register_intc_controller()
247 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller()
248 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller()
262 smp = IS_SMP(hw->prio_regs[i]); in register_intc_controller()
263 k += save_reg(d, k, hw->prio_regs[i].set_reg, smp); in register_intc_controller()
[all …]
Dinternals.h22 #define IS_SMP(x) (x.smp)
23 #define INTC_REG(d, x, c) (d->reg[(x)] + ((d->smp[(x)] & 0xff) * c))
24 #define SMP_NR(d, x) ((d->smp[(x)] >> 8) ? (d->smp[(x)] >> 8) : 1)
61 unsigned long *smp; member
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c903 struct ib_smp *smp = inbox->buf; in mlx4_MAD_IFC_wrapper() local
924 if (smp->base_version == 1 && in mlx4_MAD_IFC_wrapper()
925 smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED && in mlx4_MAD_IFC_wrapper()
926 smp->class_version == 1) { in mlx4_MAD_IFC_wrapper()
928 if (!network_view && smp->method == IB_MGMT_METHOD_GET) { in mlx4_MAD_IFC_wrapper()
929 if (smp->attr_id == IB_SMP_ATTR_PKEY_TABLE) { in mlx4_MAD_IFC_wrapper()
930 index = be32_to_cpu(smp->attr_mod); in mlx4_MAD_IFC_wrapper()
951 if (smp->attr_id == IB_SMP_ATTR_PORT_INFO) { in mlx4_MAD_IFC_wrapper()
954 smp->attr_mod = cpu_to_be32(port); in mlx4_MAD_IFC_wrapper()
968 if (smp->attr_id == IB_SMP_ATTR_GUID_INFO) { in mlx4_MAD_IFC_wrapper()
[all …]
/drivers/scsi/hisi_sas/
Dhisi_sas.h340 struct hisi_sas_command_table_smp smp; member
/drivers/scsi/isci/
Dscu_task_context.h429 struct smp_task_context smp; member
Drequest.c3277 memcpy(&task_context->type.smp, &cmd, sizeof(u32)); in sci_io_request_construct_smp()
/drivers/scsi/esas2r/
Datioctl.h1162 struct atto_ioctl_vda_smp_cmd smp; member
/drivers/scsi/megaraid/
Dmegaraid_sas.h1790 struct megasas_smp_frame smp; member