Lines Matching refs:ci
674 static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s) in __bnep_copy_ci() argument
678 memset(ci, 0, sizeof(*ci)); in __bnep_copy_ci()
679 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci()
680 strcpy(ci->device, s->dev->name); in __bnep_copy_ci()
681 ci->flags = s->flags & valid_flags; in __bnep_copy_ci()
682 ci->state = s->state; in __bnep_copy_ci()
683 ci->role = s->role; in __bnep_copy_ci()
694 struct bnep_conninfo ci; in bnep_get_connlist() local
696 __bnep_copy_ci(&ci, s); in bnep_get_connlist()
698 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in bnep_get_connlist()
706 req->ci++; in bnep_get_connlist()
714 int bnep_get_conninfo(struct bnep_conninfo *ci) in bnep_get_conninfo() argument
721 s = __bnep_get_session(ci->dst); in bnep_get_conninfo()
723 __bnep_copy_ci(ci, s); in bnep_get_conninfo()