Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/memstick/core/
H A Dms_block.c141 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 …]
/openbmc/linux/drivers/usb/storage/
H A Dalauda.c119 #define PBA_LO(pba) ((pba & 0xF) << 5) argument
120 #define PBA_HI(pba) (pba >> 3) argument
121 #define PBA_ZONE(pba) (pba >> 11) argument
530 static int alauda_get_redu_data(struct us_data *us, u16 pba, unsigned char *data) in alauda_get_redu_data() argument
535 PBA_HI(pba), PBA_ZONE(pba), 0, PBA_LO(pba), 0, 0, MEDIA_PORT(us) in alauda_get_redu_data()
702 static int alauda_erase_block(struct us_data *us, u16 pba) in alauda_erase_block() argument
706 ALAUDA_BULK_CMD, ALAUDA_BULK_ERASE_BLOCK, PBA_HI(pba), in alauda_erase_block()
707 PBA_ZONE(pba), 0, PBA_LO(pba), 0x02, 0, MEDIA_PORT(us) in alauda_erase_block()
711 usb_stor_dbg(us, "Erasing PBA %d\n", pba); in alauda_erase_block()
731 static int alauda_read_block_raw(struct us_data *us, u16 pba, in alauda_read_block_raw() argument
[all …]
H A Dsddr55.c198 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 …]
H A Dsddr09.c738 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 …]
/openbmc/linux/arch/s390/include/asm/
H A Dcpacf.h336 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_km()
368 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_kmc()
396 : [fc] "d" (func), [pba] "d" ((unsigned long)(param)), in cpacf_kimd()
421 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_klmd()
449 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_kmac()
484 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_kmctr()
517 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_prno()
561 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_pcc()
581 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_pckmo()
615 : [fc] "d" (func), [pba] "d" ((unsigned long)param), in cpacf_kma()
H A Dpci_insn.h89 u64 pba; /* PCI base address */ member
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_isr.c21 u32 pba; in fnic_isr_legacy() local
24 pba = vnic_intr_legacy_pba(fnic->legacy_pba); in fnic_isr_legacy()
25 if (!pba) in fnic_isr_legacy()
31 if (pba & (1 << FNIC_INTX_NOTIFY)) { in fnic_isr_legacy()
36 if (pba & (1 << FNIC_INTX_ERR)) { in fnic_isr_legacy()
41 if (pba & (1 << FNIC_INTX_WQ_RQ_COPYWQ)) { in fnic_isr_legacy()
/openbmc/linux/net/sctp/
H A Dtransport.c559 __u32 cwnd, ssthresh, flight_size, pba, pmtu; in sctp_transport_raise_cwnd() local
570 pba = transport->partial_bytes_acked; in sctp_transport_raise_cwnd()
607 flight_size, pba); in sctp_transport_raise_cwnd()
631 pba += bytes_acked; in sctp_transport_raise_cwnd()
632 if (pba > cwnd && flight_size < cwnd) in sctp_transport_raise_cwnd()
633 pba = cwnd; in sctp_transport_raise_cwnd()
634 if (pba >= cwnd && flight_size >= cwnd) { in sctp_transport_raise_cwnd()
635 pba = pba - cwnd; in sctp_transport_raise_cwnd()
643 flight_size, pba); in sctp_transport_raise_cwnd()
647 transport->partial_bytes_acked = pba; in sctp_transport_raise_cwnd()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-inst.c753 if (end < iommu->pba || start > iommu->pal) { in rpcit_service_call()
997 uint64_t pba = ldq_be_p(&fib.pba); in reg_ioat() local
1003 pba &= ~0xfff; in reg_ioat()
1005 if (pba > pal || pba < pbdev->zpci_fn.sdma || pal > pbdev->zpci_fn.edma) { in reg_ioat()
1017 iommu->pba = pba; in reg_ioat()
1029 iommu->pba = 0; in pci_dereg_ioat()
1402 stq_be_p(&fib.pba, pbdev->iommu->pba); in stpcifc_service_call()
H A Ds390-pci-bus.c561 if (addr < iommu->pba || addr > iommu->pal) { in s390_translate_iommu()
878 uint32_t table, pba; in s390_pci_msix_init() local
889 pba = pci_host_config_read_common(pbdev->pdev, pos + PCI_MSIX_PBA, in s390_pci_msix_init()
890 pci_config_size(pbdev->pdev), sizeof(pba)); in s390_pci_msix_init()
894 pbdev->msix.pba_bar = pba & PCI_MSIX_FLAGS_BIRMASK; in s390_pci_msix_init()
895 pbdev->msix.pba_offset = pba & ~PCI_MSIX_FLAGS_BIRMASK; in s390_pci_msix_init()
/openbmc/linux/drivers/net/ethernet/intel/igbvf/
H A Digbvf.h249 u32 pba; member
262 u32 pba; member
H A Dnetdev.c46 .pba = 10,
53 .pba = 10,
2750 adapter->pba = ei->pba; in igbvf_probe()
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_main.c554 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 …]
/openbmc/qemu/include/hw/s390x/
H A Ds390-pci-inst.h84 uint64_t pba; /* PCI base address */ member
H A Ds390-pci-bus.h282 uint64_t pba; member
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A D82571.c1959 .pba = 38,
1977 .pba = 38,
1995 .pba = 20,
2020 .pba = 32,
2042 .pba = 32,
H A De1000.h306 u32 pba; member
342 u32 pba; member
H A Dnetdev.c3959 u32 pba = adapter->pba; in e1000e_reset() local
3963 ew32(PBA, pba); in e1000e_reset()
3973 pba = er32(PBA); in e1000e_reset()
3975 tx_space = pba >> 16; in e1000e_reset()
3977 pba &= 0xffff; in e1000e_reset()
3995 ((min_tx_space - tx_space) < pba)) { in e1000e_reset()
3996 pba -= min_tx_space - tx_space; in e1000e_reset()
4001 if (pba < min_rx_space) in e1000e_reset()
4002 pba = min_rx_space; in e1000e_reset()
4005 ew32(PBA, pba); in e1000e_reset()
[all …]
H A Dich8lan.c5932 .pba = 8,
5949 .pba = 18,
5966 .pba = 18,
5985 .pba = 26,
6006 .pba = 26,
6027 .pba = 26,
6047 .pba = 26,
6067 .pba = 26,
6087 .pba = 26,
6107 .pba = 26,
[all …]
H A D80003es2lan.c1405 .pba = 38,
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Denic_main.c445 #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()
/openbmc/qemu/hw/vfio/
H A Dpci.c1555 uint32_t table, pba; in vfio_msix_early_setup() local
1578 if (pread(fd, &pba, sizeof(pba), in vfio_msix_early_setup()
1579 vdev->config_offset + pos + PCI_MSIX_PBA) != sizeof(pba)) { in vfio_msix_early_setup()
1586 pba = le32_to_cpu(pba); in vfio_msix_early_setup()
1591 msix->pba_bar = pba & PCI_MSIX_FLAGS_BIRMASK; in vfio_msix_early_setup()
1592 msix->pba_offset = pba & ~PCI_MSIX_FLAGS_BIRMASK; in vfio_msix_early_setup()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c221 static void igb_init_dmac(struct igb_adapter *adapter, u32 pba);
2294 u32 pba, hwm; in igb_reset() local
2303 pba = rd32(E1000_RXPBS); in igb_reset()
2304 pba = igb_rxpbs_adjust_82580(pba); in igb_reset()
2307 pba = rd32(E1000_RXPBS); in igb_reset()
2308 pba &= E1000_RXPBS_SIZE_MASK_82576; in igb_reset()
2314 pba = E1000_PBA_34K; in igb_reset()
2322 wr32(E1000_PBA, pba); in igb_reset()
2349 if (needed_tx_space < pba) { in igb_reset()
2350 pba -= needed_tx_space; in igb_reset()
[all …]
/openbmc/linux/include/linux/
H A Dswitchtec.h399 u8 pba[24]; member
/openbmc/u-boot/drivers/net/
H A De1000.c1603 uint32_t pba = 0; in e1000_reset_hw() local
1610 pba = E1000_DEFAULT_PCI_PBA; in e1000_reset_hw()
1612 pba = E1000_DEFAULT_PCIE_PBA; in e1000_reset_hw()
1703 E1000_WRITE_REG(hw, PBA, pba); in e1000_reset_hw()

12