Home | History | Annotate | Download | only in hw

Lines Matching refs:params

46         struct bt_l2cap_conn_params_s params;
101 struct bt_l2cap_conn_params_s *params);
190 l2cap_cmd_rej *params;
196 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
199 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
204 memcpy(&params->reason, &reason, sizeof(reason));
208 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
214 l2cap_cmd_rej_cid params = {
219 l2cap_command_reject(l2cap, id, reason, &params, L2CAP_CMD_REJ_CID_SIZE);
227 l2cap_conn_rsp *params;
229 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
232 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
238 params->dcid = cpu_to_le16(dcid);
239 params->scid = cpu_to_le16(scid);
240 params->result = cpu_to_le16(result);
241 params->status = cpu_to_le16(status);
243 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
251 l2cap_conf_req *params;
253 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
256 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
266 params->dcid = cpu_to_le16(dcid);
267 params->flags = cpu_to_le16(flag);
269 memcpy(params->data, data, len);
271 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
279 l2cap_conf_rsp *params;
281 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
284 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
290 params->scid = cpu_to_le16(scid);
291 params->flags = cpu_to_le16(flag);
292 params->result = cpu_to_le16(result);
294 memcpy(params->data, data, len);
296 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
304 l2cap_disconn_rsp *params;
306 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
309 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
315 params->dcid = cpu_to_le16(dcid);
316 params->scid = cpu_to_le16(scid);
318 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
326 uint8_t *params;
328 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
331 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
337 memcpy(params, data, len);
339 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
347 l2cap_info_rsp *params;
349 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
352 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
358 params->type = cpu_to_le16(type);
359 params->result = cpu_to_le16(result);
361 memcpy(params->data, data, len);
363 l2cap->signalling_ch.params.sdu_submit(&l2cap->signalling_ch.params);
414 ch->params.sdu_out = l2cap_bframe_out;
415 ch->params.sdu_submit = l2cap_bframe_submit;
419 ch->params.remote_mtu = MAX(672, ch->min_mtu);
425 if (!psm_info->new_channel(l2cap->dev, &ch->params)) {
475 ch->params.close(ch->params.opaque);
534 ch->params.remote_mtu = val;
784 const uint8_t *params, int len)
816 le16_to_cpu(((l2cap_cmd_rej *) params)->reason));
826 le16_to_cpu(((l2cap_conn_req *) params)->psm),
827 le16_to_cpu(((l2cap_conn_req *) params)->scid));
848 le16_to_cpu(((l2cap_conf_req *) params)->flags) & 1,
849 le16_to_cpu(((l2cap_conf_req *) params)->dcid),
850 ((l2cap_conf_req *) params)->data,
861 le16_to_cpu(((l2cap_conf_rsp *) params)->result),
862 le16_to_cpu(((l2cap_conf_rsp *) params)->flags) & 1,
863 le16_to_cpu(((l2cap_conf_rsp *) params)->scid),
864 ((l2cap_conf_rsp *) params)->data,
877 le16_to_cpu(((l2cap_disconn_req *) params)->dcid),
878 le16_to_cpu(((l2cap_disconn_req *) params)->scid));
893 l2cap_echo_response(l2cap, params, len);
908 l2cap_info(l2cap, le16_to_cpu(((l2cap_info_req *) params)->type));
981 ch->params.sdu_in(ch->params.opaque, hdr->data, len);
1013 return ch->params.sdu_in(ch->params.opaque, hdr->data + 2, len - 4);
1036 return ch->params.sdu_in(ch->params.opaque, ch->sdu, ch->len_total);
1125 if (len > chan->params.remote_mtu) {
1128 chan->remote_cid, chan->params.remote_mtu);
1148 if (len > chan->params.remote_mtu) {
1181 l2cap->signalling_ch.params.sdu_in = l2cap_cframe_in;
1182 l2cap->signalling_ch.params.sdu_out = l2cap_bframe_out;
1183 l2cap->signalling_ch.params.sdu_submit = l2cap_bframe_submit;
1184 l2cap->signalling_ch.params.opaque = l2cap;
1185 l2cap->signalling_ch.params.remote_mtu = 48;
1195 l2cap->group_ch.params.sdu_in = l2cap_gframe_in;
1196 l2cap->group_ch.params.opaque = l2cap;
1220 l2cap->cid[cid]->params.close(l2cap->cid[cid]->params.opaque);
1346 struct bt_l2cap_conn_params_s *params))