/linux-2.4.37.9/drivers/net/ |
D | defxx.c | 244 static void dfx_bus_config_check(DFX_board_t *bp); 247 static int dfx_adap_init(DFX_board_t *bp, int get_buffers); 252 static void dfx_int_pr_halt_id(DFX_board_t *bp); 253 static void dfx_int_type_0_process(DFX_board_t *bp); 260 static int dfx_ctl_update_cam(DFX_board_t *bp); 261 static int dfx_ctl_update_filters(DFX_board_t *bp); 263 static int dfx_hw_dma_cmd_req(DFX_board_t *bp); 264 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 da… 265 static void dfx_hw_adap_reset(DFX_board_t *bp, PI_UINT32 type); 266 static int dfx_hw_adap_state_rd(DFX_board_t *bp); [all …]
|
D | b44.c | 69 #define RX_PKT_BUF_SZ (1536 + bp->rx_offset + 64) 101 static int b44_wait_bit(struct b44 *bp, unsigned long reg, in b44_wait_bit() argument 118 bp->dev->name, in b44_wait_bit() 151 static u32 ssb_get_addr(struct b44 *bp, u32 id, u32 instance) in ssb_get_addr() argument 169 static u32 ssb_get_core_rev(struct b44 *bp) in ssb_get_core_rev() argument 174 static u32 ssb_pci_setup(struct b44 *bp, u32 cores) in ssb_pci_setup() argument 178 pci_read_config_dword(bp->pdev, SSB_BAR0_WIN, &bar_orig); in ssb_pci_setup() 179 pci_write_config_dword(bp->pdev, SSB_BAR0_WIN, in ssb_pci_setup() 180 ssb_get_addr(bp, SBID_REG_PCI, 0)); in ssb_pci_setup() 181 pci_rev = ssb_get_core_rev(bp); in ssb_pci_setup() [all …]
|
D | sunbmac.c | 91 static void qec_init(struct bigmac *bp) in qec_init() argument 93 unsigned long gregs = bp->gregs; in qec_init() 94 struct sbus_dev *qec_sdev = bp->qec_sdev; in qec_init() 95 u8 bsizes = bp->bigmac_bursts; in qec_init() 158 static void bigmac_stop(struct bigmac *bp) in bigmac_stop() argument 160 bigmac_tx_reset(bp->bregs); in bigmac_stop() 161 bigmac_rx_reset(bp->bregs); in bigmac_stop() 164 static void bigmac_get_counters(struct bigmac *bp, unsigned long bregs) in bigmac_get_counters() argument 166 struct net_device_stats *stats = &bp->enet_stats; in bigmac_get_counters() 186 static void bigmac_clean_rings(struct bigmac *bp) in bigmac_clean_rings() argument [all …]
|
D | bmac.c | 240 struct bmac_data *bp = (struct bmac_data *) dev->priv; in bmac_enable_and_reset_chip() local 241 volatile struct dbdma_regs *rd = bp->rx_dma; in bmac_enable_and_reset_chip() 242 volatile struct dbdma_regs *td = bp->tx_dma; in bmac_enable_and_reset_chip() 249 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, bp->node, 0, 1); in bmac_enable_and_reset_chip() 324 struct bmac_data *bp = (struct bmac_data *) dev->priv; in bmac_init_registers() local 341 if (!bp->is_bmac_plus) { in bmac_init_registers() 383 for (i=0; i<4; i++) bp->hash_table_mask[i] = 0; in bmac_init_registers() 384 bmwrite(dev, BHASH3, bp->hash_table_mask[0]); /* bits 15 - 0 */ in bmac_init_registers() 385 bmwrite(dev, BHASH2, bp->hash_table_mask[1]); /* bits 31 - 16 */ in bmac_init_registers() 386 bmwrite(dev, BHASH1, bp->hash_table_mask[2]); /* bits 47 - 32 */ in bmac_init_registers() [all …]
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | bbc_i2c.c | 76 struct bbc_i2c_bus *bp; member 82 static int find_device(struct bbc_i2c_bus *bp, struct linux_ebus_child *echild) in find_device() argument 87 if (bp->devs[i].device == echild) { in find_device() 88 if (bp->devs[i].client_claimed) in find_device() 96 static void set_device_claimage(struct bbc_i2c_bus *bp, struct linux_ebus_child *echild, int val) in set_device_claimage() argument 101 if (bp->devs[i].device == echild) { in set_device_claimage() 102 bp->devs[i].client_claimed = val; in set_device_claimage() 113 struct bbc_i2c_bus *bp = all_bbc_i2c; in find_bus_for_device() local 115 while (bp != NULL) { in find_bus_for_device() 116 if (find_device(bp, echild) != 0) in find_bus_for_device() [all …]
|
D | aurora.c | 139 static inline int board_No (struct Aurora_board const * bp) in board_No() argument 141 return bp - aurora_board; in board_No() 190 static int aurora_init_CD180(struct Aurora_board * bp, int chip) in aurora_init_CD180() argument 197 board_No(bp), chip); in aurora_init_CD180() 200 sbus_writeb(0, &bp->r[chip]->r[CD180_CAR]); in aurora_init_CD180() 201 sbus_writeb(0, &bp->r[chip]->r[CD180_GSVR]); in aurora_init_CD180() 204 aurora_wait_CCR(bp->r[chip]); in aurora_init_CD180() 207 sbus_writeb(CCR_HARDRESET, &bp->r[chip]->r[CD180_CCR]); in aurora_init_CD180() 212 (sbus_readb(&bp->r[chip]->r[CD180_GSVR])!=0xff))udelay(100); in aurora_init_CD180() 215 board_No(bp), chip); in aurora_init_CD180() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_trans_buf.c | 80 xfs_buf_t *bp; in xfs_trans_get_buf() local 90 bp = xfs_buf_get_flags(target_dev, blkno, len, in xfs_trans_get_buf() 92 return(bp); in xfs_trans_get_buf() 102 bp = xfs_trans_buf_item_match(tp, target_dev, blkno, len); in xfs_trans_get_buf() 104 bp = xfs_trans_buf_item_match_all(tp, target_dev, blkno, len); in xfs_trans_get_buf() 106 if (bp != NULL) { in xfs_trans_get_buf() 107 ASSERT(XFS_BUF_VALUSEMA(bp) <= 0); in xfs_trans_get_buf() 109 xfs_buftrace("TRANS GET RECUR SHUT", bp); in xfs_trans_get_buf() 110 XFS_BUF_SUPER_STALE(bp); in xfs_trans_get_buf() 117 else if (XFS_BUF_ISSTALE(bp)) { in xfs_trans_get_buf() [all …]
|
D | xfs_buf_item.c | 107 xfs_buf_t *bp, in xfs_buf_item_flush_log_debug() argument 114 bip = XFS_BUF_FSPRIVATE(bp, xfs_buf_log_item_t*); in xfs_buf_item_flush_log_debug() 140 xfs_buf_t *bp; in xfs_buf_item_log_check() local 145 bp = bip->bli_buf; in xfs_buf_item_log_check() 146 ASSERT(XFS_BUF_COUNT(bp) > 0); in xfs_buf_item_log_check() 147 ASSERT(XFS_BUF_PTR(bp) != NULL); in xfs_buf_item_log_check() 149 buffer = XFS_BUF_PTR(bp); in xfs_buf_item_log_check() 150 for (x = 0; x < XFS_BUF_COUNT(bp); x++) { in xfs_buf_item_log_check() 154 bip, bp, orig, x); in xfs_buf_item_log_check() 162 STATIC void xfs_buf_error_relse(xfs_buf_t *bp); [all …]
|
D | xfs_rw.c | 180 xfs_buf_t *bp) in xfs_bioerror() argument 184 ASSERT(XFS_BUF_ISREAD(bp) || bp->b_iodone); in xfs_bioerror() 191 xfs_buftrace("XFS IOERROR", bp); in xfs_bioerror() 192 XFS_BUF_ERROR(bp, EIO); in xfs_bioerror() 199 XFS_BUF_UNREAD(bp); in xfs_bioerror() 200 XFS_BUF_UNDELAYWRITE(bp); in xfs_bioerror() 201 XFS_BUF_UNDONE(bp); in xfs_bioerror() 202 XFS_BUF_STALE(bp); in xfs_bioerror() 204 XFS_BUF_CLR_BDSTRAT_FUNC(bp); in xfs_bioerror() 205 xfs_biodone(bp); in xfs_bioerror() [all …]
|
D | xfs_btree.c | 127 xfs_buf_t *bp) /* buffer containing block, if any */ in xfs_btree_check_block() argument 131 bp); in xfs_btree_check_block() 134 bp); in xfs_btree_check_block() 200 xfs_buf_t *bp) /* buffer for block, if any */ in xfs_btree_check_lblock() argument 219 if (bp) in xfs_btree_check_lblock() 220 xfs_buftrace("LBTREE ERROR", bp); in xfs_btree_check_lblock() 315 xfs_buf_t *bp) /* buffer containing block */ in xfs_btree_check_sblock() argument 339 if (bp) in xfs_btree_check_sblock() 340 xfs_buftrace("SBTREE ERROR", bp); in xfs_btree_check_sblock() 416 xfs_buf_t *bp; /* btree block's buffer pointer */ in xfs_btree_dup_cursor() local [all …]
|
D | xfs_da_btree.c | 113 STATIC uint xfs_da_node_lasthash(xfs_dabuf_t *bp, int *count); 130 xfs_dabuf_t *bp; in xfs_da_node_create() local 135 error = xfs_da_get_buf(tp, args->dp, blkno, -1, &bp, whichfork); in xfs_da_node_create() 138 ASSERT(bp != NULL); in xfs_da_node_create() 139 node = bp->data; in xfs_da_node_create() 147 xfs_da_log_buf(tp, bp, in xfs_da_node_create() 150 *bpp = bp; in xfs_da_node_create() 163 xfs_dabuf_t *bp; in xfs_da_split() local 259 xfs_da_buf_done(addblk->bp); in xfs_da_split() 260 addblk->bp = NULL; in xfs_da_split() [all …]
|
D | xfs_dir2_block.c | 69 static void xfs_dir2_block_log_leaf(xfs_trans_t *tp, xfs_dabuf_t *bp, int first, 71 static void xfs_dir2_block_log_tail(xfs_trans_t *tp, xfs_dabuf_t *bp); 86 xfs_dabuf_t *bp; /* buffer for block */ in xfs_dir2_block_addname() local 117 xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &bp, XFS_DATA_FORK))) { in xfs_dir2_block_addname() 120 ASSERT(bp != NULL); in xfs_dir2_block_addname() 121 block = bp->data; in xfs_dir2_block_addname() 129 xfs_da_brelse(tp, bp); in xfs_dir2_block_addname() 232 xfs_da_brelse(tp, bp); in xfs_dir2_block_addname() 247 error = xfs_dir2_block_to_leaf(args, bp); in xfs_dir2_block_addname() 248 xfs_da_buf_done(bp); in xfs_dir2_block_addname() [all …]
|
D | xfs_log_recover.c | 106 xfs_buf_t *bp) in xlog_put_bp() argument 108 xfs_buf_free(bp); in xlog_put_bp() 120 xfs_buf_t *bp) in xlog_bread() argument 130 ASSERT(BBTOB(nbblks) <= XFS_BUF_SIZE(bp)); in xlog_bread() 131 ASSERT(bp); in xlog_bread() 133 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); in xlog_bread() 134 XFS_BUF_READ(bp); in xlog_bread() 135 XFS_BUF_BUSY(bp); in xlog_bread() 136 XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); in xlog_bread() 137 XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); in xlog_bread() [all …]
|
D | xfs_dir.c | 609 xfs_dabuf_t *bp; in xfs_dir_leaf_addname() local 611 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_addname() 615 ASSERT(bp != NULL); in xfs_dir_leaf_addname() 617 retval = xfs_dir_leaf_lookup_int(bp, args, &index); in xfs_dir_leaf_addname() 619 retval = xfs_dir_leaf_add(bp, args, index); in xfs_dir_leaf_addname() 620 xfs_da_buf_done(bp); in xfs_dir_leaf_addname() 633 xfs_dabuf_t *bp; in xfs_dir_leaf_removename() local 635 retval = xfs_da_read_buf(args->trans, args->dp, 0, -1, &bp, in xfs_dir_leaf_removename() 639 ASSERT(bp != NULL); in xfs_dir_leaf_removename() 640 leaf = bp->data; in xfs_dir_leaf_removename() [all …]
|
D | xfs_dir2_node.c | 69 static void xfs_dir2_free_log_header(xfs_trans_t *tp, xfs_dabuf_t *bp); 70 static int xfs_dir2_leafn_add(xfs_dabuf_t *bp, xfs_da_args_t *args, int index); 72 static void xfs_dir2_leafn_check(xfs_inode_t *dp, xfs_dabuf_t *bp); 74 #define xfs_dir2_leafn_check(dp, bp) argument 82 static int xfs_dir2_leafn_remove(xfs_da_args_t *args, xfs_dabuf_t *bp, 94 xfs_dabuf_t *bp, /* freespace buffer */ in xfs_dir2_free_log_bests() argument 100 free = bp->data; in xfs_dir2_free_log_bests() 102 xfs_da_log_buf(tp, bp, in xfs_dir2_free_log_bests() 114 xfs_dabuf_t *bp) /* freespace buffer */ in xfs_dir2_free_log_header() argument 118 free = bp->data; in xfs_dir2_free_log_header() [all …]
|
/linux-2.4.37.9/drivers/net/skfp/ |
D | skfddi.c | 666 skfddi_priv *bp = PRIV(dev); in skfp_driver_init() local 672 bp->base_addr = dev->base_addr; in skfp_driver_init() 680 spin_lock_init(&bp->DriverLock); in skfp_driver_init() 683 bp->LocalRxBuffer = pci_alloc_consistent(&bp->pdev, MAX_FRAME_SIZE, &bp->LocalRxBufferDMA); in skfp_driver_init() 684 if (!bp->LocalRxBuffer) { in skfp_driver_init() 691 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init() 692 PRINTK(KERN_INFO "Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init() 693 if (bp->SharedMemSize > 0) { in skfp_driver_init() 694 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init() 696 bp->SharedMemAddr = pci_alloc_consistent(&bp->pdev, in skfp_driver_init() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | riscom8.c | 161 static inline int board_No (struct riscom_board const * bp) in board_No() argument 163 return bp - rc_board; in board_No() 179 static inline unsigned char rc_in(struct riscom_board const * bp, unsigned short reg) in rc_in() argument 181 return inb(bp->base + RC_TO_ISA(reg)); in rc_in() 185 static inline void rc_out(struct riscom_board const * bp, unsigned short reg, in rc_out() argument 188 outb(val, bp->base + RC_TO_ISA(reg)); in rc_out() 192 static inline void rc_wait_CCR(struct riscom_board const * bp) in rc_wait_CCR() argument 198 if (!rc_in(bp, CD180_CCR)) in rc_wait_CCR() 201 printk(KERN_INFO "rc%d: Timeout waiting for CCR.\n", board_No(bp)); in rc_wait_CCR() 208 static inline int rc_request_io_range(struct riscom_board * const bp) in rc_request_io_range() argument [all …]
|
D | specialix.c | 242 static inline int board_No (struct specialix_board * bp) in board_No() argument 244 return bp - sx_board; in board_No() 263 static inline unsigned char sx_in(struct specialix_board * bp, unsigned short reg) in sx_in() argument 265 bp->reg = reg | 0x80; in sx_in() 266 outb (reg | 0x80, bp->base + SX_ADDR_REG); in sx_in() 267 return inb (bp->base + SX_DATA_REG); in sx_in() 272 static inline void sx_out(struct specialix_board * bp, unsigned short reg, in sx_out() argument 275 bp->reg = reg | 0x80; in sx_out() 276 outb (reg | 0x80, bp->base + SX_ADDR_REG); in sx_out() 277 outb (val, bp->base + SX_DATA_REG); in sx_out() [all …]
|
/linux-2.4.37.9/fs/jfs/ |
D | jfs_logmgr.c | 178 static void lbmFree(struct lbuf * bp); 179 static void lbmfree(struct lbuf * bp); 181 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, 183 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag); 184 static int lbmIOWait(struct lbuf * bp, int flag); 186 static void lbmStartIO(struct lbuf * bp); 341 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord() local 360 bp = (struct lbuf *) log->bp; in lmWriteRecord() 361 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 411 bp = log->bp; in lmWriteRecord() [all …]
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_buf.h | 465 #define XFS_BUF_BP_ISMAPPED(bp) 1 argument 497 #define XFS_BUF_PTR(bp) (xfs_caddr_t)((bp)->pb_addr) argument 499 extern inline xfs_caddr_t xfs_buf_offset(xfs_buf_t *bp, size_t offset) 501 if (bp->pb_flags & PBF_MAPPED) 502 return XFS_BUF_PTR(bp) + offset; 503 return (xfs_caddr_t) pagebuf_offset(bp, offset); 506 #define XFS_BUF_SET_PTR(bp, val, count) \ argument 507 pagebuf_associate_memory(bp, val, count) 508 #define XFS_BUF_ADDR(bp) ((bp)->pb_bn) argument 509 #define XFS_BUF_SET_ADDR(bp, blk) \ argument [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | auermain.c | 128 struct auerbuf *bp = (struct auerbuf *) urb->context; in auerchar_ctrlwrite_complete() local 130 ((struct auerswald *) ((char *) (bp->list) - in auerchar_ctrlwrite_complete() 137 auerbuf_releasebuf(bp); in auerchar_ctrlwrite_complete() 145 struct auerbuf *bp = (struct auerbuf *) urb->context; in auerswald_ctrlread_wretcomplete() local 150 cp = ((struct auerswald *) ((char *) (bp->list) - in auerswald_ctrlread_wretcomplete() 160 auerbuf_releasebuf(bp); in auerswald_ctrlread_wretcomplete() 167 bp->dr->bRequestType = AUT_RREQ; in auerswald_ctrlread_wretcomplete() 168 bp->dr->bRequest = AUV_RBLOCK; in auerswald_ctrlread_wretcomplete() 169 bp->dr->wLength = bp->dr->wValue; /* temporary stored */ in auerswald_ctrlread_wretcomplete() 170 bp->dr->wValue = cpu_to_le16(1); /* Retry Flag */ in auerswald_ctrlread_wretcomplete() [all …]
|
D | auerisdn.c | 95 struct auerbuf *bp = (struct auerbuf *) urb->context; in auerisdn_dcw_complete() local 97 ((struct auerswald *) ((char *) (bp->list) - in auerisdn_dcw_complete() 105 auerbuf_releasebuf(bp); in auerisdn_dcw_complete() 117 struct auerbuf *bp; in auerisdn_translate_incoming() local 138 bp = auerbuf_getbuf(&cp->bufctl); in auerisdn_translate_incoming() 139 if (!bp) { in auerisdn_translate_incoming() 145 bp->bufp[0] = in auerisdn_translate_incoming() 147 bp->bufp[1] = 0x08; in auerisdn_translate_incoming() 148 bp->bufp[2] = 0x01; in auerisdn_translate_incoming() 149 bp->bufp[3] = msg[6] | 0x80; in auerisdn_translate_incoming() [all …]
|
D | auerbuf.c | 29 void auerbuf_free(struct auerbuf *bp) in auerbuf_free() argument 31 if (!bp) return; in auerbuf_free() 32 kfree(bp->bufp); in auerbuf_free() 33 kfree(bp->dr); in auerbuf_free() 34 if (bp->urbp) { in auerbuf_free() 35 usb_free_urb(bp->urbp); in auerbuf_free() 37 kfree(bp); in auerbuf_free() 45 struct auerbuf *bp; in auerbuf_free_list() local 49 bp = list_entry(p, struct auerbuf, buff_list); in auerbuf_free_list() 53 auerbuf_free(bp); in auerbuf_free_list() [all …]
|
/linux-2.4.37.9/net/sctp/ |
D | bind_addr.c | 110 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument 112 bp->malloced = 0; in sctp_bind_addr_init() 114 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init() 115 bp->port = port; in sctp_bind_addr_init() 119 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument 125 list_for_each_safe(pos, temp, &bp->address_list) { in sctp_bind_addr_clean() 134 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument 137 sctp_bind_addr_clean(bp); in sctp_bind_addr_free() 139 if (bp->malloced) { in sctp_bind_addr_free() 140 kfree(bp); in sctp_bind_addr_free() [all …]
|
/linux-2.4.37.9/net/ax25/ |
D | ax25_ip.c | 112 unsigned char *bp = skb->data; in ax25_rebuild_header() local 118 dst = (ax25_address *)(bp + 1); in ax25_rebuild_header() 119 src = (ax25_address *)(bp + 8); in ax25_rebuild_header() 121 if (arp_find(bp + 1, skb)) in ax25_rebuild_header() 133 if (bp[16] == AX25_P_IP) { in ax25_rebuild_header() 169 bp = ourskb->data; in ax25_rebuild_header() 170 dst_c = *(ax25_address *)(bp + 1); in ax25_rebuild_header() 171 src_c = *(ax25_address *)(bp + 8); in ax25_rebuild_header() 183 bp[7] &= ~AX25_CBIT; in ax25_rebuild_header() 184 bp[7] &= ~AX25_EBIT; in ax25_rebuild_header() [all …]
|