Home
last modified time | relevance | path

Searched full:consumed (Results 1 – 25 of 807) sorted by relevance

12345678910>>...33

/OK3568_Linux_fs/kernel/drivers/firmware/google/
H A Dvpd_decode.c40 u32 consumed = *_consumed; in vpd_decode_entry() local
42 if (vpd_decode_len(max_len - consumed, &input_buf[consumed], in vpd_decode_entry()
45 if (max_len - consumed < decoded_len) in vpd_decode_entry()
48 consumed += decoded_len; in vpd_decode_entry()
49 *entry = input_buf + consumed; in vpd_decode_entry()
52 if (max_len - consumed < *entry_len) in vpd_decode_entry()
55 consumed += *entry_len; in vpd_decode_entry()
56 *_consumed = consumed; in vpd_decode_entry()
60 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, in vpd_decode_string() argument
70 if (*consumed >= max_len) in vpd_decode_string()
[all …]
H A Dvpd_decode.h36 * (key, value). The *consumed will be plused the number of bytes consumed in
41 * The *consumed starts from 0, which is actually the next byte to be decoded.
47 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed,
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnft_quota.c18 atomic64_t consumed; member
24 return atomic64_add_return(skb->len, &priv->consumed) >= in nft_overquota()
70 u64 quota, consumed = 0; in nft_quota_do_init() local
80 consumed = be64_to_cpu(nla_get_be64(tb[NFTA_QUOTA_CONSUMED])); in nft_quota_do_init()
81 if (consumed > quota) in nft_quota_do_init()
95 atomic64_set(&priv->consumed, consumed); in nft_quota_do_init()
124 u64 consumed, consumed_cap, quota; in nft_quota_do_dump() local
127 /* Since we inconditionally increment consumed quota for each packet in nft_quota_do_dump()
131 consumed = atomic64_read(&priv->consumed); in nft_quota_do_dump()
133 if (consumed >= quota) { in nft_quota_do_dump()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/cb710/
H A Dsgbuf2.c14 miter->consumed = 0; in sg_dwiter_next()
22 return miter->length == miter->consumed && !sg_dwiter_next(miter); in sg_dwiter_is_at_end()
32 len = min(miter->length - miter->consumed, left); in sg_dwiter_read_buffer()
33 memcpy(addr, miter->addr + miter->consumed, len); in sg_dwiter_read_buffer()
34 miter->consumed += len; in sg_dwiter_read_buffer()
61 len = miter->length - miter->consumed; in sg_dwiter_get_next_block()
64 miter->addr + miter->consumed))) { in sg_dwiter_get_next_block()
65 *ptr = miter->addr + miter->consumed; in sg_dwiter_get_next_block()
66 miter->consumed += 4; in sg_dwiter_get_next_block()
107 len = min(miter->length - miter->consumed, left); in sg_dwiter_write_slow()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/protozero/1.5.2/include/protozero/
H A Dpbf_reader.hpp453 * @post The current field was consumed and there is no current field now.
485 * @post The current field was consumed and there is no current field now.
500 * @post The current field was consumed and there is no current field now.
512 * @post The current field was consumed and there is no current field now.
524 * @post The current field was consumed and there is no current field now.
536 * @post The current field was consumed and there is no current field now.
548 * @post The current field was consumed and there is no current field now.
560 * @post The current field was consumed and there is no current field now.
572 * @post The current field was consumed and there is no current field now.
584 * @post The current field was consumed and there is no current field now.
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dvringh.h86 size_t consumed; /* Within iov[i] */ member
98 size_t consumed; /* Within iov[i] */ member
116 iov->consumed = 0; in vringh_iov_init()
123 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
124 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
125 iov->consumed = 0; in vringh_iov_reset()
133 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
178 kiov->consumed = 0; in vringh_kiov_init()
185 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset()
186 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset()
[all …]
H A Dtextsearch.h66 * @consumed: number of bytes consumed by the caller
73 * of the block or 0 if at the end. consumed == 0 indicates
76 unsigned int (*get_next_block)(unsigned int consumed,
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Dutil.c28 struct scatterlist *cryptodev_sg_advance(struct scatterlist *sg, int consumed) in cryptodev_sg_advance() argument
30 while (consumed >= sg->length) { in cryptodev_sg_advance()
31 consumed -= sg->length; in cryptodev_sg_advance()
38 WARN_ON(!sg && consumed); in cryptodev_sg_advance()
43 sg->offset += consumed; in cryptodev_sg_advance()
44 sg->length -= consumed; in cryptodev_sg_advance()
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/av1/
H A Dav1d_api.c152 RK_S32 consumed = 0; in av1d_prepare() local
189 consumed = av1d_split_frame(av1_ctx, &out_data, &out_size, buf, length); in av1d_prepare()
191 out_size = consumed = length; in av1d_prepare()
195 pos += (consumed >= 0) ? consumed : length; in av1d_prepare()
198 mpp_packet_set_length(pkt, length - consumed); in av1d_prepare()
201 … av1d_dbg(AV1D_DBG_STRMIN, "pkt_len=%d, pts=%lld , out_size %d consumed %d new frame %d eos %d\n", in av1d_prepare()
202 length, pts, out_size, consumed, av1_ctx->new_frame, av1_ctx->eos); in av1d_prepare()
204 av1d_get_frame_stream(av1_ctx, buf, consumed); in av1d_prepare()
/OK3568_Linux_fs/kernel/sound/firewire/fireface/
H A Dff-protocol-latter.c494 int consumed; in latter_fill_midi_msg() local
497 consumed = snd_rawmidi_transmit_peek(substream, buf + 1, 3); in latter_fill_midi_msg()
498 if (consumed <= 0) in latter_fill_midi_msg()
499 return consumed; in latter_fill_midi_msg()
503 if (consumed < calculate_message_bytes(buf[1])) in latter_fill_midi_msg()
510 buf[0] |= consumed; in latter_fill_midi_msg()
515 consumed -= 1; in latter_fill_midi_msg()
518 buf[0] |= consumed; in latter_fill_midi_msg()
522 consumed = 1; in latter_fill_midi_msg()
528 ff->rx_bytes[port] = consumed; in latter_fill_midi_msg()
/OK3568_Linux_fs/kernel/Documentation/hwmon/
H A Dfam15h_power.rst29 is the power consumed when running a specific application. Thermal
41 consumed by the processor for NB and logic external to the core.
48 consumed by the processor.
62 calculate the average power consumed by a processor during a
/OK3568_Linux_fs/kernel/kernel/
H A Drelay.c802 * relay_subbufs_consumed - update the buffer's sub-buffers-consumed count
807 * Adds to the channel buffer's consumed sub-buffer count.
808 * subbufs_consumed should be the number of sub-buffers newly consumed,
809 * not the total consumed.
964 * relay_file_read_consume - update the consumed count for the buffer
1005 size_t consumed; in relay_file_read_avail() local
1009 consumed = buf->subbufs_consumed; in relay_file_read_avail()
1012 if (produced == consumed) in relay_file_read_avail()
1017 if (unlikely(produced - consumed >= n_subbufs)) { in relay_file_read_avail()
1018 consumed = produced - n_subbufs + 1; in relay_file_read_avail()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A Dusb251xb.txt49 - sp-max-total-current-microamp: Specifies max current consumed by the hub
53 - bp-max-total-current-microamp: Specifies max current consumed by the hub
57 - sp-max-removable-current-microamp: Specifies max current consumed by the hub
61 - bp-max-removable-current-microamp: Specifies max current consumed by the hub
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/mtdutils/
H A Dmtdutils.c41 size_t consumed; member
278 ctx->consumed = partition->erase_size; in mtd_read_partition()
333 if (ctx->consumed < ctx->partition->erase_size) { in mtd_read_data()
334 size_t avail = ctx->partition->erase_size - ctx->consumed; in mtd_read_data()
336 memcpy(data + read, ctx->buffer + ctx->consumed, copy); in mtd_read_data()
337 ctx->consumed += copy; in mtd_read_data()
342 while (ctx->consumed == ctx->partition->erase_size && in mtd_read_data()
353 if (ctx->consumed == ctx->partition->erase_size && read < (int) len) { in mtd_read_data()
355 ctx->consumed = 0; in mtd_read_data()
/OK3568_Linux_fs/kernel/lib/
H A Dts_kmp.c45 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find() local
50 text_len = conf->get_next_block(consumed, &text, conf, state); in kmp_find()
63 state->offset = consumed + i + 1; in kmp_find()
68 consumed += text_len; in kmp_find()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/
H A Dbcm_ring.h4 * produced and consumed respectively. All elements in the ring need to be
47 * consumed. The caller may not commut the READ of the element.
58 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
59 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
317 * @read: index upto which elements have been consumed.
328 * element may be consumed.
330 * @pend_read: index into ring upto which elements may be consumed.
351 * be consumed.
437 * bcm_ring_cons_all - set ring in state where all elements are consumed.
/OK3568_Linux_fs/external/recovery/mtdutils/
H A Dmtdutils.c34 size_t consumed; member
298 ctx->consumed = partition->erase_size; in mtd_read_partition()
354 if (ctx->consumed < ctx->partition->erase_size) { in mtd_read_data()
355 size_t avail = ctx->partition->erase_size - ctx->consumed; in mtd_read_data()
357 memcpy(data + read, ctx->buffer + ctx->consumed, copy); in mtd_read_data()
358 ctx->consumed += copy; in mtd_read_data()
363 while (ctx->consumed == ctx->partition->erase_size && in mtd_read_data()
374 if (ctx->consumed == ctx->partition->erase_size && read < (int) len) { in mtd_read_data()
376 ctx->consumed = 0; in mtd_read_data()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/
H A Dbcm_ring.h4 * produced and consumed respectively. All elements in the ring need to be
47 * consumed. The caller may not commut the READ of the element.
58 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
59 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
317 * @read: index upto which elements have been consumed.
328 * element may be consumed.
330 * @pend_read: index into ring upto which elements may be consumed.
351 * be consumed.
437 * bcm_ring_cons_all - set ring in state where all elements are consumed.
/OK3568_Linux_fs/kernel/net/batman-adv/
H A Drouting.c216 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
265 /* skb was consumed */ in batadv_recv_my_icmp_packet()
274 /* skb was consumed */ in batadv_recv_my_icmp_packet()
333 /* skb was consumed */ in batadv_recv_icmp_ttl_exceeded()
434 /* skb was consumed */ in batadv_recv_icmp_packet()
730 /* skb was transmitted and consumed */ in batadv_route_unicast_packet()
736 /* skb was consumed */ in batadv_route_unicast_packet()
925 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
1051 /* skb was consumed */ in batadv_recv_unicast_packet()
1065 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/cavium/zip/
H A Dzip_device.c50 * zip_cmd_queue_consumed - Calculates the space consumed in the command queue.
55 * Return: Bytes consumed in the command queue buffer.
82 u32 consumed = 0; in zip_load_instr() local
112 consumed = zip_cmd_queue_consumed(zip_dev, queue); in zip_load_instr()
114 if ((consumed + 128) == (ZIP_CMD_QBUF_SIZE - 8)) { in zip_load_instr()
/OK3568_Linux_fs/kernel/include/linux/sunrpc/
H A Dxdr.h313 * On success, returns length in bytes of XDR buffer consumed
332 * On success, returns length in bytes of XDR buffer consumed
352 * On success, returns length in bytes of XDR buffer consumed
373 * On success, returns length in bytes of XDR buffer consumed
395 * On success, returns length in bytes of XDR buffer consumed
420 * On success, returns length in bytes of XDR buffer consumed
441 * On success, returns length in bytes of XDR buffer consumed
463 * On success, returns length in bytes of XDR buffer consumed
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/include/
H A Dbcm_ring.h4 * produced and consumed respectively. All elements in the ring need to be
55 * consumed. The caller may not commut the READ of the element.
66 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
67 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
349 * @read: index upto which elements have been consumed.
360 * element may be consumed.
362 * @pend_read: index into ring upto which elements may be consumed.
383 * be consumed.
469 * bcm_ring_cons_all - set ring in state where all elements are consumed.
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/include/
H A Dbcm_ring.h5 * produced and consumed respectively. All elements in the ring need to be
54 * consumed. The caller may not commut the READ of the element.
65 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
66 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
355 * @read: index upto which elements have been consumed.
367 * element may be consumed.
369 * @pend_read: index into ring upto which elements may be consumed.
391 * be consumed.
482 * bcm_ring_cons_all - set ring in state where all elements are consumed.
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/
H A Dbcm_ring.h4 * produced and consumed respectively. All elements in the ring need to be
55 * consumed. The caller may not commut the READ of the element.
66 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
67 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
349 * @read: index upto which elements have been consumed.
360 * element may be consumed.
362 * @pend_read: index into ring upto which elements may be consumed.
383 * be consumed.
469 * bcm_ring_cons_all - set ring in state where all elements are consumed.
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/include/
H A Dbcm_ring.h4 * produced and consumed respectively. All elements in the ring need to be
55 * consumed. The caller may not commut the READ of the element.
66 * - bcm_ring_cons : Fetch index where an element may be consumed (commit)
67 * - bcm_ring_cons_pend: Fetch index where an element may be consumed (pending)
349 * @read: index upto which elements have been consumed.
360 * element may be consumed.
362 * @pend_read: index into ring upto which elements may be consumed.
383 * be consumed.
469 * bcm_ring_cons_all - set ring in state where all elements are consumed.

12345678910>>...33