Lines Matching refs:pcifunc

11 static int rvu_switch_install_rx_rule(struct rvu *rvu, u16 pcifunc,  in rvu_switch_install_rx_rule()  argument
18 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_rx_rule()
28 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_rx_rule()
29 req.vf = pcifunc; in rvu_switch_install_rx_rule()
40 static int rvu_switch_install_tx_rule(struct rvu *rvu, u16 pcifunc, u16 entry) in rvu_switch_install_tx_rule() argument
47 pfvf = rvu_get_pfvf(rvu, pcifunc); in rvu_switch_install_tx_rule()
58 req.hdr.pcifunc = 0; /* AF is requester */ in rvu_switch_install_tx_rule()
59 req.vf = pcifunc; in rvu_switch_install_tx_rule()
75 u16 pcifunc, entry = 0; in rvu_switch_install_rules() local
83 pcifunc = pf << 10; in rvu_switch_install_rules()
90 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
98 err = rvu_switch_install_rx_rule(rvu, pcifunc, 0x0); in rvu_switch_install_rules()
105 err = rvu_switch_install_tx_rule(rvu, pcifunc, start + entry); in rvu_switch_install_rules()
112 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_switch_install_rules()
116 pcifunc = pf << 10 | ((vf + 1) & 0x3FF); in rvu_switch_install_rules()
117 rvu_get_nix_blkaddr(rvu, pcifunc); in rvu_switch_install_rules()
119 err = rvu_switch_install_rx_rule(rvu, pcifunc, 0x0); in rvu_switch_install_rules()
127 err = rvu_switch_install_tx_rule(rvu, pcifunc, in rvu_switch_install_rules()
136 rswitch->entry2pcifunc[entry++] = pcifunc; in rvu_switch_install_rules()
204 u16 pcifunc; in rvu_switch_disable() local
214 pcifunc = pf << 10; in rvu_switch_disable()
215 err = rvu_switch_install_rx_rule(rvu, pcifunc, 0xFFF); in rvu_switch_disable()
223 pcifunc = pf << 10 | ((vf + 1) & 0x3FF); in rvu_switch_disable()
224 err = rvu_switch_install_rx_rule(rvu, pcifunc, 0xFFF); in rvu_switch_disable()
241 void rvu_switch_update_rules(struct rvu *rvu, u16 pcifunc) in rvu_switch_update_rules() argument
251 if (rswitch->entry2pcifunc[entry] == pcifunc) in rvu_switch_update_rules()
258 rvu_switch_install_tx_rule(rvu, pcifunc, rswitch->start_entry + entry); in rvu_switch_update_rules()
259 rvu_switch_install_rx_rule(rvu, pcifunc, 0x0); in rvu_switch_update_rules()