/drivers/memstick/core/ |
D | ms_block.c | 141 static int msb_get_zone_from_pba(int pba) in msb_get_zone_from_pba() argument 143 return pba / MS_BLOCKS_IN_ZONE; in msb_get_zone_from_pba() 168 static void msb_mark_block_used(struct msb_data *msb, int pba) in msb_mark_block_used() argument 170 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_used() 172 if (test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_used() 174 "BUG: attempt to mark already used pba %d as used", pba); in msb_mark_block_used() 183 __set_bit(pba, msb->used_blocks_bitmap); in msb_mark_block_used() 188 static void msb_mark_block_unused(struct msb_data *msb, int pba) in msb_mark_block_unused() argument 190 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_unused() 192 if (!test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_unused() [all …]
|
/drivers/usb/storage/ |
D | alauda.c | 117 #define PBA_LO(pba) ((pba & 0xF) << 5) argument 118 #define PBA_HI(pba) (pba >> 3) argument 119 #define PBA_ZONE(pba) (pba >> 11) argument 527 static int alauda_get_redu_data(struct us_data *us, u16 pba, unsigned char *data) in alauda_get_redu_data() argument 532 PBA_HI(pba), PBA_ZONE(pba), 0, PBA_LO(pba), 0, 0, MEDIA_PORT(us) in alauda_get_redu_data() 699 static int alauda_erase_block(struct us_data *us, u16 pba) in alauda_erase_block() argument 703 ALAUDA_BULK_CMD, ALAUDA_BULK_ERASE_BLOCK, PBA_HI(pba), in alauda_erase_block() 704 PBA_ZONE(pba), 0, PBA_LO(pba), 0x02, 0, MEDIA_PORT(us) in alauda_erase_block() 708 usb_stor_dbg(us, "Erasing PBA %d\n", pba); in alauda_erase_block() 728 static int alauda_read_block_raw(struct us_data *us, u16 pba, in alauda_read_block_raw() argument [all …]
|
D | sddr55.c | 198 unsigned int pba; in sddr55_read_data() local 223 pba = info->lba_to_pba[lba]; in sddr55_read_data() 232 pages, pba, lba, page); in sddr55_read_data() 234 if (pba == NOT_ALLOCATED) { in sddr55_read_data() 239 address = (pba << info->blockshift) + page; in sddr55_read_data() 317 unsigned int pba; in sddr55_write_data() local 350 pba = info->lba_to_pba[lba]; in sddr55_write_data() 363 pages, pba, lba, page); in sddr55_write_data() 367 if (pba == NOT_ALLOCATED) { in sddr55_write_data() 375 pba = (lba / 1000) * 1024; in sddr55_write_data() [all …]
|
D | sddr09.c | 738 unsigned int lba, maxlba, pba; in sddr09_read_data() local 782 pba = info->lba_to_pba[lba]; in sddr09_read_data() 784 if (pba == UNDEF) { /* this lba was never written */ in sddr09_read_data() 800 pages, pba, lba, page); in sddr09_read_data() 802 address = ((pba << info->blockshift) + page) << in sddr09_read_data() 857 unsigned int pba, lbap; in sddr09_write_lba() local 866 pba = info->lba_to_pba[lba]; in sddr09_write_lba() 868 if (pba == UNDEF) { in sddr09_write_lba() 869 pba = sddr09_find_unused_pba(info, lba); in sddr09_write_lba() 870 if (!pba) { in sddr09_write_lba() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_isr.c | 33 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() 43 if (pba & (1 << FNIC_INTX_NOTIFY)) { in fnic_isr_legacy() 48 if (pba & (1 << FNIC_INTX_ERR)) { in fnic_isr_legacy() 53 if (pba & (1 << FNIC_INTX_WQ_RQ_COPYWQ)) { in fnic_isr_legacy()
|
/drivers/net/ethernet/intel/igbvf/ |
D | igbvf.h | 249 u32 pba; member 262 u32 pba; member
|
D | netdev.c | 46 .pba = 10, 53 .pba = 10, 2732 adapter->pba = ei->pba; in igbvf_probe()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 554 u32 pba = 0, tx_space, min_tx_space, min_rx_space; in e1000_reset() local 571 pba = E1000_PBA_48K; in e1000_reset() 578 pba = E1000_PBA_48K; in e1000_reset() 583 pba = E1000_PBA_30K; in e1000_reset() 592 pba -= 8; /* allocate more FIFO for Tx */ in e1000_reset() 596 adapter->tx_head_addr = pba << E1000_TX_HEAD_ADDR_SHIFT; in e1000_reset() 598 (E1000_PBA_40K - pba) << E1000_PBA_BYTES_SHIFT; in e1000_reset() 603 ew32(PBA, pba); in e1000_reset() 612 pba = er32(PBA); in e1000_reset() 614 tx_space = pba >> 16; in e1000_reset() [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | 82571.c | 1960 .pba = 38, 1978 .pba = 38, 1996 .pba = 20, 2021 .pba = 32, 2043 .pba = 32,
|
D | netdev.c | 3972 u32 pba = adapter->pba; in e1000e_reset() local 3976 ew32(PBA, pba); in e1000e_reset() 3986 pba = er32(PBA); in e1000e_reset() 3988 tx_space = pba >> 16; in e1000e_reset() 3990 pba &= 0xffff; in e1000e_reset() 4008 ((min_tx_space - tx_space) < pba)) { in e1000e_reset() 4009 pba -= min_tx_space - tx_space; in e1000e_reset() 4014 if (pba < min_rx_space) in e1000e_reset() 4015 pba = min_rx_space; in e1000e_reset() 4018 ew32(PBA, pba); in e1000e_reset() [all …]
|
D | e1000.h | 304 u32 pba; member 340 u32 pba; member
|
D | ich8lan.c | 5862 .pba = 8, 5879 .pba = 18, 5896 .pba = 18, 5915 .pba = 26, 5936 .pba = 26, 5957 .pba = 26, 5977 .pba = 26, 5997 .pba = 26, 6017 .pba = 26, 6037 .pba = 26,
|
D | 80003es2lan.c | 1406 .pba = 38,
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_main.c | 445 #define ENIC_TEST_INTR(pba, i) (pba & (1 << i)) argument 454 u32 pba; in enic_isr_legacy() local 458 pba = vnic_intr_legacy_pba(enic->legacy_pba); in enic_isr_legacy() 459 if (!pba) { in enic_isr_legacy() 464 if (ENIC_TEST_INTR(pba, notify_intr)) { in enic_isr_legacy() 469 if (ENIC_TEST_INTR(pba, err_intr)) { in enic_isr_legacy() 477 if (ENIC_TEST_INTR(pba, io_intr)) in enic_isr_legacy()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 220 static void igb_init_dmac(struct igb_adapter *adapter, u32 pba); 2268 u32 pba, hwm; in igb_reset() local 2277 pba = rd32(E1000_RXPBS); in igb_reset() 2278 pba = igb_rxpbs_adjust_82580(pba); in igb_reset() 2281 pba = rd32(E1000_RXPBS); in igb_reset() 2282 pba &= E1000_RXPBS_SIZE_MASK_82576; in igb_reset() 2288 pba = E1000_PBA_34K; in igb_reset() 2296 wr32(E1000_PBA, pba); in igb_reset() 2323 if (needed_tx_space < pba) { in igb_reset() 2324 pba -= needed_tx_space; in igb_reset() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 84 u32 pba, hwm; in igc_reset() local 87 pba = IGC_PBA_34K; in igc_reset() 97 hwm = (pba << 10) - (adapter->max_frame_size + MAX_JUMBO_FRAME_SIZE); in igc_reset()
|