gpriv              83 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_GERFL_ERR(gpriv, x)	((x) & (RCANFD_GERFL_EEF1 |\
gpriv              85 drivers/net/can/rcar/rcar_canfd.c 					(gpriv->fdmode ?\
gpriv             496 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv;	/* Controller reference */
gpriv             623 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_reset_controller(struct rcar_canfd_global *gpriv)
gpriv             631 drivers/net/can/rcar/rcar_canfd.c 	err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts,
gpriv             634 drivers/net/can/rcar/rcar_canfd.c 		dev_dbg(&gpriv->pdev->dev, "global raminit failed\n");
gpriv             639 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_clear_bit(gpriv->base, RCANFD_GCTR, RCANFD_GCTR_GSLPR);
gpriv             640 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_update_bit(gpriv->base, RCANFD_GCTR,
gpriv             644 drivers/net/can/rcar/rcar_canfd.c 	err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts,
gpriv             647 drivers/net/can/rcar/rcar_canfd.c 		dev_dbg(&gpriv->pdev->dev, "global reset failed\n");
gpriv             652 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GERFL, 0x0);
gpriv             655 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             656 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_set_bit(gpriv->base, RCANFD_GRMCFG,
gpriv             659 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_clear_bit(gpriv->base, RCANFD_GRMCFG,
gpriv             663 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv             664 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_clear_bit(gpriv->base,
gpriv             667 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_update_bit(gpriv->base, RCANFD_CCTR(ch),
gpriv             672 drivers/net/can/rcar/rcar_canfd.c 		err = readl_poll_timeout((gpriv->base + RCANFD_CSTS(ch)), sts,
gpriv             676 drivers/net/can/rcar/rcar_canfd.c 			dev_dbg(&gpriv->pdev->dev,
gpriv             684 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_controller(struct rcar_canfd_global *gpriv)
gpriv             693 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             698 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fcan != RCANFD_CANFDCLK)
gpriv             701 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(gpriv->base, RCANFD_GCFG, cfg);
gpriv             704 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv             705 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_set_bit(gpriv->base, RCANFD_CCTR(ch),
gpriv             707 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_update_bit(gpriv->base, RCANFD_CCTR(ch),
gpriv             713 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_afl_rules(struct rcar_canfd_global *gpriv,
gpriv             724 drivers/net/can/rcar/rcar_canfd.c 		cfg = rcar_canfd_read(gpriv->base, RCANFD_GAFLCFG0);
gpriv             730 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(gpriv->base, RCANFD_GAFLECTR,
gpriv             735 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(gpriv->base, RCANFD_GAFLCFG0,
gpriv             737 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             743 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GAFLID(offset, start), 0);
gpriv             745 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GAFLM(offset, start), 0);
gpriv             747 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GAFLP0(offset, start), 0);
gpriv             749 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GAFLP1(offset, start),
gpriv             753 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_clear_bit(gpriv->base,
gpriv             757 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_rx(struct rcar_canfd_global *gpriv, u32 ch)
gpriv             767 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             774 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_RFCC(ridx), cfg);
gpriv             777 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_configure_tx(struct rcar_canfd_global *gpriv, u32 ch)
gpriv             791 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             799 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_CFCC(ch, RCANFD_CFFIFO_IDX), cfg);
gpriv             801 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             803 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_write(gpriv->base,
gpriv             807 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_enable_global_interrupts(struct rcar_canfd_global *gpriv)
gpriv             812 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GERFL, 0);
gpriv             816 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode)
gpriv             819 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(gpriv->base, RCANFD_GCTR, ctr);
gpriv             823 drivers/net/can/rcar/rcar_canfd.c 						 *gpriv)
gpriv             826 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GCTR, 0);
gpriv             829 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_write(gpriv->base, RCANFD_GERFL, 0);
gpriv             868 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = priv->gpriv;
gpriv             902 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode && gerfl & RCANFD_GERFL_CMPOF) {
gpriv            1075 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = dev_id;
gpriv            1084 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv            1085 drivers/net/can/rcar/rcar_canfd.c 		priv = gpriv->ch[ch];
gpriv            1091 drivers/net/can/rcar/rcar_canfd.c 		if (unlikely(RCANFD_GERFL_ERR(gpriv, gerfl)))
gpriv            1144 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = dev_id;
gpriv            1151 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv            1152 drivers/net/can/rcar/rcar_canfd.c 		priv = gpriv->ch[ch];
gpriv            1264 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = priv->gpriv;
gpriv            1268 drivers/net/can/rcar/rcar_canfd.c 	err = clk_prepare_enable(gpriv->can_clk);
gpriv            1291 drivers/net/can/rcar/rcar_canfd.c 	clk_disable_unprepare(gpriv->can_clk);
gpriv            1327 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = priv->gpriv;
gpriv            1332 drivers/net/can/rcar/rcar_canfd.c 	clk_disable_unprepare(gpriv->can_clk);
gpriv            1556 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_channel_probe(struct rcar_canfd_global *gpriv, u32 ch,
gpriv            1559 drivers/net/can/rcar/rcar_canfd.c 	struct platform_device *pdev = gpriv->pdev;
gpriv            1575 drivers/net/can/rcar/rcar_canfd.c 	priv->base = gpriv->base;
gpriv            1580 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fdmode) {
gpriv            1596 drivers/net/can/rcar/rcar_canfd.c 	priv->gpriv = gpriv;
gpriv            1609 drivers/net/can/rcar/rcar_canfd.c 	gpriv->ch[priv->channel] = priv;
gpriv            1620 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_channel_remove(struct rcar_canfd_global *gpriv, u32 ch)
gpriv            1622 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_channel *priv = gpriv->ch[ch];
gpriv            1636 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv;
gpriv            1666 drivers/net/can/rcar/rcar_canfd.c 	gpriv = devm_kzalloc(&pdev->dev, sizeof(*gpriv), GFP_KERNEL);
gpriv            1667 drivers/net/can/rcar/rcar_canfd.c 	if (!gpriv) {
gpriv            1671 drivers/net/can/rcar/rcar_canfd.c 	gpriv->pdev = pdev;
gpriv            1672 drivers/net/can/rcar/rcar_canfd.c 	gpriv->channels_mask = channels_mask;
gpriv            1673 drivers/net/can/rcar/rcar_canfd.c 	gpriv->fdmode = fdmode;
gpriv            1676 drivers/net/can/rcar/rcar_canfd.c 	gpriv->clkp = devm_clk_get(&pdev->dev, "fck");
gpriv            1677 drivers/net/can/rcar/rcar_canfd.c 	if (IS_ERR(gpriv->clkp)) {
gpriv            1678 drivers/net/can/rcar/rcar_canfd.c 		err = PTR_ERR(gpriv->clkp);
gpriv            1687 drivers/net/can/rcar/rcar_canfd.c 	gpriv->can_clk = devm_clk_get(&pdev->dev, "can_clk");
gpriv            1688 drivers/net/can/rcar/rcar_canfd.c 	if (IS_ERR(gpriv->can_clk) || (clk_get_rate(gpriv->can_clk) == 0)) {
gpriv            1689 drivers/net/can/rcar/rcar_canfd.c 		gpriv->can_clk = devm_clk_get(&pdev->dev, "canfd");
gpriv            1690 drivers/net/can/rcar/rcar_canfd.c 		if (IS_ERR(gpriv->can_clk)) {
gpriv            1691 drivers/net/can/rcar/rcar_canfd.c 			err = PTR_ERR(gpriv->can_clk);
gpriv            1696 drivers/net/can/rcar/rcar_canfd.c 		gpriv->fcan = RCANFD_CANFDCLK;
gpriv            1699 drivers/net/can/rcar/rcar_canfd.c 		gpriv->fcan = RCANFD_EXTCLK;
gpriv            1701 drivers/net/can/rcar/rcar_canfd.c 	fcan_freq = clk_get_rate(gpriv->can_clk);
gpriv            1703 drivers/net/can/rcar/rcar_canfd.c 	if (gpriv->fcan == RCANFD_CANFDCLK)
gpriv            1713 drivers/net/can/rcar/rcar_canfd.c 	gpriv->base = addr;
gpriv            1718 drivers/net/can/rcar/rcar_canfd.c 			       "canfd.chn", gpriv);
gpriv            1726 drivers/net/can/rcar/rcar_canfd.c 			       "canfd.gbl", gpriv);
gpriv            1734 drivers/net/can/rcar/rcar_canfd.c 	err = clk_prepare_enable(gpriv->clkp);
gpriv            1741 drivers/net/can/rcar/rcar_canfd.c 	err = rcar_canfd_reset_controller(gpriv);
gpriv            1748 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_configure_controller(gpriv);
gpriv            1751 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv            1753 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_rx(gpriv, ch);
gpriv            1756 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_tx(gpriv, ch);
gpriv            1759 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_configure_afl_rules(gpriv, ch);
gpriv            1763 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_enable_global_interrupts(gpriv);
gpriv            1766 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_update_bit(gpriv->base, RCANFD_GCTR, RCANFD_GCTR_GMDC_MASK,
gpriv            1770 drivers/net/can/rcar/rcar_canfd.c 	err = readl_poll_timeout((gpriv->base + RCANFD_GSTS), sts,
gpriv            1777 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv            1778 drivers/net/can/rcar/rcar_canfd.c 		err = rcar_canfd_channel_probe(gpriv, ch, fcan_freq);
gpriv            1783 drivers/net/can/rcar/rcar_canfd.c 	platform_set_drvdata(pdev, gpriv);
gpriv            1785 drivers/net/can/rcar/rcar_canfd.c 		 gpriv->fcan, gpriv->fdmode);
gpriv            1789 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS)
gpriv            1790 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_channel_remove(gpriv, ch);
gpriv            1792 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_disable_global_interrupts(gpriv);
gpriv            1794 drivers/net/can/rcar/rcar_canfd.c 	clk_disable_unprepare(gpriv->clkp);
gpriv            1801 drivers/net/can/rcar/rcar_canfd.c 	struct rcar_canfd_global *gpriv = platform_get_drvdata(pdev);
gpriv            1804 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_reset_controller(gpriv);
gpriv            1805 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_disable_global_interrupts(gpriv);
gpriv            1807 drivers/net/can/rcar/rcar_canfd.c 	for_each_set_bit(ch, &gpriv->channels_mask, RCANFD_NUM_CHANNELS) {
gpriv            1808 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_disable_channel_interrupts(gpriv->ch[ch]);
gpriv            1809 drivers/net/can/rcar/rcar_canfd.c 		rcar_canfd_channel_remove(gpriv, ch);
gpriv            1813 drivers/net/can/rcar/rcar_canfd.c 	rcar_canfd_set_bit(gpriv->base, RCANFD_GCTR, RCANFD_GCTR_GSLPR);
gpriv            1814 drivers/net/can/rcar/rcar_canfd.c 	clk_disable_unprepare(gpriv->clkp);
gpriv             242 drivers/net/ethernet/seeq/sgiseeq.c static struct sgiseeq_private *gpriv;
gpriv             248 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_rx_desc *r = gpriv->rx_desc;
gpriv             249 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_tx_desc *t = gpriv->tx_desc;
gpriv             250 drivers/net/ethernet/seeq/sgiseeq.c 	struct hpc3_ethregs *hregs = gpriv->hregs;
gpriv             276 drivers/net/ethernet/seeq/sgiseeq.c 	       gpriv->rx_new, gpriv->rx_old, gpriv->tx_new, gpriv->tx_old);
gpriv             762 drivers/net/ethernet/seeq/sgiseeq.c 	gpriv = sp;
gpriv              36 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv;
gpriv              81 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_for_each_uep(pos, gpriv, i)	\
gpriv              82 drivers/usb/renesas_usbhs/mod_gadget.c 	__usbhsg_for_each_uep(1, pos, gpriv, i)
gpriv              84 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_for_each_uep_with_dcp(pos, gpriv, i)	\
gpriv              85 drivers/usb/renesas_usbhs/mod_gadget.c 	__usbhsg_for_each_uep(0, pos, gpriv, i)
gpriv              98 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_uep_to_gpriv(u)		((u)->gpriv)
gpriv             101 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_is_dcp(u)		((u) == usbhsg_gpriv_to_dcp((u)->gpriv))
gpriv             122 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             124 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             125 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             140 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             141 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             167 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             168 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             221 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             222 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_uep *dcp = usbhsg_gpriv_to_dcp(gpriv);
gpriv             234 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             237 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!usbhsg_status_has(gpriv, USBHSG_STATUS_WEDGE)) {
gpriv             311 drivers/usb/renesas_usbhs/mod_gadget.c static void __usbhsg_recip_send_status(struct usbhsg_gpriv *gpriv,
gpriv             314 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_uep *dcp = usbhsg_gpriv_to_dcp(gpriv);
gpriv             316 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             352 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             355 drivers/usb/renesas_usbhs/mod_gadget.c 	if (usbhsg_status_has(gpriv, USBHSG_STATUS_SELF_POWERED))
gpriv             358 drivers/usb/renesas_usbhs/mod_gadget.c 	__usbhsg_recip_send_status(gpriv, status);
gpriv             367 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             370 drivers/usb/renesas_usbhs/mod_gadget.c 	__usbhsg_recip_send_status(gpriv, status);
gpriv             379 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             386 drivers/usb/renesas_usbhs/mod_gadget.c 	__usbhsg_recip_send_status(gpriv, status);
gpriv             405 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             406 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             416 drivers/usb/renesas_usbhs/mod_gadget.c 	uep = usbhsg_gpriv_to_nth_uep(gpriv, nth);
gpriv             458 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             459 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             462 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.speed = usbhs_bus_get_speed(priv);
gpriv             464 drivers/usb/renesas_usbhs/mod_gadget.c 	dev_dbg(dev, "state = %x : speed : %d\n", state, gpriv->gadget.speed);
gpriv             466 drivers/usb/renesas_usbhs/mod_gadget.c 	if (gpriv->gadget.speed != USB_SPEED_UNKNOWN &&
gpriv             468 drivers/usb/renesas_usbhs/mod_gadget.c 		if (gpriv->driver && gpriv->driver->suspend)
gpriv             469 drivers/usb/renesas_usbhs/mod_gadget.c 			gpriv->driver->suspend(&gpriv->gadget);
gpriv             470 drivers/usb/renesas_usbhs/mod_gadget.c 		usb_gadget_set_state(&gpriv->gadget, USB_STATE_SUSPENDED);
gpriv             479 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             480 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_uep *dcp = usbhsg_gpriv_to_dcp(gpriv);
gpriv             482 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             543 drivers/usb/renesas_usbhs/mod_gadget.c 		ret = gpriv->driver->setup(&gpriv->gadget, &ctrl);
gpriv             583 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             584 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             686 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             691 drivers/usb/renesas_usbhs/mod_gadget.c 	if (usbhsg_is_not_connected(gpriv)	||
gpriv             692 drivers/usb/renesas_usbhs/mod_gadget.c 	    unlikely(!gpriv->driver)		||
gpriv             727 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep);
gpriv             728 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             729 drivers/usb/renesas_usbhs/mod_gadget.c 	struct device *dev = usbhsg_gpriv_to_dev(gpriv);
gpriv             757 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_set(gpriv, USBHSG_STATUS_WEDGE);
gpriv             759 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_clr(gpriv, USBHSG_STATUS_WEDGE);
gpriv             797 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             799 drivers/usb/renesas_usbhs/mod_gadget.c 	return gpriv->driver &&
gpriv             800 drivers/usb/renesas_usbhs/mod_gadget.c 	       usbhsg_status_has(gpriv, USBHSG_STATUS_SOFT_CONNECT);
gpriv             816 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             817 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_uep *dcp = usbhsg_gpriv_to_dcp(gpriv);
gpriv             826 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhsg_status_set(gpriv, status);
gpriv             827 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!(usbhsg_status_has(gpriv, USBHSG_STATUS_STARTED) &&
gpriv             828 drivers/usb/renesas_usbhs/mod_gadget.c 	      usbhsg_status_has(gpriv, USBHSG_STATUS_REGISTERD)))
gpriv             875 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             885 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhsg_status_clr(gpriv, status);
gpriv             886 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!usbhsg_status_has(gpriv, USBHSG_STATUS_STARTED) &&
gpriv             887 drivers/usb/renesas_usbhs/mod_gadget.c 	    !usbhsg_status_has(gpriv, USBHSG_STATUS_REGISTERD))
gpriv             906 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.speed = USB_SPEED_UNKNOWN;
gpriv             913 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhsg_for_each_uep_with_dcp(uep, gpriv, i)
gpriv             927 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv             929 drivers/usb/renesas_usbhs/mod_gadget.c 	return  gpriv->vbus_active;
gpriv             950 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv             951 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             961 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!IS_ERR_OR_NULL(gpriv->transceiver)) {
gpriv             962 drivers/usb/renesas_usbhs/mod_gadget.c 		ret = otg_set_peripheral(gpriv->transceiver->otg,
gpriv             963 drivers/usb/renesas_usbhs/mod_gadget.c 					&gpriv->gadget);
gpriv             966 drivers/usb/renesas_usbhs/mod_gadget.c 				gpriv->gadget.name);
gpriv             975 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->driver = driver;
gpriv             982 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv             983 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv             987 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!IS_ERR_OR_NULL(gpriv->transceiver))
gpriv             988 drivers/usb/renesas_usbhs/mod_gadget.c 		otg_set_peripheral(gpriv->transceiver->otg, NULL);
gpriv             990 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->driver = NULL;
gpriv            1000 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv            1001 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv            1008 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv            1009 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv            1014 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_set(gpriv, USBHSG_STATUS_SOFT_CONNECT);
gpriv            1016 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_clr(gpriv, USBHSG_STATUS_SOFT_CONNECT);
gpriv            1025 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv            1028 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_set(gpriv, USBHSG_STATUS_SELF_POWERED);
gpriv            1030 drivers/usb/renesas_usbhs/mod_gadget.c 		usbhsg_status_clr(gpriv, USBHSG_STATUS_SELF_POWERED);
gpriv            1039 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget);
gpriv            1040 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_priv *priv = usbhsg_gpriv_to_priv(gpriv);
gpriv            1043 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->vbus_active = !!is_active;
gpriv            1066 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv            1069 drivers/usb/renesas_usbhs/mod_gadget.c 	if (gpriv->driver &&
gpriv            1070 drivers/usb/renesas_usbhs/mod_gadget.c 	    gpriv->driver->disconnect)
gpriv            1071 drivers/usb/renesas_usbhs/mod_gadget.c 		gpriv->driver->disconnect(&gpriv->gadget);
gpriv            1078 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv;
gpriv            1087 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv = kzalloc(sizeof(struct usbhsg_gpriv), GFP_KERNEL);
gpriv            1088 drivers/usb/renesas_usbhs/mod_gadget.c 	if (!gpriv)
gpriv            1097 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->transceiver = usb_get_phy(USB_PHY_TYPE_UNDEFINED);
gpriv            1099 drivers/usb/renesas_usbhs/mod_gadget.c 		 !IS_ERR(gpriv->transceiver) ? "" : "no ");
gpriv            1112 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhs_mod_register(priv, &gpriv->mod, USBHS_GADGET);
gpriv            1115 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.name		= "gadget";
gpriv            1116 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.start	= usbhsg_start;
gpriv            1117 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.stop		= usbhsg_stop;
gpriv            1118 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->uep		= uep;
gpriv            1119 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->uep_size		= pipe_size;
gpriv            1120 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhsg_status_init(gpriv);
gpriv            1125 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.dev.parent	= dev;
gpriv            1126 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.name		= "renesas_usbhs_udc";
gpriv            1127 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.ops		= &usbhsg_gadget_ops;
gpriv            1128 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.max_speed		= USB_SPEED_HIGH;
gpriv            1129 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->gadget.quirk_avoids_skb_reserve = usbhs_get_dparam(priv,
gpriv            1132 drivers/usb/renesas_usbhs/mod_gadget.c 	INIT_LIST_HEAD(&gpriv->gadget.ep_list);
gpriv            1137 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhsg_for_each_uep_with_dcp(uep, gpriv, i) {
gpriv            1138 drivers/usb/renesas_usbhs/mod_gadget.c 		uep->gpriv	= gpriv;
gpriv            1149 drivers/usb/renesas_usbhs/mod_gadget.c 			gpriv->gadget.ep0 = &uep->ep;
gpriv            1162 drivers/usb/renesas_usbhs/mod_gadget.c 			list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list);
gpriv            1168 drivers/usb/renesas_usbhs/mod_gadget.c 	ret = usb_add_gadget_udc(dev, &gpriv->gadget);
gpriv            1178 drivers/usb/renesas_usbhs/mod_gadget.c 	kfree(gpriv->uep);
gpriv            1181 drivers/usb/renesas_usbhs/mod_gadget.c 	kfree(gpriv);
gpriv            1188 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv);
gpriv            1190 drivers/usb/renesas_usbhs/mod_gadget.c 	usb_del_gadget_udc(&gpriv->gadget);
gpriv            1192 drivers/usb/renesas_usbhs/mod_gadget.c 	kfree(gpriv->uep);
gpriv            1193 drivers/usb/renesas_usbhs/mod_gadget.c 	kfree(gpriv);