/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | goku_udc.h | 206 struct goku_udc *dev; member 264 #define xprintk(dev,level,fmt,args...) \ argument 266 pci_name(dev->pdev) , ## args) 269 #define DBG(dev,fmt,args...) \ argument 272 #define DBG(dev,fmt,args...) \ argument 279 #define VDBG(dev,fmt,args...) \ argument 283 #define ERROR(dev,fmt,args...) \ argument 284 xprintk(dev , KERN_ERR , fmt , ## args) 285 #define WARNING(dev,fmt,args...) \ argument 287 #define INFO(dev,fmt,args...) \ argument [all …]
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-sst-dsp.h | 158 int (*alloc_dma_buf)(struct device *dev, 160 int (*free_dma_buf)(struct device *dev, 162 int (*prepare)(struct device *dev, unsigned int format, 165 int (*trigger)(struct device *dev, bool start, int stream_tag); 167 int (*cleanup)(struct device *dev, struct snd_dma_buffer *dmab, 201 struct sst_dsp *skl_dsp_ctx_init(struct device *dev, 231 int skl_sst_init_fw(struct device *dev, struct skl_dev *skl); 232 int bxt_sst_init_fw(struct device *dev, struct skl_dev *skl); 233 void skl_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); 234 void bxt_sst_dsp_cleanup(struct device *dev, struct skl_dev *skl); [all …]
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | omap2430.c | 148 static int omap2430_musb_ofdata_to_platdata(struct udevice *dev) in omap2430_musb_ofdata_to_platdata() argument 150 struct omap2430_musb_platdata *platdata = dev_get_platdata(dev); in omap2430_musb_ofdata_to_platdata() 152 int node = dev_of_offset(dev); in omap2430_musb_ofdata_to_platdata() 154 platdata->base = (void *)dev_read_addr_ptr(dev); in omap2430_musb_ofdata_to_platdata() 207 platdata->otg_board_data.dev = dev; in omap2430_musb_ofdata_to_platdata() 214 static int omap2430_musb_probe(struct udevice *dev) in omap2430_musb_probe() argument 217 struct musb_host_data *host = dev_get_priv(dev); in omap2430_musb_probe() 220 struct usb_bus_priv *priv = dev_get_uclass_priv(dev); in omap2430_musb_probe() 223 void *base = dev_read_addr_ptr(dev); in omap2430_musb_probe() 246 static int omap2430_musb_remove(struct udevice *dev) in omap2430_musb_remove() argument [all …]
|
/openbmc/u-boot/drivers/misc/imx8/ |
H A D | scu.c | 161 struct imx8_scu *plat = dev_get_platdata(dev); in imx8_scu_call() 183 static int imx8_scu_probe(struct udevice *dev) in imx8_scu_probe() argument 185 struct imx8_scu *plat = dev_get_platdata(dev); in imx8_scu_probe() 188 debug("%s(dev=%p) (plat=%p)\n", __func__, dev, plat); in imx8_scu_probe() 190 addr = devfdt_get_addr(dev); in imx8_scu_probe() 203 gd->arch.scu_dev = dev; in imx8_scu_probe() 211 static int imx8_scu_remove(struct udevice *dev) in imx8_scu_remove() argument 216 static int imx8_scu_bind(struct udevice *dev) in imx8_scu_bind() argument 218 struct imx8_scu *plat = dev_get_platdata(dev); in imx8_scu_bind() 223 debug("%s(dev=%p)\n", __func__, dev); in imx8_scu_bind() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-digicolor.c | 91 static int dc_rtc_read_time(struct device *dev, struct rtc_time *tm) in dc_rtc_read_time() argument 93 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_read_time() 105 static int dc_rtc_set_time(struct device *dev, struct rtc_time *tm) in dc_rtc_set_time() argument 107 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_set_time() 112 static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in dc_rtc_read_alarm() argument 114 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_read_alarm() 133 static int dc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in dc_rtc_set_alarm() argument 135 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_set_alarm() 151 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_alarm_irq_enable() 181 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); in dc_rtc_probe() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | intel_quark_i2c_gpio.c | 161 static int intel_quark_register_i2c_clk(struct device *dev) in intel_quark_register_i2c_clk() argument 163 struct intel_quark_mfd *quark_mfd = dev_get_drvdata(dev); in intel_quark_register_i2c_clk() 166 i2c_clk = clk_register_fixed_rate(dev, in intel_quark_register_i2c_clk() 178 dev_err(dev, "Fixed clk register failed\n"); in intel_quark_register_i2c_clk() 187 struct intel_quark_mfd *quark_mfd = dev_get_drvdata(dev); in intel_quark_unregister_i2c_clk() 252 dev_set_drvdata(&pdev->dev, quark_mfd); in intel_quark_mfd_probe() 254 ret = intel_quark_register_i2c_clk(&pdev->dev); in intel_quark_mfd_probe() 273 ret = mfd_add_devices(&pdev->dev, 0, intel_quark_mfd_cells, in intel_quark_mfd_probe() 286 intel_quark_unregister_i2c_clk(&pdev->dev); in intel_quark_mfd_probe() 292 mfd_remove_devices(&pdev->dev); in intel_quark_mfd_remove() [all …]
|
H A D | wl1273-core.c | 29 dev_err(&client->dev, "%s: Read: %d fails.\n", __func__, reg); in wl1273_fm_read_reg() 46 dev_err(&client->dev, "%s: Cmd: %d fails.\n", __func__, cmd); in wl1273_fm_write_cmd() 66 dev_err(&client->dev, "%s: write error.\n", __func__); in wl1273_fm_write_data() 167 dev_dbg(&client->dev, "%s\n", __func__); in wl1273_core_probe() 170 dev_err(&client->dev, "No platform data.\n"); in wl1273_core_probe() 179 core = devm_kzalloc(&client->dev, sizeof(*core), GFP_KERNEL); in wl1273_core_probe() 189 dev_dbg(&client->dev, "%s: Have V4L2.\n", __func__); in wl1273_core_probe() 206 dev_dbg(&client->dev, "%s: Have codec.\n", __func__); in wl1273_core_probe() 213 dev_dbg(&client->dev, "%s: number of children: %d.\n", in wl1273_core_probe() 216 r = devm_mfd_add_devices(&client->dev, -1, core->cells, in wl1273_core_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_handlers.c | 46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb() 83 skb->dev = ep->egress_dev; in __rmnet_map_ingress_handler() 114 if (skb->dev->type == ARPHRD_ETHER) { in rmnet_map_ingress_handler() 189 skb->dev = bridge_dev; in rmnet_bridge_handler() 204 struct net_device *dev; in rmnet_rx_handler() local 217 dev = skb->dev; in rmnet_rx_handler() 218 port = rmnet_get_port_rcu(dev); in rmnet_rx_handler() 220 dev_core_stats_rx_nohandler_inc(skb->dev); in rmnet_rx_handler() 252 orig_dev = skb->dev; in rmnet_egress_handler() 254 skb->dev = priv->real_dev; in rmnet_egress_handler() [all …]
|
/openbmc/linux/drivers/clk/microchip/ |
H A D | clk-pic32mzda.c | 153 struct device_node *np = pdev->dev.of_node; in pic32mzda_clk_probe() 160 cd = devm_kzalloc(&pdev->dev, sizeof(*cd), GFP_KERNEL); in pic32mzda_clk_probe() 167 dev_err(&pdev->dev, "pic32-clk: failed to map registers\n"); in pic32mzda_clk_probe() 172 core->dev = &pdev->dev; in pic32mzda_clk_probe() 176 clks[POSCCLK] = clk_register_fixed_rate(&pdev->dev, "posc_clk", NULL, in pic32mzda_clk_probe() 178 clks[FRCCLK] = clk_register_fixed_rate(&pdev->dev, "frc_clk", NULL, in pic32mzda_clk_probe() 180 clks[BFRCCLK] = clk_register_fixed_rate(&pdev->dev, "bfrc_clk", NULL, in pic32mzda_clk_probe() 182 clks[LPRCCLK] = clk_register_fixed_rate(&pdev->dev, "lprc_clk", NULL, in pic32mzda_clk_probe() 192 clks[FRCDIVCLK] = clk_register_divider(&pdev->dev, "frcdiv_clk", in pic32mzda_clk_probe() 200 pll_mux_clk = clk_register_mux(&pdev->dev, "spll_mux_clk", in pic32mzda_clk_probe() [all …]
|
/openbmc/linux/sound/soc/ti/ |
H A D | davinci-evm.c | 116 struct device_node *np = card->dev->of_node; in evm_aic3x_init() 177 struct device_node *np = pdev->dev.of_node; in davinci_evm_probe() 186 dev_err(&pdev->dev, "Error: No device match found\n"); in davinci_evm_probe() 204 evm_soc_card.dev = &pdev->dev; in davinci_evm_probe() 209 mclk = devm_clk_get(&pdev->dev, "mclk"); in davinci_evm_probe() 213 dev_dbg(&pdev->dev, "mclk not found.\n"); in davinci_evm_probe() 217 drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); in davinci_evm_probe() 227 dev_err(&pdev->dev, in davinci_evm_probe() 237 dev_warn(&pdev->dev, in davinci_evm_probe() 243 ret = devm_snd_soc_register_card(&pdev->dev, &evm_soc_card); in davinci_evm_probe() [all …]
|
/openbmc/linux/drivers/crypto/intel/qat/qat_c62x/ |
H A D | adf_drv.c | 29 static void adf_remove(struct pci_dev *dev); 87 dev_err(&pdev->dev, "Invalid device 0x%x.\n", ent->device); in adf_probe() 91 if (num_possible_nodes() > 1 && dev_to_node(&pdev->dev) < 0) { in adf_probe() 95 dev_err(&pdev->dev, "Invalid NUMA configuration.\n"); in adf_probe() 100 dev_to_node(&pdev->dev)); in adf_probe() 119 dev_to_node(&pdev->dev)); in adf_probe() 140 dev_err(&pdev->dev, "No acceleration units found"); in adf_probe() 157 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); in adf_probe() 159 dev_err(&pdev->dev, "No usable DMA configuration\n"); in adf_probe() 183 dev_err(&pdev->dev, "Failed to map BAR %d\n", bar_nr); in adf_probe() [all …]
|
/openbmc/linux/drivers/crypto/intel/qat/qat_c3xxx/ |
H A D | adf_drv.c | 29 static void adf_remove(struct pci_dev *dev); 87 dev_err(&pdev->dev, "Invalid device 0x%x.\n", ent->device); in adf_probe() 91 if (num_possible_nodes() > 1 && dev_to_node(&pdev->dev) < 0) { in adf_probe() 95 dev_err(&pdev->dev, "Invalid NUMA configuration.\n"); in adf_probe() 100 dev_to_node(&pdev->dev)); in adf_probe() 119 dev_to_node(&pdev->dev)); in adf_probe() 140 dev_err(&pdev->dev, "No acceleration units found"); in adf_probe() 157 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); in adf_probe() 159 dev_err(&pdev->dev, "No usable DMA configuration\n"); in adf_probe() 183 dev_err(&pdev->dev, "Failed to map BAR %d\n", bar_nr); in adf_probe() [all …]
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_lpc18xx.c | 103 dev_err(&pdev->dev, "memory resource not found"); in lpc18xx_serial_probe() 109 uart.port.membase = devm_ioremap(&pdev->dev, res->start, in lpc18xx_serial_probe() 118 data->clk_uart = devm_clk_get(&pdev->dev, "uartclk"); in lpc18xx_serial_probe() 120 dev_err(&pdev->dev, "uart clock not found\n"); in lpc18xx_serial_probe() 124 data->clk_reg = devm_clk_get(&pdev->dev, "reg"); in lpc18xx_serial_probe() 126 dev_err(&pdev->dev, "reg clock not found\n"); in lpc18xx_serial_probe() 132 dev_err(&pdev->dev, "unable to enable reg clock\n"); in lpc18xx_serial_probe() 138 dev_err(&pdev->dev, "unable to enable uart clock\n"); in lpc18xx_serial_probe() 142 ret = of_alias_get_id(pdev->dev.of_node, "serial"); in lpc18xx_serial_probe() 150 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe() [all …]
|
/openbmc/linux/drivers/crypto/intel/qat/qat_dh895xcc/ |
H A D | adf_drv.c | 29 static void adf_remove(struct pci_dev *dev); 87 dev_err(&pdev->dev, "Invalid device 0x%x.\n", ent->device); in adf_probe() 91 if (num_possible_nodes() > 1 && dev_to_node(&pdev->dev) < 0) { in adf_probe() 95 dev_err(&pdev->dev, "Invalid NUMA configuration.\n"); in adf_probe() 100 dev_to_node(&pdev->dev)); in adf_probe() 119 dev_to_node(&pdev->dev)); in adf_probe() 138 dev_err(&pdev->dev, "No acceleration units found"); in adf_probe() 157 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); in adf_probe() 159 dev_err(&pdev->dev, "No usable DMA configuration\n"); in adf_probe() 183 dev_err(&pdev->dev, "Failed to map BAR %d\n", bar_nr); in adf_probe() [all …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-keembay.c | 40 struct device *dev; member 55 static int keembay_clk_enable(struct device *dev, struct clk *clk) in keembay_clk_enable() argument 63 return devm_add_action_or_reset(dev, keembay_clk_unprepare, clk); in keembay_clk_enable() 188 struct device *dev = &pdev->dev; in keembay_pwm_probe() local 192 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in keembay_pwm_probe() 196 priv->clk = devm_clk_get(dev, NULL); in keembay_pwm_probe() 198 return dev_err_probe(dev, PTR_ERR(priv->clk), "Failed to get clock\n"); in keembay_pwm_probe() 204 ret = keembay_clk_enable(dev, priv->clk); in keembay_pwm_probe() 208 priv->chip.dev = dev; in keembay_pwm_probe() 212 ret = devm_pwmchip_add(dev, &priv->chip); in keembay_pwm_probe() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | denali_dt.c | 92 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_dt_chip_init() 114 struct device *dev = &pdev->dev; in denali_dt_probe() local 121 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe() 126 data = of_device_get_match_data(dev); in denali_dt_probe() 135 denali->dev = dev; in denali_dt_probe() 148 dt->clk = devm_clk_get(dev, "nand"); in denali_dt_probe() 152 dt->clk_x = devm_clk_get(dev, "nand_x"); in denali_dt_probe() 156 dt->clk_ecc = devm_clk_get(dev, "ecc"); in denali_dt_probe() 160 dt->rst = devm_reset_control_get_optional_shared(dev, "nand"); in denali_dt_probe() 164 dt->rst_reg = devm_reset_control_get_optional_shared(dev, "reg"); in denali_dt_probe() [all …]
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus.h | 117 struct cedrus_dev *dev; member 181 struct device *dev; member 205 static inline void cedrus_write(struct cedrus_dev *dev, u32 reg, u32 val) in cedrus_write() argument 207 writel(val, dev->base + reg); in cedrus_write() 210 static inline u32 cedrus_read(struct cedrus_dev *dev, u32 reg) in cedrus_read() argument 212 return readl(dev->base + reg); in cedrus_read() 219 return readl_poll_timeout_atomic(dev->base + reg, value, in cedrus_wait_for() 246 struct cedrus_dev *dev = ctx->dev; in cedrus_write_ref_buf_addr() local 249 cedrus_write(dev, luma_reg, cedrus_dst_buf_addr(ctx, buf, 0)); in cedrus_write_ref_buf_addr() 250 cedrus_write(dev, chroma_reg, cedrus_dst_buf_addr(ctx, buf, 1)); in cedrus_write_ref_buf_addr() [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A D | rave-sp-eeprom.c | 72 struct device *dev; member 289 struct device *dev = &pdev->dev; in rave_sp_eeprom_probe() local 290 struct rave_sp *sp = dev_get_drvdata(dev->parent); in rave_sp_eeprom_probe() 291 struct device_node *np = dev->of_node; in rave_sp_eeprom_probe() 298 dev_err(dev, "Failed to parse \"reg\" property\n"); in rave_sp_eeprom_probe() 308 dev_err(dev, "Specified size is too big\n"); in rave_sp_eeprom_probe() 312 eeprom = devm_kzalloc(dev, sizeof(*eeprom), GFP_KERNEL); in rave_sp_eeprom_probe() 318 eeprom->dev = dev; in rave_sp_eeprom_probe() 330 config.dev = dev; in rave_sp_eeprom_probe() 338 nvmem = devm_nvmem_register(dev, &config); in rave_sp_eeprom_probe()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | adi-axi-adc.c | 61 struct device *dev; member 131 if (device_property_read_string(st->dev, "dma-names", &dma_name)) in axi_adc_request_buffer() 134 buffer = iio_dmaengine_buffer_alloc(st->dev, dma_name); in axi_adc_request_buffer() 136 dev_err(st->dev, "Could not get DMA buffer, %ld\n", in axi_adc_request_buffer() 181 st = devm_kzalloc(&pdev->dev, sizeof(*st), GFP_KERNEL); in adi_axi_adc_probe() 189 st->dev = &pdev->dev; in adi_axi_adc_probe() 190 st->regmap = devm_regmap_init_mmio(&pdev->dev, base, in adi_axi_adc_probe() 195 expected_ver = device_get_match_data(&pdev->dev); in adi_axi_adc_probe() 199 clk = devm_clk_get_enabled(&pdev->dev, NULL); in adi_axi_adc_probe() 216 dev_err(&pdev->dev, in adi_axi_adc_probe() [all …]
|
/openbmc/u-boot/board/atmel/common/ |
H A D | board.c | 25 struct udevice *bus, *dev; in at91_pda_detect() local 34 for (device_find_first_child(bus, &dev); in at91_pda_detect() 35 dev; in at91_pda_detect() 36 device_find_next_child(&dev)) { in at91_pda_detect() 37 ret = device_probe(dev); in at91_pda_detect() 41 ret = w1_eeprom_read_buf(dev, AT91_PDA_EEPROM_ID_OFFSET, in at91_pda_detect()
|
/openbmc/u-boot/drivers/w1-eeprom/ |
H A D | eep_sandbox.c | 17 static int eep_sandbox_read_buf(struct udevice *dev, unsigned int offset, in eep_sandbox_read_buf() argument 32 w1_reset_select(dev); in eep_sandbox_read_buf() 34 w1_write_byte(dev, W1_F2D_READ_EEPROM); in eep_sandbox_read_buf() 35 w1_write_byte(dev, offset & 0xff); in eep_sandbox_read_buf() 36 w1_write_byte(dev, offset >> 8); in eep_sandbox_read_buf() 38 w1_read_buf(dev, buf, count); in eep_sandbox_read_buf()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_ocp.c | 1440 dev = dev->parent; in ptp_ocp_nvmem_match() 1444 while ((dev = dev->parent)) in ptp_ocp_nvmem_match() 1515 dev = &bp->spi_flash->dev; in ptp_ocp_find_flash() 1517 while ((dev = device_find_any_child(dev))) { in ptp_ocp_find_flash() 2048 uart.port.dev = &pdev->dev; in ptp_ocp_serial_line() 3986 bp->dev.parent = &pdev->dev; in ptp_ocp_device_init() 4008 struct device *dev = &bp->dev; in ptp_ocp_symlink() local 4019 dev = &bp->pdev->dev; in ptp_ocp_link_child() 4101 struct device *dev = &bp->pdev->dev; in ptp_ocp_info() local 4126 struct device *dev = &bp->dev; in ptp_ocp_detach_sysfs() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | dca.h | 43 int register_dca_provider(struct dca_provider *dca, struct device *dev); 44 void unregister_dca_provider(struct dca_provider *dca, struct device *dev); 53 int dca_add_requester(struct device *dev); 54 int dca_remove_requester(struct device *dev); 56 u8 dca3_get_tag(struct device *dev, int cpu); 61 int dca_sysfs_add_provider(struct dca_provider *dca, struct device *dev); 63 int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot);
|
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | usb.h | 45 return interface_to_usbdev(to_usb_interface(mt7601u->dev)); in mt7601u_to_usb_dev() 56 bool mt7601u_usb_alloc_buf(struct mt7601u_dev *dev, size_t len, 58 void mt7601u_usb_free_buf(struct mt7601u_dev *dev, struct mt7601u_dma_buf *buf); 59 int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, 64 int mt7601u_vendor_request(struct mt7601u_dev *dev, const u8 req, 67 void mt7601u_vendor_reset(struct mt7601u_dev *dev); 68 int mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req,
|
/openbmc/u-boot/drivers/reset/ |
H A D | tegra186-reset.c | 15 reset_ctl->dev, reset_ctl->id); in tegra186_reset_request() 23 reset_ctl->dev, reset_ctl->id); in tegra186_reset_free() 37 ret = misc_call(reset_ctl->dev->parent, MRQ_RESET, &req, sizeof(req), in tegra186_reset_common() 48 reset_ctl->dev, reset_ctl->id); in tegra186_reset_assert() 56 reset_ctl->dev, reset_ctl->id); in tegra186_reset_deassert() 68 static int tegra186_reset_probe(struct udevice *dev) in tegra186_reset_probe() argument 70 debug("%s(dev=%p)\n", __func__, dev); in tegra186_reset_probe()
|