Lines Matching defs:np
641 #define NCR_INIT_LOCK_NCB(np) spin_lock_init(&np->smp_lock); argument
642 #define NCR_LOCK_NCB(np, flags) spin_lock_irqsave(&np->smp_lock, flags) argument
643 #define NCR_UNLOCK_NCB(np, flags) spin_unlock_irqrestore(&np->smp_lock, flags) argument
645 #define NCR_LOCK_SCSI_DONE(np, flags) \ argument
647 #define NCR_UNLOCK_SCSI_DONE(np, flags) \ argument
655 #define NCR_INIT_LOCK_NCB(np) do { } while (0) argument
656 #define NCR_LOCK_NCB(np, flags) do { save_flags(flags); cli(); } while (0) argument
657 #define NCR_UNLOCK_NCB(np, flags) do { restore_flags(flags); } while (0) argument
659 #define NCR_LOCK_SCSI_DONE(np, flags) do {;} while (0) argument
660 #define NCR_UNLOCK_SCSI_DONE(np, flags) do {;} while (0) argument
1113 #define _m_calloc_dma(np, s, n) __m_calloc_dma(np->pdev, s, n) argument
1114 #define _m_free_dma(np, p, s, n) __m_free_dma(np->pdev, p, s, n) argument
1117 #define _vtobus(np, p) __vtobus(np->pdev, p) argument
1214 #define unmap_scsi_data(np, cmd) __unmap_scsi_data(np->pdev, cmd) argument
1215 #define map_scsi_single_data(np, cmd) __map_scsi_single_data(np->pdev, cmd) argument
1216 #define map_scsi_sg_data(np, cmd) __map_scsi_sg_data(np->pdev, cmd) argument
1217 #define sync_scsi_data(np, cmd) __sync_scsi_data(np->pdev, cmd) argument
1815 #define ncr_lp(np, tp, lun) (!lun) ? (tp)->l0p : 0 argument
1817 #define ncr_lp(np, tp, lun) \ argument
2270 #define NCB_PHYS(np, lbl) (np->p_ncb + offsetof(struct ncb, lbl)) argument
2271 #define NCB_SCRIPT_PHYS(np,lbl) (np->p_script + offsetof (struct script, lbl)) argument
2272 #define NCB_SCRIPTH_PHYS(np,lbl) (np->p_scripth + offsetof (struct scripth,lbl)) argument
2273 #define NCB_SCRIPTH0_PHYS(np,lbl) (np->p_scripth0+offsetof (struct scripth,lbl)) argument
2535 #define remove_from_waiting_list(np, cmd) \ argument
2537 #define requeue_waiting_list(np) process_waiting_list((np), DID_OK) argument
2538 #define reset_waiting_list(np) process_waiting_list((np), DID_RESET) argument
2556 static inline char *ncr_name (ncb_p np) in ncr_name()
4539 ncr_script_copy_and_bind (ncb_p np,ncrcmd *src,ncrcmd *dst,int len) in ncr_script_copy_and_bind()
4740 static void PRINT_TARGET(ncb_p np, int target) in PRINT_TARGET()
4745 static void PRINT_LUN(ncb_p np, int target, int lun) in PRINT_LUN()
4805 static inline void ncr_init_burst(ncb_p np, u_char bc) in ncr_init_burst()
4828 ncr_Symbios_setup_target(ncb_p np, int target, Symbios_nvram *nvram) in ncr_Symbios_setup_target()
4849 ncr_Tekram_setup_target(ncb_p np, int target, Tekram_nvram *nvram) in ncr_Tekram_setup_target()
4879 static void __init ncr_save_initial_setting(ncb_p np) in ncr_save_initial_setting()
4912 static int __init ncr_prepare_setting(ncb_p np, ncr_nvram *nvram)
5307 void __init ncr_display_Symbios_nvram(ncb_p np, Symbios_nvram *nvram)
5337 void __init ncr_display_Tekram_nvram(ncb_p np, Tekram_nvram *nvram)
5400 ncb_p np = 0; local
5951 static void ncr_free_resources(ncb_p np)
6030 static inline void ncr_queue_done_cmd(ncb_p np, Scsi_Cmnd *cmd)
6065 static int ncr_ic_nego(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd, u_char *msgptr)
6356 static int ncr_prepare_nego(ncb_p np, ccb_p cp, u_char *msgptr)
6526 static int ncr_queue_command (ncb_p np, Scsi_Cmnd *cmd)
6908 static void ncr_start_next_ccb(ncb_p np, lcb_p lp, int maxn)
6926 static void ncr_put_start_queue(ncb_p np, ccb_p cp)
6986 static void ncr_chip_reset (ncb_p np)
6993 static void ncr_soft_reset(ncb_p np)
7032 static void ncr_start_reset(ncb_p np)
7037 static int ncr_reset_scsi_bus(ncb_p np, int enab_int, int settle_delay)
7105 static int ncr_reset_bus (ncb_p np, Scsi_Cmnd *cmd, int sync_reset)
7173 static int ncr_abort_command (ncb_p np, Scsi_Cmnd *cmd)
7239 static int ncr_detach(ncb_p np)
7296 void ncr_complete (ncb_p np, ccb_p cp)
7584 int ncr_wakeup_done (ncb_p np)
7618 void ncr_wakeup (ncb_p np, u_long code)
7640 void ncr_init (ncb_p np, int reset, char * msg, u_long code)
7881 static void ncr_negotiate (struct ncb* np, struct tcb* tp)
7936 static void ncr_getsync(ncb_p np, u_char sfac, u_char *fakp, u_char *scntl3p)
8023 static void ncr_get_xfer_info(ncb_p np, tcb_p tp, u_char *factor,
8078 static void ncr_set_sync_wide_status (ncb_p np, u_char target)
8118 static void ncr_setsync (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer,
8237 static void ncr_setwide (ncb_p np, ccb_p cp, u_char wide, u_char ack)
8289 static void ncr_setsyncwide (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer,
8408 static void ncr_setup_tags (ncb_p np, u_char tn, u_char ln)
8502 static void ncr_usercmd (ncb_p np)
8607 static void ncr_timeout (ncb_p np)
8705 static void ncr_log_hard_error(ncb_p np, u_short sist, u_char dstat)
8821 void ncr_exception (ncb_p np)
9036 static void ncr_recover_scsi_int (ncb_p np, u_char hsts)
9089 void ncr_int_sto (ncb_p np)
9110 void ncr_int_udc (ncb_p np)
9148 static void ncr_int_sbmc (ncb_p np)
9196 static void ncr_int_par (ncb_p np, u_short sist)
9297 static void ncr_int_ma (ncb_p np)
9702 static void ncr_sir_to_redo(ncb_p np, int num, ccb_p cp)
9978 static int ncr_clear_tasks(ncb_p np, u_char hsts,
10046 static void ncr_sir_task_recovery(ncb_p np, int num)
10416 static int ncr_evaluate_dp(ncb_p np, ccb_p cp, u_int32 scr, int *ofs)
10530 static void ncr_modify_dp(ncb_p np, tcb_p tp, ccb_p cp, int ofs)
10634 static int ncr_compute_residual(ncb_p np, ccb_p cp)
10790 static void ncr_sync_nego(ncb_p np, tcb_p tp, ccb_p cp)
10935 static void ncr_wide_nego(ncb_p np, tcb_p tp, ccb_p cp)
11034 static void ncr_ppr_nego(ncb_p np, tcb_p tp, ccb_p cp)
11231 static void ncr_nego_default(ncb_p np, tcb_p tp, ccb_p cp)
11299 static void ncr_nego_rejected(ncb_p np, tcb_p tp, ccb_p cp)
11315 void ncr_int_sir (ncb_p np)
11590 static ccb_p ncr_get_ccb (ncb_p np, u_char tn, u_char ln)
11684 static void ncr_free_ccb (ncb_p np, ccb_p cp)
11729 static ccb_p ncr_alloc_ccb(ncb_p np)
11785 static ccb_p ncr_ccb_from_dsa(ncb_p np, u_long dsa)
11818 static void ncr_init_tcb (ncb_p np, u_char tn)
11841 static lcb_p ncr_alloc_lcb (ncb_p np, u_char tn, u_char ln)
11932 static lcb_p ncr_setup_lcb (ncb_p np, u_char tn, u_char ln, u_char *inq_data)
12093 static int ncr_scatter_no_sglist(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd)
12133 static int ncr_scatter_896R1(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd)
12172 static int ncr_scatter(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd)
12216 static int __init ncr_regtest (struct ncb* np)
12240 static int __init ncr_snooptest (struct ncb* np)
12368 static void ncr_selectclock(ncb_p np, u_char scntl3)
12403 static unsigned __init ncrgetfreq (ncb_p np, int gen)
12460 static unsigned __init ncr_getfreq (ncb_p np)
12475 static void __init ncr_getclock (ncb_p np, int mult)
12545 static u_int __init ncr_getpciclock (ncb_p np)
13513 static int device_queue_depth(ncb_p np, int target, int lun)
13562 ncb_p np; local
13623 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb; local
13674 ncb_p np = (ncb_p) dev_id; local
13704 ncb_p np = (ncb_p) npref; local
13731 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb; local
13793 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb; local
13857 static void insert_into_waiting_list(ncb_p np, Scsi_Cmnd *cmd)
13873 static Scsi_Cmnd *retrieve_from_waiting_list(int to_remove, ncb_p np, Scsi_Cmnd *cmd)
13893 static void process_waiting_list(ncb_p np, int sts)
13992 static int ncr_user_command(ncb_p np, char *buffer, int length)
14186 static int ncr_host_info(ncb_p np, char *ptr, off_t offset, int len)
14303 S24C16_set_bit(ncr_slot *np, u_char write_bit, u_char *gpreg, int bit_mode)
14328 static void __init S24C16_start(ncr_slot *np, u_char *gpreg)
14339 static void __init S24C16_stop(ncr_slot *np, u_char *gpreg)
14350 S24C16_do_bit(ncr_slot *np, u_char *read_bit, u_char write_bit, u_char *gpreg)
14365 S24C16_write_ack(ncr_slot *np, u_char write_bit, u_char *gpreg, u_char *gpcntl)
14377 S24C16_read_ack(ncr_slot *np, u_char *read_bit, u_char *gpreg, u_char *gpcntl)
14389 S24C16_write_byte(ncr_slot *np, u_char *ack_data, u_char write_data,
14405 S24C16_read_byte(ncr_slot *np, u_char *read_data, u_char ack_data,
14424 sym_read_S24C16_nvram (ncr_slot *np, int offset, u_char *data, int len)
14503 static int __init sym_read_Symbios_nvram (ncr_slot *np, Symbios_nvram *nvram)
14544 static void __init T93C46_Clk(ncr_slot *np, u_char *gpreg)
14554 static void __init T93C46_Read_Bit(ncr_slot *np, u_char *read_bit, u_char *gpreg)
14564 static void __init T93C46_Write_Bit(ncr_slot *np, u_char write_bit, u_char *gpreg)
14582 static void __init T93C46_Stop(ncr_slot *np, u_char *gpreg)
14595 T93C46_Send_Command(ncr_slot *np, u_short write_data,
14611 T93C46_Read_Word(ncr_slot *np, u_short *nvram_data, u_char *gpreg)
14631 T93C46_Read_Data(ncr_slot *np, u_short *data,int len,u_char *gpreg)
14653 sym_read_T93C46_nvram (ncr_slot *np, Tekram_nvram *nvram)
14686 sym_read_Tekram_nvram (ncr_slot *np, u_short device_id, Tekram_nvram *nvram)