• Home
  • Raw
  • Download

Lines Matching refs:p_buf

59     tBTA_PAN_API_ENABLE  *p_buf;  in BTA_PanEnable()  local
64 if ((p_buf = (tBTA_PAN_API_ENABLE *) GKI_getbuf(sizeof(tBTA_PAN_API_ENABLE))) != NULL) in BTA_PanEnable()
66 p_buf->hdr.event = BTA_PAN_API_ENABLE_EVT; in BTA_PanEnable()
67 p_buf->p_cback = p_cback; in BTA_PanEnable()
69 bta_sys_sendmsg(p_buf); in BTA_PanEnable()
87 BT_HDR *p_buf; in BTA_PanDisable() local
90 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_PanDisable()
92 p_buf->event = BTA_PAN_API_DISABLE_EVT; in BTA_PanDisable()
93 bta_sys_sendmsg(p_buf); in BTA_PanDisable()
111 tBTA_PAN_API_SET_ROLE *p_buf; in BTA_PanSetRole() local
113 if ((p_buf = (tBTA_PAN_API_SET_ROLE *) GKI_getbuf(sizeof(tBTA_PAN_API_SET_ROLE))) != NULL) in BTA_PanSetRole()
115 p_buf->hdr.event = BTA_PAN_API_SET_ROLE_EVT; in BTA_PanSetRole()
116 p_buf->role = role; in BTA_PanSetRole()
121 …BCM_STRNCPY_S(p_buf->user_name, sizeof(p_buf->user_name), p_user_info->p_srv_name, BTA_SERVICE_NAM… in BTA_PanSetRole()
123 p_buf->user_name[0] = 0; in BTA_PanSetRole()
125 p_buf->user_name[BTA_SERVICE_NAME_LEN] = 0; in BTA_PanSetRole()
126 p_buf->user_app_id = p_user_info->app_id; in BTA_PanSetRole()
127 p_buf->user_sec_mask = p_user_info->sec_mask; in BTA_PanSetRole()
133 …BCM_STRNCPY_S(p_buf->gn_name, sizeof(p_buf->gn_name), p_gn_info->p_srv_name, BTA_SERVICE_NAME_LEN); in BTA_PanSetRole()
135 p_buf->gn_name[0] = 0; in BTA_PanSetRole()
137 p_buf->gn_name[BTA_SERVICE_NAME_LEN] = 0; in BTA_PanSetRole()
138 p_buf->gn_app_id = p_gn_info->app_id; in BTA_PanSetRole()
139 p_buf->gn_sec_mask = p_gn_info->sec_mask; in BTA_PanSetRole()
146 …BCM_STRNCPY_S(p_buf->nap_name, sizeof(p_buf->nap_name), p_nap_info->p_srv_name, BTA_SERVICE_NAME_L… in BTA_PanSetRole()
148 p_buf->nap_name[0] = 0; in BTA_PanSetRole()
150 p_buf->nap_name[BTA_SERVICE_NAME_LEN] = 0; in BTA_PanSetRole()
151 p_buf->nap_app_id = p_nap_info->app_id; in BTA_PanSetRole()
152 p_buf->nap_sec_mask = p_nap_info->sec_mask; in BTA_PanSetRole()
156 bta_sys_sendmsg(p_buf); in BTA_PanSetRole()
178 tBTA_PAN_API_OPEN *p_buf; in BTA_PanOpen() local
180 if ((p_buf = (tBTA_PAN_API_OPEN *) GKI_getbuf(sizeof(tBTA_PAN_API_OPEN))) != NULL) in BTA_PanOpen()
182 p_buf->hdr.event = BTA_PAN_API_OPEN_EVT; in BTA_PanOpen()
183 p_buf->local_role = local_role; in BTA_PanOpen()
184 p_buf->peer_role = peer_role; in BTA_PanOpen()
185 bdcpy(p_buf->bd_addr, bd_addr); in BTA_PanOpen()
186 bta_sys_sendmsg(p_buf); in BTA_PanOpen()
203 BT_HDR *p_buf; in BTA_PanClose() local
205 if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_PanClose()
207 p_buf->event = BTA_PAN_API_CLOSE_EVT; in BTA_PanClose()
208 p_buf->layer_specific = handle; in BTA_PanClose()
209 bta_sys_sendmsg(p_buf); in BTA_PanClose()