Lines Matching refs:copy

86 	struct bt_gatt_notify_params *copy;  in notify_params_deep_copy_destroy()  local
89 copy = mock_bt_gatt_notify_cb_fake.arg1_history[i]; in notify_params_deep_copy_destroy()
90 if (copy != params) { in notify_params_deep_copy_destroy()
95 if (copy->uuid) { in notify_params_deep_copy_destroy()
96 free((void *)copy->uuid); in notify_params_deep_copy_destroy()
99 free(copy); in notify_params_deep_copy_destroy()
109 struct bt_gatt_notify_params *copy; in notify_params_deep_copy_destroy_all() local
112 copy = mock_bt_gatt_notify_cb_fake.arg1_history[i]; in notify_params_deep_copy_destroy_all()
113 if (copy == NULL) { in notify_params_deep_copy_destroy_all()
118 if (copy->uuid) { in notify_params_deep_copy_destroy_all()
119 free((void *)copy->uuid); in notify_params_deep_copy_destroy_all()
122 free(copy); in notify_params_deep_copy_destroy_all()
133 struct bt_uuid *copy; in uuid_deep_copy() local
137 copy = malloc(sizeof(struct bt_uuid_16)); in uuid_deep_copy()
138 zassert_not_null(copy); in uuid_deep_copy()
139 memcpy(copy, uuid, sizeof(struct bt_uuid_16)); in uuid_deep_copy()
142 copy = malloc(sizeof(struct bt_uuid_32)); in uuid_deep_copy()
143 zassert_not_null(copy); in uuid_deep_copy()
144 memcpy(copy, uuid, sizeof(struct bt_uuid_32)); in uuid_deep_copy()
147 copy = malloc(sizeof(struct bt_uuid_128)); in uuid_deep_copy()
148 zassert_not_null(copy); in uuid_deep_copy()
149 memcpy(copy, uuid, sizeof(struct bt_uuid_128)); in uuid_deep_copy()
155 return copy; in uuid_deep_copy()
160 struct bt_gatt_notify_params *copy; in notify_params_deep_copy() local
162 copy = malloc(sizeof(*params)); in notify_params_deep_copy()
163 zassert_not_null(copy); in notify_params_deep_copy()
165 memcpy(copy, params, sizeof(*params)); in notify_params_deep_copy()
168 copy->uuid = uuid_deep_copy(params->uuid); in notify_params_deep_copy()
171 return copy; in notify_params_deep_copy()
176 struct bt_gatt_notify_params *copy; in bt_gatt_notify_cb() local
186 copy = notify_params_deep_copy(params); in bt_gatt_notify_cb()
188 err = mock_bt_gatt_notify_cb(conn, copy); in bt_gatt_notify_cb()
190 notify_params_deep_copy_destroy(copy); in bt_gatt_notify_cb()