Lines Matching refs:ncb

1117 struct ncb;
1585 struct ncb { struct
1907 static void ncr_alloc_ccb (struct ncb *np, u_char tn, u_char ln);
1908 static void ncr_complete (struct ncb *np, struct ccb *cp);
1909 static void ncr_exception (struct ncb *np);
1910 static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
1911 static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
1912 static void ncr_init_tcb (struct ncb *np, u_char tn);
1913 static struct lcb * ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln);
1914 static struct lcb * ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev);
1915 static void ncr_getclock (struct ncb *np, int mult);
1916 static void ncr_selectclock (struct ncb *np, u_char scntl3);
1917 static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
1918 static void ncr_chip_reset (struct ncb *np, int delay);
1919 static void ncr_init (struct ncb *np, int reset, char * msg, u_long code);
1920 static int ncr_int_sbmc (struct ncb *np);
1921 static int ncr_int_par (struct ncb *np);
1922 static void ncr_int_ma (struct ncb *np);
1923 static void ncr_int_sir (struct ncb *np);
1924 static void ncr_int_sto (struct ncb *np);
1925 static void ncr_negotiate (struct ncb* np, struct tcb* tp);
1926 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
1929 (struct ncb *np, ncrcmd *src, ncrcmd *dst, int len);
1931 static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
1932 static void ncr_getsync (struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p);
1933 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
1934 static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev);
1935 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
1936 static int ncr_snooptest (struct ncb *np);
1937 static void ncr_timeout (struct ncb *np);
1938 static void ncr_wakeup (struct ncb *np, u_long code);
1939 static void ncr_wakeup_done (struct ncb *np);
1940 static void ncr_start_next_ccb (struct ncb *np, struct lcb * lp, int maxn);
1941 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
1943 static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd);
1944 static struct scsi_cmnd *retrieve_from_waiting_list(int to_remove, struct ncb *np, struct scsi_cmnd…
1945 static void process_waiting_list(struct ncb *np, int sts);
1952 static inline char *ncr_name (struct ncb *np) in ncr_name()
1986 #define NADDR(label) (RELOC_SOFTC | offsetof(struct ncb, label))
3512 ncr_script_copy_and_bind (struct ncb *np, ncrcmd *src, ncrcmd *dst, int len) in ncr_script_copy_and_bind()
3662 struct ncb *ncb; member
3716 static inline void ncr_init_burst(struct ncb *np, u_char bc) in ncr_init_burst()
3732 static void __init ncr_prepare_setting(struct ncb *np) in ncr_prepare_setting()
4019 static inline void ncr_queue_done_cmd(struct ncb *np, struct scsi_cmnd *cmd) in ncr_queue_done_cmd()
4051 static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr) in ncr_prepare_nego()
4110 static int ncr_queue_command (struct ncb *np, struct scsi_cmnd *cmd) in ncr_queue_command()
4419 static void ncr_start_next_ccb(struct ncb *np, struct lcb *lp, int maxn) in ncr_start_next_ccb()
4440 static void ncr_put_start_queue(struct ncb *np, struct ccb *cp) in ncr_put_start_queue()
4471 static int ncr_reset_scsi_bus(struct ncb *np, int enab_int, int settle_delay) in ncr_reset_scsi_bus()
4537 static void ncr_start_reset(struct ncb *np) in ncr_start_reset()
4553 static int ncr_reset_bus (struct ncb *np, struct scsi_cmnd *cmd, int sync_reset) in ncr_reset_bus()
4622 static int ncr_abort_command (struct ncb *np, struct scsi_cmnd *cmd)
4695 static void ncr_detach(struct ncb *np) in ncr_detach()
4792 m_free_dma(np, sizeof(struct ncb), "NCB"); in ncr_detach()
4807 void ncr_complete (struct ncb *np, struct ccb *cp) in ncr_complete()
5083 static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp) in ncr_ccb_skipped()
5107 void ncr_wakeup_done (struct ncb *np) in ncr_wakeup_done()
5153 void ncr_wakeup (struct ncb *np, u_long code) in ncr_wakeup()
5174 static void ncr_chip_reset(struct ncb *np, int delay) in ncr_chip_reset()
5196 void ncr_init (struct ncb *np, int reset, char * msg, u_long code) in ncr_init()
5359 static void ncr_negotiate (struct ncb* np, struct tcb* tp) in ncr_negotiate()
5417 static void ncr_getsync(struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p) in ncr_getsync()
5486 static void ncr_set_sync_wide_status (struct ncb *np, u_char target) in ncr_set_sync_wide_status()
5521 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer) in ncr_setsync()
5578 static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack) in ncr_setwide()
5623 static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev) in ncr_setup_tags()
5726 static void ncr_timeout (struct ncb *np) in ncr_timeout()
5814 static void ncr_log_hard_error(struct ncb *np, u16 sist, u_char dstat) in ncr_log_hard_error()
5894 void ncr_exception (struct ncb *np) in ncr_exception()
6077 void ncr_int_sto (struct ncb *np) in ncr_int_sto()
6122 static int ncr_int_sbmc (struct ncb *np) in ncr_int_sbmc()
6154 static int ncr_int_par (struct ncb *np) in ncr_int_par()
6234 static void ncr_int_ma (struct ncb *np) in ncr_int_ma()
6532 static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp) in ncr_sir_to_redo()
6683 void ncr_int_sir (struct ncb *np) in ncr_int_sir()
7135 static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd) in ncr_get_ccb()
7246 static void ncr_free_ccb (struct ncb *np, struct ccb *cp) in ncr_free_ccb()
7308 static void ncr_init_ccb(struct ncb *np, struct ccb *cp) in ncr_init_ccb()
7347 static void ncr_alloc_ccb(struct ncb *np, u_char tn, u_char ln) in ncr_alloc_ccb()
7396 static void ncr_init_tcb (struct ncb *np, u_char tn) in ncr_init_tcb()
7483 static struct lcb *ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln) in ncr_alloc_lcb()
7573 static struct lcb *ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev) in ncr_setup_lcb()
7639 static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd) in ncr_scatter()
7682 static int __init ncr_regtest (struct ncb* np)
7705 static int __init ncr_snooptest (struct ncb* np)
7812 static void ncr_selectclock(struct ncb *np, u_char scntl3)
7841 static unsigned __init ncrgetfreq (struct ncb *np, int gen)
7892 static void __init ncr_getclock (struct ncb *np, int mult)
7958 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
7968 struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
8022 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8066 struct ncb *np = host_data->ncb;
8090 struct ncb *np = from_timer(np, t, timer);
8106 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8133 struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
8170 static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd)
8186 static struct scsi_cmnd *retrieve_from_waiting_list(int to_remove, struct ncb *np, struct scsi_cmnd…
8206 static void process_waiting_list(struct ncb *np, int sts)
8243 return snprintf(buf, 20, "0x%x\n", host_data->ncb->revision_id);
8290 struct ncb *np = NULL;
8320 np = __m_calloc_dma(device->dev, sizeof(struct ncb), "NCB");
8326 host_data->ncb = np;
8506 m_free_dma(np, sizeof(struct ncb), "NCB");
8507 host_data->ncb = NULL;
8522 if (host_data->ncb)
8523 ncr_detach(host_data->ncb);
8530 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8546 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8562 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
8577 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;