Lines Matching refs:np
75 #define sym_verbose (np->verbose)
184 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument
185 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument
186 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument
188 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument
189 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument
190 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument
192 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument
193 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument
194 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument
196 #define OUTB(np, r, v) OUTB_OFF(np, offsetof(struct sym_reg, r), (v)) argument
197 #define OUTW(np, r, v) OUTW_OFF(np, offsetof(struct sym_reg, r), (v)) argument
198 #define OUTL(np, r, v) OUTL_OFF(np, offsetof(struct sym_reg, r), (v)) argument
200 #define OUTONB(np, r, m) OUTB(np, r, INB(np, r) | (m)) argument
201 #define OUTOFFB(np, r, m) OUTB(np, r, INB(np, r) & ~(m)) argument
202 #define OUTONW(np, r, m) OUTW(np, r, INW(np, r) | (m)) argument
203 #define OUTOFFW(np, r, m) OUTW(np, r, INW(np, r) & ~(m)) argument
204 #define OUTONL(np, r, m) OUTL(np, r, INL(np, r) | (m)) argument
205 #define OUTOFFL(np, r, m) OUTL(np, r, INL(np, r) & ~(m)) argument
212 #define OUTL_DSP(np, v) \ argument
215 OUTL(np, nc_dsp, (v)); \
221 OUTONB(np, nc_dcntl, (STD|NOCOM)); \
664 #define sym_set_script_dp(np, cp, dp) \ argument
666 if (np->features & FE_LDSTR) \
669 np->ccb_head.lastp = cpu_to_scr(dp); \
671 #define sym_get_script_dp(np, cp) \ argument
672 scr_to_cpu((np->features & FE_LDSTR) ? \
673 cp->phys.head.lastp : np->ccb_head.lastp)
675 #define sym_set_script_dp(np, cp, dp) \ argument
680 #define sym_get_script_dp(np, cp) (cp->phys.head.lastp) argument
903 void (*fw_setup)(struct sym_hcb *np, struct sym_fw *fw);
1022 #define use_dac(np) 0 argument
1023 #define set_dac(np) do { } while (0) argument
1025 #define use_dac(np) (np)->use_dac argument
1026 #define set_dac(np) (np)->use_dac = 1 argument
1029 #define HCB_BA(np, lbl) (np->hcb_ba + offsetof(struct sym_hcb, lbl)) argument
1036 void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len);
1043 int sym_reset_scsi_bus(struct sym_hcb *np, int enab_int);
1046 void sym_start_next_ccbs(struct sym_hcb *np, struct sym_lcb *lp, int maxn);
1048 void sym_put_start_queue(struct sym_hcb *np, struct sym_ccb *cp);
1052 int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task);
1053 struct sym_ccb *sym_get_ccb(struct sym_hcb *np, struct scsi_cmnd *cmd, u_char tag_order);
1054 void sym_free_ccb(struct sym_hcb *np, struct sym_ccb *cp);
1055 struct sym_lcb *sym_alloc_lcb(struct sym_hcb *np, u_char tn, u_char ln);
1056 int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln);
1057 int sym_queue_scsiio(struct sym_hcb *np, struct scsi_cmnd *csio, struct sym_ccb *cp);
1058 int sym_abort_scsiio(struct sym_hcb *np, struct scsi_cmnd *ccb, int timed_out);
1059 int sym_reset_scsi_target(struct sym_hcb *np, int target);
1060 void sym_hcb_free(struct sym_hcb *np);
1073 #define sym_build_sge(np, data, badd, len) \ argument
1080 #define sym_build_sge(np, data, badd, len) \ argument
1087 int sym_lookup_dmap(struct sym_hcb *np, u32 h, int s);
1089 sym_build_sge(struct sym_hcb *np, struct sym_tblmove *data, u64 badd, int len) in sym_build_sge() argument
1094 if (h != np->dmap_bah[s]) in sym_build_sge()
1101 s = sym_lookup_dmap(np, h, s); in sym_build_sge()
1179 #define _sym_calloc_dma(np, l, n) __sym_calloc_dma(np->bus_dmat, l, n) argument
1180 #define _sym_mfree_dma(np, p, l, n) \ argument
1181 __sym_mfree_dma(np->bus_dmat, _uvptv_(p), l, n)
1182 #define sym_calloc_dma(l, n) _sym_calloc_dma(np, l, n)
1183 #define sym_mfree_dma(p, l, n) _sym_mfree_dma(np, p, l, n)
1184 #define vtobus(p) __vtobus(np->bus_dmat, _uvptv_(p))