• Home
  • Raw
  • Download

Lines Matching refs:np

88 #define sym_verbose	(np->verbose)
197 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument
198 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument
199 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument
201 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument
202 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument
203 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument
205 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument
206 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument
207 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument
209 #define OUTB(np, r, v) OUTB_OFF(np, offsetof(struct sym_reg, r), (v)) argument
210 #define OUTW(np, r, v) OUTW_OFF(np, offsetof(struct sym_reg, r), (v)) argument
211 #define OUTL(np, r, v) OUTL_OFF(np, offsetof(struct sym_reg, r), (v)) argument
213 #define OUTONB(np, r, m) OUTB(np, r, INB(np, r) | (m)) argument
214 #define OUTOFFB(np, r, m) OUTB(np, r, INB(np, r) & ~(m)) argument
215 #define OUTONW(np, r, m) OUTW(np, r, INW(np, r) | (m)) argument
216 #define OUTOFFW(np, r, m) OUTW(np, r, INW(np, r) & ~(m)) argument
217 #define OUTONL(np, r, m) OUTL(np, r, INL(np, r) | (m)) argument
218 #define OUTOFFL(np, r, m) OUTL(np, r, INL(np, r) & ~(m)) argument
225 #define OUTL_DSP(np, v) \ argument
228 OUTL(np, nc_dsp, (v)); \
234 OUTONB(np, nc_dcntl, (STD|NOCOM)); \
677 #define sym_set_script_dp(np, cp, dp) \ argument
679 if (np->features & FE_LDSTR) \
682 np->ccb_head.lastp = cpu_to_scr(dp); \
684 #define sym_get_script_dp(np, cp) \ argument
685 scr_to_cpu((np->features & FE_LDSTR) ? \
686 cp->phys.head.lastp : np->ccb_head.lastp)
688 #define sym_set_script_dp(np, cp, dp) \ argument
693 #define sym_get_script_dp(np, cp) (cp->phys.head.lastp) argument
916 void (*fw_setup)(struct sym_hcb *np, struct sym_fw *fw);
1035 #define use_dac(np) 0 argument
1036 #define set_dac(np) do { } while (0) argument
1038 #define use_dac(np) (np)->use_dac argument
1039 #define set_dac(np) (np)->use_dac = 1 argument
1042 #define HCB_BA(np, lbl) (np->hcb_ba + offsetof(struct sym_hcb, lbl)) argument
1049 void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len);
1056 int sym_reset_scsi_bus(struct sym_hcb *np, int enab_int);
1059 void sym_start_next_ccbs(struct sym_hcb *np, struct sym_lcb *lp, int maxn);
1061 void sym_put_start_queue(struct sym_hcb *np, struct sym_ccb *cp);
1065 int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task);
1066 struct sym_ccb *sym_get_ccb(struct sym_hcb *np, struct scsi_cmnd *cmd, u_char tag_order);
1067 void sym_free_ccb(struct sym_hcb *np, struct sym_ccb *cp);
1068 struct sym_lcb *sym_alloc_lcb(struct sym_hcb *np, u_char tn, u_char ln);
1069 int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln);
1070 int sym_queue_scsiio(struct sym_hcb *np, struct scsi_cmnd *csio, struct sym_ccb *cp);
1071 int sym_abort_scsiio(struct sym_hcb *np, struct scsi_cmnd *ccb, int timed_out);
1072 int sym_reset_scsi_target(struct sym_hcb *np, int target);
1073 void sym_hcb_free(struct sym_hcb *np);
1086 #define sym_build_sge(np, data, badd, len) \ argument
1093 #define sym_build_sge(np, data, badd, len) \ argument
1100 int sym_lookup_dmap(struct sym_hcb *np, u32 h, int s);
1102 sym_build_sge(struct sym_hcb *np, struct sym_tblmove *data, u64 badd, int len) in sym_build_sge() argument
1107 if (h != np->dmap_bah[s]) in sym_build_sge()
1114 s = sym_lookup_dmap(np, h, s); in sym_build_sge()
1192 #define _sym_calloc_dma(np, l, n) __sym_calloc_dma(np->bus_dmat, l, n) argument
1193 #define _sym_mfree_dma(np, p, l, n) \ argument
1194 __sym_mfree_dma(np->bus_dmat, _uvptv_(p), l, n)
1195 #define sym_calloc_dma(l, n) _sym_calloc_dma(np, l, n)
1196 #define sym_mfree_dma(p, l, n) _sym_mfree_dma(np, p, l, n)
1197 #define vtobus(p) __vtobus(np->bus_dmat, _uvptv_(p))