Lines Matching refs:result

657 	u16 result;
660 result = L2CAP_CR_AUTHORIZATION;
662 result = L2CAP_CR_BAD_PSM;
670 rsp.result = cpu_to_le16(result);
680 u16 result;
683 result = L2CAP_CR_SEC_BLOCK;
685 result = L2CAP_CR_BAD_PSM;
691 rsp.result = cpu_to_le16(result);
1412 rsp.result = cpu_to_le16(L2CAP_CR_PEND);
1418 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS);
1422 rsp.result = cpu_to_le16(L2CAP_CR_PEND);
1430 rsp.result != L2CAP_CR_SUCCESS) {
3108 * will result in a timeout that meets the above
3281 u16 result = L2CAP_CONF_SUCCESS;
3334 result = L2CAP_CONF_UNKNOWN;
3367 result = L2CAP_CONF_UNACCEPT;
3377 if (result == L2CAP_CONF_SUCCESS) {
3382 result = L2CAP_CONF_UNACCEPT;
3394 result = L2CAP_CONF_UNACCEPT;
3404 result = L2CAP_CONF_PENDING;
3467 result = L2CAP_CONF_UNACCEPT;
3473 if (result == L2CAP_CONF_SUCCESS)
3477 rsp->result = cpu_to_le16(result);
3484 void *data, u16 *result)
3501 *result = L2CAP_CONF_UNACCEPT;
3548 if (*result == L2CAP_CONF_PENDING)
3561 if (*result == L2CAP_CONF_SUCCESS || *result == L2CAP_CONF_PENDING) {
3593 u16 result, u16 flags)
3601 rsp->result = cpu_to_le16(result);
3618 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS);
3633 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS);
3736 int result, status = L2CAP_CS_NO_INFO;
3747 result = L2CAP_CR_BAD_PSM;
3758 result = L2CAP_CR_SEC_BLOCK;
3762 result = L2CAP_CR_NO_MEM;
3799 result = L2CAP_CR_PEND;
3803 /* Force pending result for AMP controllers.
3809 result = L2CAP_CR_SUCCESS;
3812 result = L2CAP_CR_PEND;
3818 result = L2CAP_CR_PEND;
3823 result = L2CAP_CR_PEND;
3835 rsp.result = cpu_to_le16(result);
3839 if (result == L2CAP_CR_PEND && status == L2CAP_CS_NO_INFO) {
3853 result == L2CAP_CR_SUCCESS) {
3890 u16 scid, dcid, result, status;
3900 result = __le16_to_cpu(rsp->result);
3903 BT_DBG("dcid 0x%4.4x scid 0x%4.4x result 0x%2.2x status 0x%2.2x",
3904 dcid, scid, result, status);
3926 switch (result) {
4111 u16 scid, flags, result;
4121 result = __le16_to_cpu(rsp->result);
4123 BT_DBG("scid 0x%4.4x flags 0x%2.2x result 0x%2.2x len %d", scid, flags,
4124 result, len);
4130 switch (result) {
4143 buf, &result);
4171 result = L2CAP_CONF_SUCCESS;
4173 req, &result);
4182 if (result != L2CAP_CONF_SUCCESS)
4323 rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS);
4344 rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS);
4351 rsp.result = cpu_to_le16(L2CAP_IR_NOTSUPP);
4364 u16 type, result;
4370 result = __le16_to_cpu(rsp->result);
4372 BT_DBG("type 0x%4.4x result 0x%2.2x", type, result);
4381 if (result != L2CAP_IR_SUCCESS) {
4490 rsp.result = cpu_to_le16(L2CAP_CR_BAD_AMP);
4518 static void l2cap_send_move_chan_rsp(struct l2cap_chan *chan, u16 result)
4522 BT_DBG("chan %p, result 0x%4.4x", chan, result);
4525 rsp.result = cpu_to_le16(result);
4531 static void l2cap_send_move_chan_cfm(struct l2cap_chan *chan, u16 result)
4535 BT_DBG("chan %p, result 0x%4.4x", chan, result);
4540 cfm.result = cpu_to_le16(result);
4555 cfm.result = cpu_to_le16(L2CAP_MC_UNCONFIRMED);
4708 static void l2cap_do_create(struct l2cap_chan *chan, int result,
4718 if (result == L2CAP_CR_SUCCESS) {
4736 if (result == L2CAP_CR_SUCCESS) {
4738 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS);
4742 rsp.result = cpu_to_le16(L2CAP_CR_NO_MEM);
4749 if (result == L2CAP_CR_SUCCESS) {
4770 static void l2cap_do_move_respond(struct l2cap_chan *chan, int result)
4795 static void l2cap_do_move_cancel(struct l2cap_chan *chan, int result)
4799 if (result == -EINVAL)
4815 void __l2cap_physical_cfm(struct l2cap_chan *chan, int result)
4820 BT_DBG("chan %p, result %d, local_amp_id %d, remote_amp_id %d",
4821 chan, result, local_amp_id, remote_amp_id);
4829 l2cap_do_create(chan, result, local_amp_id, remote_amp_id);
4830 } else if (result != L2CAP_MR_SUCCESS) {
4831 l2cap_do_move_cancel(chan, result);
4839 l2cap_do_move_respond(chan, result);
4842 l2cap_do_move_cancel(chan, result);
4856 u16 result = L2CAP_MR_NOT_ALLOWED;
4871 rsp.result = cpu_to_le16(L2CAP_MR_NOT_ALLOWED);
4883 result = L2CAP_MR_NOT_ALLOWED;
4888 result = L2CAP_MR_SAME_ID;
4900 result = L2CAP_MR_BAD_ID;
4913 result = L2CAP_MR_COLLISION;
4926 result = L2CAP_MR_PEND;
4929 result = L2CAP_MR_SUCCESS;
4935 result = L2CAP_MR_PEND;
4939 l2cap_send_move_chan_rsp(chan, result);
4946 static void l2cap_move_continue(struct l2cap_conn *conn, u16 icid, u16 result)
4958 if (result == L2CAP_MR_PEND)
4969 if (result == L2CAP_MR_PEND) {
4984 if (result == L2CAP_MR_SUCCESS) {
5014 if (result == L2CAP_MR_SUCCESS) {
5037 u16 result)
5051 if (result == L2CAP_MR_COLLISION) {
5070 u16 icid, result;
5076 result = le16_to_cpu(rsp->result);
5078 BT_DBG("icid 0x%4.4x, result 0x%4.4x", icid, result);
5080 if (result == L2CAP_MR_SUCCESS || result == L2CAP_MR_PEND)
5081 l2cap_move_continue(conn, icid, result);
5083 l2cap_move_fail(conn, cmd->ident, icid, result);
5094 u16 icid, result;
5100 result = le16_to_cpu(cfm->result);
5102 BT_DBG("icid 0x%4.4x, result 0x%4.4x", icid, result);
5112 if (result == L2CAP_MC_CONFIRMED) {
5194 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_REJECTED);
5196 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_ACCEPTED);
5220 u16 dcid, mtu, mps, credits, result;
5231 result = __le16_to_cpu(rsp->result);
5233 if (result == L2CAP_CR_SUCCESS && (mtu < 23 || mps < 23))
5236 BT_DBG("dcid 0x%4.4x mtu %u mps %u credits %u result 0x%2.2x",
5237 dcid, mtu, mps, credits, result);
5251 switch (result) {
5363 u8 result;
5385 result = L2CAP_CR_BAD_PSM;
5394 result = L2CAP_CR_AUTHENTICATION;
5401 result = L2CAP_CR_NO_MEM;
5408 result = L2CAP_CR_NO_MEM;
5434 /* The following result value is actually not defined
5439 result = L2CAP_CR_PEND;
5443 result = L2CAP_CR_SUCCESS;
5451 if (result == L2CAP_CR_PEND)
5465 rsp.result = cpu_to_le16(result);
7356 rsp.result = cpu_to_le16(res);