/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-mpc52xx-psc.c | 74 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_activate_cs() local 75 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs() 108 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs() 110 if (mps->cs_control) in mpc52xx_psc_spi_activate_cs() 111 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); in mpc52xx_psc_spi_activate_cs() 116 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_deactivate_cs() local 118 if (mps->cs_control) in mpc52xx_psc_spi_deactivate_cs() 119 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); in mpc52xx_psc_spi_deactivate_cs() 129 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_transfer_rxtx() local 130 struct mpc52xx_psc __iomem *psc = mps in mpc52xx_psc_spi_transfer_rxtx() 202 struct mpc52xx_psc_spi *mps = mpc52xx_psc_spi_work() local 260 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); mpc52xx_psc_spi_setup() local 288 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); mpc52xx_psc_spi_transfer() local 307 mpc52xx_psc_spi_port_config(int psc_id, struct mpc52xx_psc_spi *mps) mpc52xx_psc_spi_port_config() argument 347 struct mpc52xx_psc_spi *mps = (struct mpc52xx_psc_spi *)dev_id; mpc52xx_psc_spi_isr() local 364 struct mpc52xx_psc_spi *mps; mpc52xx_psc_spi_do_probe() local 470 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(master); mpc52xx_psc_spi_of_remove() local [all...] |
H A D | spi-mpc512x-psc.c | 38 #define psc_addr(mps, regname) ({ \ 40 switch (mps->type) { \ 42 struct mpc52xx_psc __iomem *psc = mps->psc; \ 47 struct mpc5125_psc __iomem *psc = mps->psc; \ 95 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc512x_psc_spi_activate_cs() local 101 sicr = in_be32(psc_addr(mps, sicr)); in mpc512x_psc_spi_activate_cs() 118 out_be32(psc_addr(mps, sicr), sicr); in mpc512x_psc_spi_activate_cs() 120 ccr = in_be32(psc_addr(mps, ccr)); in mpc512x_psc_spi_activate_cs() 125 bclkdiv = (mps->mclk_rate / speed) - 1; in mpc512x_psc_spi_activate_cs() 128 out_be32(psc_addr(mps, cc in mpc512x_psc_spi_activate_cs() 137 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); mpc512x_psc_spi_deactivate_cs() local 152 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); mpc512x_psc_spi_transfer_rxtx() local 335 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); mpc512x_psc_spi_prep_xfer_hw() local 351 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); mpc512x_psc_spi_unprep_xfer_hw() local 404 mpc512x_psc_spi_port_config(struct spi_master *master, struct mpc512x_psc_spi *mps) mpc512x_psc_spi_port_config() argument 465 struct mpc512x_psc_spi *mps = (struct mpc512x_psc_spi *)dev_id; mpc512x_psc_spi_isr() local 488 struct mpc512x_psc_spi *mps; mpc512x_psc_spi_do_probe() local 578 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); mpc512x_psc_spi_do_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-mpc512x-psc.c | 35 #define psc_addr(mps, regname) ({ \ 37 switch (mps->type) { \ 39 struct mpc52xx_psc __iomem *psc = mps->psc; \ 44 struct mpc5125_psc __iomem *psc = mps->psc; \ 88 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc512x_psc_spi_activate_cs() local 94 sicr = in_be32(psc_addr(mps, sicr)); in mpc512x_psc_spi_activate_cs() 111 out_be32(psc_addr(mps, sicr), sicr); in mpc512x_psc_spi_activate_cs() 113 ccr = in_be32(psc_addr(mps, ccr)); in mpc512x_psc_spi_activate_cs() 118 bclkdiv = (mps->mclk_rate / speed) - 1; in mpc512x_psc_spi_activate_cs() 121 out_be32(psc_addr(mps, cc in mpc512x_psc_spi_activate_cs() 146 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); mpc512x_psc_spi_transfer_rxtx() local 329 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); mpc512x_psc_spi_prep_xfer_hw() local 345 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); mpc512x_psc_spi_unprep_xfer_hw() local 383 mpc512x_psc_spi_port_config(struct spi_master *master, struct mpc512x_psc_spi *mps) mpc512x_psc_spi_port_config() argument 444 struct mpc512x_psc_spi *mps = (struct mpc512x_psc_spi *)dev_id; mpc512x_psc_spi_isr() local 461 struct mpc512x_psc_spi *mps; mpc512x_psc_spi_of_probe() local [all...] |
H A D | spi-mpc52xx-psc.c | 63 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_activate_cs() local 64 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs() 97 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs() 107 struct mpc52xx_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc52xx_psc_spi_transfer_rxtx() local 108 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_transfer_rxtx() 109 struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo; in mpc52xx_psc_spi_transfer_rxtx() 159 wait_for_completion(&mps->done); in mpc52xx_psc_spi_transfer_rxtx() 242 static int mpc52xx_psc_spi_port_config(int psc_id, struct mpc52xx_psc_spi *mps) in mpc52xx_psc_spi_port_config() argument 244 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_port_config() 245 struct mpc52xx_psc_fifo __iomem *fifo = mps in mpc52xx_psc_spi_port_config() 282 struct mpc52xx_psc_spi *mps = (struct mpc52xx_psc_spi *)dev_id; mpc52xx_psc_spi_isr() local 297 struct mpc52xx_psc_spi *mps; mpc52xx_psc_spi_of_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
H A D | pcie.c | 145 qtnf_debugfs_add_entry(bus, "mps", qtnf_dbg_mps_show); in qtnf_pcie_fw_boot_done() 156 int mps_p, mps_o, mps_m, mps; in qtnf_tune_pcie_mps() local 159 /* current mps */ in qtnf_tune_pcie_mps() 162 /* maximum supported mps */ in qtnf_tune_pcie_mps() 165 /* suggested new mps value */ in qtnf_tune_pcie_mps() 166 mps = mps_m; in qtnf_tune_pcie_mps() 169 /* parent (bus) mps */ in qtnf_tune_pcie_mps() 174 mps = min(mps_m, mps_p); in qtnf_tune_pcie_mps() 178 ret = pcie_set_mps(pdev, mps); in qtnf_tune_pcie_mps() 180 pr_err("failed to set mps t in qtnf_tune_pcie_mps() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
H A D | pcie.c | 145 qtnf_debugfs_add_entry(bus, "mps", qtnf_dbg_mps_show); in qtnf_pcie_fw_boot_done() 156 int mps_p, mps_o, mps_m, mps; in qtnf_tune_pcie_mps() local 159 /* current mps */ in qtnf_tune_pcie_mps() 162 /* maximum supported mps */ in qtnf_tune_pcie_mps() 165 /* suggested new mps value */ in qtnf_tune_pcie_mps() 166 mps = mps_m; in qtnf_tune_pcie_mps() 169 /* parent (bus) mps */ in qtnf_tune_pcie_mps() 174 mps = min(mps_m, mps_p); in qtnf_tune_pcie_mps() 178 ret = pcie_set_mps(pdev, mps); in qtnf_tune_pcie_mps() 180 pr_err("failed to set mps t in qtnf_tune_pcie_mps() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_cmd.c | 139 u32 mps, mbs, mul, si; in bdc_config_ep() local 155 mps = usb_endpoint_maxp(desc); in bdc_config_ep() 156 mps &= 0x7ff; in bdc_config_ep() 157 param2 |= mps << MP_SHIFT; in bdc_config_ep()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | isp116x.h | 168 u16 mps; member 194 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0) 196 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10) 198 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11) 200 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12)
|
H A D | isp1362.h | 208 u16 mps; member 356 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0) 358 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10) 360 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11) 362 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12) 927 DBG(0, " %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr); in dump_ptd()
|
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | isp116x.h | 168 u16 mps; member 194 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0) 196 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10) 198 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11) 200 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12)
|
H A D | isp1362.h | 208 u16 mps; member 356 #define PTD_GET_MPS(p) (((p)->mps & PTD_MPS_MSK) >> 0) 358 #define PTD_GET_SPD(p) (((p)->mps & PTD_SPD_MSK) >> 10) 360 #define PTD_GET_LAST(p) (((p)->mps & PTD_LAST_MSK) >> 11) 362 #define PTD_GET_EP(p) (((p)->mps & PTD_EP_MSK) >> 12) 872 DBG(0, " %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr); in dump_ptd()
|
/kernel/linux/linux-6.6/include/net/bluetooth/ |
H A D | l2cap.h | 444 __le16 mps; member 451 __le16 mps; member 468 __le16 mps; member 475 __le16 mps; member 483 __le16 mps; member 546 __u16 mps; member
|
/kernel/linux/linux-5.10/net/bluetooth/ |
H A D | l2cap_core.c | 568 chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE); in l2cap_le_flowctl_init() 570 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_le_flowctl_init() 580 if (chan->mps < L2CAP_ECRED_MIN_MPS) { in l2cap_ecred_init() 581 chan->mps = L2CAP_ECRED_MIN_MPS; in l2cap_ecred_init() 582 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_ecred_init() 784 rsp.mps = cpu_to_le16(chan->mps); in l2cap_chan_le_connect_reject() 1406 req.mps = cpu_to_le16(chan->mps); in l2cap_le_connect() 1473 data.pdu.req.mps in l2cap_ecred_connect() 5644 u16 dcid, mtu, mps, credits, result; l2cap_le_connect_rsp() local 5812 u16 dcid, scid, credits, mtu, mps; l2cap_le_connect_req() local 6001 u16 mtu, mps; l2cap_ecred_conn_req() local 6153 u16 mtu, mps, credits, result; l2cap_ecred_conn_rsp() local 6267 u16 mtu, mps, result; l2cap_ecred_reconf_req() local [all...] |
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | l2cap_core.c | 545 chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE); in l2cap_le_flowctl_init() 547 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_le_flowctl_init() 557 if (chan->mps < L2CAP_ECRED_MIN_MPS) { in l2cap_ecred_init() 558 chan->mps = L2CAP_ECRED_MIN_MPS; in l2cap_ecred_init() 559 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_ecred_init() 748 rsp.mps = cpu_to_le16(chan->mps); in l2cap_chan_le_connect_reject() 1249 req.mps = cpu_to_le16(chan->mps); in l2cap_le_connect() 1316 data.pdu.req.mps in l2cap_ecred_connect() 4667 u16 dcid, mtu, mps, credits, result; l2cap_le_connect_rsp() local 4814 u16 dcid, scid, credits, mtu, mps; l2cap_le_connect_req() local 5003 u16 mtu, mps; l2cap_ecred_conn_req() local 5155 u16 mtu, mps, credits, result; l2cap_ecred_conn_rsp() local 5269 u16 mtu, mps, result; l2cap_ecred_reconf_req() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | fotg210.h | 149 #define INOUTEPMPSR_MPS(mps) ((mps) & 0x2FF)
|
/kernel/linux/linux-6.6/drivers/usb/fotg210/ |
H A D | fotg210-udc.h | 151 #define INOUTEPMPSR_MPS(mps) ((mps) & 0x2FF)
|
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/bdc/ |
H A D | bdc_cmd.c | 139 u32 mps, mbs, mul, si; in bdc_config_ep() local 155 mps = usb_endpoint_maxp(desc); in bdc_config_ep() 156 param2 |= mps << MP_SHIFT; in bdc_config_ep()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/ |
H A D | cn66xx_device.c | 72 enum octeon_pcie_mps mps) in lio_cn6xxx_setup_pcie_mps() 80 if (mps == PCIE_MPS_DEFAULT) { in lio_cn6xxx_setup_pcie_mps() 81 mps = ((val & (0x7 << 5)) >> 5); in lio_cn6xxx_setup_pcie_mps() 84 val |= (mps << 5); /* Set MPS */ in lio_cn6xxx_setup_pcie_mps() 90 r64 |= (mps << 4); in lio_cn6xxx_setup_pcie_mps() 71 lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, enum octeon_pcie_mps mps) lio_cn6xxx_setup_pcie_mps() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/ |
H A D | cn66xx_device.c | 72 enum octeon_pcie_mps mps) in lio_cn6xxx_setup_pcie_mps() 80 if (mps == PCIE_MPS_DEFAULT) { in lio_cn6xxx_setup_pcie_mps() 81 mps = ((val & (0x7 << 5)) >> 5); in lio_cn6xxx_setup_pcie_mps() 84 val |= (mps << 5); /* Set MPS */ in lio_cn6xxx_setup_pcie_mps() 90 r64 |= (mps << 4); in lio_cn6xxx_setup_pcie_mps() 71 lio_cn6xxx_setup_pcie_mps(struct octeon_device *oct, enum octeon_pcie_mps mps) lio_cn6xxx_setup_pcie_mps() argument
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | gadget.c | 731 u32 mps = hs_ep->ep.maxpacket; in dwc2_gadget_get_chain_limit() local 741 /* Interrupt OUT EP with mps not multiple of 4 */ in dwc2_gadget_get_chain_limit() 743 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_chain_limit() 744 maxsize = mps * MAX_DMA_DESC_NUM_GENERIC; in dwc2_gadget_get_chain_limit() 759 * Control In/Bulk/Interrupt - multiple of mps. This will allow to not 761 * Interrupt OUT - if mps not multiple of 4 then a single packet corresponds 769 u32 mps = hs_ep->ep.maxpacket; in dwc2_gadget_get_desc_params() local 774 desc_size = mps; in dwc2_gadget_get_desc_params() 788 /* Round down desc_size to be mps multiple */ in dwc2_gadget_get_desc_params() 789 desc_size -= desc_size % mps; in dwc2_gadget_get_desc_params() 809 u32 mps = hs_ep->ep.maxpacket; dwc2_gadget_fill_nonisoc_xfer_ddma_one() local 1152 u32 mps = hs_ep->ep.maxpacket; dwc2_hsotg_start_req() local 2348 u32 mps = hs_ep->ep.maxpacket; dwc2_gadget_get_xfersize_ddma() local 2548 dwc2_hsotg_ep0_mps(unsigned int mps) dwc2_hsotg_ep0_mps() argument 2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument 4013 u32 mps; dwc2_hsotg_ep_enable() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | gadget.c | 730 u32 mps = hs_ep->ep.maxpacket; in dwc2_gadget_get_chain_limit() local 740 /* Interrupt OUT EP with mps not multiple of 4 */ in dwc2_gadget_get_chain_limit() 742 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_chain_limit() 743 maxsize = mps * MAX_DMA_DESC_NUM_GENERIC; in dwc2_gadget_get_chain_limit() 758 * Control In/Bulk/Interrupt - multiple of mps. This will allow to not 760 * Interrupt OUT - if mps not multiple of 4 then a single packet corresponds 768 u32 mps = hs_ep->ep.maxpacket; in dwc2_gadget_get_desc_params() local 773 desc_size = mps; in dwc2_gadget_get_desc_params() 787 /* Round down desc_size to be mps multiple */ in dwc2_gadget_get_desc_params() 788 desc_size -= desc_size % mps; in dwc2_gadget_get_desc_params() 808 u32 mps = hs_ep->ep.maxpacket; dwc2_gadget_fill_nonisoc_xfer_ddma_one() local 1151 u32 mps = hs_ep->ep.maxpacket; dwc2_hsotg_start_req() local 2348 u32 mps = hs_ep->ep.maxpacket; dwc2_gadget_get_xfersize_ddma() local 2548 dwc2_hsotg_ep0_mps(unsigned int mps) dwc2_hsotg_ep0_mps() argument 2577 dwc2_hsotg_set_ep_maxpacket(struct dwc2_hsotg *hsotg, unsigned int ep, unsigned int mps, unsigned int mc, unsigned int dir_in) dwc2_hsotg_set_ep_maxpacket() argument 4013 u32 mps; dwc2_hsotg_ep_enable() local [all...] |
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | probe.c | 1962 int mps, mpss, p_mps, rc; in pci_configure_mps() local 1977 mps = 128; in pci_configure_mps() 1979 mps = 128 << dev->pcie_mpss; in pci_configure_mps() 1980 rc = pcie_set_mps(dev, mps); in pci_configure_mps() 1983 mps); in pci_configure_mps() 1991 mps = pcie_get_mps(dev); in pci_configure_mps() 1994 if (mps == p_mps) in pci_configure_mps() 1999 mps, pci_name(bridge), p_mps); in pci_configure_mps() 2026 p_mps, mps, mpss); in pci_configure_mps() 2666 static void pcie_write_mps(struct pci_dev *dev, int mps) in pcie_write_mps() argument 2737 int mps, orig_mps; pcie_bus_configure_set() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | probe.c | 2007 int mps, mpss, p_mps, rc; in pci_configure_mps() local 2022 mps = 128; in pci_configure_mps() 2024 mps = 128 << dev->pcie_mpss; in pci_configure_mps() 2025 rc = pcie_set_mps(dev, mps); in pci_configure_mps() 2028 mps); in pci_configure_mps() 2036 mps = pcie_get_mps(dev); in pci_configure_mps() 2039 if (mps == p_mps) in pci_configure_mps() 2044 mps, pci_name(bridge), p_mps); in pci_configure_mps() 2071 p_mps, mps, mpss); in pci_configure_mps() 2742 static void pcie_write_mps(struct pci_dev *dev, int mps) in pcie_write_mps() argument 2813 int mps, orig_mps; pcie_bus_configure_set() local [all...] |
/kernel/linux/linux-5.10/include/net/bluetooth/ |
H A D | l2cap.h | 477 __le16 mps; member 484 __le16 mps; member 501 __le16 mps; member 508 __le16 mps; member 516 __le16 mps; member 581 __u16 mps; member
|
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/ |
H A D | cvmx-dpi-defs.h | 785 uint64_t mps:1; member 793 uint64_t mps:1; 817 uint64_t mps:1; member 825 uint64_t mps:1;
|