• Home
  • Raw
  • Download

Lines Matching refs:drvdata

136 static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata)  in apq8016_lpass_alloc_dma_channel()  argument
138 struct lpass_variant *v = drvdata->variant; in apq8016_lpass_alloc_dma_channel()
139 int chan = find_first_zero_bit(&drvdata->rdma_ch_bit_map, in apq8016_lpass_alloc_dma_channel()
145 set_bit(chan, &drvdata->rdma_ch_bit_map); in apq8016_lpass_alloc_dma_channel()
150 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) in apq8016_lpass_free_dma_channel() argument
152 clear_bit(chan, &drvdata->rdma_ch_bit_map); in apq8016_lpass_free_dma_channel()
159 struct lpass_data *drvdata = platform_get_drvdata(pdev); in apq8016_lpass_init() local
163 drvdata->pcnoc_mport_clk = devm_clk_get(dev, "pcnoc-mport-clk"); in apq8016_lpass_init()
164 if (IS_ERR(drvdata->pcnoc_mport_clk)) { in apq8016_lpass_init()
166 __func__, PTR_ERR(drvdata->pcnoc_mport_clk)); in apq8016_lpass_init()
167 return PTR_ERR(drvdata->pcnoc_mport_clk); in apq8016_lpass_init()
170 ret = clk_prepare_enable(drvdata->pcnoc_mport_clk); in apq8016_lpass_init()
177 drvdata->pcnoc_sway_clk = devm_clk_get(dev, "pcnoc-sway-clk"); in apq8016_lpass_init()
178 if (IS_ERR(drvdata->pcnoc_sway_clk)) { in apq8016_lpass_init()
180 __func__, PTR_ERR(drvdata->pcnoc_sway_clk)); in apq8016_lpass_init()
181 return PTR_ERR(drvdata->pcnoc_sway_clk); in apq8016_lpass_init()
184 ret = clk_prepare_enable(drvdata->pcnoc_sway_clk); in apq8016_lpass_init()
196 struct lpass_data *drvdata = platform_get_drvdata(pdev); in apq8016_lpass_exit() local
198 clk_disable_unprepare(drvdata->pcnoc_mport_clk); in apq8016_lpass_exit()
199 clk_disable_unprepare(drvdata->pcnoc_sway_clk); in apq8016_lpass_exit()