Home
last modified time | relevance | path

Searched refs:pba (Results 1 – 15 of 15) sorted by relevance

/drivers/usb/storage/
Dalauda.c126 #define PBA_LO(pba) ((pba & 0xF) << 5) argument
127 #define PBA_HI(pba) (pba >> 3) argument
128 #define PBA_ZONE(pba) (pba >> 11) argument
531 static int alauda_get_redu_data(struct us_data *us, u16 pba, unsigned char *data) in alauda_get_redu_data() argument
536 PBA_HI(pba), PBA_ZONE(pba), 0, PBA_LO(pba), 0, 0, MEDIA_PORT(us) in alauda_get_redu_data()
703 static int alauda_erase_block(struct us_data *us, u16 pba) in alauda_erase_block() argument
707 ALAUDA_BULK_CMD, ALAUDA_BULK_ERASE_BLOCK, PBA_HI(pba), in alauda_erase_block()
708 PBA_ZONE(pba), 0, PBA_LO(pba), 0x02, 0, MEDIA_PORT(us) in alauda_erase_block()
712 usb_stor_dbg(us, "Erasing PBA %d\n", pba); in alauda_erase_block()
732 static int alauda_read_block_raw(struct us_data *us, u16 pba, in alauda_read_block_raw() argument
[all …]
Dsddr55.c205 unsigned int pba; in sddr55_read_data() local
230 pba = info->lba_to_pba[lba]; in sddr55_read_data()
239 pages, pba, lba, page); in sddr55_read_data()
241 if (pba == NOT_ALLOCATED) { in sddr55_read_data()
246 address = (pba << info->blockshift) + page; in sddr55_read_data()
324 unsigned int pba; in sddr55_write_data() local
357 pba = info->lba_to_pba[lba]; in sddr55_write_data()
370 pages, pba, lba, page); in sddr55_write_data()
374 if (pba == NOT_ALLOCATED) { in sddr55_write_data()
382 pba = (lba / 1000) * 1024; in sddr55_write_data()
[all …]
Dsddr09.c750 unsigned int lba, maxlba, pba; in sddr09_read_data() local
796 pba = info->lba_to_pba[lba]; in sddr09_read_data()
798 if (pba == UNDEF) { /* this lba was never written */ in sddr09_read_data()
812 pages, pba, lba, page); in sddr09_read_data()
814 address = ((pba << info->blockshift) + page) << in sddr09_read_data()
869 unsigned int pba, lbap; in sddr09_write_lba() local
878 pba = info->lba_to_pba[lba]; in sddr09_write_lba()
881 if (pba == UNDEF) { in sddr09_write_lba()
882 pba = sddr09_find_unused_pba(info, lba); in sddr09_write_lba()
883 if (!pba) { in sddr09_write_lba()
[all …]
/drivers/mtd/nand/
Dalauda.c46 #define PBA_LO(pba) ((pba & 0xF) << 5) argument
47 #define PBA_HI(pba) (pba >> 3) argument
48 #define PBA_ZONE(pba) (pba >> 11) argument
208 u32 pba = from >> al->card->blockshift; in __alauda_read_page() local
211 ALAUDA_BULK_CMD, ALAUDA_BULK_READ_PAGE, PBA_HI(pba), in __alauda_read_page()
212 PBA_ZONE(pba), 0, PBA_LO(pba) + page, 1, 0, al->port in __alauda_read_page()
273 u32 pba = to >> al->card->blockshift; in alauda_write_page() local
276 ALAUDA_BULK_CMD, ALAUDA_BULK_WRITE_PAGE, PBA_HI(pba), in alauda_write_page()
277 PBA_ZONE(pba), 0, PBA_LO(pba) + page, 32, 0, al->port in alauda_write_page()
324 u32 pba = ofs >> al->card->blockshift; in alauda_erase_block() local
[all …]
/drivers/scsi/fnic/
Dfnic_isr.c33 u32 pba; in fnic_isr_legacy() local
36 pba = vnic_intr_legacy_pba(fnic->legacy_pba); in fnic_isr_legacy()
37 if (!pba) in fnic_isr_legacy()
40 if (pba & (1 << FNIC_INTX_NOTIFY)) { in fnic_isr_legacy()
45 if (pba & (1 << FNIC_INTX_ERR)) { in fnic_isr_legacy()
50 if (pba & (1 << FNIC_INTX_WQ_RQ_COPYWQ)) { in fnic_isr_legacy()
/drivers/net/ethernet/intel/igbvf/
Digbvf.h278 u32 pba; member
291 u32 pba; member
Dnetdev.c71 .pba = 10,
78 .pba = 10,
2678 adapter->pba = ei->pba; in igbvf_probe()
/drivers/net/ethernet/intel/igb/
Digb_main.c233 static void igb_init_dmac(struct igb_adapter *adapter, u32 pba);
1715 u32 pba = 0, tx_space, min_tx_space, min_rx_space, hwm; in igb_reset() local
1724 pba = rd32(E1000_RXPBS); in igb_reset()
1725 pba = igb_rxpbs_adjust_82580(pba); in igb_reset()
1728 pba = rd32(E1000_RXPBS); in igb_reset()
1729 pba &= E1000_RXPBS_SIZE_MASK_82576; in igb_reset()
1735 pba = E1000_PBA_34K; in igb_reset()
1742 wr32(E1000_PBA, pba); in igb_reset()
1751 pba = rd32(E1000_PBA); in igb_reset()
1753 tx_space = pba >> 16; in igb_reset()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_main.c573 u32 pba = 0, tx_space, min_tx_space, min_rx_space; in e1000_reset() local
590 pba = E1000_PBA_48K; in e1000_reset()
597 pba = E1000_PBA_48K; in e1000_reset()
602 pba = E1000_PBA_30K; in e1000_reset()
611 pba -= 8; /* allocate more FIFO for Tx */ in e1000_reset()
615 adapter->tx_head_addr = pba << E1000_TX_HEAD_ADDR_SHIFT; in e1000_reset()
617 (E1000_PBA_40K - pba) << E1000_PBA_BYTES_SHIFT; in e1000_reset()
622 ew32(PBA, pba); in e1000_reset()
631 pba = er32(PBA); in e1000_reset()
633 tx_space = pba >> 16; in e1000_reset()
[all …]
/drivers/net/ethernet/intel/e1000e/
D82571.c1981 .pba = 38,
1999 .pba = 38,
2017 .pba = 20,
2041 .pba = 32,
2061 .pba = 32,
De1000.h328 u32 pba; member
362 u32 pba; member
Dnetdev.c3723 u32 pba = adapter->pba; in e1000e_reset() local
3727 ew32(PBA, pba); in e1000e_reset()
3737 pba = er32(PBA); in e1000e_reset()
3739 tx_space = pba >> 16; in e1000e_reset()
3741 pba &= 0xffff; in e1000e_reset()
3759 ((min_tx_space - tx_space) < pba)) { in e1000e_reset()
3760 pba -= min_tx_space - tx_space; in e1000e_reset()
3765 if (pba < min_rx_space) in e1000e_reset()
3766 pba = min_rx_space; in e1000e_reset()
3769 ew32(PBA, pba); in e1000e_reset()
[all …]
Dich8lan.c4639 .pba = 8,
4656 .pba = 18,
4673 .pba = 18,
4692 .pba = 26,
4712 .pba = 26,
4732 .pba = 26,
D80003es2lan.c1415 .pba = 38,
/drivers/net/ethernet/cisco/enic/
Denic_main.c483 #define ENIC_TEST_INTR(pba, i) (pba & (1 << i)) argument
492 u32 pba; in enic_isr_legacy() local
496 pba = vnic_intr_legacy_pba(enic->legacy_pba); in enic_isr_legacy()
497 if (!pba) { in enic_isr_legacy()
502 if (ENIC_TEST_INTR(pba, notify_intr)) { in enic_isr_legacy()
507 if (ENIC_TEST_INTR(pba, err_intr)) { in enic_isr_legacy()
515 if (ENIC_TEST_INTR(pba, io_intr)) { in enic_isr_legacy()