Lines Matching refs:cmd_len

220 static uint8_t supported_commands(const void *cmd, uint16_t cmd_len,  in supported_commands()  argument
288 static uint8_t add_service(const void *cmd, uint16_t cmd_len, in add_service() argument
297 if ((cmd_len < sizeof(*cp)) || in add_service()
298 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_service()
493 static uint8_t add_characteristic(const void *cmd, uint16_t cmd_len, in add_characteristic() argument
501 if ((cmd_len < sizeof(*cp)) || in add_characteristic()
502 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_characteristic()
682 static uint8_t add_descriptor(const void *cmd, uint16_t cmd_len, in add_descriptor() argument
691 if ((cmd_len < sizeof(*cp)) || in add_descriptor()
692 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in add_descriptor()
753 static uint8_t add_included(const void *cmd, uint16_t cmd_len, in add_included() argument
881 static uint8_t set_value(const void *cmd, uint16_t cmd_len, in set_value() argument
889 if ((cmd_len < sizeof(*cp)) || in set_value()
890 (cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->len))) { in set_value()
914 static uint8_t start_server(const void *cmd, uint16_t cmd_len, in start_server() argument
957 static uint8_t set_enc_key_size(const void *cmd, uint16_t cmd_len, in set_enc_key_size() argument
998 static uint8_t exchange_mtu(const void *cmd, uint16_t cmd_len, in exchange_mtu() argument
1079 static uint8_t disc_all_prim(const void *cmd, uint16_t cmd_len, in disc_all_prim() argument
1115 static uint8_t disc_prim_uuid(const void *cmd, uint16_t cmd_len, in disc_prim_uuid() argument
1121 if ((cmd_len < sizeof(*cp)) || in disc_prim_uuid()
1122 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in disc_prim_uuid()
1207 static uint8_t find_included(const void *cmd, uint16_t cmd_len, in find_included() argument
1285 static uint8_t disc_all_chrc(const void *cmd, uint16_t cmd_len, in disc_all_chrc() argument
1321 static uint8_t disc_chrc_uuid(const void *cmd, uint16_t cmd_len, in disc_chrc_uuid() argument
1327 if ((cmd_len < sizeof(*cp)) || in disc_chrc_uuid()
1328 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in disc_chrc_uuid()
1409 static uint8_t disc_all_desc(const void *cmd, uint16_t cmd_len, in disc_all_desc() argument
1523 static uint8_t read_data(const void *cmd, uint16_t cmd_len, in read_data() argument
1559 static uint8_t read_uuid(const void *cmd, uint16_t cmd_len, in read_uuid() argument
1565 if ((cmd_len < sizeof(*cp)) || in read_uuid()
1566 (cmd_len != sizeof(*cp) + cp->uuid_length)) { in read_uuid()
1605 static uint8_t read_long(const void *cmd, uint16_t cmd_len, in read_long() argument
1641 static uint8_t read_multiple(const void *cmd, uint16_t cmd_len, in read_multiple() argument
1649 if ((cmd_len < sizeof(*cp)) || in read_multiple()
1650 (cmd_len != sizeof(*cp) + (cp->handles_count * sizeof(cp->handles[0])))) { in read_multiple()
1692 static uint8_t read_multiple_var(const void *cmd, uint16_t cmd_len, in read_multiple_var() argument
1700 if ((cmd_len < sizeof(*cp)) || in read_multiple_var()
1701 (cmd_len != sizeof(*cp) + (cp->handles_count * sizeof(cp->handles[0])))) { in read_multiple_var()
1743 static uint8_t write_without_rsp(const void *cmd, uint16_t cmd_len, in write_without_rsp() argument
1749 if (cmd_len < sizeof(*cp) || in write_without_rsp()
1750 cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->data_length)) { in write_without_rsp()
1771 static uint8_t write_signed_without_rsp(const void *cmd, uint16_t cmd_len, in write_signed_without_rsp() argument
1777 if (cmd_len < sizeof(*cp) || in write_signed_without_rsp()
1778 cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->data_length)) { in write_signed_without_rsp()
1807 static uint8_t write_data(const void *cmd, uint16_t cmd_len, in write_data() argument
1813 if (cmd_len < sizeof(*cp) || in write_data()
1814 cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->data_length)) { in write_data()
1845 static uint8_t write_long(const void *cmd, uint16_t cmd_len, in write_long() argument
1851 if (cmd_len < sizeof(*cp) || in write_long()
1852 cmd_len != sizeof(*cp) + sys_le16_to_cpu(cp->data_length)) { in write_long()
2033 static uint8_t config_subscription_notif(const void *cmd, uint16_t cmd_len, in config_subscription_notif() argument
2068 static uint8_t config_subscription_ind(const void *cmd, uint16_t cmd_len, in config_subscription_ind() argument
2109 static uint8_t notify_mult(const void *cmd, uint16_t cmd_len, in notify_mult() argument
2120 if ((cmd_len < sizeof(*cp)) || in notify_mult()
2121 (cmd_len != sizeof(*cp) + (cp->cnt * sizeof(cp->attr_id[0])))) { in notify_mult()
2202 static uint8_t get_attrs(const void *cmd, uint16_t cmd_len, in get_attrs() argument
2212 if ((cmd_len < sizeof(*cp)) || in get_attrs()
2213 (cmd_len != sizeof(*cp) + cp->type_length)) { in get_attrs()
2331 static uint8_t get_attr_val(const void *cmd, uint16_t cmd_len, in get_attr_val() argument
2366 static uint8_t change_database(const void *cmd, uint16_t cmd_len, in change_database() argument
2413 static uint8_t eatt_connect(const void *cmd, uint16_t cmd_len, in eatt_connect() argument