Home
last modified time | relevance | path

Searched refs:mps (Results 1 – 24 of 24) sorted by relevance

/drivers/spi/
Dspi-mpc52xx-psc.c79 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_activate_cs() local
80 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs()
113 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs()
115 if (mps->cs_control) in mpc52xx_psc_spi_activate_cs()
116 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); in mpc52xx_psc_spi_activate_cs()
121 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_deactivate_cs() local
123 if (mps->cs_control) in mpc52xx_psc_spi_deactivate_cs()
124 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); in mpc52xx_psc_spi_deactivate_cs()
134 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_transfer_rxtx() local
135 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_transfer_rxtx()
[all …]
Dspi-mpc512x-psc.c42 #define psc_addr(mps, regname) ({ \ argument
44 switch (mps->type) { \
46 struct mpc52xx_psc __iomem *psc = mps->psc; \
51 struct mpc5125_psc __iomem *psc = mps->psc; \
99 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc512x_psc_spi_activate_cs() local
105 sicr = in_be32(psc_addr(mps, sicr)); in mpc512x_psc_spi_activate_cs()
122 out_be32(psc_addr(mps, sicr), sicr); in mpc512x_psc_spi_activate_cs()
124 ccr = in_be32(psc_addr(mps, ccr)); in mpc512x_psc_spi_activate_cs()
129 bclkdiv = (mps->mclk_rate / speed) - 1; in mpc512x_psc_spi_activate_cs()
132 out_be32(psc_addr(mps, ccr), ccr); in mpc512x_psc_spi_activate_cs()
[all …]
/drivers/pci/
Dprobe.c1336 int mps, p_mps, rc; in pci_configure_mps() local
1351 mps = 128; in pci_configure_mps()
1353 mps = 128 << dev->pcie_mpss; in pci_configure_mps()
1354 rc = pcie_set_mps(dev, mps); in pci_configure_mps()
1357 mps); in pci_configure_mps()
1365 mps = pcie_get_mps(dev); in pci_configure_mps()
1368 if (mps == p_mps) in pci_configure_mps()
1373 mps, pci_name(bridge), p_mps); in pci_configure_mps()
1392 p_mps, mps, 128 << dev->pcie_mpss); in pci_configure_mps()
1970 static void pcie_write_mps(struct pci_dev *dev, int mps) in pcie_write_mps() argument
[all …]
Dpci.c4381 int mps = pcie_get_mps(dev); in pcie_set_readrq() local
4383 if (mps < rq) in pcie_set_readrq()
4384 rq = mps; in pcie_set_readrq()
4418 int pcie_set_mps(struct pci_dev *dev, int mps) in pcie_set_mps() argument
4422 if (mps < 128 || mps > 4096 || !is_power_of_2(mps)) in pcie_set_mps()
4425 v = ffs(mps) - 8; in pcie_set_mps()
/drivers/usb/gadget/udc/bdc/
Dbdc_cmd.c147 u32 mps, mbs, mul, si; in bdc_config_ep() local
163 mps = usb_endpoint_maxp(desc); in bdc_config_ep()
164 mps &= 0x7ff; in bdc_config_ep()
165 param2 |= mps << MP_SHIFT; in bdc_config_ep()
/drivers/usb/host/
Disp116x.h167 u16 mps; member
193 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0)
195 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10)
197 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11)
199 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12)
Disp1362.h253 u16 mps; member
401 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0)
403 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10)
405 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11)
407 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12)
972 DBG(0, " %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr); in dump_ptd()
Disp116x-hcd.c180 isp116x_write_data16(isp116x, ptd->mps); in pack_fifo()
210 ptd->mps = isp116x_read_data16(isp116x); in unpack_fifo()
275 ptd->mps = PTD_MPS(ep->maxpacket) in preproc_atl_queue()
281 ptd->mps |= PTD_LAST_MSK; in preproc_atl_queue()
Disp1362-hcd.c173 int mps) in max_transfer_size() argument
178 if (xfer_size < size && xfer_size % mps) in max_transfer_size()
179 xfer_size -= xfer_size % mps; in max_transfer_size()
328 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd()
913 ep->ptd.mps |= PTD_LAST_MSK; in start_iso_transfers()
Dxhci.c2422 unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); in xhci_get_ss_bw_consumed() local
2427 (SS_OVERHEAD + mps)); in xhci_get_ss_bw_consumed()
2429 (SS_OVERHEAD + mps + SS_OVERHEAD_BURST), in xhci_get_ss_bw_consumed()
/drivers/usb/gadget/udc/
Dfotg210.h153 #define INOUTEPMPSR_MPS(mps) ((mps) & 0x2FF) argument
Dfotg210-udc.c132 static void fotg210_set_mps(struct fotg210_ep *ep, u32 epnum, u32 mps, in fotg210_set_mps() argument
141 val |= INOUTEPMPSR_MPS(mps); in fotg210_set_mps()
/drivers/firmware/efi/
Defi.c31 .mps = EFI_INVALID_TABLE_ADDR,
93 if (efi.mps != EFI_INVALID_TABLE_ADDR) in systab_show()
94 str += sprintf(str, "MPS=0x%lx\n", efi.mps); in systab_show()
332 {MPS_TABLE_GUID, "MPS", &efi.mps},
/drivers/net/ethernet/cavium/liquidio/
Dcn66xx_device.c89 enum octeon_pcie_mps mps) in lio_cn6xxx_setup_pcie_mps() argument
97 if (mps == PCIE_MPS_DEFAULT) { in lio_cn6xxx_setup_pcie_mps()
98 mps = ((val & (0x7 << 5)) >> 5); in lio_cn6xxx_setup_pcie_mps()
101 val |= (mps << 5); /* Set MPS */ in lio_cn6xxx_setup_pcie_mps()
107 r64 |= (mps << 4); in lio_cn6xxx_setup_pcie_mps()
Dcn66xx_device.h76 enum octeon_pcie_mps mps);
/drivers/usb/dwc2/
Dgadget.c1707 static u32 dwc2_hsotg_ep0_mps(unsigned int mps) in dwc2_hsotg_ep0_mps() argument
1709 switch (mps) { in dwc2_hsotg_ep0_mps()
1735 unsigned int ep, unsigned int mps, unsigned int dir_in) in dwc2_hsotg_set_ep_maxpacket() argument
1749 mpsval = dwc2_hsotg_ep0_mps(mps); in dwc2_hsotg_set_ep_maxpacket()
1752 hs_ep->ep.maxpacket = mps; in dwc2_hsotg_set_ep_maxpacket()
1755 mpsval = mps & DXEPCTL_MPS_MASK; in dwc2_hsotg_set_ep_maxpacket()
1758 mcval = ((mps >> 11) & 0x3) + 1; in dwc2_hsotg_set_ep_maxpacket()
1780 dev_err(hsotg->dev, "ep%d: bad mps of %d\n", ep, mps); in dwc2_hsotg_set_ep_maxpacket()
2659 u32 mps; in dwc2_hsotg_ep_enable() local
2678 mps = usb_endpoint_maxp(desc); in dwc2_hsotg_ep_enable()
[all …]
Dhcd.h169 u16 mps; member
416 return pipe->mps; in dwc2_hcd_get_mps()
Dhcd.c1915 u8 ep_num, u8 ep_type, u8 ep_dir, u16 mps) in dwc2_hcd_urb_set_pipeinfo() argument
1922 dev_addr, ep_num, ep_dir, ep_type, mps); in dwc2_hcd_urb_set_pipeinfo()
1927 urb->pipe_info.mps = mps; in dwc2_hcd_urb_set_pipeinfo()
/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv50.c288 int mps = 0; in nv50_gr_mp_trap() local
315 mps++; in nv50_gr_mp_trap()
317 if (!mps && display) in nv50_gr_mp_trap()
/drivers/xen/
Defi.c293 .mps = EFI_INVALID_TABLE_ADDR,
/drivers/staging/octeon-usb/
Docteon-hcd.h1041 __BITFIELD_FIELD(uint32_t mps : 11,
Docteon-hcd.c1810 usbc_hcchar.s.mps = pipe->max_packet; in cvmx_usb_start_channel()
2575 bytes_this_transfer = packets_processed * usbc_hcchar.s.mps; in cvmx_usb_poll_channel()
2586 (packets_processed - 1) * usbc_hcchar.s.mps; in cvmx_usb_poll_channel()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_debugfs.c1639 ldst_cmd.u.mps.rplc.fid_idx = in mps_tcam_show()
1649 mps_rplc = ldst_cmd.u.mps.rplc; in mps_tcam_show()
Dt4fw_api.h817 } mps; member