/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/ |
D | ipso_accelerometer.c | 78 int index, avail = -1, i = 0, j = 0; in accel_create() local 89 if (avail < 0 && !inst[index].obj) { in accel_create() 90 avail = index; in accel_create() 94 if (avail < 0) { in accel_create() 101 (void)memset(&accel_data[avail], 0, sizeof(accel_data[avail])); in accel_create() 103 (void)memset(res[avail], 0, in accel_create() 104 sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in accel_create() 105 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in accel_create() 108 INIT_OBJ_RES_DATA(X_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create() 109 &accel_data[avail].x_value, in accel_create() [all …]
|
D | ipso_light_control.c | 124 int index, avail = -1, i = 0, j = 0; in light_control_create() local 135 if (avail < 0 && !inst[index].obj) { in light_control_create() 136 avail = index; in light_control_create() 140 if (avail < 0) { in light_control_create() 147 on_off_value[avail] = false; in light_control_create() 148 dimmer_value[avail] = 0U; in light_control_create() 149 on_time_value[avail] = 0; in light_control_create() 150 on_time_offset[avail] = 0U; in light_control_create() 151 cumulative_active_value[avail] = 0; in light_control_create() 152 power_factor_value[avail] = 0; in light_control_create() [all …]
|
D | lwm2m_obj_binaryappdata.c | 62 int index, avail = -1, i = 0, j = 0; in lwm2m_binaryappdata_create() local 74 if (avail < 0 && !inst[index].obj) { in lwm2m_binaryappdata_create() 75 avail = index; in lwm2m_binaryappdata_create() 79 if (avail < 0) { in lwm2m_binaryappdata_create() 84 (void)memset(res[avail], 0, sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in lwm2m_binaryappdata_create() 86 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in lwm2m_binaryappdata_create() 89 INIT_OBJ_RES_OPT(LWM2M_BINARYAPPDATA_DATA_ID, res[avail], i, res_inst[avail], j, in lwm2m_binaryappdata_create() 91 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_PRIORITY_ID, res[avail], i, in lwm2m_binaryappdata_create() 92 res_inst[avail], j); in lwm2m_binaryappdata_create() 93 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_CREATION_TIME_ID, res[avail], i, in lwm2m_binaryappdata_create() [all …]
|
D | ipso_buzzer.c | 179 int index, avail = -1, i = 0, j = 0; in buzzer_create() local 190 if (avail < 0 && !inst[index].obj) { in buzzer_create() 191 avail = index; in buzzer_create() 195 if (avail < 0) { in buzzer_create() 202 (void)memset(&buzzer_data[avail], 0, sizeof(buzzer_data[avail])); in buzzer_create() 203 k_work_init_delayable(&buzzer_data[avail].buzzer_work, buzzer_work_cb); in buzzer_create() 204 buzzer_data[avail].level = 50; /* 50% */ in buzzer_create() 205 buzzer_data[avail].delay_duration = 1; /* 1 seconds */ in buzzer_create() 206 buzzer_data[avail].obj_inst_id = obj_inst_id; in buzzer_create() 208 (void)memset(res[avail], 0, in buzzer_create() [all …]
|
D | lwm2m_obj_portfolio.c | 66 int index, avail = -1, i = 0, j = 0; in portfolio_create() local 78 if (avail < 0 && !inst[index].obj) { in portfolio_create() 79 avail = index; in portfolio_create() 83 if (avail < 0) { in portfolio_create() 88 (void)memset(res[avail], 0, sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in portfolio_create() 89 (void)memset(identity[avail], 0, DEFAULT_IDENTITY_BUFFER_LENGTH); in portfolio_create() 91 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in portfolio_create() 94 INIT_OBJ_RES_MULTI_DATA_LEN(PORTFOLIO_IDENTITY_ID, res[avail], i, res_inst[avail], j, in portfolio_create() 95 PORTFOLIO_IDENTITY_MAX, false, identity[avail], in portfolio_create() 97 INIT_OBJ_RES_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID, res[avail], i, NULL); in portfolio_create() [all …]
|
D | ipso_push_button.c | 119 int index, avail = -1, i = 0, j = 0; in button_create() local 130 if (avail < 0 && !inst[index].obj) { in button_create() 131 avail = index; in button_create() 135 if (avail < 0) { in button_create() 142 (void)memset(&button_data[avail], 0, sizeof(button_data[avail])); in button_create() 143 button_data[avail].obj_inst_id = obj_inst_id; in button_create() 145 (void)memset(res[avail], 0, in button_create() 146 sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in button_create() 147 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in button_create() 150 INIT_OBJ_RES(DIGITAL_INPUT_STATE_RID, res[avail], i, res_inst[avail], in button_create() [all …]
|
D | ipso_timer.c | 278 int index, avail = -1, i = 0, j = 0; in timer_inst_create() local 289 if (avail < 0 && !inst[index].obj) { in timer_inst_create() 290 avail = index; in timer_inst_create() 294 if (avail < 0) { in timer_inst_create() 301 (void)memset(&timer_data[avail], 0, sizeof(timer_data[avail])); in timer_inst_create() 302 k_work_init_delayable(&timer_data[avail].timer_work, timer_work_cb); in timer_inst_create() 303 timer_data[avail].delay_duration = 5; /* 5 seconds */ in timer_inst_create() 304 timer_data[avail].enabled = true; in timer_inst_create() 305 timer_data[avail].timer_mode = TIMER_MODE_ONE_SHOT; in timer_inst_create() 306 timer_data[avail].obj_inst_id = obj_inst_id; in timer_inst_create() [all …]
|
D | ipso_onoff_switch.c | 177 int index, avail = -1, i = 0, j = 0; in switch_create() local 188 if (avail < 0 && !inst[index].obj) { in switch_create() 189 avail = index; in switch_create() 193 if (avail < 0) { in switch_create() 200 (void)memset(&switch_data[avail], 0, sizeof(switch_data[avail])); in switch_create() 201 switch_data[avail].obj_inst_id = obj_inst_id; in switch_create() 203 (void)memset(res[avail], 0, in switch_create() 204 sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in switch_create() 205 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in switch_create() 208 INIT_OBJ_RES(DIGITAL_INPUT_STATE_RID, res[avail], i, res_inst[avail], in switch_create() [all …]
|
D | lwm2m_obj_access_control.c | 138 int index, avail = -1; in access_control_add() local 142 if (avail < 0 && !inst[index].obj) { in access_control_add() 143 avail = index; in access_control_add() 147 if (avail < 0) { in access_control_add() 165 int ac_obj_inst_id = avail; in access_control_add() 173 ac_data[avail].obj_id = obj_id; in access_control_add() 174 ac_data[avail].obj_inst_id = obj_inst_id; in access_control_add() 175 ac_data[avail].ac_owner = ssid; in access_control_add() 379 int index, avail = -1, i = 0, j = 0; in ac_create() local 391 if (avail < 0 && !inst[index].obj) { in ac_create() [all …]
|
/Zephyr-Core-3.6.0/tests/net/socket/socketpair/src/ |
D | fionread.c | 17 int avail; in ZTEST_F() local 22 avail = 42; in ZTEST_F() 23 zassert_ok(ioctl(fixture->sv[i], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 24 zassert_equal(avail, 0); in ZTEST_F() 32 zassert_ok(ioctl(fixture->sv[j], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 33 zassert_equal(avail, 1); in ZTEST_F() 39 zassert_ok(ioctl(fixture->sv[i], ZFD_IOCTL_FIONREAD, &avail)); in ZTEST_F() 40 zassert_equal(avail, 0); in ZTEST_F()
|
/Zephyr-Core-3.6.0/subsys/logging/backends/ |
D | log_backend_adsp_mtrace.c | 82 size_t avail, out; in mtrace_out() local 85 avail = MTRACE_LOG_BUF_SIZE - w + r - 1; in mtrace_out() 87 avail = MTRACE_LOG_BUF_SIZE - 1; in mtrace_out() 89 avail = r - w - 1; in mtrace_out() 98 out = MIN(avail, len); in mtrace_out() 116 *space_left = avail > len ? avail - len : 0; in mtrace_out()
|
/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | nbr.c | 89 int i, avail = -1; in net_nbr_link() local 96 if (avail < 0 && !net_neighbor_lladdr[i].ref) { in net_nbr_link() 97 avail = i; in net_nbr_link() 116 if (avail < 0) { in net_nbr_link() 123 net_neighbor_lladdr[avail].ref++; in net_nbr_link() 124 nbr->idx = avail; in net_nbr_link() 126 net_linkaddr_set(&net_neighbor_lladdr[avail].lladdr, lladdr->addr, in net_nbr_link() 128 net_neighbor_lladdr[avail].lladdr.len = lladdr->len; in net_nbr_link() 129 net_neighbor_lladdr[avail].lladdr.type = lladdr->type; in net_nbr_link()
|
D | ipv4_fragment.c | 37 int i, avail = -1; in reassembly_get() local 52 if (avail < 0) { in reassembly_get() 53 avail = i; in reassembly_get() 57 if (avail < 0) { in reassembly_get() 61 k_work_reschedule(&reassembly[avail].timer, K_SECONDS(CONFIG_NET_IPV4_FRAGMENT_TIMEOUT)); in reassembly_get() 63 net_ipaddr_copy(&reassembly[avail].src, src); in reassembly_get() 64 net_ipaddr_copy(&reassembly[avail].dst, dst); in reassembly_get() 66 reassembly[avail].protocol = protocol; in reassembly_get() 67 reassembly[avail].id = id; in reassembly_get() 69 return &reassembly[avail]; in reassembly_get()
|
D | ipv6_fragment.c | 127 int i, avail = -1; in reassembly_get() local 141 if (avail < 0) { in reassembly_get() 142 avail = i; in reassembly_get() 146 if (avail < 0) { in reassembly_get() 150 k_work_reschedule(&reassembly[avail].timer, IPV6_REASSEMBLY_TIMEOUT); in reassembly_get() 152 net_ipaddr_copy(&reassembly[avail].src, src); in reassembly_get() 153 net_ipaddr_copy(&reassembly[avail].dst, dst); in reassembly_get() 155 reassembly[avail].id = id; in reassembly_get() 157 return &reassembly[avail]; in reassembly_get()
|
/Zephyr-Core-3.6.0/drivers/serial/ |
D | uart_pipe.c | 38 int avail = recv_buf_len - recv_off; in uart_pipe_rx() local 41 got = uart_fifo_read(uart_pipe_dev, recv_buf + recv_off, avail); in uart_pipe_rx()
|
/Zephyr-Core-3.6.0/drivers/ethernet/ |
D | eth_ivshmem_queue.c | 141 q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len] = desc_head; in eth_ivshmem_queue_tx_commit_buff() 143 VRING_FLUSH(q->tx.vring.avail->ring[q->tx.avail_idx % q->desc_max_len]); in eth_ivshmem_queue_tx_commit_buff() 147 q->tx.vring.avail->idx = q->tx.avail_idx; in eth_ivshmem_queue_tx_commit_buff() 149 VRING_FLUSH(q->tx.vring.avail->idx); in eth_ivshmem_queue_tx_commit_buff() 309 VRING_INVALIDATE(q->rx.vring.avail->idx); in get_rx_avail_desc_idx() 311 uint16_t avail_idx = q->rx.vring.avail->idx; in get_rx_avail_desc_idx() 317 VRING_INVALIDATE(q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]); in get_rx_avail_desc_idx() 318 *avail_desc_idx = q->rx.vring.avail->ring[q->rx.avail_idx % q->desc_max_len]; in get_rx_avail_desc_idx()
|
/Zephyr-Core-3.6.0/lib/utils/ |
D | winstream.c | 60 uint32_t avail = (ws->len - 1) - idx_sub(ws, end, start); in sys_winstream_write() local 62 if (len > avail) { in sys_winstream_write() 63 ws->start = idx_mod(ws, start + (len - avail)); in sys_winstream_write()
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/console/ |
D | console.h | 42 typedef void (*console_input_fn)(struct k_fifo *avail, struct k_fifo *lines,
|
D | uart_console.h | 30 void uart_register_input(struct k_fifo *avail, struct k_fifo *lines,
|
/Zephyr-Core-3.6.0/subsys/net/lib/sockets/ |
D | socketpair.c | 399 size_t avail; in spair_write() local 460 avail = spair_write_avail(spair); in spair_write() 462 if (avail == 0) { in spair_write() 610 size_t avail; in spair_read() local 644 avail = spair_read_avail(spair); in spair_read() 646 if (avail == 0) { in spair_read() 1063 size_t avail; in spair_sendmsg() local 1074 avail = is_connected ? spair_write_avail(spair) : 0; in spair_sendmsg() 1094 if (len > avail && is_nonblock) { in spair_sendmsg()
|
/Zephyr-Core-3.6.0/drivers/console/ |
D | uart_console.c | 573 void uart_register_input(struct k_fifo *avail, struct k_fifo *lines, in uart_register_input() argument 576 avail_queue = avail; in uart_register_input() 584 void uart_register_input(struct k_fifo *avail, struct k_fifo *lines, in uart_register_input() argument 587 ARG_UNUSED(avail); in uart_register_input()
|
/Zephyr-Core-3.6.0/dts/arc/synopsys/ |
D | arc_iot.dtsi | 239 interrupt-names = "err-int", "rx-avail", "tx-req"; 252 interrupt-names = "err-int", "rx-avail", "tx-req"; 265 interrupt-names = "err-int", "rx-avail", "tx-req";
|
/Zephyr-Core-3.6.0/tests/net/socket/tcp/src/ |
D | main.c | 2152 int avail; in test_ioctl_fionread_common() local 2166 avail = 42; in test_ioctl_fionread_common() 2167 zassert_ok(ioctl(fd[i], ZFD_IOCTL_FIONREAD, &avail)); in test_ioctl_fionread_common() 2168 zassert_equal(0, avail, "exp: %d: act: %d", 0, avail); in test_ioctl_fionread_common() 2178 zassert_ok(ioctl(fd[j], ZFD_IOCTL_FIONREAD, &avail)); in test_ioctl_fionread_common() 2179 zassert_equal(ARRAY_SIZE(bytes), avail, "exp: %d: act: %d", ARRAY_SIZE(bytes), in test_ioctl_fionread_common() 2180 avail); in test_ioctl_fionread_common() 2189 zassert_ok(ioctl(fd[i], ZFD_IOCTL_FIONREAD, &avail)); in test_ioctl_fionread_common() 2190 zassert_equal(0, avail, "exp: %d: act: %d", 0, avail); in test_ioctl_fionread_common()
|
/Zephyr-Core-3.6.0/tests/net/buf/src/ |
D | main.c | 364 int i, len, avail = 0, occupied = 0; in ZTEST() local 382 avail += net_buf_tailroom(frags[i]); in ZTEST() 390 avail += net_buf_tailroom(frags[i]); in ZTEST()
|
/Zephyr-Core-3.6.0/scripts/pylib/twister/twisterlib/ |
D | handlers.py | 447 avail = False 451 avail = True 453 if avail:
|