Home
last modified time | relevance | path

Searched refs:bitbang (Results 1 – 25 of 43) sorted by relevance

12

/linux/drivers/net/ethernet/freescale/fs_enet/
A Dmii-bitbang.c63 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 …]
A DMakefile13 obj-$(CONFIG_FS_ENET_MDIO_FCC) += mii-bitbang.o
/linux/drivers/net/mdio/
A Dmdio-gpio.c40 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 …]
A Dbuilt-in.a7 mdio-bitbang.o/
A D.built-in.a.cmd1 …t/mdio/of_mdio.o drivers/net/mdio/mdio-bcm-iproc.o drivers/net/mdio/mdio-bitbang.o drivers/net/mdi…
A DMakefile11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
/linux/drivers/spi/
A Dspi-bitbang.c186 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 …]
A Dspi-sh-sci.c25 struct spi_bitbang bitbang; member
139 sp->bitbang.master = master; 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_master_put(sp->bitbang.master); in sh_sci_spi_probe()
178 spi_bitbang_stop(&sp->bitbang); in sh_sci_spi_remove()
[all …]
A Dspi-lm70llp.c71 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()
A Dspi-ath79.c40 struct spi_bitbang bitbang; member
158 sp->bitbang.master = master; in ath79_spi_probe()
159 sp->bitbang.chipselect = ath79_spi_chipselect; in ath79_spi_probe()
160 sp->bitbang.txrx_word[SPI_MODE_0] = ath79_spi_txrx_mode0; in ath79_spi_probe()
161 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe()
190 ret = spi_bitbang_start(&sp->bitbang); in ath79_spi_probe()
201 spi_master_put(sp->bitbang.master); in ath79_spi_probe()
210 spi_bitbang_stop(&sp->bitbang); in ath79_spi_remove()
213 spi_master_put(sp->bitbang.master); in ath79_spi_remove()
A Dspi-butterfly.c51 struct spi_bitbang bitbang; member
208 pp->bitbang.master = master; 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()
283 spi_master_put(pp->bitbang.master); in butterfly_attach()
302 spi_bitbang_stop(&pp->bitbang); in butterfly_detach()
311 spi_master_put(pp->bitbang.master); in butterfly_detach()
A Dspi-xtensa-xtfpga.c25 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()
113 ret = spi_bitbang_start(&xspi->bitbang); in xtfpga_spi_probe()
131 spi_bitbang_stop(&xspi->bitbang); in xtfpga_spi_remove()
A Dspi-s3c24xx.c52 struct spi_bitbang bitbang; member
196 mutex_lock(&hw->bitbang.lock); in s3c24xx_spi_setup()
197 if (!hw->bitbang.busy) { in s3c24xx_spi_setup()
198 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); in s3c24xx_spi_setup()
201 mutex_unlock(&hw->bitbang.lock); in s3c24xx_spi_setup()
508 hw->bitbang.master = hw->master; in s3c24xx_spi_probe()
510 hw->bitbang.chipselect = s3c24xx_spi_chipsel; in s3c24xx_spi_probe()
511 hw->bitbang.txrx_bufs = s3c24xx_spi_txrx; in s3c24xx_spi_probe()
515 dev_dbg(hw->dev, "bitbang at %p\n", &hw->bitbang); in s3c24xx_spi_probe()
569 err = spi_bitbang_start(&hw->bitbang); in s3c24xx_spi_probe()
[all …]
A Dspi-oc-tiny.c38 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()
A Dspi-omap-uwire.c92 struct spi_bitbang bitbang; member
454 spi_master_put(uwire->bitbang.master); in uwire_off()
504 uwire->bitbang.master = master; in uwire_probe()
505 uwire->bitbang.chipselect = uwire_chipselect; in uwire_probe()
506 uwire->bitbang.setup_transfer = uwire_setup_transfer; in uwire_probe()
507 uwire->bitbang.txrx_bufs = uwire_txrx; in uwire_probe()
509 status = spi_bitbang_start(&uwire->bitbang); in uwire_probe()
522 spi_bitbang_stop(&uwire->bitbang); in uwire_remove()
A Dspi-ppc4xx.c112 struct spi_bitbang bitbang; member
206 mutex_lock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer()
207 if (!hw->bitbang.busy) { in spi_ppc4xx_setupxfer()
208 hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); in spi_ppc4xx_setupxfer()
211 mutex_unlock(&hw->bitbang.lock); in spi_ppc4xx_setupxfer()
364 bbp = &hw->bitbang; in spi_ppc4xx_of_probe()
472 spi_bitbang_stop(&hw->bitbang); in spi_ppc4xx_of_remove()
A Dspi-xilinx.c81 struct spi_bitbang bitbang; member
434 xspi->bitbang.master = master; in xilinx_spi_probe()
435 xspi->bitbang.chipselect = xilinx_spi_chipselect; in xilinx_spi_probe()
436 xspi->bitbang.setup_transfer = xilinx_spi_setup_transfer; in xilinx_spi_probe()
437 xspi->bitbang.txrx_bufs = xilinx_spi_txrx_bufs; in xilinx_spi_probe()
488 ret = spi_bitbang_start(&xspi->bitbang); in xilinx_spi_probe()
516 spi_bitbang_stop(&xspi->bitbang); in xilinx_spi_remove()
523 spi_master_put(xspi->bitbang.master); in xilinx_spi_remove()
A Dspi-davinci.c106 struct spi_bitbang bitbang; member
463 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_check_error()
746 struct device *sdev = dspi->bitbang.master->dev.parent; in davinci_spi_request_dma()
926 dspi->bitbang.master = master; in davinci_spi_probe()
947 dspi->bitbang.chipselect = davinci_spi_chipselect; in davinci_spi_probe()
948 dspi->bitbang.setup_transfer = davinci_spi_setup_transfer; in davinci_spi_probe()
952 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
954 dspi->bitbang.flags |= SPI_READY; in davinci_spi_probe()
956 dspi->bitbang.txrx_bufs = davinci_spi_bufs; in davinci_spi_probe()
991 ret = spi_bitbang_start(&dspi->bitbang); in davinci_spi_probe()
[all …]
A Dspi-imx.c89 struct spi_bitbang bitbang; member
1267 struct spi_master *master = spi_imx->bitbang.master; in spi_imx_sdma_exit()
1352 struct spi_master *master = spi_imx->bitbang.master; in spi_imx_dma_transfer()
1628 spi_imx->bitbang.master = master; in spi_imx_probe()
1645 spi_imx->bitbang.setup_transfer = spi_imx_setupxfer; in spi_imx_probe()
1646 spi_imx->bitbang.txrx_bufs = spi_imx_transfer; in spi_imx_probe()
1647 spi_imx->bitbang.master->setup = spi_imx_setup; in spi_imx_probe()
1648 spi_imx->bitbang.master->cleanup = spi_imx_cleanup; in spi_imx_probe()
1665 spi_imx->bitbang.master->mode_bits |= SPI_CS_WORD; in spi_imx_probe()
1738 ret = spi_bitbang_start(&spi_imx->bitbang); in spi_imx_probe()
[all …]
A Dspi-gpio.c34 struct spi_bitbang bitbang; member
82 spi_gpio = container_of(bang, struct spi_gpio, bitbang); in spi_to_spi_gpio()
396 bb = &spi_gpio->bitbang; in spi_gpio_probe()
420 status = spi_bitbang_init(&spi_gpio->bitbang); in spi_gpio_probe()
A Dspi-au1550.c41 struct spi_bitbang bitbang; member
803 hw->bitbang.master = hw->master; 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()
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
A Dnetwork.txt27 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";
/linux/arch/powerpc/boot/dts/
A Dpq2fads.dts197 compatible = "fsl,pq2fads-mdio-bitbang",
198 "fsl,mpc8280-mdio-bitbang",
199 "fsl,cpm2-mdio-bitbang";
A Dmpc8272ads.dts181 compatible = "fsl,mpc8272ads-mdio-bitbang",
182 "fsl,mpc8272-mdio-bitbang",
183 "fsl,cpm2-mdio-bitbang";
/linux/drivers/net/ethernet/renesas/
A Dsh_eth.c1183 if (bitbang->set_gate) in sh_mdio_ctrl()
1184 bitbang->set_gate(bitbang->addr); in sh_mdio_ctrl()
1186 pir = ioread32(bitbang->addr); in sh_mdio_ctrl()
1191 iowrite32(pir, bitbang->addr); in sh_mdio_ctrl()
1211 if (bitbang->set_gate) in sh_get_mdio()
1212 bitbang->set_gate(bitbang->addr); in sh_get_mdio()
1214 return (ioread32(bitbang->addr) & PIR_MDI) != 0; in sh_get_mdio()
3074 struct bb_info *bitbang; in sh_mdio_init() local
3080 if (!bitbang) in sh_mdio_init()
3085 bitbang->set_gate = pd->set_mdio_gate; in sh_mdio_init()
[all …]

Completed in 54 milliseconds

12