Home
last modified time | relevance | path

Searched refs:in_pm (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/net/usb/
H A Dasix_common.c15 u16 size, void *data, int in_pm) in asix_read_cmd() argument
22 if (!in_pm) in asix_read_cmd()
41 u16 size, void *data, int in_pm) in asix_write_cmd() argument
48 if (!in_pm) in asix_write_cmd()
71 static int asix_set_sw_mii(struct usbnet *dev, int in_pm) in asix_set_sw_mii() argument
75 ret = asix_write_cmd(dev, AX_CMD_SET_SW_MII, 0x0000, 0, 0, NULL, in_pm); in asix_set_sw_mii()
82 static int asix_set_hw_mii(struct usbnet *dev, int in_pm) in asix_set_hw_mii() argument
86 ret = asix_write_cmd(dev, AX_CMD_SET_HW_MII, 0x0000, 0, 0, NULL, in_pm); in asix_set_hw_mii()
92 static int asix_check_host_enable(struct usbnet *dev, int in_pm) in asix_check_host_enable() argument
98 ret = asix_set_sw_mii(dev, in_pm); in asix_check_host_enable()
[all …]
H A Dasix.h182 int (*reset)(struct usbnet *dev, int in_pm);
202 u16 size, void *data, int in_pm);
205 u16 size, void *data, int in_pm);
220 int asix_sw_reset(struct usbnet *dev, u8 flags, int in_pm);
222 u16 asix_read_rx_ctl(struct usbnet *dev, int in_pm);
223 int asix_write_rx_ctl(struct usbnet *dev, u16 mode, int in_pm);
225 u16 asix_read_medium_status(struct usbnet *dev, int in_pm);
226 int asix_write_medium_mode(struct usbnet *dev, u16 mode, int in_pm);
229 int asix_write_gpio(struct usbnet *dev, u16 value, int sleep, int in_pm);
H A Dasix_devices.c374 static int ax88772_hw_reset(struct usbnet *dev, int in_pm) in ax88772_hw_reset() argument
382 AX_GPIO_GPO2EN, 5, in_pm); in ax88772_hw_reset()
387 0, 0, NULL, in_pm); in ax88772_hw_reset()
394 ret = asix_sw_reset(dev, AX_SWRESET_IPPD, in_pm); in ax88772_hw_reset()
400 ret = asix_sw_reset(dev, AX_SWRESET_CLEAR, in_pm); in ax88772_hw_reset()
407 in_pm); in ax88772_hw_reset()
412 in_pm); in ax88772_hw_reset()
419 if (in_pm && (!asix_mdio_read_nopm(dev->net, dev->mii.phy_id, in ax88772_hw_reset()
425 ret = asix_write_rx_ctl(dev, AX_DEFAULT_RX_CTL, in_pm); in ax88772_hw_reset()
429 ret = asix_write_medium_mode(dev, AX88772_MEDIUM_DEFAULT, in_pm); in ax88772_hw_reset()
[all …]
H A Dsmsc75xx.c77 u32 *data, int in_pm) in __smsc75xx_read_reg() argument
85 if (!in_pm) in __smsc75xx_read_reg()
108 u32 data, int in_pm) in __smsc75xx_write_reg() argument
116 if (!in_pm) in __smsc75xx_write_reg()
161 int in_pm) in __smsc75xx_phy_wait_not_busy() argument
168 ret = __smsc75xx_read_reg(dev, MII_ACCESS, &val, in_pm); in __smsc75xx_phy_wait_not_busy()
182 int in_pm) in __smsc75xx_mdio_read() argument
191 ret = __smsc75xx_phy_wait_not_busy(dev, in_pm); in __smsc75xx_mdio_read()
203 ret = __smsc75xx_write_reg(dev, MII_ACCESS, addr, in_pm); in __smsc75xx_mdio_read()
209 ret = __smsc75xx_phy_wait_not_busy(dev, in_pm); in __smsc75xx_mdio_read()
[all …]
H A Dax88179_178a.c173 u8 in_pm; member
197 ax179_data->in_pm = pm_mode; in ax88179_set_pm_mode()
204 return ax179_data->in_pm; in ax88179_in_pm()
/openbmc/linux/sound/hda/
H A Dhdac_device.c63 atomic_set(&codec->in_pm, 0); in snd_hdac_device_init()
601 if (!atomic_inc_not_zero(&codec->in_pm)) in snd_hdac_power_up_pm()
613 if (!atomic_inc_not_zero(&codec->in_pm)) { in snd_hdac_keep_power_up()
634 if (atomic_dec_if_positive(&codec->in_pm) < 0) in snd_hdac_power_down_pm()
/openbmc/linux/include/sound/
H A Dhdaudio.h85 atomic_t in_pm; /* suspend/resume being performed */ member
188 atomic_inc(&codec->in_pm); in snd_hdac_enter_pm()
194 atomic_dec(&codec->in_pm); in snd_hdac_leave_pm()
199 return atomic_read(&codec->in_pm); in snd_hdac_is_in_pm()
/openbmc/linux/sound/soc/codecs/
H A Dhdac_hdmi.c1722 if (atomic_read(&hdev->in_pm)) in hdac_hdmi_eld_notify_cb()