Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 143) sorted by relevance

123456

/Zephyr-latest/subsys/bluetooth/audio/
Dcap_stream.c56 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_configured_cb() local
60 if (ops != NULL && ops->configured != NULL) { in cap_stream_configured_cb()
61 ops->configured(bap_stream, pref); in cap_stream_configured_cb()
75 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_qos_set_cb() local
79 if (ops != NULL && ops->qos_set != NULL) { in cap_stream_qos_set_cb()
80 ops->qos_set(bap_stream); in cap_stream_qos_set_cb()
94 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_enabled_cb() local
98 if (ops != NULL && ops->enabled != NULL) { in cap_stream_enabled_cb()
99 ops->enabled(bap_stream); in cap_stream_enabled_cb()
113 struct bt_bap_stream_ops *ops = cap_stream->ops; in cap_stream_metadata_updated_cb() local
[all …]
Dascs.c326 struct bt_bap_stream_ops *ops; in ase_enter_state_idle() local
337 ops = stream->ops; in ase_enter_state_idle()
338 if (ops != NULL && ops->released != NULL) { in ase_enter_state_idle()
339 ops->released(stream); in ase_enter_state_idle()
348 struct bt_bap_stream_ops *ops; in ase_enter_state_codec_configured() local
354 ops = stream->ops; in ase_enter_state_codec_configured()
355 if (ops != NULL && ops->configured != NULL) { in ase_enter_state_codec_configured()
356 ops->configured(stream, &ase->ep.qos_pref); in ase_enter_state_codec_configured()
363 struct bt_bap_stream_ops *ops; in ase_enter_state_qos_configured() local
369 ops = stream->ops; in ase_enter_state_qos_configured()
[all …]
Dbap_broadcast_source.c143 const struct bt_bap_stream_ops *ops; in broadcast_source_iso_sent() local
158 ops = stream->ops; in broadcast_source_iso_sent()
164 if (ops != NULL && ops->sent != NULL) { in broadcast_source_iso_sent()
165 ops->sent(stream); in broadcast_source_iso_sent()
172 const struct bt_bap_stream_ops *ops; in broadcast_source_iso_connected() local
194 ops = stream->ops; in broadcast_source_iso_connected()
195 if (ops != NULL && ops->connected != NULL) { in broadcast_source_iso_connected()
196 ops->connected(stream); in broadcast_source_iso_connected()
201 if (ops != NULL && ops->started != NULL) { in broadcast_source_iso_connected()
202 ops->started(stream); in broadcast_source_iso_connected()
[all …]
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/
Dbap_unicast_client.c54 if (stream->ops != NULL && stream->ops->configured != NULL) { in bt_bap_unicast_client_config()
57 stream->ops->configured(stream, &pref); in bt_bap_unicast_client_config()
92 if (stream->ops != NULL && stream->ops->qos_set != NULL) { in bt_bap_unicast_client_qos()
93 stream->ops->qos_set(stream); in bt_bap_unicast_client_qos()
122 if (stream->ops != NULL && stream->ops->enabled != NULL) { in bt_bap_unicast_client_enable()
123 stream->ops->enabled(stream); in bt_bap_unicast_client_enable()
149 if (stream->ops != NULL && stream->ops->metadata_updated != NULL) { in bt_bap_unicast_client_metadata()
150 stream->ops->metadata_updated(stream); in bt_bap_unicast_client_metadata()
170 if (stream->ops != NULL && stream->ops->connected != NULL) { in bt_bap_unicast_client_connect()
171 stream->ops->connected(stream); in bt_bap_unicast_client_connect()
[all …]
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dhas_server.c32 static const struct bt_has_preset_ops ops = { variable
46 .ops = &ops, in has_server_preset_init()
52 .ops = &ops, in has_server_preset_init()
58 .ops = &ops, in has_server_preset_init()
64 .ops = &ops, in has_server_preset_init()
/Zephyr-latest/subsys/disk/
Ddisk_access.c64 if ((disk->ops != NULL) && (disk->ops->init != NULL)) { in disk_access_init()
65 rc = disk->ops->init(disk); in disk_access_init()
85 if ((disk != NULL) && (disk->ops != NULL) && in disk_access_status()
86 (disk->ops->status != NULL)) { in disk_access_status()
87 rc = disk->ops->status(disk); in disk_access_status()
99 if ((disk != NULL) && (disk->ops != NULL) && in disk_access_read()
100 (disk->ops->read != NULL)) { in disk_access_read()
101 rc = disk->ops->read(disk, data_buf, start_sector, num_sector); in disk_access_read()
113 if ((disk != NULL) && (disk->ops != NULL) && in disk_access_write()
114 (disk->ops->write != NULL)) { in disk_access_write()
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_hid.c74 const struct hid_device_ops *ops; member
108 const struct hid_device_ops *ops = ddata->ops; in usbd_hid_request() local
114 if (ops->output_report != NULL) { in usbd_hid_request()
116 ops->output_report(dev, buf->len, buf->data); in usbd_hid_request()
124 if (ops->input_report_done != NULL) { in usbd_hid_request()
125 ops->input_report_done(dev); in usbd_hid_request()
140 const struct hid_device_ops *ops = ddata->ops; in handle_set_idle() local
147 if (ops->set_idle != NULL) { in handle_set_idle()
148 ops->set_idle(dev, id, duration * 4UL); in handle_set_idle()
164 const struct hid_device_ops *ops = ddata->ops; in handle_get_idle() local
[all …]
Dusbd_hid_api.c30 const struct hid_device_ops *const ops) in hid_device_register() argument
34 return api->dev_register(dev, rdesc, rsize, ops); in hid_device_register()
42 struct hid_device_ops *ops; member
52 .ops = &wrapper_ops, \
205 const struct hid_ops *ops) in usb_hid_register_device() argument
209 wrappers[i].legacy_ops = ops; in usb_hid_register_device()
210 if (hid_device_register(dev, desc, size, wrappers[i].ops)) { in usb_hid_register_device()
/Zephyr-latest/subsys/bluetooth/host/classic/
Davctp.c49 if (session->ops && session->ops->connected) { in avctp_l2cap_connected()
50 session->ops->connected(session); in avctp_l2cap_connected()
67 if (session->ops && session->ops->disconnected) { in avctp_l2cap_disconnected()
68 session->ops->disconnected(session); in avctp_l2cap_disconnected()
125 return session->ops->recv(session, buf); in avctp_l2cap_recv()
130 static const struct bt_l2cap_chan_ops ops = { in bt_avctp_connect() local
142 session->br_chan.chan.ops = &ops; in bt_avctp_connect()
Da2dp.c155 struct bt_a2dp_stream_ops *ops; in a2dp_process_config_ind() local
244 ops = stream->ops; in a2dp_process_config_ind()
245 if ((ops != NULL) && (ops->configured != NULL)) { in a2dp_process_config_ind()
246 ops->configured(stream); in a2dp_process_config_ind()
283 stream->ops->recv(stream, buf, sys_get_be16((uint8_t *)&media_hdr->sequence_number), in bt_a2dp_media_data_callback()
337 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->established in a2dp_open_ind()
350 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->started : NULL; in a2dp_start_ind()
363 (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->suspended : NULL; in a2dp_suspend_ind()
376 (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->released : NULL; in a2dp_close_ind()
388 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->aborted : NULL; in a2dp_abort_ind()
[all …]
Dsco.c98 if (chan->ops && chan->ops->connected) { in bt_sco_connected()
99 chan->ops->connected(chan); in bt_sco_connected()
125 if (chan->ops && chan->ops->disconnected) { in bt_sco_disconnected()
126 chan->ops->disconnected(chan, sco->err); in bt_sco_disconnected()
239 if (chan->ops == NULL) { in sco_accept()
240 LOG_ERR("invalid parameter: chan %p chan->ops %p", chan, chan->ops); in sco_accept()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
Dfxos8700_trigger.c58 if (config->ops->byte_read(dev, FXOS8700_REG_PULSE_SRC, in fxos8700_handle_pulse_int()
91 if (config->ops->byte_read(dev, FXOS8700_REG_FF_MT_SRC, in fxos8700_handle_motion_int()
129 if (config->ops->byte_read(dev, FXOS8700_REG_INT_SOURCE, in fxos8700_handle_int()
154 if (config->ops->byte_read(dev, FXOS8700_REG_M_INT_SRC, in fxos8700_handle_int()
263 if (config->ops->reg_field_update(dev, FXOS8700_REG_CTRLREG4, mask, in fxos8700_trigger_set()
288 if (config->ops->byte_write(dev, FXOS8700_REG_PULSE_CFG, in fxos8700_pulse_init()
293 if (config->ops->byte_write(dev, FXOS8700_REG_PULSE_THSX, in fxos8700_pulse_init()
298 if (config->ops->byte_write(dev, FXOS8700_REG_PULSE_THSY, in fxos8700_pulse_init()
303 if (config->ops->byte_write(dev, FXOS8700_REG_PULSE_THSZ, in fxos8700_pulse_init()
308 if (config->ops->byte_write(dev, FXOS8700_REG_PULSE_TMLT, in fxos8700_pulse_init()
[all …]
/Zephyr-latest/include/zephyr/crypto/
Dcrypto.h173 ctx->ops.cipher_mode = mode; in cipher_begin_session()
255 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_ECB, "ECB mode " in cipher_block_op()
259 return ctx->ops.block_crypt_hndlr(ctx, pkt); in cipher_block_op()
276 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_CBC, "CBC mode " in cipher_cbc_op()
280 return ctx->ops.cbc_crypt_hndlr(ctx, pkt, iv); in cipher_cbc_op()
303 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_CTR, "CTR mode " in cipher_ctr_op()
307 return ctx->ops.ctr_crypt_hndlr(ctx, pkt, iv); in cipher_ctr_op()
325 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_CCM, "CCM mode " in cipher_ccm_op()
329 return ctx->ops.ccm_crypt_hndlr(ctx, pkt, nonce); in cipher_ccm_op()
347 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_GCM, "GCM mode " in cipher_gcm_op()
[all …]
/Zephyr-latest/subsys/net/lib/sockets/
Dsocket_offload.c17 void socket_offload_dns_register(const struct socket_dns_offload *ops) in socket_offload_dns_register() argument
19 __ASSERT_NO_MSG(ops); in socket_offload_dns_register()
22 dns_offload = ops; in socket_offload_dns_register()
/Zephyr-latest/tests/bluetooth/audio/mocks/src/
Diso.c26 if (chan->ops != NULL && chan->ops->sent != NULL) { in bt_iso_chan_send()
27 chan->ops->sent(chan); in bt_iso_chan_send()
36 if (chan->ops != NULL && chan->ops->sent != NULL) { in bt_iso_chan_send_ts()
37 chan->ops->sent(chan); in bt_iso_chan_send_ts()
86 chan->ops->connected(chan); in mock_bt_iso_connected()
121 chan->ops->disconnected(chan, err); in mock_bt_iso_disconnected()
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c137 const struct hid_ops *ops; member
280 if (dev_data->ops && dev_data->ops->protocol_change) { in hid_on_set_protocol()
281 dev_data->ops->protocol_change(dev, protocol); in hid_on_set_protocol()
318 if (dev_data->ops == NULL || dev_data->ops->on_idle == NULL) { in hid_sof_handler()
340 dev_data->ops->on_idle(dev, i + 1); in hid_sof_handler()
367 if (dev_data->ops && dev_data->ops->protocol_change) { in hid_do_status_cb()
368 dev_data->ops->protocol_change(dev, dev_data->protocol); in hid_do_status_cb()
464 if (dev_data->ops && dev_data->ops->get_report) { in hid_class_handle_req()
465 return dev_data->ops->get_report(dev, setup, in hid_class_handle_req()
483 if (dev_data->ops && dev_data->ops->set_report) { in hid_class_handle_req()
[all …]
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c210 return cfg->ops->reg_field_update(dev, FXLS8974_REG_CTRLREG3, in fxls8974_set_odr()
214 return cfg->ops->reg_field_update(dev, FXLS8974_REG_CTRLREG3, in fxls8974_set_odr()
250 if (cfg->ops->read(dev, FXLS8974_REG_OUTXLSB, buf, FXLS8974_MAX_ACCEL_BYTES)) { in fxls8974_sample_fetch()
256 if (cfg->ops->byte_read(dev, FXLS8974_REG_OUTTEMP, buf+FXLS8974_DATA_TEMP_OFFSET)) { in fxls8974_sample_fetch()
309 if (cfg->ops->byte_read(dev, FXLS8974_REG_CTRLREG1, &fsr)) { in fxls8974_get_accel_data()
409 if (cfg->ops->byte_read(dev, FXLS8974_REG_CTRLREG1, &val)) { in fxls8974_get_active()
424 return cfg->ops->reg_field_update(dev, FXLS8974_REG_CTRLREG1, in fxls8974_set_active()
433 if (cfg->ops->read(dev, FXLS8974_REG_CTRLREG1, regVal, 5)) { in fxls8974_print_config()
477 cfg->ops->byte_write(dev, FXLS8974_REG_CTRLREG1, in fxls8974_init()
490 if (cfg->ops->byte_read(dev, FXLS8974_REG_WHOAMI, in fxls8974_init()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dsmp_null.c76 static const struct bt_l2cap_chan_ops ops = { in bt_smp_accept() local
89 smp->chan.ops = &ops; in bt_smp_accept()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/ecred/dut/src/
Ddut.c47 static struct bt_l2cap_chan_ops ops = { variable
101 chans[i].chan.ops = &ops; in entrypoint_dut()
/Zephyr-latest/drivers/sensor/nxp/p3t1755/
Dp3t1755.c63 config->ops.write(dev, P3T1755_CONFIG_REG, &data->config_reg, 1); in p3t1755_sample_fetch()
68 int status = config->ops.read(dev, P3T1755_TEMPERATURE_REG, raw_temp, 2); in p3t1755_sample_fetch()
142 config->ops.read(dev, P3T1755_CONFIG_REG, &data->config_reg, 1); in p3t1755_init()
147 config->ops.write(dev, P3T1755_CONFIG_REG, &data->config_reg, 1); in p3t1755_init()
165 .ops = { \
176 .ops = { \
/Zephyr-latest/drivers/crypto/
Dcrypto_tc_shim.c225 ctx->ops.cbc_crypt_hndlr = do_cbc_encrypt; in tc_session_setup()
233 ctx->ops.ctr_crypt_hndlr = do_ctr_op; in tc_session_setup()
236 ctx->ops.ccm_crypt_hndlr = do_ccm_encrypt_mac; in tc_session_setup()
245 ctx->ops.cbc_crypt_hndlr = do_cbc_decrypt; in tc_session_setup()
254 ctx->ops.ctr_crypt_hndlr = do_ctr_op; in tc_session_setup()
257 ctx->ops.ccm_crypt_hndlr = do_ccm_decrypt_auth; in tc_session_setup()
266 ctx->ops.cipher_mode = mode; in tc_session_setup()
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
Dfxas21002.c166 if (config->ops->read(dev, FXAS21002_REG_OUTXMSB, buffer, in fxas21002_sample_fetch()
269 if (config->ops->byte_read(dev, FXAS21002_REG_CTRLREG1, &val)) { in fxas21002_get_power()
283 return config->ops->reg_field_update(dev, FXAS21002_REG_CTRLREG1, in fxas21002_set_power()
364 if (config->ops->byte_read(dev, FXAS21002_REG_WHOAMI, &whoami)) { in fxas21002_init()
382 config->ops->byte_write(dev, FXAS21002_REG_CTRLREG1, in fxas21002_init()
387 if (config->ops->byte_read(dev, FXAS21002_REG_CTRLREG1, in fxas21002_init()
397 if (config->ops->reg_field_update(dev, FXAS21002_REG_CTRLREG0, in fxas21002_init()
404 if (config->ops->reg_field_update(dev, FXAS21002_REG_CTRLREG1, in fxas21002_init()
450 .ops = &fxas21002_i2c_ops, \
456 .ops = &fxas21002_spi_ops, \
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/einprogress/src/
Ddut.c74 static const struct bt_l2cap_chan_ops ops = { variable
79 .chan.ops = &ops,
/Zephyr-latest/include/zephyr/net/
Dwifi_nm.h60 const struct wifi_mgmt_ops *ops; member
72 .ops = _ops, \
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/
Dcentral.c53 static struct bt_l2cap_chan_ops ops = { in server_accept_cb() local
61 le_chan.chan.ops = &ops; in server_accept_cb()

123456