Lines Matching refs:ncb
1119 struct ncb;
1582 struct ncb { struct
1904 static void ncr_alloc_ccb (struct ncb *np, u_char tn, u_char ln);
1905 static void ncr_complete (struct ncb *np, struct ccb *cp);
1906 static void ncr_exception (struct ncb *np);
1907 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1908 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1909 static void ncr_init_tcb (struct ncb *np, u_char tn);
1910 static struct lcb * ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln);
1911 static struct lcb * ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev);
1912 static void ncr_getclock (struct ncb *np, int mult);
1913 static void ncr_selectclock (struct ncb *np, u_char scntl3);
1914 static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
1915 static void ncr_chip_reset (struct ncb *np, int delay);
1916 static void ncr_init (struct ncb *np, int reset, char * msg, u_long code);
1917 static int ncr_int_sbmc (struct ncb *np);
1918 static int ncr_int_par (struct ncb *np);
1919 static void ncr_int_ma (struct ncb *np);
1920 static void ncr_int_sir (struct ncb *np);
1921 static void ncr_int_sto (struct ncb *np);
1922 static void ncr_negotiate (struct ncb* np, struct tcb* tp);
1923 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
1926 (struct ncb *np, ncrcmd *src, ncrcmd *dst, int len);
1928 static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
1929 static void ncr_getsync (struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p);
1930 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
1931 static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev);
1932 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
1933 static int ncr_snooptest (struct ncb *np);
1934 static void ncr_timeout (struct ncb *np);
1935 static void ncr_wakeup (struct ncb *np, u_long code);
1936 static void ncr_wakeup_done (struct ncb *np);
1937 static void ncr_start_next_ccb (struct ncb *np, struct lcb * lp, int maxn);
1938 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
1940 static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd);
1941 static void process_waiting_list(struct ncb *np, int sts);
1946 static inline char *ncr_name (struct ncb *np) in ncr_name()
1977 #define NADDR(label) (RELOC_SOFTC | offsetof(struct ncb, label))
3484 ncr_script_copy_and_bind (struct ncb *np, ncrcmd *src, ncrcmd *dst, int len) in ncr_script_copy_and_bind()
3634 struct ncb *ncb; member
3688 static inline void ncr_init_burst(struct ncb *np, u_char bc) in ncr_init_burst()
3704 static void __init ncr_prepare_setting(struct ncb *np) in ncr_prepare_setting()
3991 static inline void ncr_queue_done_cmd(struct ncb *np, struct scsi_cmnd *cmd) in ncr_queue_done_cmd()
4023 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr) in ncr_prepare_nego()
4082 static int ncr_queue_command (struct ncb *np, struct scsi_cmnd *cmd) in ncr_queue_command()
4387 static void ncr_start_next_ccb(struct ncb *np, struct lcb *lp, int maxn) in ncr_start_next_ccb()
4408 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp) in ncr_put_start_queue()
4439 static int ncr_reset_scsi_bus(struct ncb *np, int enab_int, int settle_delay) in ncr_reset_scsi_bus()
4505 static void ncr_start_reset(struct ncb *np) in ncr_start_reset()
4521 static int ncr_reset_bus (struct ncb *np) in ncr_reset_bus()
4548 static void ncr_detach(struct ncb *np) in ncr_detach()
4645 m_free_dma(np, sizeof(struct ncb), "NCB"); in ncr_detach()
4660 void ncr_complete (struct ncb *np, struct ccb *cp) in ncr_complete()
4942 static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp) in ncr_ccb_skipped()
4966 void ncr_wakeup_done (struct ncb *np) in ncr_wakeup_done()
5012 void ncr_wakeup (struct ncb *np, u_long code) in ncr_wakeup()
5033 static void ncr_chip_reset(struct ncb *np, int delay) in ncr_chip_reset()
5055 void ncr_init (struct ncb *np, int reset, char * msg, u_long code) in ncr_init()
5218 static void ncr_negotiate (struct ncb* np, struct tcb* tp) in ncr_negotiate()
5276 static void ncr_getsync(struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p) in ncr_getsync()
5324 static void ncr_set_sync_wide_status (struct ncb *np, u_char target) in ncr_set_sync_wide_status()
5355 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) in ncr_setsync()
5412 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack) in ncr_setwide()
5457 static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev) in ncr_setup_tags()
5560 static void ncr_timeout (struct ncb *np) in ncr_timeout()
5648 static void ncr_log_hard_error(struct ncb *np, u16 sist, u_char dstat) in ncr_log_hard_error()
5728 void ncr_exception (struct ncb *np) in ncr_exception()
5911 void ncr_int_sto (struct ncb *np) in ncr_int_sto()
5956 static int ncr_int_sbmc (struct ncb *np) in ncr_int_sbmc()
5988 static int ncr_int_par (struct ncb *np) in ncr_int_par()
6068 static void ncr_int_ma (struct ncb *np) in ncr_int_ma()
6366 static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp) in ncr_sir_to_redo()
6517 void ncr_int_sir (struct ncb *np) in ncr_int_sir()
6969 static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd) in ncr_get_ccb()
7080 static void ncr_free_ccb (struct ncb *np, struct ccb *cp) in ncr_free_ccb()
7142 static void ncr_init_ccb(struct ncb *np, struct ccb *cp) in ncr_init_ccb()
7181 static void ncr_alloc_ccb(struct ncb *np, u_char tn, u_char ln) in ncr_alloc_ccb()
7230 static void ncr_init_tcb (struct ncb *np, u_char tn) in ncr_init_tcb()
7317 static struct lcb *ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln) in ncr_alloc_lcb()
7407 static struct lcb *ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev) in ncr_setup_lcb()
7473 static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd) in ncr_scatter()
7516 static int __init ncr_regtest (struct ncb* np)
7539 static int __init ncr_snooptest (struct ncb* np)
7646 static void ncr_selectclock(struct ncb *np, u_char scntl3)
7675 static unsigned __init ncrgetfreq (struct ncb *np, int gen)
7726 static void __init ncr_getclock (struct ncb *np, int mult)
7792 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
7802 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
7858 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
7901 struct ncb *np = host_data->ncb;
7925 struct ncb *np = from_timer(np, t, timer);
7941 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
7981 static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd)
7997 static void process_waiting_list(struct ncb *np, int sts)
8034 return snprintf(buf, 20, "0x%x\n", host_data->ncb->revision_id);
8083 struct ncb *np = NULL;
8115 np = __m_calloc_dma(device->dev, sizeof(struct ncb), "NCB");
8121 host_data->ncb = np;
8301 m_free_dma(np, sizeof(struct ncb), "NCB");
8302 host_data->ncb = NULL;
8317 if (host_data->ncb)
8318 ncr_detach(host_data->ncb);
8325 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8341 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8357 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8372 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;