Lines Matching refs:sdnum
98 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc,
110 static int epb_access(struct qib_devdata *dd, int sdnum, int claim);
552 static int epb_access(struct qib_devdata *dd, int sdnum, int claim) in epb_access() argument
559 switch (sdnum) { in epb_access()
572 oct_sel = (2 << (sdnum - PCIE_SERDES0)); in epb_access()
656 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc, in qib_sd7220_reg_mod() argument
665 switch (sdnum) { in qib_sd7220_reg_mod()
685 owned = epb_access(dd, sdnum, 1); in qib_sd7220_reg_mod()
721 if (epb_access(dd, sdnum, -1) < 0) in qib_sd7220_reg_mod()
745 static int qib_sd7220_ram_xfer(struct qib_devdata *dd, int sdnum, u32 loc, in qib_sd7220_ram_xfer() argument
759 switch (sdnum) { in qib_sd7220_ram_xfer()
778 owned = epb_access(dd, sdnum, 1); in qib_sd7220_ram_xfer()
847 if (epb_access(dd, sdnum, -1) < 0) in qib_sd7220_ram_xfer()
858 static int qib_sd7220_prog_ld(struct qib_devdata *dd, int sdnum, in qib_sd7220_prog_ld() argument
868 cnt = qib_sd7220_ram_xfer(dd, sdnum, offset + sofar, in qib_sd7220_prog_ld()
882 static int qib_sd7220_prog_vfy(struct qib_devdata *dd, int sdnum, in qib_sd7220_prog_vfy() argument
894 cnt = qib_sd7220_ram_xfer(dd, sdnum, sofar + offset, in qib_sd7220_prog_vfy()