Lines Matching refs:req

1033 	struct l2cap_conn_req req;
1035 req.scid = cpu_to_le16(chan->scid);
1036 req.psm = chan->psm;
1042 l2cap_send_cmd(conn, chan->ident, L2CAP_CONN_REQ, sizeof(req), &req);
1047 struct l2cap_create_chan_req req;
1048 req.scid = cpu_to_le16(chan->scid);
1049 req.psm = chan->psm;
1050 req.amp_id = amp_id;
1055 sizeof(req), &req);
1154 struct l2cap_info_req req;
1155 req.type = __constant_cpu_to_le16(L2CAP_IT_FEAT_MASK);
1163 sizeof(req), &req);
1187 struct l2cap_disconn_req req;
1203 req.dcid = cpu_to_le16(chan->dcid);
1204 req.scid = cpu_to_le16(chan->scid);
1206 sizeof(req), &req);
3148 struct l2cap_conf_req *req = data;
3150 void *ptr = req->data;
3258 req->dcid = cpu_to_le16(chan->dcid);
3259 req->flags = __constant_cpu_to_le16(0);
3268 void *req = chan->conf_req;
3282 len -= l2cap_get_conf_opt(&req, &type, &olen, &val);
3481 struct l2cap_conf_req *req = data;
3482 void *ptr = req->data;
3488 BT_DBG("chan %p, rsp %p, len %d, req %p", chan, rsp, len, data);
3581 req->dcid = cpu_to_le16(chan->dcid);
3582 req->flags = __constant_cpu_to_le16(0);
3711 struct l2cap_conn_req *req = (struct l2cap_conn_req *) data;
3717 u16 dcid = 0, scid = __le16_to_cpu(req->scid);
3718 __le16 psm = req->psm;
3866 u8 req[128];
3911 l2cap_build_conf_req(chan, req), req);
3963 struct l2cap_conf_req *req = (struct l2cap_conf_req *) data;
3969 if (cmd_len < sizeof(*req))
3972 dcid = __le16_to_cpu(req->dcid);
3973 flags = __le16_to_cpu(req->flags);
3994 len = cmd_len - sizeof(*req);
4003 memcpy(chan->conf_req + chan->conf_len, req->data, len);
4129 char req[64];
4131 if (len > sizeof(req) - sizeof(struct l2cap_conf_req)) {
4139 req, &result);
4146 L2CAP_CONF_REQ, len, req);
4188 struct l2cap_disconn_req *req = (struct l2cap_disconn_req *) data;
4194 if (cmd_len != sizeof(*req))
4197 scid = __le16_to_cpu(req->scid);
4198 dcid = __le16_to_cpu(req->dcid);
4278 struct l2cap_info_req *req = (struct l2cap_info_req *) data;
4281 if (cmd_len != sizeof(*req))
4284 type = __le16_to_cpu(req->type);
4344 /* L2CAP Info req/rsp are unbound to channels, add extra checks */
4365 struct l2cap_info_req req;
4366 req.type = __constant_cpu_to_le16(L2CAP_IT_FIXED_CHAN);
4371 L2CAP_INFO_REQ, sizeof(req), &req);
4396 struct l2cap_create_chan_req *req = data;
4402 if (cmd_len != sizeof(*req))
4408 psm = le16_to_cpu(req->psm);
4409 scid = le16_to_cpu(req->scid);
4411 BT_DBG("psm 0x%2.2x, scid 0x%4.4x, amp_id %d", psm, scid, req->amp_id);
4414 if (req->amp_id == HCI_BREDR_ID) {
4416 req->amp_id);
4421 hdev = hci_dev_get(req->amp_id);
4431 req->amp_id);
4468 struct l2cap_move_chan_req req;
4476 req.icid = cpu_to_le16(chan->scid);
4477 req.dest_amp_id = dest_amp_id;
4479 l2cap_send_cmd(chan->conn, ident, L2CAP_MOVE_CHAN_REQ, sizeof(req),
4480 &req);
4819 struct l2cap_move_chan_req *req = data;
4825 if (cmd_len != sizeof(*req))
4828 icid = le16_to_cpu(req->icid);
4830 BT_DBG("icid 0x%4.4x, dest_amp_id %d", icid, req->dest_amp_id);
4854 if (chan->local_amp_id == req->dest_amp_id) {
4859 if (req->dest_amp_id) {
4861 hdev = hci_dev_get(req->dest_amp_id);
4886 chan->move_id = req->dest_amp_id;
4889 if (!req->dest_amp_id) {
4901 /*amp_accept_physical(chan, req->dest_amp_id);*/
5158 struct l2cap_conn_param_update_req *req;
5170 req = (struct l2cap_conn_param_update_req *) data;
5171 min = __le16_to_cpu(req->min);
5172 max = __le16_to_cpu(req->max);
5173 latency = __le16_to_cpu(req->latency);
5174 to_multiplier = __le16_to_cpu(req->to_multiplier);