Lines Matching refs:ncb_p

1554 typedef struct ncb * ncb_p;  typedef
2238 int (*scatter) (ncb_p, ccb_p, Scsi_Cmnd *);
2473 static ccb_p ncr_alloc_ccb (ncb_p np);
2474 static void ncr_complete (ncb_p np, ccb_p cp);
2475 static void ncr_exception (ncb_p np);
2476 static void ncr_free_ccb (ncb_p np, ccb_p cp);
2477 static ccb_p ncr_ccb_from_dsa(ncb_p np, u_long dsa);
2478 static void ncr_init_tcb (ncb_p np, u_char tn);
2479 static lcb_p ncr_alloc_lcb (ncb_p np, u_char tn, u_char ln);
2480 static lcb_p ncr_setup_lcb (ncb_p np, u_char tn, u_char ln,
2482 static void ncr_getclock (ncb_p np, int mult);
2483 static u_int ncr_getpciclock (ncb_p np);
2484 static void ncr_selectclock (ncb_p np, u_char scntl3);
2485 static ccb_p ncr_get_ccb (ncb_p np, u_char tn, u_char ln);
2486 static void ncr_init (ncb_p np, int reset, char * msg, u_long code);
2487 static void ncr_int_sbmc (ncb_p np);
2488 static void ncr_int_par (ncb_p np, u_short sist);
2489 static void ncr_int_ma (ncb_p np);
2490 static void ncr_int_sir (ncb_p np);
2491 static void ncr_int_sto (ncb_p np);
2492 static void ncr_int_udc (ncb_p np);
2493 static void ncr_negotiate (ncb_p np, tcb_p tp);
2494 static int ncr_prepare_nego(ncb_p np, ccb_p cp, u_char *msgptr);
2496 static int ncr_ic_nego(ncb_p np, ccb_p cp, Scsi_Cmnd *cmd, u_char *msgptr);
2499 (ncb_p np, ncrcmd *src, ncrcmd *dst, int len);
2501 static int ncr_scatter_896R1 (ncb_p np, ccb_p cp, Scsi_Cmnd *cmd);
2502 static int ncr_scatter (ncb_p np, ccb_p cp, Scsi_Cmnd *cmd);
2503 static void ncr_getsync (ncb_p np, u_char sfac, u_char *fakp, u_char *scntl3p);
2504 static void ncr_get_xfer_info(ncb_p np, tcb_p tp, u_char *factor, u_char *offset, u_char *width…
2505 static void ncr_setsync (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer, u_char scntl4);
2506 static void ncr_set_sync_wide_status (ncb_p np, u_char target);
2507 static void ncr_setup_tags (ncb_p np, u_char tn, u_char ln);
2508 static void ncr_setwide (ncb_p np, ccb_p cp, u_char wide, u_char ack);
2509 static void ncr_setsyncwide (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer, u_char scntl4, u_char…
2512 static int ncr_snooptest (ncb_p np);
2513 static void ncr_timeout (ncb_p np);
2514 static void ncr_wakeup (ncb_p np, u_long code);
2515 static int ncr_wakeup_done (ncb_p np);
2516 static void ncr_start_next_ccb (ncb_p np, lcb_p lp, int maxn);
2517 static void ncr_put_start_queue(ncb_p np, ccb_p cp);
2518 static void ncr_chip_reset (ncb_p np);
2519 static void ncr_soft_reset (ncb_p np);
2520 static void ncr_start_reset (ncb_p np);
2521 static int ncr_reset_scsi_bus (ncb_p np, int enab_int, int settle_delay);
2522 static int ncr_compute_residual (ncb_p np, ccb_p cp);
2525 static void ncr_usercmd (ncb_p np);
2529 static void ncr_free_resources(ncb_p np);
2531 static void insert_into_waiting_list(ncb_p np, Scsi_Cmnd *cmd);
2532 static Scsi_Cmnd *retrieve_from_waiting_list(int to_remove, ncb_p np, Scsi_Cmnd *cmd);
2533 static void process_waiting_list(ncb_p np, int sts);
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;
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)
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)
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;
13623 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb;
13674 ncb_p np = (ncb_p) dev_id;
13704 ncb_p np = (ncb_p) npref;
13709 ncr_timeout((ncb_p) np);
13731 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb;
13793 ncb_p np = ((struct host_data *) cmd->host->hostdata)->ncb;
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)
14236 ncb_p ncb = 0;