Home
last modified time | relevance | path

Searched refs:net_buf_add_u8 (Results 1 – 25 of 35) sorted by relevance

12

/Zephyr-latest/subsys/bluetooth/host/classic/
Dsdp.c670 net_buf_add_u8(resp_buf, SDP_SS_CONT_STATE_SIZE); in sdp_svc_search_req()
671 net_buf_add_u8(resp_buf, cont_state); in sdp_svc_search_req()
691 net_buf_add_u8(resp_buf, 0); in sdp_svc_search_req()
732 net_buf_add_u8(buf, elem->type); in copy_attribute()
736 net_buf_add_u8(buf, elem->data_size); in copy_attribute()
761 net_buf_add_u8(buf, *((uint8_t *)elem->data)); in copy_attribute()
882 net_buf_add_u8(sad->rsp_buf, BT_SDP_UINT16); in select_attrs()
1156 net_buf_add_u8(rsp_buf, BT_SDP_SEQ8); in sdp_svc_att_req()
1157 net_buf_add_u8(rsp_buf, 0); in sdp_svc_att_req()
1164 net_buf_add_u8(rsp_buf, 1); in sdp_svc_att_req()
[all …]
Davdtp.c290 net_buf_add_u8(rsp_buf, error_code); in avdtp_discover_handler()
393 net_buf_add_u8(rsp_buf, error_code); in avdtp_get_capabilities_handler()
486 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_CODEC); in avdtp_process_configuration()
488 net_buf_add_u8(rsp_buf, 0); in avdtp_process_configuration()
490 net_buf_add_u8(rsp_buf, error_code); in avdtp_process_configuration()
598 net_buf_add_u8(rsp_buf, error_code); in avdtp_open_handler()
672 net_buf_add_u8(rsp_buf, error_code); in avdtp_start_handler()
746 net_buf_add_u8(rsp_buf, error_code); in avdtp_close_handler()
817 net_buf_add_u8(rsp_buf, error_code); in avdtp_suspend_handler()
887 net_buf_add_u8(rsp_buf, error_code); in avdtp_abort_handler()
[all …]
Drfcomm.c346 net_buf_add_u8(buf, fcs); in rfcomm_send_sabm()
367 net_buf_add_u8(buf, fcs); in rfcomm_send_disc()
514 net_buf_add_u8(buf, fcs); in rfcomm_send_dm()
653 net_buf_add_u8(buf, fcs); in rfcomm_send_ua()
674 net_buf_add_u8(buf, fcs); in rfcomm_send_msc()
695 net_buf_add_u8(buf, fcs); in rfcomm_send_rls()
711 net_buf_add_u8(buf, fcs); in rfcomm_send_rpn()
727 net_buf_add_u8(buf, fcs); in rfcomm_send_test()
740 net_buf_add_u8(buf, cmd_type); in rfcomm_send_nsc()
743 net_buf_add_u8(buf, fcs); in rfcomm_send_nsc()
[all …]
Da2dp.c132 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_TRANSPORT); in a2dp_get_capabilities_ind()
133 net_buf_add_u8(rsp_buf, 0); in a2dp_get_capabilities_ind()
135 net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_CODEC); in a2dp_get_capabilities_ind()
138 net_buf_add_u8(rsp_buf, ep->codec_cap->len + 2U); in a2dp_get_capabilities_ind()
140 net_buf_add_u8(rsp_buf, sep->sep_info.media_type << 4U); in a2dp_get_capabilities_ind()
142 net_buf_add_u8(rsp_buf, ep->codec_type); in a2dp_get_capabilities_ind()
Dl2cap_br.c706 net_buf_add_u8(buf, BT_L2CAP_CONF_OPT_MTU); in l2cap_br_conf_add_mtu()
707 net_buf_add_u8(buf, sizeof(mtu)); in l2cap_br_conf_add_mtu()
713 net_buf_add_u8(buf, opt->type & BT_L2CAP_CONF_MASK); in l2cap_br_conf_add_opt()
714 net_buf_add_u8(buf, opt->len); in l2cap_br_conf_add_opt()
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dhci.c40 net_buf_add_u8(buf, BT_HCI_OC_MESH_ADVERTISE); in cmd_mesh_adv()
68 net_buf_add_u8(buf, BT_HCI_OC_MESH_ADVERTISE_CANCEL); in cmd_mesh_adv()
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/
Dmain.c194 net_buf_add_u8(buf, BT_ATT_OP_WRITE_RSP); in send_write_rsp()
472 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in start_adv()
531 net_buf_add_u8(buf, op); in gatt_write()
547 net_buf_add_u8(buf, BT_ATT_OP_NOTIFY); in gatt_notify()
561 net_buf_add_u8(buf, BT_ATT_OP_INDICATE); in gatt_indicate()
/Zephyr-latest/subsys/usb/device/class/
Dbluetooth.c373 net_buf_add_u8(rsp, BT_HCI_VS_USB_H2_MODE); in vs_read_usb_transport_mode()
374 net_buf_add_u8(rsp, BT_HCI_VS_USB_H4_MODE); in vs_read_usb_transport_mode()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/
Dpeer.c417 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in start_adv()
526 net_buf_add_u8(buf, BT_ATT_OP_NOTIFY); in gatt_notify()
542 net_buf_add_u8(att_packet, BT_ATT_OP_NOTIFY); in gatt_notify_without_last_fragment()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/
Dmain.c178 net_buf_add_u8(buf, BT_ATT_OP_WRITE_RSP); in send_write_rsp()
450 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in start_adv()
509 net_buf_add_u8(buf, BT_ATT_OP_NOTIFY); in gatt_notify()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/
Dmain.c200 net_buf_add_u8(buf, BT_ATT_OP_WRITE_RSP); in send_write_rsp()
496 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in start_adv()
555 net_buf_add_u8(buf, op); in gatt_write()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_shell.c160 net_buf_add_u8(data->buf, byte); in smp_shell_rx_bytes()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/frag/src/
Dbroadcaster.c44 net_buf_add_u8(buf, 0x11); in send_data()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/send_on_connect/src/
Dmain_l2cap_send_on_connect.c39 (void)net_buf_add_u8(buf, DATA_BYTE_VAL); in chan_connected_cb()
/Zephyr-latest/subsys/bluetooth/host/
Dadv.c331 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in bt_le_adv_set_enable_legacy()
333 net_buf_add_u8(buf, BT_HCI_LE_ADV_DISABLE); in bt_le_adv_set_enable_legacy()
360 net_buf_add_u8(buf, BT_HCI_LE_ADV_ENABLE); in bt_le_adv_set_enable_ext()
362 net_buf_add_u8(buf, BT_HCI_LE_ADV_DISABLE); in bt_le_adv_set_enable_ext()
365 net_buf_add_u8(buf, 1); in bt_le_adv_set_enable_ext()
367 net_buf_add_u8(buf, adv->handle); in bt_le_adv_set_enable_ext()
369 net_buf_add_u8(buf, param ? param->num_events : 0); in bt_le_adv_set_enable_ext()
Dcs.c534 net_buf_add_u8(buf, num_channels); in bt_le_cs_start_test()
541 net_buf_add_u8(buf, params->override_config_0.not_set.channel_selection_type); in bt_le_cs_start_test()
542 net_buf_add_u8(buf, params->override_config_0.not_set.ch3c_shape); in bt_le_cs_start_test()
543 net_buf_add_u8(buf, params->override_config_0.not_set.ch3c_jump); in bt_le_cs_start_test()
/Zephyr-latest/samples/bluetooth/hci_uart_async/src/
Dhci_uart_async.c153 net_buf_add_u8(buf, BT_HCI_H4_EVT); in send_hw_error()
/Zephyr-latest/drivers/net/
Dslip.c294 slip->ptr = net_buf_add_u8(slip->last, c); in slip_input_byte()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c605 net_buf_add_u8(buf, ascii7_str[i]); in string_ascii7_to_utf16le()
843 net_buf_add_u8(buf, cfg); in sreq_get_configuration()
894 net_buf_add_u8(buf, cur_alt); in sreq_get_interface()
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_hid.c189 net_buf_add_u8(buf, duration); in handle_get_idle()
327 net_buf_add_u8(buf, ddata->protocol); in handle_get_protocol()
/Zephyr-latest/doc/services/net_buf/
Dindex.rst77 uint8_t *net_buf_add_u8(struct net_buf *buf, uint8_t value);
/Zephyr-latest/samples/net/wpan_serial/src/
Dmain.c133 net_buf_add_u8(buf, c); in slip_process_byte()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.c524 net_buf_add_u8(buf, '.'); in dns_unpack_name()
/Zephyr-latest/tests/bluetooth/host_long_adv_recv/src/
Dmain.c325 net_buf_add_u8(buf, 1); /* Number of reports */ in adv_report_evt()
/Zephyr-latest/subsys/bluetooth/mesh/
Dfriend.c351 net_buf_add_u8(buf, (info->iv_index & 1) << 7); /* Will be reset in encryption */ in create_friend_pdu()
354 net_buf_add_u8(buf, info->ttl | 0x80); in create_friend_pdu()
356 net_buf_add_u8(buf, info->ttl); in create_friend_pdu()

12