Lines Matching refs:np

109 	struct sym_hcb *np = sym_get_hcb(shost);  in sym_fw1_patch()  local
113 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch()
114 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch()
119 if (!(np->features & FE_LED0)) { in sym_fw1_patch()
139 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch()
140 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch()
141 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch()
153 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local
157 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch()
158 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch()
163 if (!(np->features & FE_LED0)) { in sym_fw2_patch()
174 if (!use_dac(np)) { in sym_fw2_patch()
196 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw2_patch()
197 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw2_patch()
198 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw2_patch()
203 if (!(np->features & FE_C10)) { in sym_fw2_patch()
214 np->pciclk_khz < 60000)) { in sym_fw2_patch()
229 cpu_to_scr(np->scripta_ba + in sym_fw2_patch()
232 cpu_to_scr(np->scripta_ba + in sym_fw2_patch()
258 sym_fw_setup_bus_addresses(struct sym_hcb *np, struct sym_fw *fw) in sym_fw_setup_bus_addresses() argument
269 pa = (u32 *) &np->fwa_bas; in sym_fw_setup_bus_addresses()
270 for (i = 0 ; i < sizeof(np->fwa_bas)/sizeof(u32) ; i++) in sym_fw_setup_bus_addresses()
271 pa[i] = np->scripta_ba + po[i]; in sym_fw_setup_bus_addresses()
277 pa = (u32 *) &np->fwb_bas; in sym_fw_setup_bus_addresses()
278 for (i = 0 ; i < sizeof(np->fwb_bas)/sizeof(u32) ; i++) in sym_fw_setup_bus_addresses()
279 pa[i] = np->scriptb_ba + po[i]; in sym_fw_setup_bus_addresses()
285 pa = (u32 *) &np->fwz_bas; in sym_fw_setup_bus_addresses()
286 for (i = 0 ; i < sizeof(np->fwz_bas)/sizeof(u32) ; i++) in sym_fw_setup_bus_addresses()
287 pa[i] = np->scriptz_ba + po[i]; in sym_fw_setup_bus_addresses()
295 sym_fw1_setup(struct sym_hcb *np, struct sym_fw *fw) in sym_fw1_setup() argument
300 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_setup()
301 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_setup()
311 sym_fw_setup_bus_addresses(np, fw); in sym_fw1_setup()
319 sym_fw2_setup(struct sym_hcb *np, struct sym_fw *fw) in sym_fw2_setup() argument
324 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_setup()
325 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_setup()
335 sym_fw_setup_bus_addresses(np, fw); in sym_fw2_setup()
365 void sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len) in sym_fw_bind_script() argument
386 sym_name(np), (int) (cur-start)); in sym_fw_bind_script()
429 sym_name(np), (int) (cur-start)); in sym_fw_bind_script()
436 !(np->features & FE_PFEN)) { in sym_fw_bind_script()
444 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
452 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
462 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
471 if (!(np->features & FE_WIDE)) in sym_fw_bind_script()
522 new = (old & ~RELOC_MASK) + np->mmio_ba; in sym_fw_bind_script()
525 new = (old & ~RELOC_MASK) + np->scripta_ba; in sym_fw_bind_script()
528 new = (old & ~RELOC_MASK) + np->scriptb_ba; in sym_fw_bind_script()
531 new = (old & ~RELOC_MASK) + np->hcb_ba; in sym_fw_bind_script()