/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mii-bitbang.c | 63 bb_set(bitbang->dir, bitbang->mdio_msk); in mdio_dir() 65 bb_clr(bitbang->dir, bitbang->mdio_msk); in mdio_dir() 74 return bb_read(bitbang->dat, bitbang->mdio_msk); in mdio_read() 82 bb_set(bitbang->dat, bitbang->mdio_msk); in mdio() 84 bb_clr(bitbang->dat, bitbang->mdio_msk); in mdio() 95 bb_set(bitbang->dat, bitbang->mdc_msk); in mdc() 97 bb_clr(bitbang->dat, bitbang->mdc_msk); in mdc() 145 bitbang->dat = bitbang->dir + 4; in fs_mii_bitbang_init() 159 if (!bitbang) in fs_enet_mdio_probe() 190 kfree(bitbang); in fs_enet_mdio_probe() [all …]
|
H A D | Makefile | 13 obj-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o
|
/openbmc/linux/drivers/net/mdio/ |
H A D | mdio-gpio.c | 40 if (IS_ERR(bitbang->mdc)) in mdio_gpio_get_data() 41 return PTR_ERR(bitbang->mdc); in mdio_gpio_get_data() 45 if (IS_ERR(bitbang->mdio)) in mdio_gpio_get_data() 46 return PTR_ERR(bitbang->mdio); in mdio_gpio_get_data() 55 struct mdio_gpio_info *bitbang = in mdio_dir() local 58 if (bitbang->mdo) { in mdio_dir() 76 struct mdio_gpio_info *bitbang = in mdio_get() local 84 struct mdio_gpio_info *bitbang = in mdio_set() local 87 if (bitbang->mdo) in mdio_set() 168 bitbang = devm_kzalloc(&pdev->dev, sizeof(*bitbang), GFP_KERNEL); in mdio_gpio_probe() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-bitbang.c | 186 struct spi_bitbang *bitbang; in spi_bitbang_setup() local 237 struct spi_bitbang *bitbang; in spi_bitbang_bufs() local 273 struct spi_bitbang *bitbang; in spi_bitbang_prepare_hardware() local 277 mutex_lock(&bitbang->lock); in spi_bitbang_prepare_hardware() 278 bitbang->busy = 1; in spi_bitbang_prepare_hardware() 313 struct spi_bitbang *bitbang; in spi_bitbang_unprepare_hardware() local 317 mutex_lock(&bitbang->lock); in spi_bitbang_unprepare_hardware() 318 bitbang->busy = 0; in spi_bitbang_unprepare_hardware() 361 mutex_init(&bitbang->lock); in spi_bitbang_init() 379 if (!bitbang->txrx_bufs) { in spi_bitbang_init() [all …]
|
H A D | spi-sh-sci.c | 25 struct spi_bitbang bitbang; member 139 sp->bitbang.master = host; in sh_sci_spi_probe() 140 sp->bitbang.master->bus_num = sp->info->bus_num; in sh_sci_spi_probe() 142 sp->bitbang.chipselect = sh_sci_spi_chipselect; in sh_sci_spi_probe() 144 sp->bitbang.txrx_word[SPI_MODE_0] = sh_sci_spi_txrx_mode0; in sh_sci_spi_probe() 145 sp->bitbang.txrx_word[SPI_MODE_1] = sh_sci_spi_txrx_mode1; in sh_sci_spi_probe() 146 sp->bitbang.txrx_word[SPI_MODE_2] = sh_sci_spi_txrx_mode2; in sh_sci_spi_probe() 162 ret = spi_bitbang_start(&sp->bitbang); in sh_sci_spi_probe() 169 spi_controller_put(sp->bitbang.master); in sh_sci_spi_probe() 178 spi_bitbang_stop(&sp->bitbang); in sh_sci_spi_remove() [all …]
|
H A D | spi-lm70llp.c | 71 struct spi_bitbang bitbang; member 215 pp->bitbang.master = master; in spi_lm70llp_attach() 216 pp->bitbang.chipselect = lm70_chipselect; in spi_lm70llp_attach() 217 pp->bitbang.txrx_word[SPI_MODE_0] = lm70_txrx; in spi_lm70llp_attach() 218 pp->bitbang.flags = SPI_3WIRE; in spi_lm70llp_attach() 242 status = spi_bitbang_start(&pp->bitbang); in spi_lm70llp_attach() 267 pp->spidev_lm70 = spi_new_device(pp->bitbang.master, &pp->info); in spi_lm70llp_attach() 282 spi_bitbang_stop(&pp->bitbang); in spi_lm70llp_attach() 304 spi_bitbang_stop(&pp->bitbang); in spi_lm70llp_detach() 312 spi_master_put(pp->bitbang.master); in spi_lm70llp_detach()
|
H A D | spi-butterfly.c | 51 struct spi_bitbang bitbang; member 208 pp->bitbang.master = host; in butterfly_attach() 209 pp->bitbang.chipselect = butterfly_chipselect; in butterfly_attach() 210 pp->bitbang.txrx_word[SPI_MODE_0] = butterfly_txrx_word_mode0; in butterfly_attach() 252 status = spi_bitbang_start(&pp->bitbang); in butterfly_attach() 266 pp->dataflash = spi_new_device(pp->bitbang.master, &pp->info[0]); in butterfly_attach() 302 spi_bitbang_stop(&pp->bitbang); in butterfly_detach() 311 spi_controller_put(pp->bitbang.master); in butterfly_detach()
|
H A D | spi-xtensa-xtfpga.c | 25 struct spi_bitbang bitbang; member 96 xspi->bitbang.master = master; in xtfpga_spi_probe() 97 xspi->bitbang.chipselect = xtfpga_spi_chipselect; in xtfpga_spi_probe() 98 xspi->bitbang.txrx_word[SPI_MODE_0] = xtfpga_spi_txrx_word; in xtfpga_spi_probe() 110 ret = spi_bitbang_start(&xspi->bitbang); in xtfpga_spi_probe() 125 spi_bitbang_stop(&xspi->bitbang); in xtfpga_spi_remove()
|
H A D | spi-ath79.c | 41 struct spi_bitbang bitbang; member 192 sp->bitbang.master = host; in ath79_spi_probe() 193 sp->bitbang.chipselect = ath79_spi_chipselect; in ath79_spi_probe() 194 sp->bitbang.txrx_word[SPI_MODE_0] = ath79_spi_txrx_mode0; in ath79_spi_probe() 195 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe() 224 ret = spi_bitbang_start(&sp->bitbang); in ath79_spi_probe() 244 spi_bitbang_stop(&sp->bitbang); in ath79_spi_remove() 247 spi_controller_put(sp->bitbang.master); in ath79_spi_remove()
|
H A D | spi-oc-tiny.c | 38 struct spi_bitbang bitbang; member 197 hw->bitbang.master->dev.of_node = pdev->dev.of_node; in tiny_spi_of_probe() 232 hw->bitbang.master = master; in tiny_spi_probe() 233 hw->bitbang.setup_transfer = tiny_spi_setup_transfer; in tiny_spi_probe() 234 hw->bitbang.txrx_bufs = tiny_spi_txrx_bufs; in tiny_spi_probe() 262 err = spi_bitbang_start(&hw->bitbang); in tiny_spi_probe() 277 struct spi_master *master = hw->bitbang.master; in tiny_spi_remove() 279 spi_bitbang_stop(&hw->bitbang); in tiny_spi_remove()
|
H A D | spi-omap-uwire.c | 89 struct spi_bitbang bitbang; member 451 spi_master_put(uwire->bitbang.master); in uwire_off() 496 uwire->bitbang.master = master; in uwire_probe() 497 uwire->bitbang.chipselect = uwire_chipselect; in uwire_probe() 498 uwire->bitbang.setup_transfer = uwire_setup_transfer; in uwire_probe() 499 uwire->bitbang.txrx_bufs = uwire_txrx; in uwire_probe() 501 status = spi_bitbang_start(&uwire->bitbang); in uwire_probe() 514 spi_bitbang_stop(&uwire->bitbang); in uwire_remove()
|
H A D | spi-ppc4xx.c | 111 struct spi_bitbang bitbang; member 200 mutex_lock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer() 201 if (!hw->bitbang.busy) { in spi_ppc4xx_setupxfer() 202 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); in spi_ppc4xx_setupxfer() 205 mutex_unlock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer() 358 bbp = &hw->bitbang; in spi_ppc4xx_of_probe() 470 spi_bitbang_stop(&hw->bitbang); in spi_ppc4xx_of_remove()
|
H A D | spi-xilinx.c | 81 struct spi_bitbang bitbang; member 437 xspi->bitbang.master = master; in xilinx_spi_probe() 438 xspi->bitbang.chipselect = xilinx_spi_chipselect; in xilinx_spi_probe() 439 xspi->bitbang.setup_transfer = xilinx_spi_setup_transfer; in xilinx_spi_probe() 440 xspi->bitbang.txrx_bufs = xilinx_spi_txrx_bufs; in xilinx_spi_probe() 489 ret = spi_bitbang_start(&xspi->bitbang); in xilinx_spi_probe() 512 spi_bitbang_stop(&xspi->bitbang); in xilinx_spi_remove() 519 spi_master_put(xspi->bitbang.master); in xilinx_spi_remove()
|
H A D | spi-davinci.c | 105 struct spi_bitbang bitbang; member 462 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_check_error() 745 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_request_dma() 916 dspi->bitbang.master = host; in davinci_spi_probe() 937 dspi->bitbang.chipselect = davinci_spi_chipselect; in davinci_spi_probe() 938 dspi->bitbang.setup_transfer = davinci_spi_setup_transfer; in davinci_spi_probe() 942 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe() 944 dspi->bitbang.flags |= SPI_READY; in davinci_spi_probe() 946 dspi->bitbang.txrx_bufs = davinci_spi_bufs; in davinci_spi_probe() 981 ret = spi_bitbang_start(&dspi->bitbang); in davinci_spi_probe() [all …]
|
H A D | spi-gpio.c | 33 struct spi_bitbang bitbang; member 81 spi_gpio = container_of(bang, struct spi_gpio, bitbang); in spi_to_spi_gpio() 429 bb = &spi_gpio->bitbang; in spi_gpio_probe() 453 status = spi_bitbang_init(&spi_gpio->bitbang); in spi_gpio_probe()
|
H A D | spi-au1550.c | 41 struct spi_bitbang bitbang; member 803 hw->bitbang.master = hw->host; in au1550_spi_probe() 804 hw->bitbang.setup_transfer = au1550_spi_setupxfer; in au1550_spi_probe() 805 hw->bitbang.chipselect = au1550_spi_chipsel; in au1550_spi_probe() 806 hw->bitbang.txrx_bufs = au1550_spi_txrx_bufs; in au1550_spi_probe() 884 err = spi_bitbang_start(&hw->bitbang); in au1550_spi_probe() 933 spi_bitbang_stop(&hw->bitbang); in au1550_spi_remove()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/openocd/ |
H A D | openocd_git.bb | 55 PACKAGECONFIG[remote-bitbang] = "--enable-remote-bitbang,--disable-remote-bitbang" 56 PACKAGECONFIG ??= "sysfsgpio remote-bitbang"
|
/openbmc/qemu/hw/i2c/ |
H A D | arm_sbcon_i2c.c | 71 bitbang_i2c_set(&s->bitbang, BITBANG_I2C_SCL, (s->out & SCL) != 0); in arm_sbcon_i2c_write() 72 s->in = bitbang_i2c_set(&s->bitbang, BITBANG_I2C_SDA, (s->out & SDA) != 0); in arm_sbcon_i2c_write() 89 bitbang_i2c_init(&s->bitbang, bus); in arm_sbcon_i2c_init()
|
H A D | bitbang_i2c.c | 196 bitbang_i2c_interface bitbang; member 205 level = bitbang_i2c_set(&s->bitbang, irq, level); in bitbang_i2c_gpio_set() 219 bitbang_i2c_init(&s->bitbang, bus); in gpio_i2c_init()
|
H A D | ppc4xx_i2c.c | 318 bitbang_i2c_set(&i2c->bitbang, BITBANG_I2C_SCL, in ppc4xx_i2c_writeb() 320 i2c->directcntl |= bitbang_i2c_set(&i2c->bitbang, BITBANG_I2C_SDA, in ppc4xx_i2c_writeb() 354 bitbang_i2c_init(&s->bitbang, s->bus); in ppc4xx_i2c_init()
|
/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
H A D | network.txt | 27 fsl,cpm2-mdio-bitbang (reg is port C registers) 29 Properties for fsl,cpm2-mdio-bitbang: 35 compatible = "fsl,mpc8272ads-mdio-bitbang", 36 "fsl,mpc8272-mdio-bitbang", 37 "fsl,cpm2-mdio-bitbang";
|
/openbmc/qemu/include/hw/i2c/ |
H A D | arm_sbcon_i2c.h | 31 bitbang_i2c_interface bitbang; member
|
H A D | ppc4xx_i2c.h | 45 bitbang_i2c_interface bitbang; member
|
/openbmc/linux/drivers/net/ethernet/renesas/ |
H A D | sh_eth.c | 1181 if (bitbang->set_gate) in sh_mdio_ctrl() 1182 bitbang->set_gate(bitbang->addr); in sh_mdio_ctrl() 1184 pir = ioread32(bitbang->addr); in sh_mdio_ctrl() 1189 iowrite32(pir, bitbang->addr); in sh_mdio_ctrl() 1209 if (bitbang->set_gate) in sh_get_mdio() 1210 bitbang->set_gate(bitbang->addr); in sh_get_mdio() 1212 return (ioread32(bitbang->addr) & PIR_MDI) != 0; in sh_get_mdio() 3093 struct bb_info *bitbang; in sh_mdio_init() local 3101 if (!bitbang) in sh_mdio_init() 3106 bitbang->set_gate = pd->set_mdio_gate; in sh_mdio_init() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libftdi/ |
H A D | libftdi_1.5.bb | 3 including the popular bitbang mode."
|