Home
last modified time | relevance | path

Searched refs:bdp (Results 1 – 12 of 12) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c88 cbd_t __iomem *bdp; in fs_enet_rx_napi() local
101 bdp = fep->cur_rx; in fs_enet_rx_napi()
106 while (((sc = CBDR_SC(bdp)) & BD_ENET_RX_EMPTY) == 0) { in fs_enet_rx_napi()
107 curidx = bdp - fep->rx_bd_base; in fs_enet_rx_napi()
137 dma_unmap_single(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_rx_napi()
146 dma_unmap_single(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_rx_napi()
154 pkt_len = CBDR_DATLEN(bdp) - 4; /* remove CRC */ in fs_enet_rx_napi()
185 CBDW_BUFADDR(bdp, dma_map_single(fep->dev, skbn->data, in fs_enet_rx_napi()
188 CBDW_DATLEN(bdp, 0); in fs_enet_rx_napi()
189 CBDW_SC(bdp, (sc & ~BD_ENET_RX_STATS) | BD_ENET_RX_EMPTY); in fs_enet_rx_napi()
[all …]
/linux-4.4.14/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c85 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty() local
89 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty()
92 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty()
96 bdp++; in cpm_uart_tx_empty()
252 cbd_t __iomem *bdp; in cpm_uart_int_rx() local
261 bdp = pinfo->rx_cur; in cpm_uart_int_rx()
270 status = in_be16(&bdp->cbd_sc); in cpm_uart_int_rx()
276 i = in_be16(&bdp->cbd_datlen); in cpm_uart_int_rx()
287 cp = cpm2cpu_addr(in_be32(&bdp->cbd_bufaddr), pinfo); in cpm_uart_int_rx()
312 clrbits16(&bdp->cbd_sc, BD_SC_BR | BD_SC_FR | BD_SC_PR | in cpm_uart_int_rx()
[all …]
/linux-4.4.14/drivers/net/ethernet/freescale/
Dfec_main.c224 struct bufdesc *fec_enet_get_nextdesc(struct bufdesc *bdp, in fec_enet_get_nextdesc() argument
228 struct bufdesc *new_bd = bdp + 1; in fec_enet_get_nextdesc()
229 struct bufdesc_ex *ex_new_bd = (struct bufdesc_ex *)bdp + 1; in fec_enet_get_nextdesc()
236 if (bdp >= txq->tx_bd_base) { in fec_enet_get_nextdesc()
255 struct bufdesc *fec_enet_get_prevdesc(struct bufdesc *bdp, in fec_enet_get_prevdesc() argument
259 struct bufdesc *new_bd = bdp - 1; in fec_enet_get_prevdesc()
260 struct bufdesc_ex *ex_new_bd = (struct bufdesc_ex *)bdp - 1; in fec_enet_get_prevdesc()
267 if (bdp >= txq->tx_bd_base) { in fec_enet_get_prevdesc()
284 static int fec_enet_get_bd_index(struct bufdesc *base, struct bufdesc *bdp, in fec_enet_get_bd_index() argument
287 return ((const char *)bdp - (const char *)base) / fep->bufdesc_size; in fec_enet_get_bd_index()
[all …]
Dgianfar.h272 #define skip_bd(bdp, stride, base, ring_size) ({ \ argument
273 typeof(bdp) new_bd = (bdp) + (stride); \
276 #define next_bd(bdp, base, ring_size) skip_bd(bdp, 1, base, ring_size) argument
1303 static inline void gfar_clear_txbd_status(struct txbd8 *bdp) in gfar_clear_txbd_status() argument
1305 u32 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clear_txbd_status()
1308 bdp->lstatus = cpu_to_be32(lstatus); in gfar_clear_txbd_status()
1321 struct rxbd8 *bdp; in gfar_rxbd_dma_lastfree() local
1326 bdp = &rxq->rx_bd_base[i]; in gfar_rxbd_dma_lastfree()
1328 bdp_dma += (uintptr_t)bdp - (uintptr_t)rxq->rx_bd_base; in gfar_rxbd_dma_lastfree()
Dgianfar.c155 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp, in gfar_init_rxbdp() argument
160 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
163 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
168 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
2284 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride, in skip_txbd() argument
2287 struct txbd8 *new_bd = bdp + stride; in skip_txbd()
2292 static inline struct txbd8 *next_txbd(struct txbd8 *bdp, struct txbd8 *base, in next_txbd() argument
2295 return skip_txbd(bdp, 1, base, ring_size); in next_txbd()
2661 struct txbd8 *bdp, *next = NULL; in gfar_clean_tx_ring() local
2676 bdp = tx_queue->dirty_tx; in gfar_clean_tx_ring()
[all …]
/linux-4.4.14/drivers/tty/serial/
Ducc_uart.c259 struct qe_bd *bdp = qe_port->tx_bd_base; in qe_uart_tx_empty() local
262 if (in_be16(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
266 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
273 bdp++; in qe_uart_tx_empty()
331 struct qe_bd *bdp; in qe_uart_tx_pump() local
337 bdp = qe_port->rx_cur; in qe_uart_tx_pump()
342 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
344 p = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_tx_pump()
347 out_be16(&bdp->length, 1); in qe_uart_tx_pump()
348 setbits16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
[all …]
/linux-4.4.14/arch/ia64/mm/
Ddiscontig.c78 struct bootmem_data *bdp = &bootmem_node_data[node]; in build_node_maps() local
83 if (!bdp->node_low_pfn) { in build_node_maps()
84 bdp->node_min_pfn = spfn; in build_node_maps()
85 bdp->node_low_pfn = epfn; in build_node_maps()
87 bdp->node_min_pfn = min(spfn, bdp->node_min_pfn); in build_node_maps()
88 bdp->node_low_pfn = max(epfn, bdp->node_low_pfn); in build_node_maps()
271 struct bootmem_data *bdp = &bootmem_node_data[node]; in fill_pernode() local
287 pgdat_list[node]->bdata = bdp; in fill_pernode()
328 struct bootmem_data *bdp = &bootmem_node_data[node]; in find_pernode_space() local
333 pages = bdp->node_low_pfn - bdp->node_min_pfn; in find_pernode_space()
[all …]
/linux-4.4.14/drivers/net/ethernet/aeroflex/
Dgreth.c399 struct greth_bd *bdp; in greth_start_xmit() local
427 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit()
428 dma_addr = greth_read_bd(&bdp->addr); in greth_start_xmit()
446 greth_write_bd(&bdp->stat, status); in greth_start_xmit()
468 struct greth_bd *bdp; in greth_start_xmit_gbit() local
508 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit_gbit()
509 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
515 greth_write_bd(&bdp->addr, dma_addr); in greth_start_xmit_gbit()
523 bdp = greth->tx_bd_base + curr_tx; in greth_start_xmit_gbit()
540 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
[all …]
/linux-4.4.14/drivers/video/backlight/
Dcr_bllcd.c177 struct backlight_device *bdp; in cr_backlight_probe() local
198 bdp = devm_backlight_device_register(&pdev->dev, "cr-backlight", in cr_backlight_probe()
201 if (IS_ERR(bdp)) { in cr_backlight_probe()
203 return PTR_ERR(bdp); in cr_backlight_probe()
223 crp->cr_backlight_device = bdp; in cr_backlight_probe()
/linux-4.4.14/arch/x86/platform/uv/
Dtlb_uv.c1922 struct uvhub_desc *bdp; in get_cpu_topology() local
1943 bdp = &uvhub_descs[uvhub]; in get_cpu_topology()
1945 bdp->num_cpus++; in get_cpu_topology()
1946 bdp->uvhub = uvhub; in get_cpu_topology()
1947 bdp->pnode = pnode; in get_cpu_topology()
1952 bdp->socket_mask |= (1 << socket); in get_cpu_topology()
1953 sdp = &bdp->socket[socket]; in get_cpu_topology()
1996 static int scan_sock(struct socket_desc *sdp, struct uvhub_desc *bdp, in scan_sock() argument
2013 bcp->cpus_in_uvhub = bdp->num_cpus; in scan_sock()
2016 bcp->uvhub = bdp->uvhub; in scan_sock()
[all …]
/linux-4.4.14/lib/
Ddecompress_bunzip2.c628 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument
641 bd = *bdp = malloc(i); in start_bunzip()
/linux-4.4.14/drivers/scsi/
Dqla1280.c695 struct qla_boards *bdp; in qla1280_info() local
699 bdp = &ql1280_board_tbl[ha->devnum]; in qla1280_info()
705 &bdp->name[0], ha->fwver1, ha->fwver2, ha->fwver3, in qla1280_info()
4228 struct qla_boards *bdp = &ql1280_board_tbl[devnum]; in qla1280_probe_one() local
4241 bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); in qla1280_probe_one()
4301 ha->ports = bdp->numPorts; in qla1280_probe_one()
4307 host->max_channel = bdp->numPorts - 1; in qla1280_probe_one()