Lines Matching refs:dev

174 static int find_verb_data(struct udevice *dev, uint id, ofnode *nodep)  in find_verb_data()  argument
176 ofnode parent = dev_read_subnode(dev, "codecs"); in find_verb_data()
233 static int codec_init(struct udevice *dev, struct hda_regs *regs, uint addr) in codec_init() argument
258 ret = find_verb_data(dev, id, &node); in codec_init()
273 int hda_codecs_init(struct udevice *dev, struct hda_regs *regs, u32 codec_mask) in hda_codecs_init() argument
280 ret = codec_init(dev, regs, i); in hda_codecs_init()
286 ret = send_verbs(dev_ofnode(dev), "beep-verbs", regs); in hda_codecs_init()
426 static int get_hda_beep_nid(struct udevice *dev) in get_hda_beep_nid() argument
428 struct hda_codec_priv *priv = dev_get_priv(dev); in get_hda_beep_nid()
435 ret = dev_read_u32(dev, "intel,beep-nid", &current_nid); in get_hda_beep_nid()
470 int hda_codec_init(struct udevice *dev) in hda_codec_init() argument
472 struct hda_codec_priv *priv = dev_get_priv(dev); in hda_codec_init()
475 base_addr = dm_pci_read_bar32(dev, 0); in hda_codec_init()
485 int hda_codec_finish_init(struct udevice *dev) in hda_codec_finish_init() argument
487 struct hda_codec_priv *priv = dev_get_priv(dev); in hda_codec_finish_init()
490 ret = get_hda_beep_nid(dev); in hda_codec_finish_init()
500 int hda_codec_start_beep(struct udevice *dev, int frequency_hz) in hda_codec_start_beep() argument
502 struct hda_codec_priv *priv = dev_get_priv(dev); in hda_codec_start_beep()
522 int hda_codec_stop_beep(struct udevice *dev) in hda_codec_stop_beep() argument
524 struct hda_codec_priv *priv = dev_get_priv(dev); in hda_codec_stop_beep()