Lines Matching refs:xid
68 int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid) in ixgbe_fcoe_ddp_put() argument
80 if (xid >= IXGBE_FCOE_DDP_MAX) in ixgbe_fcoe_ddp_put()
85 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_put()
98 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), 0); in ixgbe_fcoe_ddp_put()
99 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), in ixgbe_fcoe_ddp_put()
100 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
103 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), 0); in ixgbe_fcoe_ddp_put()
106 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
107 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
110 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
111 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
112 fcbuff = IXGBE_READ_REG(hw, IXGBE_FCDDC(2, xid)); in ixgbe_fcoe_ddp_put()
118 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
121 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
125 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
156 static int ixgbe_fcoe_ddp_setup(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_setup() argument
180 if (xid >= IXGBE_FCOE_DDP_MAX) { in ixgbe_fcoe_ddp_setup()
181 e_warn(drv, "xid=0x%x out-of-range\n", xid); in ixgbe_fcoe_ddp_setup()
191 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_setup()
194 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
207 e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); in ixgbe_fcoe_ddp_setup()
214 e_err(drv, "xid 0x%x DMA map error\n", xid); in ixgbe_fcoe_ddp_setup()
293 fcdmarw = xid; in ixgbe_fcoe_ddp_setup()
297 fcfltrw = xid; in ixgbe_fcoe_ddp_setup()
315 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(0, xid), in ixgbe_fcoe_ddp_setup()
317 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(1, xid), (u64)ddp->udp >> 32); in ixgbe_fcoe_ddp_setup()
318 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), fcbuff); in ixgbe_fcoe_ddp_setup()
319 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), fcdmarw); in ixgbe_fcoe_ddp_setup()
321 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), IXGBE_FCFLT_VALID); in ixgbe_fcoe_ddp_setup()
322 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(1, xid), 0); in ixgbe_fcoe_ddp_setup()
323 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), fcfltrw); in ixgbe_fcoe_ddp_setup()
367 int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_get() argument
370 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
388 int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_target() argument
391 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 1); in ixgbe_fcoe_ddp_target()
419 u16 xid; in ixgbe_fcoe_ddp() local
435 xid = be16_to_cpu(fh->fh_ox_id); in ixgbe_fcoe_ddp()
437 xid = be16_to_cpu(fh->fh_rx_id); in ixgbe_fcoe_ddp()
443 if (xid >= ddp_max) in ixgbe_fcoe_ddp()
447 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp()