/openbmc/qemu/hw/mem/ |
H A D | memory-device.c | 25 const MemoryDeviceClass *mdc = MEMORY_DEVICE_GET_CLASS(md); in memory_device_is_empty() local 30 mr = mdc->get_memory_region((MemoryDeviceState *)md, &local_err); in memory_device_is_empty() 73 const MemoryDeviceClass *mdc = MEMORY_DEVICE_GET_CLASS(md); in memory_device_get_memslots() local 75 if (mdc->get_memslots) { in memory_device_get_memslots() 76 return mdc->get_memslots(md); in memory_device_get_memslots() 176 const MemoryDeviceClass *mdc = MEMORY_DEVICE_GET_CLASS(md); in memory_device_check_addable() local 186 if (mdc->decide_memslots) { in memory_device_check_addable() 188 mdc->decide_memslots(md, memslot_limit); in memory_device_check_addable() 258 const MemoryDeviceClass *mdc = MEMORY_DEVICE_GET_CLASS(OBJECT(md)); in memory_device_get_free_addr() local 266 range_init_nofail(&tmp, mdc->get_addr(md), in memory_device_get_free_addr() [all …]
|
H A D | pc-dimm.c | 283 MemoryDeviceClass *mdc = MEMORY_DEVICE_CLASS(oc); in pc_dimm_class_init() local 290 mdc->get_addr = pc_dimm_md_get_addr; in pc_dimm_class_init() 291 mdc->set_addr = pc_dimm_md_set_addr; in pc_dimm_class_init() 293 mdc->get_plugged_size = memory_device_get_region_size; in pc_dimm_class_init() 294 mdc->get_memory_region = pc_dimm_md_get_memory_region; in pc_dimm_class_init() 295 mdc->fill_device_info = pc_dimm_md_fill_device_info; in pc_dimm_class_init()
|
/openbmc/linux/include/linux/ |
H A D | sxgbe_platform.h | 15 /* MDC Clock Selection define*/ 16 #define SXGBE_CSR_100_150M 0x0 /* MDC = clk_scr_i/62 */ 17 #define SXGBE_CSR_150_250M 0x1 /* MDC = clk_scr_i/102 */ 18 #define SXGBE_CSR_250_300M 0x2 /* MDC = clk_scr_i/122 */ 19 #define SXGBE_CSR_300_350M 0x3 /* MDC = clk_scr_i/142 */ 20 #define SXGBE_CSR_350_400M 0x4 /* MDC = clk_scr_i/162 */ 21 #define SXGBE_CSR_400_500M 0x5 /* MDC = clk_scr_i/202 */
|
H A D | stmmac.h | 30 /* MDC Clock Selection define*/ 31 #define STMMAC_CSR_60_100M 0x0 /* MDC = clk_scr_i/42 */ 32 #define STMMAC_CSR_100_150M 0x1 /* MDC = clk_scr_i/62 */ 33 #define STMMAC_CSR_20_35M 0x2 /* MDC = clk_scr_i/16 */ 34 #define STMMAC_CSR_35_60M 0x3 /* MDC = clk_scr_i/26 */ 35 #define STMMAC_CSR_150_250M 0x4 /* MDC = clk_scr_i/102 */ 36 #define STMMAC_CSR_250_300M 0x5 /* MDC = clk_scr_i/122 */ 50 /* The MDC clock could be set higher than the IEEE 802.3 54 * supporting higher MDC clocks. 55 * The MDC clock selection macros need to be defined for MDC clock rate
|
/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | img-mdc-dma.txt | 1 * IMG Multi-threaded DMA Controller (MDC) 4 - compatible: Must be "img,pistachio-mdc-dma". 5 - reg: Must contain the base address and length of the MDC registers. 10 - sys: MDC system interface clock. 28 mdc: dma-controller@18143000 { 29 compatible = "img,pistachio-mdc-dma"; 54 dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
|
/openbmc/linux/drivers/net/dsa/realtek/ |
H A D | realtek-smi.c | 5 * The SMI protocol piggy-backs the MDIO MDC and MDIO signals levels 56 gpiod_direction_output(priv->mdc, 0); in realtek_smi_start() 61 gpiod_set_value(priv->mdc, 1); in realtek_smi_start() 63 gpiod_set_value(priv->mdc, 0); in realtek_smi_start() 67 gpiod_set_value(priv->mdc, 1); in realtek_smi_start() 71 gpiod_set_value(priv->mdc, 0); in realtek_smi_start() 80 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop() 84 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop() 86 gpiod_set_value(priv->mdc, 0); in realtek_smi_stop() 88 gpiod_set_value(priv->mdc, 1); in realtek_smi_stop() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-mem-pci.c | 160 MemoryDeviceClass *mdc = MEMORY_DEVICE_CLASS(klass); in virtio_mem_pci_class_init() local 168 mdc->get_addr = virtio_mem_pci_get_addr; in virtio_mem_pci_class_init() 169 mdc->set_addr = virtio_mem_pci_set_addr; in virtio_mem_pci_class_init() 170 mdc->get_plugged_size = virtio_mem_pci_get_plugged_size; in virtio_mem_pci_class_init() 171 mdc->get_memory_region = virtio_mem_pci_get_memory_region; in virtio_mem_pci_class_init() 172 mdc->decide_memslots = virtio_mem_pci_decide_memslots; in virtio_mem_pci_class_init() 173 mdc->get_memslots = virtio_mem_pci_get_memslots; in virtio_mem_pci_class_init() 174 mdc->fill_device_info = virtio_mem_pci_fill_device_info; in virtio_mem_pci_class_init() 175 mdc->get_min_alignment = virtio_mem_pci_get_min_alignment; in virtio_mem_pci_class_init()
|
H A D | virtio-pmem-pci.c | 88 MemoryDeviceClass *mdc = MEMORY_DEVICE_CLASS(klass); in virtio_pmem_pci_class_init() local 95 mdc->get_addr = virtio_pmem_pci_get_addr; in virtio_pmem_pci_class_init() 96 mdc->set_addr = virtio_pmem_pci_set_addr; in virtio_pmem_pci_class_init() 97 mdc->get_plugged_size = virtio_pmem_pci_get_plugged_size; in virtio_pmem_pci_class_init() 98 mdc->get_memory_region = virtio_pmem_pci_get_memory_region; in virtio_pmem_pci_class_init() 99 mdc->fill_device_info = virtio_pmem_pci_fill_device_info; in virtio_pmem_pci_class_init()
|
/openbmc/linux/drivers/dma/ |
H A D | moxart-dma.c | 152 struct moxart_dmadev *mdc; member 332 struct moxart_dmadev *mdc = ofdma->of_dma_data; in moxart_of_xlate() local 336 chan = dma_get_any_slave_channel(&mdc->dma_slave); in moxart_of_xlate() 570 struct moxart_dmadev *mdc; in moxart_probe() local 572 mdc = devm_kzalloc(dev, sizeof(*mdc), GFP_KERNEL); in moxart_probe() 573 if (!mdc) in moxart_probe() 586 dma_cap_zero(mdc->dma_slave.cap_mask); in moxart_probe() 587 dma_cap_set(DMA_SLAVE, mdc->dma_slave.cap_mask); in moxart_probe() 588 dma_cap_set(DMA_PRIVATE, mdc->dma_slave.cap_mask); in moxart_probe() 590 moxart_dma_init(&mdc->dma_slave, dev); in moxart_probe() [all …]
|
/openbmc/u-boot/board/gdsys/common/ |
H A D | miiphybb.c | 14 int mdc; member 71 in_be32((void *)GPIO0_OR) | pins->mdc); in io_bb_set_mdc() 74 in_be32((void *)GPIO0_OR) & ~pins->mdc); in io_bb_set_mdc() 89 .mdc = CONFIG_SYS_MDC_PIN, 94 .mdc = CONFIG_SYS_MDC1_PIN,
|
/openbmc/linux/Documentation/devicetree/bindings/arm/marvell/ |
H A D | cp110-system-controller.txt | 92 …i2sdo_spdifo), ge0(rxd2), tdm(drx), ptp(clk), mss_i2c(sck), uart0(txd), sata1(present_act), ge(mdc) 93 …0(rxd1), tdm(dtx), mss_uart(rxd), ptp(pclk_out), i2c1(sck), uart1(rxd), sata0(present_act), xg(mdc) 95 …, au(i2sbclk), ge0(rxctl), tdm(rstn), mss_uart(rxd), uart1(cts), pcie0(clkreq), uart3(rxd), ge(mdc) 119 …pi1(csn0), mss_gpio5, ge0(rxd2), spi0(csn5), pcie2(clkreq), ptp(pulse), ge(mdc), sata1(present_act… 122 mpp31 31 gpio, dev(a2), mss_gpio4, pcie(rstoutn), ge(mdc) 125 …, sdio(pwr11), mss_spi(mosi), tdm(dtx), au(i2slrclk), sdio(wr_protect), ge(mdc), pcie0(clkreq), ms… 127 …i2c1(sck), ptp(clk), synce1(clk), au(i2sbclk), sata0(present_act), xg(mdc), ge(mdc), pcie2(clkreq)… 128 …(sck), ptp(pclk_out), tdm(intn), mss_i2c(sck), sata1(present_act), ge(mdc), xg(mdc), pcie1(clkreq)… 132 …s_pwr), mss_i2c(sck), au(i2slrclk), ptp(pulse), spi0(mosi), uart1(rxd), ge(mdc), sata1(present_act… 133 …tect), synce2(clk), au(i2smclk), mss_uart(txd), spi0(miso), uart1(cts), xg(mdc), sata0(present_act… [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/dsa/ |
H A D | realtek.yaml | 50 mdc-gpios: 51 description: GPIO line for the MDC clock line. 114 - mdc-gpios 119 mdc-gpios: false 125 - mdc-gpios 133 # - mdc-gpios 148 /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */ 149 mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; 242 mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
|
/openbmc/qemu/hw/i386/ |
H A D | sgx-epc.c | 154 MemoryDeviceClass *mdc = MEMORY_DEVICE_CLASS(oc); in sgx_epc_class_init() local 163 mdc->get_addr = sgx_epc_md_get_addr; in sgx_epc_class_init() 164 mdc->set_addr = sgx_epc_md_set_addr; in sgx_epc_class_init() 165 mdc->get_plugged_size = sgx_epc_md_get_plugged_size; in sgx_epc_class_init() 166 mdc->get_memory_region = sgx_epc_md_get_memory_region; in sgx_epc_class_init() 167 mdc->fill_device_info = sgx_epc_md_fill_device_info; in sgx_epc_class_init()
|
/openbmc/u-boot/doc/ |
H A D | README.bitbangMII | 21 MDC_DECLARE - Declaration needed to access to the MDC pin (optional) 22 MDC(v) - Write v on the MDC pin 41 int (*set_mdc)() - Write the MDC pin
|
/openbmc/qemu/hw/misc/ |
H A D | mos6522.c | 132 MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(s); in get_counter_value() local 135 return mdc->get_timer1_counter_value(s, ti); in get_counter_value() 137 return mdc->get_timer2_counter_value(s, ti); in get_counter_value() 143 MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(s); in get_load_time() local 146 return mdc->get_timer1_load_time(s, ti); in get_load_time() 148 return mdc->get_timer2_load_time(s, ti); in get_load_time() 397 MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(s); in mos6522_write() local 405 mdc->portB_write(s); in mos6522_write() 418 mdc->portA_write(s); in mos6522_write() 708 MOS6522DeviceClass *mdc = MOS6522_CLASS(oc); in mos6522_class_init() local [all …]
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-armada-cp110.c | 62 MPP_FUNCTION(10, "ge", "mdc")), 74 MPP_FUNCTION(10, "xg", "mdc")), 97 MPP_FUNCTION(10, "ge", "mdc")), 266 MPP_FUNCTION(8, "ge", "mdc"), 301 MPP_FUNCTION(8, "ge", "mdc")), 333 MPP_FUNCTION(7, "ge", "mdc"), 356 MPP_FUNCTION(7, "xg", "mdc"), 357 MPP_FUNCTION(8, "ge", "mdc"), 368 MPP_FUNCTION(7, "ge", "mdc"), 369 MPP_FUNCTION(8, "xg", "mdc"), [all …]
|
/openbmc/linux/drivers/net/mdio/ |
H A D | mdio-gpio.c | 32 struct gpio_desc *mdc, *mdio, *mdo; member 38 bitbang->mdc = devm_gpiod_get_index(dev, NULL, MDIO_GPIO_MDC, in mdio_gpio_get_data() 40 if (IS_ERR(bitbang->mdc)) in mdio_gpio_get_data() 41 return PTR_ERR(bitbang->mdc); in mdio_gpio_get_data() 98 gpiod_set_value_cansleep(bitbang->mdc, what); in mdc_set()
|
/openbmc/qemu/hw/misc/macio/ |
H A D | cuda.c | 592 MOS6522DeviceClass *mdc = MOS6522_GET_CLASS(ms); in mos6522_cuda_reset_hold() local 594 if (mdc->parent_phases.hold) { in mos6522_cuda_reset_hold() 595 mdc->parent_phases.hold(obj, type); in mos6522_cuda_reset_hold() 605 MOS6522DeviceClass *mdc = MOS6522_CLASS(oc); in mos6522_cuda_class_init() local 608 NULL, &mdc->parent_phases); in mos6522_cuda_class_init() 609 mdc->portB_write = mos6522_cuda_portB_write; in mos6522_cuda_class_init() 610 mdc->get_timer1_counter_value = cuda_get_counter_value; in mos6522_cuda_class_init() 611 mdc->get_timer2_counter_value = cuda_get_counter_value; in mos6522_cuda_class_init() 612 mdc->get_timer1_load_time = cuda_get_load_time; in mos6522_cuda_class_init() 613 mdc->get_timer2_load_time = cuda_get_load_time; in mos6522_cuda_class_init()
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,armada-98dx3236-pinctrl.txt | 18 mpp4 4 gpio, spi0(cs1), smi(mdc), dev(cs0) 45 mpp31 31 gpio, slv_smi(mdc), smi(mdc), dev(we1)
|
/openbmc/u-boot/drivers/net/ |
H A D | aspeed_mdio.c | 26 //G6 MDC/MDIO 35 //New MDC/MDIO 88 /* preserve MDC cycle threshold */ in aspeed_mdio_read() 127 /* preserve MDC cycle threshold */ in aspeed_mdio_write()
|
/openbmc/linux/arch/mips/boot/dts/img/ |
H A D | pistachio.dtsi | 120 dmas = <&mdc 30 0xffffffff 0>; 136 dmas = <&mdc 23 0xffffffff 0>; 156 dmas = <&mdc 16 0xffffffff 0>; 173 dmas = <&mdc 14 0xffffffff 0>; 192 dmas = <&mdc 15 0xffffffff 0>; 217 dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; 232 dmas = <&mdc 1 0xffffffff 0>, <&mdc 2 0xffffffff 0>; 817 mdc: dma-controller@18143000 { label 818 compatible = "img,pistachio-mdc-dma"; 882 dmas = <&mdc 8 0xffffffff 0>;
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-img-spfi.txt | 34 dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
|
/openbmc/linux/arch/powerpc/boot/dts/ |
H A D | kmeter1.dts | 149 0 2 1 0 1 0 /* MDC */ 175 0 2 1 0 1 0 /* MDC */ 201 0 2 1 0 1 0 /* MDC */ 221 0 2 1 0 1 0 /* MDC */ 239 0 2 1 0 1 0 /* MDC */ 257 0 2 1 0 1 0 /* MDC */ 275 0 2 1 0 1 0 /* MDC */
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm47094-asus-rt-ac88u.dts | 21 /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */ 22 mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
|
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mii-bitbang.c | 90 static inline void mdc(struct mdiobb_ctrl *ctrl, int what) in mdc() function 105 .set_mdc = mdc, 136 data = of_get_property(np, "fsl,mdc-pin", &len); in fs_mii_bitbang_init()
|