• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/ia64/sn/kernel/

Lines Matching refs:bte

24 #include <asm/sn/bte.h>
46 static inline void bte_start_transfer(struct bteinfo_s *bte, u64 len, u64 mode)
49 BTE_CTRL_STORE(bte, (IBLS_BUSY | ((len) | (mode) << 24)));
51 BTE_LNSTAT_STORE(bte, len);
52 BTE_CTRL_STORE(bte, mode);
85 struct bteinfo_s *bte;
138 bte = bte_if_on_node(nasid_to_try[nasid_index],bte_if_index);
140 if (bte == NULL) {
145 if (spin_trylock(&bte->spinlock)) {
146 if (!(*bte->most_rcnt_na & BTE_WORD_AVAILABLE) ||
147 (BTE_LNSTAT_LOAD(bte) & BTE_ACTIVE)) {
149 spin_unlock(&bte->spinlock);
164 bte = NULL;
167 if (bte != NULL) {
180 bte->most_rcnt_na = &bte->notify;
182 bte->most_rcnt_na = notification;
189 *bte->most_rcnt_na = BTE_WORD_BUSY;
190 notif_phys_addr = (u64)bte->most_rcnt_na;
194 BTE_SRC_STORE(bte, src);
196 BTE_DEST_STORE(bte, dest);
200 BTE_NOTIF_STORE(bte, notif_phys_addr);
204 bte_start_transfer(bte, transfer_size, BTE_VALID_MODE(mode));
208 spin_unlock_irqrestore(&bte->spinlock, irq_flags);
214 while ((transfer_stat = *bte->most_rcnt_na) == BTE_WORD_BUSY) {
217 BTE_PRINTK(("BTE timeout nasid 0x%x bte%d IBLS = 0x%lx na 0x%lx\n",
218 NASID_GET(bte->bte_base_addr), bte->bte_num,
219 BTE_LNSTAT_LOAD(bte), *bte->most_rcnt_na) );
220 bte->bte_error_count++;
221 bte->bh_error = IBLS_ERROR;
222 bte_error_handler((unsigned long)NODEPDA(bte->bte_cnode));
223 *bte->most_rcnt_na = BTE_WORD_AVAILABLE;
229 BTE_LNSTAT_LOAD(bte), *bte->most_rcnt_na));
236 *bte->most_rcnt_na = BTE_WORD_AVAILABLE;
239 BTE_LNSTAT_LOAD(bte), *bte->most_rcnt_na));
299 * are handled by bte copying into a temporary buffer
302 * a standard bte copy.
316 * use the bte to transfer the bulk of the
435 * the recovery lock for node. All the bte interface structures