您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DMSG_INFO函数代码示例

51自学网 2021-06-01 20:22:49
  C++
这篇教程C++ DMSG_INFO函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DMSG_INFO函数的典型用法代码示例。如果您正苦于以下问题:C++ DMSG_INFO函数的具体用法?C++ DMSG_INFO怎么用?C++ DMSG_INFO使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DMSG_INFO函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: __sunxi_set_vbus

static void __sunxi_set_vbus(struct sunxi_hci_hcd *sunxi_hci, int is_on){	u32 on_off = 0;	DMSG_INFO("[%s]: Set USB Power %s/n", sunxi_hci->hci_name, (is_on ? "ON" : "OFF"));	/* set power flag */	sunxi_hci->power_flag = is_on;	/* set power */	if(sunxi_hci->drv_vbus_gpio_set.gpio.data == 0){		on_off = is_on ? 1 : 0;	}else{		on_off = is_on ? 0 : 1;	}	if(sunxi_hci->drv_vbus_gpio_valid){		if((sunxi_hci->regulator_io != NULL) && (sunxi_hci->regulator_io_hdle != NULL)){			if(on_off){				if(regulator_enable(sunxi_hci->regulator_io_hdle) < 0){					DMSG_INFO("ERR: %s: regulator_enable fail/n", sunxi_hci->hci_name);				}			}else{				if(regulator_disable(sunxi_hci->regulator_io_hdle) < 0){					DMSG_INFO("ERR: %s: regulator_disable fail/n",  sunxi_hci->hci_name);				}			}		}		__gpio_set_value(sunxi_hci->drv_vbus_gpio_set.gpio.gpio, on_off);	}	return;}
开发者ID:alex-deng,项目名称:a33_linux,代码行数:35,


示例2: usb_manager_exit

