Lines Matching refs:xid

44 int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid)  in ixgbe_fcoe_ddp_put()  argument
56 if (xid >= netdev->fcoe_ddp_xid) in ixgbe_fcoe_ddp_put()
61 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_put()
74 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), 0); in ixgbe_fcoe_ddp_put()
75 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), in ixgbe_fcoe_ddp_put()
76 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
79 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), 0); in ixgbe_fcoe_ddp_put()
82 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
83 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
86 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), in ixgbe_fcoe_ddp_put()
87 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
88 fcbuff = IXGBE_READ_REG(hw, IXGBE_FCDDC(2, xid)); in ixgbe_fcoe_ddp_put()
94 (xid | IXGBE_FCFLTRW_WE)); in ixgbe_fcoe_ddp_put()
97 (xid | IXGBE_FCDMARW_WE)); in ixgbe_fcoe_ddp_put()
101 (xid | IXGBE_FCDMARW_RE)); in ixgbe_fcoe_ddp_put()
133 static int ixgbe_fcoe_ddp_setup(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_setup() argument
157 if (xid >= netdev->fcoe_ddp_xid) { in ixgbe_fcoe_ddp_setup()
158 e_warn(drv, "xid=0x%x out-of-range\n", xid); in ixgbe_fcoe_ddp_setup()
168 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp_setup()
171 xid, ddp->sgl, ddp->sgc); in ixgbe_fcoe_ddp_setup()
184 e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); in ixgbe_fcoe_ddp_setup()
191 e_err(drv, "xid 0x%x DMA map error\n", xid); in ixgbe_fcoe_ddp_setup()
270 fcdmarw = xid; in ixgbe_fcoe_ddp_setup()
274 fcfltrw = xid; in ixgbe_fcoe_ddp_setup()
292 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(0, xid), in ixgbe_fcoe_ddp_setup()
294 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(1, xid), (u64)ddp->udp >> 32); in ixgbe_fcoe_ddp_setup()
295 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(2, xid), fcbuff); in ixgbe_fcoe_ddp_setup()
296 IXGBE_WRITE_REG(hw, IXGBE_FCDDC(3, xid), fcdmarw); in ixgbe_fcoe_ddp_setup()
298 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(0, xid), IXGBE_FCFLT_VALID); in ixgbe_fcoe_ddp_setup()
299 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(1, xid), 0); in ixgbe_fcoe_ddp_setup()
300 IXGBE_WRITE_REG(hw, IXGBE_FCDFC(3, xid), fcfltrw); in ixgbe_fcoe_ddp_setup()
344 int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_get() argument
347 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 0); in ixgbe_fcoe_ddp_get()
365 int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid, in ixgbe_fcoe_ddp_target() argument
368 return ixgbe_fcoe_ddp_setup(netdev, xid, sgl, sgc, 1); in ixgbe_fcoe_ddp_target()
396 u16 xid; in ixgbe_fcoe_ddp() local
412 xid = be16_to_cpu(fh->fh_ox_id); in ixgbe_fcoe_ddp()
414 xid = be16_to_cpu(fh->fh_rx_id); in ixgbe_fcoe_ddp()
420 if (xid >= ddp_max) in ixgbe_fcoe_ddp()
424 ddp = &fcoe->ddp[xid]; in ixgbe_fcoe_ddp()