ncb
uint64_t ncb:1;
uint64_t ncb:1;
uint64_t ncb:1;
uint64_t ncb:1;
uint64_t ncb:1;
uint64_t ncb:1;
0, iommu->ncb);
for (i = 0; i < iommu->ncb; i++) {
iommu->ncb = val;
msm_iommu_reset(iommu->base, iommu->ncb);
static void msm_iommu_reset(void __iomem *base, int ncb)
iommu->base, iommu->irq, iommu->ncb);
for (ctx = 0; ctx < ncb; ctx++) {
int ncb;
uint64_t ncb;
ncb = NUMCACHEBLKS(length+(phys & (SMP_CACHE_BYTES - 1)));
V_DMA_DSCRA_A_SIZE(ncb) |
static int qlcnic_fdb_dump(struct sk_buff *skb, struct netlink_callback *ncb,
return ndo_dflt_fdb_dump(skb, ncb, netdev, filter_dev, idx);
err = ndo_dflt_fdb_dump(skb, ncb, netdev, filter_dev, idx);
struct ncb;
static void ncr_alloc_ccb (struct ncb *np, u_char tn, u_char ln);
static void ncr_complete (struct ncb *np, struct ccb *cp);
static void ncr_exception (struct ncb *np);
static void ncr_free_ccb (struct ncb *np, struct ccb *cp);
static void ncr_init_ccb (struct ncb *np, struct ccb *cp);
static void ncr_init_tcb (struct ncb *np, u_char tn);
static struct lcb * ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln);
static struct lcb * ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev);
static void ncr_getclock (struct ncb *np, int mult);
static void ncr_selectclock (struct ncb *np, u_char scntl3);
static struct ccb *ncr_get_ccb (struct ncb *np, struct scsi_cmnd *cmd);
static void ncr_chip_reset (struct ncb *np, int delay);
static void ncr_init (struct ncb *np, int reset, char * msg, u_long code);
static int ncr_int_sbmc (struct ncb *np);
static int ncr_int_par (struct ncb *np);
static void ncr_int_ma (struct ncb *np);
static void ncr_int_sir (struct ncb *np);
static void ncr_int_sto (struct ncb *np);
static void ncr_negotiate (struct ncb* np, struct tcb* tp);
static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr);
(struct ncb *np, ncrcmd *src, ncrcmd *dst, int len);
static int ncr_scatter (struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd);
static void ncr_getsync (struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p);
static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev);
static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack);
static int ncr_snooptest (struct ncb *np);
static void ncr_timeout (struct ncb *np);
static void ncr_wakeup (struct ncb *np, u_long code);
static void ncr_wakeup_done (struct ncb *np);
static void ncr_start_next_ccb (struct ncb *np, struct lcb * lp, int maxn);
static void ncr_put_start_queue(struct ncb *np, struct ccb *cp);
static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd);
static void process_waiting_list(struct ncb *np, int sts);
static inline char *ncr_name (struct ncb *np)
#define NADDR(label) (RELOC_SOFTC | offsetof(struct ncb, label))
ncr_script_copy_and_bind (struct ncb *np, ncrcmd *src, ncrcmd *dst, int len)
struct ncb *ncb;
static inline void ncr_init_burst(struct ncb *np, u_char bc)
static void __init ncr_prepare_setting(struct ncb *np)
static inline void ncr_queue_done_cmd(struct ncb *np, struct scsi_cmnd *cmd)
static int ncr_prepare_nego(struct ncb *np, struct ccb *cp, u_char *msgptr)
static int ncr_queue_command (struct ncb *np, struct scsi_cmnd *cmd)
static void ncr_start_next_ccb(struct ncb *np, struct lcb *lp, int maxn)
static void ncr_put_start_queue(struct ncb *np, struct ccb *cp)
static int ncr_reset_scsi_bus(struct ncb *np, int enab_int, int settle_delay)
static void ncr_start_reset(struct ncb *np)
static int ncr_reset_bus (struct ncb *np)
static void ncr_detach(struct ncb *np)
m_free_dma(np, sizeof(struct ncb), "NCB");
void ncr_complete (struct ncb *np, struct ccb *cp)
static void ncr_ccb_skipped(struct ncb *np, struct ccb *cp)
void ncr_wakeup_done (struct ncb *np)
void ncr_wakeup (struct ncb *np, u_long code)
static void ncr_chip_reset(struct ncb *np, int delay)
void ncr_init (struct ncb *np, int reset, char * msg, u_long code)
static void ncr_negotiate (struct ncb* np, struct tcb* tp)
static void ncr_getsync(struct ncb *np, u_char sfac, u_char *fakp, u_char *scntl3p)
static void ncr_set_sync_wide_status (struct ncb *np, u_char target)
static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer)
static void ncr_setwide (struct ncb *np, struct ccb *cp, u_char wide, u_char ack)
static void ncr_setup_tags (struct ncb *np, struct scsi_device *sdev)
static void ncr_timeout (struct ncb *np)
static void ncr_log_hard_error(struct ncb *np, u16 sist, u_char dstat)
void ncr_exception (struct ncb *np)
void ncr_int_sto (struct ncb *np)
static int ncr_int_sbmc (struct ncb *np)
static int ncr_int_par (struct ncb *np)
static void ncr_int_ma (struct ncb *np)
static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp)
void ncr_int_sir (struct ncb *np)
static struct ccb *ncr_get_ccb(struct ncb *np, struct scsi_cmnd *cmd)
static void ncr_free_ccb (struct ncb *np, struct ccb *cp)
static void ncr_init_ccb(struct ncb *np, struct ccb *cp)
static void ncr_alloc_ccb(struct ncb *np, u_char tn, u_char ln)
static void ncr_init_tcb (struct ncb *np, u_char tn)
static struct lcb *ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln)
static struct lcb *ncr_setup_lcb (struct ncb *np, struct scsi_device *sdev)
static int ncr_scatter(struct ncb *np, struct ccb *cp, struct scsi_cmnd *cmd)
static int __init ncr_regtest (struct ncb* np)
static int __init ncr_snooptest (struct ncb* np)
static void ncr_selectclock(struct ncb *np, u_char scntl3)
static unsigned __init ncrgetfreq (struct ncb *np, int gen)
static void __init ncr_getclock (struct ncb *np, int mult)
struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
struct ncb *np = ((struct host_data *) host->hostdata)->ncb;
struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
struct ncb *np = host_data->ncb;
struct ncb *np = timer_container_of(np, t, timer);
struct ncb *np = ((struct host_data *) cmd->device->host->hostdata)->ncb;
static void insert_into_waiting_list(struct ncb *np, struct scsi_cmnd *cmd)
static void process_waiting_list(struct ncb *np, int sts)
return snprintf(buf, 20, "0x%x\n", host_data->ncb->revision_id);
struct ncb *np = NULL;
np = __m_calloc_dma(device->dev, sizeof(struct ncb), "NCB");
host_data->ncb = np;
m_free_dma(np, sizeof(struct ncb), "NCB");
host_data->ncb = NULL;
if (host_data->ncb)
ncr_detach(host_data->ncb);
struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
struct ncb *np = ((struct host_data *)shost->hostdata)->ncb;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *np = sym_data->ncb;
sym_data->ncb = np;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *ncb;
return ((struct sym_data *)host->hostdata)->ncb;
struct sym_hcb *np = sym_data->ncb;
struct sym_hcb *np = sym_data->ncb;