Lines Matching refs:xid
43 int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid) in ixgbe_fcoe_ddp_put() argument
55 if (xid >= netdev->fcoe_ddp_xid) in ixgbe_fcoe_ddp_put()
60 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_put()
73 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), 0); in ixgbe_fcoe_ddp_put()
74 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), in ixgbe_fcoe_ddp_put()
75 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
78 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), 0); in ixgbe_fcoe_ddp_put()
81 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
82 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
85 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
86 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
87 fcbuff = IXGBE_READ_REG(hw, IXGBE_FCDDC(2, xid)); in ixgbe_fcoe_ddp_put()
93 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
96 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
100 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
132 static int ixgbe_fcoe_ddp_setup(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_setup() argument
156 if (xid >= netdev->fcoe_ddp_xid) { in ixgbe_fcoe_ddp_setup()
157 e_warn(drv, "xid=0x%x out-of-range\n", xid); in ixgbe_fcoe_ddp_setup()
167 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_setup()
170 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
183 e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); in ixgbe_fcoe_ddp_setup()
190 e_err(drv, "xid 0x%x DMA map error\n", xid); in ixgbe_fcoe_ddp_setup()
269 fcdmarw = xid; in ixgbe_fcoe_ddp_setup()
273 fcfltrw = xid; in ixgbe_fcoe_ddp_setup()
291 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(0, xid), in ixgbe_fcoe_ddp_setup()
293 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(1, xid), (u64)ddp->udp >> 32); in ixgbe_fcoe_ddp_setup()
294 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), fcbuff); in ixgbe_fcoe_ddp_setup()
295 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), fcdmarw); in ixgbe_fcoe_ddp_setup()
297 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), IXGBE_FCFLT_VALID); in ixgbe_fcoe_ddp_setup()
298 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(1, xid), 0); in ixgbe_fcoe_ddp_setup()
299 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), fcfltrw); in ixgbe_fcoe_ddp_setup()
343 int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_get() argument
346 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
364 int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_target() argument
367 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 1); in ixgbe_fcoe_ddp_target()
395 u16 xid; in ixgbe_fcoe_ddp() local
411 xid = be16_to_cpu(fh->fh_ox_id); in ixgbe_fcoe_ddp()
413 xid = be16_to_cpu(fh->fh_rx_id); in ixgbe_fcoe_ddp()
419 if (xid >= ddp_max) in ixgbe_fcoe_ddp()
423 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp()