Lines Matching defs:req
21 struct _req_type *req; \
23 req = (struct _req_type *)otx2_mbox_alloc_msg_rsp( \
26 if (!req) \
28 req->hdr.sig = OTX2_MBOX_REQ_SIG; \
29 req->hdr.id = _id; \
30 return req; \
95 int rvu_mbox_handler_rep_event_notify(struct rvu *rvu, struct rep_event *req,
104 qentry->event = *req;
114 struct rep_event *req;
123 req = otx2_mbox_alloc_msg_rep_event_up_notify(rvu, pf);
124 if (!req) {
129 req->hdr.pcifunc = rvu->rep_pcifunc;
130 req->event |= RVU_EVENT_PFVF_STATE;
131 req->pcifunc = pcifunc;
132 req->evt_data.vf_state = enable;
148 struct nix_stats_req *req,
151 u16 pcifunc = req->pcifunc;
160 if (req->reset) {
180 rsp->pcifunc = req->pcifunc;
198 struct nix_vtag_config req = {};
203 req.hdr.pcifunc = pcifunc;
204 req.vtag_size = VTAGSIZE_T4;
205 req.cfg_type = 0; /* tx vlan cfg */
206 req.tx.cfg_vtag0 = true;
207 req.tx.vtag0 = FIELD_PREP(NIX_VLAN_ETYPE_MASK, etype) | vlan_tci;
209 err = rvu_mbox_handler_nix_vtag_cfg(rvu, &req, &rsp);
220 struct nix_vtag_config req = {};
224 req.hdr.pcifunc = pcifunc;
225 req.vtag_size = VTAGSIZE_T4;
226 req.cfg_type = 1; /* rx vlan cfg */
227 req.rx.vtag_type = NIX_AF_LFX_RX_VTAG_TYPE0;
228 req.rx.strip_vtag = true;
229 req.rx.capture_vtag = false;
231 return rvu_mbox_handler_nix_vtag_cfg(rvu, &req, &rsp);
237 struct npc_install_flow_req req = {};
248 req.vf = rvu->rep_pcifunc;
249 req.op = NIX_RX_ACTIONOP_UCAST;
250 req.index = rep_id;
253 req.vf = pcifunc;
254 req.op = NIX_RX_ACTION_DEFAULT;
257 rvu_rep_rx_vlan_cfg(rvu, req.vf);
258 req.entry = entry;
259 req.hdr.pcifunc = 0; /* AF is requester */
260 req.features = BIT_ULL(NPC_OUTER_VID) | BIT_ULL(NPC_VLAN_ETYPE_CTAG);
261 req.vtag0_valid = true;
262 req.vtag0_type = NIX_AF_LFX_RX_VTAG_TYPE0;
263 req.packet.vlan_etype = cpu_to_be16(ETH_P_8021Q);
264 req.mask.vlan_etype = cpu_to_be16(ETH_P_8021Q);
265 req.packet.vlan_tci = cpu_to_be16(vlan_tci);
266 req.mask.vlan_tci = cpu_to_be16(0xffff);
268 req.channel = RVU_SWITCH_LBK_CHAN;
269 req.chan_mask = 0xffff;
270 req.intf = pfvf->nix_rx_intf;
272 return rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp);
278 struct npc_install_flow_req req = {};
295 req.hdr.pcifunc = 0; /* AF is requester */
297 req.vf = pcifunc;
299 req.vf = rvu->rep_pcifunc;
300 req.packet.sq_id = vlan_tci;
301 req.mask.sq_id = 0xffff;
304 req.entry = entry;
305 req.intf = pfvf->nix_tx_intf;
306 req.op = NIX_TX_ACTIONOP_UCAST_CHAN;
307 req.index = (lbkid << 8) | RVU_SWITCH_LBK_CHAN;
308 req.set_cntr = 1;
309 req.vtag0_def = vidx;
310 req.vtag0_op = 1;
311 return rvu_mbox_handler_npc_install_flow(rvu, &req, &rsp);
424 int rvu_mbox_handler_esw_cfg(struct rvu *rvu, struct esw_cfg_req *req,
427 if (req->hdr.pcifunc != rvu->rep_pcifunc)
430 rvu->rep_mode = req->ena;
433 rvu_npc_free_mcam_entries(rvu, req->hdr.pcifunc, -1);
438 int rvu_mbox_handler_get_rep_cnt(struct rvu *rvu, struct msg_req *req,
444 rvu->rep_pcifunc = req->hdr.pcifunc;