这篇教程C++ spi_bitbang_stop函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中spi_bitbang_stop函数的典型用法代码示例。如果您正苦于以下问题:C++ spi_bitbang_stop函数的具体用法?C++ spi_bitbang_stop怎么用?C++ spi_bitbang_stop使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了spi_bitbang_stop函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: butterfly_detachstatic void butterfly_detach(struct parport *p){ struct butterfly *pp; int status; /* FIXME this global is ugly ... but, how to quickly get from * the parport to the "struct butterfly" associated with it? * "old school" driver-internal device lists? */ if (!butterfly || butterfly->port != p) return; pp = butterfly; butterfly = NULL; /* stop() unregisters child devices too */ status = spi_bitbang_stop(&pp->bitbang); /* turn off VCC */ parport_write_data(pp->port, 0); msleep(10); parport_release(pp->pd); parport_unregister_device(pp->pd); (void) spi_master_put(pp->bitbang.master);}
开发者ID:303750856,项目名称:linux-3.1,代码行数:26,
示例2: spi_imx_removestatic int __devexit spi_imx_remove(struct platform_device *pdev){ struct spi_master *master = platform_get_drvdata(pdev); struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); struct spi_imx_data *spi_imx = spi_master_get_devdata(master); int i; spi_bitbang_stop(&spi_imx->bitbang); writel(0, spi_imx->base + MXC_CSPICTRL); clk_disable(spi_imx->clk); clk_put(spi_imx->clk); free_irq(spi_imx->irq, spi_imx); iounmap(spi_imx->base); for (i = 0; i < master->num_chipselect; i++) if (spi_imx->chipselect[i] >= 0) gpio_free(spi_imx->chipselect[i]); spi_master_put(master); release_mem_region(res->start, resource_size(res)); platform_set_drvdata(pdev, NULL); return 0;}
开发者ID:0xroot,项目名称:Blackphone-BP1-Kernel,代码行数:27,
示例3: davinci_spi_remove/** * davinci_spi_remove - remove function for SPI Master Controller * @dev: platform_device structure which contains plateform specific data * * This function will do the reverse action of davinci_spi_probe function * It will free the IRQ and SPI controller's memory region. * It will also call spi_bitbang_stop to destroy the work queue which was * created by spi_bitbang_start. */static int __devexit davinci_spi_remove(struct device *d){ struct platform_device *dev = container_of(d, struct platform_device, dev); struct davinci_spi *davinci_spi; struct spi_master *master; struct davinci_spi_platform_data *pdata = dev->dev.platform_data; master = dev_get_drvdata(&(dev)->dev); davinci_spi = spi_master_get_devdata(master); spi_bitbang_stop(&davinci_spi->bitbang); kfree(davinci_spi->dma_channels); clk_disable(pdata->clk_info); clk_put(pdata->clk_info); pdata->clk_info = NULL; spi_master_put(master); kfree(davinci_spi->tmp_buf); free_irq(davinci_spi->irq, davinci_spi); iounmap(davinci_spi->base); release_mem_region(davinci_spi->pbase, davinci_spi->region_size); return 0;}
开发者ID:mrtos,项目名称:Logitech-Revue,代码行数:34,
示例4: s3c2410_spigpio_removestatic int s3c2410_spigpio_remove(struct platform_device *dev){ struct s3c2410_spigpio *sp = platform_get_drvdata(dev); spi_bitbang_stop(&sp->bitbang); spi_master_put(sp->bitbang.master); return 0;}
开发者ID:FatSunHYS,项目名称:OSCourseDesign,代码行数:9,
示例5: s3c24xx_spi_removestatic int s3c24xx_spi_remove(struct platform_device *dev){ struct s3c24xx_spi *hw = platform_get_drvdata(dev); spi_bitbang_stop(&hw->bitbang); clk_disable(hw->clk); spi_master_put(hw->master); return 0;}
开发者ID:IDM350,项目名称:linux,代码行数:9,
示例6: dspi_removestatic int dspi_remove(struct platform_device *pdev){ struct fsl_dspi *dspi = platform_get_drvdata(pdev); /* Disconnect from the SPI framework */ spi_bitbang_stop(&dspi->bitbang); spi_master_put(dspi->bitbang.master); return 0;}
开发者ID:AeroGirl,项目名称:VAR-SOM-AM33-SDK7-Kernel,代码行数:10,
示例7: ath79_spi_removestatic int ath79_spi_remove(struct platform_device *pdev){ struct ath79_spi *sp = platform_get_drvdata(pdev); spi_bitbang_stop(&sp->bitbang); ath79_spi_disable(sp); clk_disable(sp->clk); spi_master_put(sp->bitbang.master); return 0;}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:11,
示例8: ar71xx_spi_removestatic int ar71xx_spi_remove(struct platform_device *pdev){ struct ar71xx_spi *sp = platform_get_drvdata(pdev); spi_bitbang_stop(&sp->bitbang); iounmap(sp->base); platform_set_drvdata(pdev, NULL); spi_master_put(sp->bitbang.master); return 0;}
开发者ID:Cribstone,项目名称:linino,代码行数:11,
示例9: __ath79_spi_removestatic void __ath79_spi_remove(struct platform_device *pdev){ struct ath79_spi *sp = platform_get_drvdata(pdev); spi_bitbang_stop(&sp->bitbang); ath79_spi_disable(sp); clk_disable(sp->clk); clk_put(sp->clk); iounmap(sp->base); platform_set_drvdata(pdev, NULL); spi_master_put(sp->bitbang.master);}
开发者ID:robacklin,项目名称:uclinux-linux,代码行数:12,
示例10: tiny_spi_removestatic int tiny_spi_remove(struct platform_device *pdev){ struct tiny_spi *hw = platform_get_drvdata(pdev); struct spi_master *master = hw->bitbang.master; unsigned int i; spi_bitbang_stop(&hw->bitbang); for (i = 0; i < hw->gpio_cs_count; i++) gpio_free(hw->gpio_cs[i]); spi_master_put(master); return 0;}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:12,
示例11: dspi_removestatic int dspi_remove(struct platform_device *pdev){ struct spi_master *master = platform_get_drvdata(pdev); struct fsl_dspi *dspi = spi_master_get_devdata(master); /* Disconnect from the SPI framework */ spi_bitbang_stop(&dspi->bitbang); clk_disable_unprepare(dspi->clk); spi_master_put(dspi->bitbang.master); return 0;}
开发者ID:Felixneu,项目名称:Power-Management,代码行数:12,
示例12: xilinx_spi_deinitvoid xilinx_spi_deinit(struct spi_master *master){ struct xilinx_spi *xspi; xspi = spi_master_get_devdata(master); spi_bitbang_stop(&xspi->bitbang); free_irq(xspi->irq, xspi); iounmap(xspi->regs); release_mem_region(xspi->mem.start, resource_size(&xspi->mem)); spi_master_put(xspi->bitbang.master);}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:13,
示例13: spi_gpio_removestatic int spi_gpio_remove(struct platform_device *pdev){ struct spi_gpio *sp; struct spi_gpio_platform_data *pdata; pdata = pdev->dev.platform_data; sp = platform_get_drvdata(pdev); spi_bitbang_stop(&sp->bitbang); spi_master_put(sp->bitbang.master); return 0;}
开发者ID:janfj,项目名称:dd-wrt,代码行数:13,
示例14: spi_imx_removestatic int spi_imx_remove(struct vmm_device *dev){ struct spi_master *master = vmm_devdrv_get_data(dev); struct spi_imx_data *spi_imx = spi_master_get_devdata(master); spi_bitbang_stop(&spi_imx->bitbang); writel(0, spi_imx->base + MXC_CSPICTRL); clk_disable_unprepare(spi_imx->clk_ipg); clk_disable_unprepare(spi_imx->clk_per); spi_master_put(master); return 0;}
开发者ID:IRT-SystemX,项目名称:xvisor-next,代码行数:14,
示例15: spi_removestatic int spi_remove(struct platform_device *pdev){ struct ssc_pio_t *pio_info = (struct ssc_pio_t *)pdev->dev.platform_data; struct spi_stm_gpio *sp = platform_get_drvdata(pdev); dgb_print("/n"); spi_bitbang_stop(&sp->bitbang); spi_master_put(sp->bitbang.master); stpio_free_pin(pio_info->clk); stpio_free_pin(pio_info->sdout); stpio_free_pin(pio_info->sdin); return 0;}
开发者ID:amalrajt,项目名称:linux-sh4-2.6.23.17_stm23_A18B,代码行数:14,
示例16: spi_imx_removestatic int spi_imx_remove(struct platform_device *pdev){ struct spi_master *master = platform_get_drvdata(pdev); struct spi_imx_data *spi_imx = spi_master_get_devdata(master); spi_bitbang_stop(&spi_imx->bitbang); writel(0, spi_imx->base + MXC_CSPICTRL); clk_unprepare(spi_imx->clk_ipg); clk_unprepare(spi_imx->clk_per); spi_master_put(master); return 0;}
开发者ID:BozkurTR,项目名称:kernel,代码行数:14,
示例17: mpc83xx_spi_removestatic int __exit mpc83xx_spi_remove(struct platform_device *dev){ struct mpc83xx_spi *mpc83xx_spi; struct spi_master *master; master = platform_get_drvdata(dev); mpc83xx_spi = spi_master_get_devdata(master); spi_bitbang_stop(&mpc83xx_spi->bitbang); free_irq(mpc83xx_spi->irq, mpc83xx_spi); iounmap(mpc83xx_spi->base); spi_master_put(mpc83xx_spi->bitbang.master); return 0;}
开发者ID:mobilipia,项目名称:iods,代码行数:15,
示例18: xilinx_spi_removestatic int __devexit xilinx_spi_remove(struct of_device *ofdev){ struct xilinx_spi *xspi; struct spi_master *master; master = platform_get_drvdata(ofdev); xspi = spi_master_get_devdata(master); spi_bitbang_stop(&xspi->bitbang); free_irq(xspi->irq, xspi); iounmap(xspi->regs); dev_set_drvdata(&ofdev->dev, 0); spi_master_put(xspi->bitbang.master); return 0;}
开发者ID:458941968,项目名称:mini2440-kernel-2.6.29,代码行数:16,
示例19: efm32_spi_removestatic int efm32_spi_remove(struct platform_device *pdev){ struct spi_master *master = platform_get_drvdata(pdev); struct efm32_spi_ddata *ddata = spi_master_get_devdata(master); spi_bitbang_stop(&ddata->bitbang); efm32_spi_write32(ddata, 0, REG_IEN); free_irq(ddata->txirq, ddata); free_irq(ddata->rxirq, ddata); clk_disable_unprepare(ddata->clk); spi_master_put(master); return 0;}
开发者ID:020gzh,项目名称:linux,代码行数:16,
示例20: spi_gpio_removestatic int __devexit spi_gpio_remove(struct platform_device *pdev){ struct spi_gpio *sp; struct spi_gpio_platform_data *pdata; pdata = pdev->dev.platform_data; sp = platform_get_drvdata(pdev); gpio_free(pdata->pin_clk); gpio_free(pdata->pin_mosi); gpio_free(pdata->pin_miso); gpio_free(pdata->pin_cs); spi_bitbang_stop(&sp->bitbang); spi_master_put(sp->bitbang.master); return 0;}
开发者ID:darcyg,项目名称:ap_project_v2,代码行数:17,
示例21: xilinx_spi_removestatic int xilinx_spi_remove(struct platform_device *pdev){ struct spi_master *master = platform_get_drvdata(pdev); struct xilinx_spi *xspi = spi_master_get_devdata(master); void __iomem *regs_base = xspi->regs; spi_bitbang_stop(&xspi->bitbang); /* Disable all the interrupts just in case */ xspi->write_fn(0, regs_base + XIPIF_V123B_IIER_OFFSET); /* Disable the global IPIF interrupt */ xspi->write_fn(0, regs_base + XIPIF_V123B_DGIER_OFFSET); spi_master_put(xspi->bitbang.master); return 0;}
开发者ID:val2k,项目名称:linux,代码行数:17,
示例22: spi_sirfsoc_removestatic int spi_sirfsoc_remove(struct platform_device *pdev){ struct spi_master *master; struct sirfsoc_spi *sspi; int i; master = platform_get_drvdata(pdev); sspi = spi_master_get_devdata(master); spi_bitbang_stop(&sspi->bitbang); for (i = 0; i < master->num_chipselect; i++) { if (sspi->chipselect[i] > 0) gpio_free(sspi->chipselect[i]); } clk_disable_unprepare(sspi->clk); clk_put(sspi->clk); spi_master_put(master); return 0;}
开发者ID:Cool-Joe,项目名称:imx23-audio,代码行数:19,
示例23: xilinx_spi_removestatic int __devexit xilinx_spi_remove(struct of_device *ofdev){ struct xilinx_spi *xspi; struct spi_master *master; struct resource r_mem; master = platform_get_drvdata(ofdev); xspi = spi_master_get_devdata(master); spi_bitbang_stop(&xspi->bitbang); free_irq(xspi->irq, xspi); iounmap(xspi->regs); if (!of_address_to_resource(ofdev->node, 0, &r_mem)) release_mem_region(r_mem.start, resource_size(&r_mem)); dev_set_drvdata(&ofdev->dev, 0); spi_master_put(xspi->bitbang.master); return 0;}
开发者ID:friackazoid,项目名称:linux-2.6,代码行数:19,
示例24: nuc900_spi_removestatic int nuc900_spi_remove(struct platform_device *dev){ struct nuc900_spi *hw = platform_get_drvdata(dev); free_irq(hw->irq, hw); spi_bitbang_stop(&hw->bitbang); clk_disable(hw->clk); clk_put(hw->clk); iounmap(hw->regs); release_mem_region(hw->res->start, resource_size(hw->res)); kfree(hw->ioarea); spi_master_put(hw->master); return 0;}
开发者ID:AeroGirl,项目名称:VAR-SOM-AM33-SDK7-Kernel,代码行数:19,
示例25: davinci_spi_remove/** * davinci_spi_remove - remove function for SPI Master Controller * @pdev: platform_device structure which contains plateform specific data * * This function will do the reverse action of davinci_spi_probe function * It will free the IRQ and SPI controller's memory region. * It will also call spi_bitbang_stop to destroy the work queue which was * created by spi_bitbang_start. */static int __exit davinci_spi_remove(struct platform_device *pdev){ struct davinci_spi *davinci_spi; struct spi_master *master; master = dev_get_drvdata(&pdev->dev); davinci_spi = spi_master_get_devdata(master); spi_bitbang_stop(&davinci_spi->bitbang); clk_disable(davinci_spi->clk); clk_put(davinci_spi->clk); spi_master_put(master); kfree(davinci_spi->tmp_buf); free_irq(davinci_spi->irq, davinci_spi); iounmap(davinci_spi->base); release_mem_region(davinci_spi->pbase, davinci_spi->region_size); return 0;}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:29,
示例26: spi_lm70llp_detachstatic void spi_lm70llp_detach(struct parport *p){ struct spi_lm70llp *pp; if (!lm70llp || lm70llp->port != p) return; pp = lm70llp; spi_bitbang_stop(&pp->bitbang); parport_write_data(pp->port, 0); parport_release(pp->pd); parport_unregister_device(pp->pd); (void) spi_master_put(pp->bitbang.master); lm70llp = NULL;}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:20,
示例27: s3c24xx_spi_removestatic int s3c24xx_spi_remove(struct platform_device *dev){ struct s3c24xx_spi *hw = platform_get_drvdata(dev); spi_bitbang_stop(&hw->bitbang); clk_disable(hw->clk); clk_put(hw->clk); free_irq(hw->irq, hw); iounmap(hw->regs); if (hw->set_cs == s3c24xx_spi_gpiocs) gpio_free(hw->pdata->pin_cs); release_resource(hw->ioarea); kfree(hw->ioarea); spi_master_put(hw->master); return 0;}
开发者ID:AnadoluPanteri,项目名称:kernel-plus-harmattan,代码行数:21,
注:本文中的spi_bitbang_stop函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ spi_enable函数代码示例 C++ spi_acquire函数代码示例 |