/*********************************************************************************                     usb_manager_exit** Description:*    void** Parameters:*    void** Return value:*    void** note:*    void*********************************************************************************/static void __exit usb_manager_exit(void){	bsp_usbc_t usbc;    DMSG_DBG_MANAGER("[sw usb]: usb_manager_exit/n");#if defined(CONFIG_USB_SW_SUN3I_USB0_DEVICE_ONLY)	DMSG_INFO("CONFIG_USB_SW_SUN3I_USB0_DEVICE_ONLY/n");#elif defined(CONFIG_USB_SW_SUN3I_USB0_HOST_ONLY)	DMSG_INFO("CONFIG_USB_SW_SUN3I_USB0_HOST_ONLY/n");#elif defined(CONFIG_USB_SW_SUN3I_USB0_OTG)	DMSG_INFO("CONFIG_USB_SW_SUN3I_USB0_OTG/n");#else	DMSG_INFO("CONFIG_USB_SW_SUN3I_USB0_NULL/n");	return;#endif    memset(&usbc, 0, sizeof(bsp_usbc_t));	USBC_exit(&usbc);#ifdef CONFIG_USB_SW_SUN3I_USB0_OTG	thread_run_flag = 0;	while(!thread_stopped_flag){		DMSG_INFO("waitting for usb_hardware_scan_thread stop/n");	}	usb_hw_scan_exit(&g_usb_cfg);#endif    usbc0_platform_device_exit();    usbc1_platform_device_exit();    usbc2_platform_device_exit();    return;}
开发者ID:Michael-Pizzileo,项目名称:lichee_linux-3.0,代码行数:53,


示例3: close_clock

static int close_clock(struct sunxi_hci_hcd *sunxi_hci, u32 ohci){	DMSG_INFO("[%s]: close clock, is_open: %d/n", sunxi_hci->hci_name, sunxi_hci->clk_is_open);#ifdef CONFIG_ARCH_SUN9IW1	usb_hci_clock_cnt --;	if(usb_hci_clock_cnt == 0 && (hci_ahb_gate != NULL)){		DMSG_INFO("clk_disable_unprepare: hci_ahb_gate/n");		clk_disable_unprepare(hci_ahb_gate);	}	if(sunxi_hci->clk_is_open){		sunxi_hci->clk_is_open = 0;		close_hci_clock(sunxi_hci,ohci);	}#ifdef CONFIG_USB_SUNXI_HSIC	if(regulator_disable(vbat_hsic_hdle) < 0){		DMSG_INFO("ERR: vbat_hsic: regulator_disable fail/n");		return 0;	}#else	if(regulator_disable(vbat_usbh_hdle) < 0){	       DMSG_INFO("ERR: vbat_usbh: regulator_disable fail/n");	       return 0;	}#endif	return 0;#else	if(sunxi_hci->ahb && sunxi_hci->mod_usbphy && sunxi_hci->clk_is_open){		sunxi_hci->clk_is_open = 0;#ifdef  CONFIG_USB_SUNXI_HSIC	{		u32 reg_value = 0;		u32 i = 0;		u32 ccmu_base = (u32)SUNXI_CCM_VBASE;		reg_value = USBC_Readl(ccmu_base + 0xcc);		reg_value &= ~ (0x01<<10);		reg_value &= ~ (0x01<<11);		USBC_Writel(reg_value, (ccmu_base + 0xcc));		for(i=0; i < 0x100; i++);		reg_value &= ~ (0x01 << 2);		USBC_Writel(reg_value, (ccmu_base + 0xcc));	}#else		clk_disable_unprepare(sunxi_hci->mod_usbphy);#endif		clk_disable_unprepare(sunxi_hci->ahb);		mdelay(10);	}else{		DMSG_PANIC("[%s]: wrn: open clock failed, (0x%p, 0x%p, %d, 0x%p)/n",				sunxi_hci->hci_name,sunxi_hci->ahb,				sunxi_hci->mod_usbphy, sunxi_hci->clk_is_open,				sunxi_hci->mod_usb);	}	return 0;#endif}
开发者ID:alex-deng,项目名称:a33_linux,代码行数:60,


示例4: sunxi_open_usb_clock

/*********************************************************************************                     open_usb_clock** Description:*** Parameters:*    void** Return value:*    void** note:*    void*********************************************************************************/static s32 sunxi_open_usb_clock(struct sunxi_otgc *otgc){	DMSG_INFO("start: %s/n", __func__);	otgc->port_ctl.otg_clk = clk_get(NULL, USBOTG_CLK);	if (IS_ERR(otgc->port_ctl.otg_clk)){		DMSG_PANIC("ERR: OPEN otg_clk failed./n");	}	if(clk_prepare_enable(otgc->port_ctl.otg_clk)){		DMSG_PANIC("ERR:try otg_clk to prepare_enable  failed!/n" );	}	otgc->port_ctl.otg_phyclk = clk_get(NULL, "usbotgphy");	if (IS_ERR(otgc->port_ctl.otg_phyclk)){		DMSG_PANIC("ERR: OPEN otg_phyclk failed./n");	}	if(clk_prepare_enable(otgc->port_ctl.otg_phyclk)){		DMSG_PANIC("ERR:try otg_phyclk to prepare_enable  failed!/n" );	}	sunxi_otgc_open_phy(otgc->regs);	udelay(10);	DMSG_INFO("end: %s/n", __func__);	return 0;}
开发者ID:phi-psi,项目名称:linux-3.4-sunxi,代码行数:47,


示例5: sw_ohci_hcd_shutdown

/*********************************************************************************                     sw_ohci_hcd_shutdown** Description:*    void** Parameters:*    void** Return value:*    void** note:*    void*********************************************************************************/void sw_ohci_hcd_shutdown(struct platform_device* pdev){	struct sw_hci_hcd *sw_ohci = NULL;	sw_ohci = pdev->dev.platform_data;	if(sw_ohci == NULL){		DMSG_PANIC("ERR: sw_ohci is null/n");		return ;	}	if(sw_ohci->probe == 0){    	DMSG_PANIC("ERR: sw_ohci is disable, need not shutdown/n");    	return ;	} 	DMSG_INFO("[%s]: ohci shutdown start/n", sw_ohci->hci_name);    usb_hcd_platform_shutdown(pdev);    sw_stop_ohc(sw_ohci); 	DMSG_INFO("[%s]: ohci shutdown end/n", sw_ohci->hci_name);    return;}
开发者ID:Michael-Pizzileo,项目名称:lichee_linux-3.0,代码行数:43,


示例6: sunxi_close_usb_clock

/*********************************************************************************                     close_usb_clock** Description:*** Parameters:*    void** Return value:*    void** note:*    void*********************************************************************************/static s32 sunxi_close_usb_clock(struct sunxi_otgc *otgc){	DMSG_INFO("start: %s/n", __func__);	sunxi_otgc_close_phy(otgc->regs);	if(otgc->port_ctl.otg_clk != NULL){		clk_disable_unprepare(otgc->port_ctl.otg_clk);	}	if(!IS_ERR(otgc->port_ctl.otg_clk)){		clk_put(otgc->port_ctl.otg_clk);		otgc->port_ctl.otg_clk = NULL;	}	if(otgc->port_ctl.otg_phyclk != NULL){		clk_disable_unprepare(otgc->port_ctl.otg_phyclk);	}	if(!IS_ERR(otgc->port_ctl.otg_phyclk)){		clk_put(otgc->port_ctl.otg_phyclk);		otgc->port_ctl.otg_phyclk = NULL;	}	DMSG_INFO("end: %s/n", __func__);	return 0;}
开发者ID:phi-psi,项目名称:linux-3.4-sunxi,代码行数:44,


示例7: sunxi_ohci_hcd_shutdown

static void sunxi_ohci_hcd_shutdown(struct platform_device* pdev){	struct sunxi_hci_hcd *sunxi_ohci = NULL;	sunxi_ohci = pdev->dev.platform_data;	if(sunxi_ohci == NULL){		DMSG_PANIC("ERR: sunxi_ohci is null/n");		return ;	}	if(sunxi_ohci->probe == 0){		DMSG_PANIC("ERR: sunxi_ohci is disable, need not shutdown/n");		return ;	}	DMSG_INFO("[%s]: ohci shutdown start/n", sunxi_ohci->hci_name);	if(sunxi_ohci->not_suspend){		scene_lock_destroy(&ohci_standby_lock[sunxi_ohci->usbc_no]);	}	usb_hcd_platform_shutdown(pdev);	sunxi_stop_ohc(sunxi_ohci);	DMSG_INFO("[%s]: ohci shutdown end/n", sunxi_ohci->hci_name);	return;}
开发者ID:alex-deng,项目名称:a33_linux,代码行数:27,


示例8: sunxi_ohci_hcd_resume

static int sunxi_ohci_hcd_resume(struct device *dev){	struct sunxi_hci_hcd *sunxi_ohci = NULL;	struct usb_hcd *hcd = NULL;	if(dev == NULL){		DMSG_PANIC("ERR: Argment is invalid/n");		return 0;	}	hcd = dev_get_drvdata(dev);	if(hcd == NULL){		DMSG_PANIC("ERR: hcd is null/n");		return 0;	}	sunxi_ohci = dev->platform_data;	if(sunxi_ohci == NULL){		DMSG_PANIC("ERR: sunxi_ohci is null/n");		return 0;	}	if(sunxi_ohci->probe == 0){		DMSG_PANIC("ERR: sunxi_ohci is disable, can not resume/n");		return 0;	}	if(sunxi_ohci->not_suspend){		DMSG_INFO("[%s]: controller not suspend, need not resume/n", sunxi_ohci->hci_name);#if defined (CONFIG_ARCH_SUN8IW6) || defined (CONFIG_ARCH_SUN9IW1)		sunxi_ohci->hci_phy_ctrl(sunxi_ohci, 1);#endif		scene_unlock(&ohci_standby_lock[sunxi_ohci->usbc_no]);		disable_wakeup_src(CPUS_USBMOUSE_SRC, 0);#ifdef CONFIG_USB_HCD_ENHANCE		if(sunxi_ohci->usbc_no == 1){			atomic_set(&hci1_thread_scan_flag, 1);		}		if(sunxi_ohci->usbc_no == 3){			atomic_set(&hci3_thread_scan_flag, 1);		}#endif	}else{		DMSG_INFO("[%s]: sunxi_ohci_hcd_resume/n", sunxi_ohci->hci_name);#ifndef CONFIG_ARCH_SUN9IW1#ifdef  SUNXI_USB_FPGA		fpga_config_use_hci((__u32 __force)sunxi_ohci->sram_vbase);#endif#endif		sunxi_start_ohci(sunxi_ohci);		set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);		ohci_finish_controller_resume(hcd);	}	return 0;}
开发者ID:GREYFOXRGR,项目名称:BPI-M3-bsp,代码行数:60,


示例9: print_all_usb_reg

/*********************************************************************************                     print_all_usb_reg** Description:*    void** Parameters:*    void** Return value:*    void** note:*    void*********************************************************************************/void print_all_usb_reg(spinlock_t *lock, __u32 usbc_base, __s32 ep_start, __u32 ep_end, char *str){	__u32 i = 0;	__u32 old_ep_index = 0;	unsigned long flags = 0;	if(lock){		spin_lock_irqsave(lock, flags);	}    DMSG_INFO("/n");    DMSG_INFO("-------------------print_all_usb_reg: %s----------------/n", str);	old_ep_index = USBC_Readw(usbc_base + USBC_REG_o_EPIND);	for(i = ep_start; i <= ep_end; i++){		print_usb_reg_by_ep(lock, usbc_base, i, str);	}	USBC_Writew(old_ep_index, (usbc_base + USBC_REG_o_EPIND));	DMSG_INFO("---------------------------------------------------------------------------/n");	DMSG_INFO("/n");	if(lock){		spin_unlock_irqrestore(lock, flags);	}    return;}
开发者ID:EddyKuo,项目名称:linux-sdk-kernel-source,代码行数:48,


示例10: sunxi_otg_resume

static int sunxi_otg_resume(struct device *dev){	struct platform_device *pdev = NULL;	struct sunxi_otgc *otgc  = NULL;	int ret;	pdev = sunxi_otg_pdev;	if(pdev == NULL){		DMSG_PANIC("%s, pdev is NULL/n", __func__);		return 0;	}	otgc = platform_get_drvdata(pdev);	if(otgc == NULL){		DMSG_PANIC("%s, otgc is NULL/n", __func__);		return 0;	}	DMSG_INFO("start:%s, otgc_work_mode:%d/n", __func__, otgc_work_mode);	if(otgc_work_mode == 0){		DMSG_INFO("end:%s, otgc driver is no work and no need resume/n", __func__);		atomic_set(&thread_suspend_flag, 0);		goto end;	}	sunxi_open_usb_clock(otgc);	sunxi_set_mode(otgc, otgc_work_mode);	switch(otgc_work_mode){		case SUNXI_GCTL_PRTCAP_HOST:			sunxi_core_soft_reset(otgc->regs);			sunxi_host_set_vbus(otgc, 1);		break;		case SUNXI_GCTL_PRTCAP_DEVICE:			ret = sunxi_core_init(otgc);			if (ret) {				dev_err(&pdev->dev, "failed to initialize core, %s_%d/n", __func__, __LINE__);				atomic_set(&thread_suspend_flag, 0);				return ret;			}			sunxi_gadget_resume(otgc);			atomic_set(&thread_suspend_flag, 0);		break;		default:		return 0;	}end:	pm_runtime_disable(&pdev->dev);	pm_runtime_set_active(&pdev->dev);	pm_runtime_enable(&pdev->dev);	DMSG_INFO("end: %s/n", __func__);	return 0;}
开发者ID:phi-psi,项目名称:linux-3.4-sunxi,代码行数:58,


示例11: sw_hcd_port_suspend

/*********************************************************************************                     sw_hcd_port_suspend** Description:*    suspend USB port** Parameters:*    sw_hcd        :  input.  USB
C++ DMSG_PANIC函数代码示例
C++ DMRestoreLocalVector函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。