Lines Matching refs:opcode
79 uint8_t opcode; member
222 uint8_t opcode; in obex_server_put_common() local
247 opcode = atomic_get(&obex->_opcode); in obex_server_put_common()
248 if ((opcode != BT_OBEX_OPCODE_PUT_F) && (opcode != BT_OBEX_OPCODE_PUT)) { in obex_server_put_common()
254 if (!final && (opcode == BT_OBEX_OPCODE_PUT_F)) { in obex_server_put_common()
260 if (opcode != req_code) { in obex_server_put_common()
261 atomic_cas(&obex->_opcode, opcode, req_code); in obex_server_put_common()
303 uint8_t opcode; in obex_server_get_common() local
328 opcode = atomic_get(&obex->_opcode); in obex_server_get_common()
329 if ((opcode != BT_OBEX_OPCODE_GET_F) && (opcode != BT_OBEX_OPCODE_GET)) { in obex_server_get_common()
335 if (!final && (opcode == BT_OBEX_OPCODE_GET_F)) { in obex_server_get_common()
341 if (opcode != req_code) { in obex_server_get_common()
342 atomic_cas(&obex->_opcode, opcode, req_code); in obex_server_get_common()
440 uint8_t opcode; in obex_server_action_common() local
465 opcode = atomic_get(&obex->_opcode); in obex_server_action_common()
466 if ((opcode != BT_OBEX_OPCODE_ACTION_F) && (opcode != BT_OBEX_OPCODE_ACTION)) { in obex_server_action_common()
472 if (!final && (opcode == BT_OBEX_OPCODE_ACTION_F)) { in obex_server_action_common()
478 if (opcode != req_code) { in obex_server_action_common()
479 atomic_cas(&obex->_opcode, opcode, req_code); in obex_server_action_common()
637 if (server_handler[i].opcode == hdr->code) { in obex_server_recv()
666 uint8_t opcode; member
891 static struct client_handler *obex_client_find_handler(uint8_t opcode);
953 static struct client_handler *obex_client_find_handler(uint8_t opcode) in obex_client_find_handler() argument
956 if (client_handler[i].opcode == opcode) { in obex_client_find_handler()
1314 uint8_t opcode; in bt_obex_put() local
1341 opcode = atomic_get(&obex->_opcode); in bt_obex_put()
1345 if ((opcode != BT_OBEX_OPCODE_PUT_F) && (opcode != BT_OBEX_OPCODE_PUT)) { in bt_obex_put()
1350 if (!final && (opcode == BT_OBEX_OPCODE_PUT_F)) { in bt_obex_put()
1355 if (opcode != req_code) { in bt_obex_put()
1356 atomic_cas(&obex->_opcode, opcode, req_code); in bt_obex_put()
1366 atomic_set(&obex->_opcode, opcode); in bt_obex_put()
1379 uint8_t opcode; in bt_obex_put_rsp() local
1406 opcode = atomic_get(&obex->_opcode); in bt_obex_put_rsp()
1407 if ((opcode != BT_OBEX_OPCODE_PUT_F) && (opcode != BT_OBEX_OPCODE_PUT)) { in bt_obex_put_rsp()
1412 if ((opcode != BT_OBEX_OPCODE_PUT_F) && (rsp_code == BT_OBEX_RSP_CODE_SUCCESS)) { in bt_obex_put_rsp()
1439 uint8_t opcode; in bt_obex_get() local
1466 opcode = atomic_get(&obex->_opcode); in bt_obex_get()
1470 if ((opcode != BT_OBEX_OPCODE_GET_F) && (opcode != BT_OBEX_OPCODE_GET)) { in bt_obex_get()
1475 if (!final && (opcode == BT_OBEX_OPCODE_GET_F)) { in bt_obex_get()
1480 if (opcode != req_code) { in bt_obex_get()
1481 atomic_cas(&obex->_opcode, opcode, req_code); in bt_obex_get()
1491 atomic_set(&obex->_opcode, opcode); in bt_obex_get()
1504 uint8_t opcode; in bt_obex_get_rsp() local
1531 opcode = atomic_get(&obex->_opcode); in bt_obex_get_rsp()
1532 if ((opcode != BT_OBEX_OPCODE_GET_F) && (opcode != BT_OBEX_OPCODE_GET)) { in bt_obex_get_rsp()
1537 if ((opcode != BT_OBEX_OPCODE_GET_F) && (rsp_code == BT_OBEX_RSP_CODE_SUCCESS)) { in bt_obex_get_rsp()
1568 static bool obex_op_support_abort(uint8_t opcode) in obex_op_support_abort() argument
1571 if (opcode == abort_opcode[index]) { in obex_op_support_abort()
1582 uint8_t opcode; in bt_obex_abort() local
1620 opcode = atomic_set(&obex->_opcode, BT_OBEX_OPCODE_ABORT); in bt_obex_abort()
1629 atomic_set(&obex->_opcode, opcode); in bt_obex_abort()
1635 atomic_set(&obex->_pre_opcode, opcode); in bt_obex_abort()
1799 uint8_t opcode; in bt_obex_action() local
1826 opcode = atomic_get(&obex->_opcode); in bt_obex_action()
1830 if ((opcode != BT_OBEX_OPCODE_ACTION_F) && (opcode != BT_OBEX_OPCODE_ACTION)) { in bt_obex_action()
1835 if (!final && (opcode == BT_OBEX_OPCODE_ACTION_F)) { in bt_obex_action()
1840 if (opcode != req_code) { in bt_obex_action()
1841 atomic_cas(&obex->_opcode, opcode, req_code); in bt_obex_action()
1851 atomic_set(&obex->_opcode, opcode); in bt_obex_action()
1864 uint8_t opcode; in bt_obex_action_rsp() local
1891 opcode = atomic_get(&obex->_opcode); in bt_obex_action_rsp()
1892 if ((opcode != BT_OBEX_OPCODE_ACTION_F) && (opcode != BT_OBEX_OPCODE_ACTION)) { in bt_obex_action_rsp()
1897 if ((opcode != BT_OBEX_OPCODE_ACTION_F) && (rsp_code == BT_OBEX_RSP_CODE_SUCCESS)) { in bt_obex_action_rsp()