Home
last modified time | relevance | path

Searched full:remaining (Results 1 – 25 of 2741) sorted by relevance

12345678910>>...110

/openbmc/libpldm/src/
H A Dmsgbuf.h76 intmax_t remaining; member
111 ctx->remaining = (intmax_t)len; in pldm_msgbuf_init_errno()
130 if (ctx->remaining < 0) { in pldm_msgbuf_validate()
151 if (ctx->remaining != 0) { in pldm_msgbuf_consumed()
176 ctx->remaining = 0; in pldm_msgbuf_destroy()
201 ctx->remaining = 0; in pldm_msgbuf_destroy_consumed()
315 if (ctx->remaining >= (intmax_t)sizeof(uint8_t)) { in pldm__msgbuf_extract_uint8()
318 ctx->remaining -= sizeof(uint8_t); in pldm__msgbuf_extract_uint8()
322 if (ctx->remaining >= INTMAX_MIN + (intmax_t)sizeof(uint8_t)) { in pldm__msgbuf_extract_uint8()
323 ctx->remaining -= sizeof(uint8_t); in pldm__msgbuf_extract_uint8()
[all …]
H A Dutils.c125 ssize_t remaining; in ver2str() local
141 remaining = (ssize_t)buffer_size; in ver2str()
144 INSERT_INT(BCD_H(version->major), cursor, remaining) in ver2str()
145 INSERT_INT(BCD_L(version->major), cursor, remaining); in ver2str()
146 INSERT_CHAR('.', cursor, remaining); in ver2str()
149 INSERT_INT(BCD_H(version->minor), cursor, remaining); in ver2str()
150 INSERT_INT(BCD_L(version->minor), cursor, remaining); in ver2str()
153 INSERT_CHAR('.', cursor, remaining); in ver2str()
155 INSERT_INT(BCD_H(version->update), cursor, remaining); in ver2str()
156 INSERT_INT(BCD_L(version->update), cursor, remaining); in ver2str()
[all …]
/openbmc/phosphor-watchdog/test/
H A Dwatchdog.cpp126 auto remaining = milliseconds(wdog->timeRemaining()); in TEST_F() local
130 EXPECT_TRUE((remaining >= defaultInterval - Quantum(1)) && in TEST_F()
131 (remaining <= defaultInterval)); in TEST_F()
154 * Wait for 5 quantums and make sure that the remaining
167 // Get the remaining time again and expectation is that we get fewer in TEST_F()
168 auto remaining = milliseconds(wdog->timeRemaining()); in TEST_F() local
173 EXPECT_TRUE((remaining >= expected - Quantum(1)) && in TEST_F()
174 (remaining <= expected)); in TEST_F()
226 auto remaining = milliseconds(wdog->timeRemaining()); in TEST_F() local
227 EXPECT_GE(oldInterval, remaining); in TEST_F()
[all …]
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_igd.c39 * @remaining: Decreased by bytes on return.
40 * @bytes: Bytes to copy and adjust off, pos and remaining.
51 size_t *remaining, in igd_opregion_shift_copy() argument
59 *remaining -= bytes; in igd_opregion_shift_copy()
71 size_t remaining; in vfio_pci_igd_rw() local
77 remaining = count; in vfio_pci_igd_rw()
80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw()
81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw()
85 &remaining, bytes)) in vfio_pci_igd_rw()
90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) { in vfio_pci_igd_rw()
[all …]
/openbmc/linux/sound/soc/sof/
H A Dipc3-loader.c145 ssize_t remaining; in sof_ipc3_fw_parse_ext_man() local
150 remaining = head->full_size - head->header_size; in sof_ipc3_fw_parse_ext_man()
151 if (remaining < 0 || remaining > sdev->basefw.fw->size) in sof_ipc3_fw_parse_ext_man()
171 while (remaining > sizeof(*elem_hdr)) { in sof_ipc3_fw_parse_ext_man()
178 elem_hdr->size > remaining) { in sof_ipc3_fw_parse_ext_man()
219 remaining -= elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
223 if (remaining) { in sof_ipc3_fw_parse_ext_man()
238 size_t remaining; in sof_ipc3_parse_module_memcpy() local
246 remaining = module->size; in sof_ipc3_parse_module_memcpy()
249 if (remaining < sizeof(*block)) { in sof_ipc3_parse_module_memcpy()
[all …]
H A Dsof-client-ipc-msg-injector.c80 size_t remaining; in sof_msg_inject_ipc4_dfs_read() local
89 remaining = header_size; in sof_msg_inject_ipc4_dfs_read()
94 remaining += ipc4_msg->data_size; in sof_msg_inject_ipc4_dfs_read()
96 if (count > remaining) in sof_msg_inject_ipc4_dfs_read()
97 count = remaining; in sof_msg_inject_ipc4_dfs_read()
98 else if (count < remaining) in sof_msg_inject_ipc4_dfs_read()
99 remaining = count; in sof_msg_inject_ipc4_dfs_read()
106 remaining -= header_size; in sof_msg_inject_ipc4_dfs_read()
108 if (!remaining) in sof_msg_inject_ipc4_dfs_read()
111 if (remaining > ipc4_msg->data_size) in sof_msg_inject_ipc4_dfs_read()
[all …]
/openbmc/linux/arch/alpha/lib/
H A Dsrm_puts.c12 long remaining, written; in srm_puts() local
17 for (remaining = len; remaining > 0; remaining -= written) in srm_puts()
19 written = callback_puts(0, str, remaining); in srm_puts()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_res_cursor.h39 uint64_t remaining; member
89 cur->remaining = size; in amdgpu_res_first()
100 cur->remaining = size; in amdgpu_res_first()
112 cur->remaining = size; in amdgpu_res_first()
132 BUG_ON(size > cur->remaining); in amdgpu_res_next()
134 cur->remaining -= size; in amdgpu_res_next()
135 if (!cur->remaining) in amdgpu_res_next()
153 cur->size = min(amdgpu_vram_mgr_block_size(block), cur->remaining); in amdgpu_res_next()
161 cur->size = min(node->size << PAGE_SHIFT, cur->remaining); in amdgpu_res_next()
/openbmc/linux/include/net/
H A Drtnh.h8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument
10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok()
12 rtnh->rtnh_len <= remaining; in rtnh_ok()
16 int *remaining) in rtnh_next() argument
20 *remaining -= totlen; in rtnh_next()
/openbmc/linux/sound/soc/intel/avs/
H A Dcldma.c48 unsigned int remaining; member
64 if (cl->remaining > cl->buffer_size) in hda_cldma_fill()
67 size = cl->remaining; in hda_cldma_fill()
78 cl->remaining -= ss; in hda_cldma_fill()
83 cl->remaining -= size; in hda_cldma_fill()
113 if (!cl->remaining) in cldma_memcpy_work()
126 if (!cl->remaining) in hda_cldma_transfer()
202 cl->remaining = size; in hda_cldma_set_data()
209 int remaining = cl->buffer_size; in cldma_setup_bdle() local
214 while (remaining > 0) { in cldma_setup_bdle()
[all …]
H A Dtrace.c21 size_t remaining = size; in trace_avs_msg_payload() local
24 while (remaining > 0) { in trace_avs_msg_payload()
27 chunk = min_t(size_t, remaining, MAX_CHUNK_SIZE); in trace_avs_msg_payload()
30 remaining -= chunk; in trace_avs_msg_payload()
/openbmc/openbmc/poky/meta/classes/
H A Duseradd.bbclass61 remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
64 if test "x$opts" = "x$remaining"; then
67 opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
68 remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
77 remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
80 if test "x$opts" = "x$remaining"; then
83 opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'`
84 remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
93 remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'`
96 if test "x$opts" = "x$remaining"; then
[all …]
H A Dextrausers.bbclass33 remaining=`echo $user_group_settings | cut -d ';' -f2-`
66 if [ "$setting" = "$remaining" ]; then
70 setting=`echo $remaining | cut -d ';' -f1`
71 remaining=`echo $remaining | cut -d ';' -f2-`
/openbmc/linux/drivers/target/tcm_fc/
H A Dtfc_io.c48 size_t remaining; in ft_queue_data_in() local
74 remaining = se_cmd->data_length; in ft_queue_data_in()
79 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
80 if (remaining) { in ft_queue_data_in()
88 use_sg = !(remaining % 4); in ft_queue_data_in()
90 while (remaining) { in ft_queue_data_in()
100 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
112 frame_len = min(frame_len, remaining); in ft_queue_data_in()
154 remaining -= tlen; in ft_queue_data_in()
159 if (!remaining) in ft_queue_data_in()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c110 unsigned long remaining; in msm_gem_shrinker_scan() member
120 unsigned long remaining = 0; in msm_gem_shrinker_scan() local
127 &stages[i].remaining, in msm_gem_shrinker_scan()
131 remaining += stages[i].remaining; in msm_gem_shrinker_scan()
140 return (freed > 0 && remaining > 0) ? freed : SHRINK_STOP; in msm_gem_shrinker_scan()
190 unsigned long remaining = 0; in msm_gem_shrinker_vmap() local
195 &remaining, in msm_gem_shrinker_vmap()
/openbmc/openbmc/meta-phosphor/recipes-phosphor/initrdscripts/files/
H A Dobmc-shutdown.sh54 remaining=$(ls $image*)
55 if test -n "$remaining"
58 echo 1>&2 "$remaining"
73 # for the remaining shutdown work
82 echo Remaining mounts:
/openbmc/linux/drivers/vfio/
H A Diova_bitmap.c295 * Returns the remaining bitmap indexes from mapped_total_index to process for
300 unsigned long remaining, bytes; in iova_bitmap_mapped_remaining() local
304 remaining = bitmap->mapped_total_index - bitmap->mapped_base_index; in iova_bitmap_mapped_remaining()
305 remaining = min_t(unsigned long, remaining, in iova_bitmap_mapped_remaining()
308 return remaining; in iova_bitmap_mapped_remaining()
318 unsigned long remaining; in iova_bitmap_mapped_length() local
326 remaining = iova_bitmap_index_to_offset(bitmap, in iova_bitmap_mapped_length()
329 if (iova + remaining - 1 > max_iova) in iova_bitmap_mapped_length()
330 remaining -= ((iova + remaining - 1) - max_iova); in iova_bitmap_mapped_length()
332 return remaining; in iova_bitmap_mapped_length()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
122 remaining = p->len; in radeon_atom_hw_i2c_xfer()
132 while (remaining) { in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
136 current_count = remaining; in radeon_atom_hw_i2c_xfer()
142 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
/openbmc/openbmc/poky/bitbake/lib/bb/pysh/
H A Dpyshlex.py141 delimited, return a tuple (expr, remaining) containing the expression
149 remaining = ''.join(self._buffer)
152 return result, remaining
368 remaining = token
374 pos, sep = find_chars(remaining, delimiters)
376 tree += [remaining, '']
378 tree.append(remaining[:pos])
379 remaining = remaining[pos:]
382 result, remaining = WordLexer(heredoc = here_document).add(remaining, True)
435 """If the here-document was delimited, return a tuple (content, remaining).
[all …]
/openbmc/sdeventplus/src/sdeventplus/utility/
H A Dtimer.hpp39 * interval or time remaining.
131 * @return The remaining time as an std::chrono::duration
147 * @param[in] remaining - The new amount of time left on the timer
150 void setRemaining(Duration remaining);
170 * time remaining is set to the new interval, and the timer is
180 * time remaining is set to the new remaining, and the timer is
186 void restartOnce(Duration remaining);
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_coredump.c22 s32 remaining; in ipc_coredump_collect() local
29 remaining = devlink->cd_file_info[entry].actual_size; in ipc_coredump_collect()
35 while (remaining > 0) { in ipc_coredump_collect()
36 bytes_to_read = min(remaining, MAX_DATA_SIZE); in ipc_coredump_collect()
44 remaining -= bytes_read; in ipc_coredump_collect()
/openbmc/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c57 * the svc_rqst will be recycled as soon as sendto returns. Remaining
372 * @remaining: remaining bytes of the payload left in the Write chunk
377 * that was consumed by the Write segment, and updates @remaining
382 u32 *remaining, unsigned int segno) in svc_rdma_encode_write_segment() argument
393 length = min_t(u32, *remaining, segment->rs_length); in svc_rdma_encode_write_segment()
394 *remaining -= length; in svc_rdma_encode_write_segment()
419 u32 remaining = chunk->ch_payload_length; in svc_rdma_encode_write_chunk() local
435 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno); in svc_rdma_encode_write_chunk()
583 unsigned int len, remaining; in svc_rdma_xb_dma_map() local
594 remaining = xdr->page_len; in svc_rdma_xb_dma_map()
[all …]
/openbmc/linux/drivers/firmware/tegra/
H A Dbpmp-debugfs.c196 int remaining, err, close_err; in mrq_debug_read() local
209 remaining = len; in mrq_debug_read()
211 while (remaining > 0) { in mrq_debug_read()
220 if (resp.frd.readlen > remaining) { in mrq_debug_read()
228 remaining -= resp.frd.readlen; in mrq_debug_read()
261 size_t remaining; in mrq_debug_write() local
275 remaining = sz_data; in mrq_debug_write()
277 while (remaining > 0) { in mrq_debug_write()
278 len = min(remaining, sizeof(req.fwr.data)); in mrq_debug_write()
291 remaining -= req.fwr.datalen; in mrq_debug_write()
[all …]
/openbmc/linux/drivers/md/bcache/
H A Dclosure.c31 atomic_set(&cl->remaining, in closure_put_after_sub()
52 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub()
60 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put()
93 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait()
97 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait()
175 int r = atomic_read(&cl->remaining); in debug_show()
/openbmc/linux/lib/xz/
H A Dxz_dec_test.c105 size_t remaining; in xz_dec_test_write() local
119 remaining = size; in xz_dec_test_write()
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write()
124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
129 remaining -= buffers.in_size; in xz_dec_test_write()
145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()

12345678910>>...110