Lines Matching refs:err

21 static void vcs_discover_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err,  in vcs_discover_cb()  argument
24 if (err != 0) { in vcs_discover_cb()
25 printk("VCP: Service could not be discovered (%d)\n", err); in vcs_discover_cb()
30 static void vcs_write_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err) in vcs_write_cb() argument
32 if (err != 0) { in vcs_write_cb()
33 printk("VCP: Write failed (%d)\n", err); in vcs_write_cb()
38 static void vcs_state_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_state_cb() argument
41 if (err != 0) { in vcs_state_cb()
42 printk("VCP: state cb err (%d)", err); in vcs_state_cb()
49 static void vcs_flags_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_flags_cb() argument
52 if (err != 0) { in vcs_flags_cb()
53 printk("VCP: flags cb err (%d)", err); in vcs_flags_cb()
75 int err = 0; in process_profile_connection() local
77 err = bt_vcp_vol_ctlr_discover(conn, &vcp_vol_ctlr); in process_profile_connection()
79 if (err != 0) { in process_profile_connection()
80 printk("bt_vcp_vol_ctlr_discover (err %d)\n", err); in process_profile_connection()
83 return err; in process_profile_connection()
86 static void connected(struct bt_conn *conn, uint8_t err) in connected() argument
88 if (err) { in connected()
89 printk("Connection failed, err %d %s\n", err, bt_hci_err_to_str(err)); in connected()
104 int err; in vcp_vol_ctlr_init() local
106 err = bt_vcp_vol_ctlr_cb_register(&vcp_cbs); in vcp_vol_ctlr_init()
107 if (err != 0) { in vcp_vol_ctlr_init()
108 printk("CB register failed (err %d)\n", err); in vcp_vol_ctlr_init()
111 return err; in vcp_vol_ctlr_init()
116 int err; in vcp_vol_ctlr_mute() local
119 err = bt_vcp_vol_ctlr_mute(vcp_vol_ctlr); in vcp_vol_ctlr_mute()
121 err = -EINVAL; in vcp_vol_ctlr_mute()
124 return err; in vcp_vol_ctlr_mute()
129 int err; in vcp_vol_ctlr_unmute() local
132 err = bt_vcp_vol_ctlr_unmute(vcp_vol_ctlr); in vcp_vol_ctlr_unmute()
134 err = -EINVAL; in vcp_vol_ctlr_unmute()
137 return err; in vcp_vol_ctlr_unmute()
142 int err; in vcp_vol_ctlr_set_vol() local
145 err = bt_vcp_vol_ctlr_set_vol(vcp_vol_ctlr, volume); in vcp_vol_ctlr_set_vol()
147 err = -EINVAL; in vcp_vol_ctlr_set_vol()
150 return err; in vcp_vol_ctlr_set_vol()