Home
last modified time | relevance | path

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

12345678910>>...40

/kernel/linux/linux-5.10/drivers/firmware/google/
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 …]
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,
/kernel/linux/linux-4.19/drivers/firmware/google/
Dvpd_decode.c50 u32 consumed = *_consumed; in vpd_decode_entry() local
52 if (vpd_decode_len(max_len - consumed, &input_buf[consumed], in vpd_decode_entry()
55 if (max_len - consumed < decoded_len) in vpd_decode_entry()
58 consumed += decoded_len; in vpd_decode_entry()
59 *entry = input_buf + consumed; in vpd_decode_entry()
62 if (max_len - consumed < *entry_len) in vpd_decode_entry()
65 consumed += *entry_len; in vpd_decode_entry()
66 *_consumed = consumed; in vpd_decode_entry()
70 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, in vpd_decode_string() argument
80 if (*consumed >= max_len) in vpd_decode_string()
[all …]
Dvpd_decode.h44 * (key, value). The *consumed will be plused the number of bytes consumed in
49 * The *consumed starts from 0, which is actually the next byte to be decoded.
55 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed,
/kernel/linux/linux-4.19/net/netfilter/
Dnft_quota.c21 atomic64_t consumed; member
27 return atomic64_add_return(skb->len, &priv->consumed) >= priv->quota; in nft_overquota()
72 u64 quota, consumed = 0; in nft_quota_do_init() local
82 consumed = be64_to_cpu(nla_get_be64(tb[NFTA_QUOTA_CONSUMED])); in nft_quota_do_init()
83 if (consumed > quota) in nft_quota_do_init()
97 atomic64_set(&priv->consumed, consumed); in nft_quota_do_init()
114 u64 consumed, consumed_cap; in nft_quota_do_dump() local
117 /* Since we inconditionally increment consumed quota for each packet in nft_quota_do_dump()
121 consumed = atomic64_read(&priv->consumed); in nft_quota_do_dump()
122 if (consumed >= priv->quota) { in nft_quota_do_dump()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
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 …]
/kernel/linux/linux-4.19/drivers/misc/cb710/
Dsgbuf2.c17 miter->consumed = 0; in sg_dwiter_next()
25 return miter->length == miter->consumed && !sg_dwiter_next(miter); in sg_dwiter_is_at_end()
35 len = min(miter->length - miter->consumed, left); in sg_dwiter_read_buffer()
36 memcpy(addr, miter->addr + miter->consumed, len); in sg_dwiter_read_buffer()
37 miter->consumed += len; in sg_dwiter_read_buffer()
64 len = miter->length - miter->consumed; in sg_dwiter_get_next_block()
67 miter->addr + miter->consumed))) { in sg_dwiter_get_next_block()
68 *ptr = miter->addr + miter->consumed; in sg_dwiter_get_next_block()
69 miter->consumed += 4; in sg_dwiter_get_next_block()
110 len = min(miter->length - miter->consumed, left); in sg_dwiter_write_slow()
[all …]
/kernel/linux/linux-5.10/drivers/misc/cb710/
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 …]
/kernel/linux/linux-4.19/include/linux/
Dvringh.h92 size_t consumed; /* Within iov[i] */ member
104 size_t consumed; /* Within iov[i] */ member
122 iov->consumed = 0; in vringh_iov_init()
129 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
130 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
131 iov->consumed = 0; in vringh_iov_reset()
139 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
184 kiov->consumed = 0; in vringh_kiov_init()
191 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset()
192 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset()
[all …]
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,
/kernel/linux/linux-5.10/include/linux/
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 …]
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,
/kernel/linux/linux-5.10/Documentation/hwmon/
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
/kernel/linux/linux-4.19/Documentation/hwmon/
Dfam15h_power24 is the power consumed when running a specific application. Thermal
35 consumed by the processor for NB and logic external to the core.
39 consumed by the processor.
52 calculate the average power consumed by a processor during a
/kernel/linux/linux-5.10/sound/firewire/fireface/
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()
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/usb/
Dusb251xb.txt48 - sp-max-total-current-microamp: Specifies max current consumed by the hub
52 - bp-max-total-current-microamp: Specifies max current consumed by the hub
56 - sp-max-removable-current-microamp: Specifies max current consumed by the hub
60 - bp-max-removable-current-microamp: Specifies max current consumed by the hub
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
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
/kernel/linux/linux-4.19/kernel/
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 = buf->subbufs_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 …]
/kernel/linux/linux-5.10/kernel/
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 …]
/kernel/linux/linux-5.10/lib/
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()
/kernel/linux/linux-4.19/lib/
Dts_kmp.c49 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find() local
54 text_len = conf->get_next_block(consumed, &text, conf, state); in kmp_find()
67 state->offset = consumed + i + 1; in kmp_find()
72 consumed += text_len; in kmp_find()
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/goldmont/
Dother.json24 …iption": "Counts the number of issue slots per core cycle that were not consumed by the backend du…
34 …iption": "Counts the number of issue slots per core cycle that were not consumed because of a full…
44 …iption": "Counts the number of issue slots per core cycle that were not consumed by the backend be…
/kernel/linux/linux-4.19/tools/perf/pmu-events/arch/x86/goldmont/
Dother.json24 …iption": "Counts the number of issue slots per core cycle that were not consumed by the backend du…
34 …iption": "Counts the number of issue slots per core cycle that were not consumed because of a full…
44 …iption": "Counts the number of issue slots per core cycle that were not consumed by the backend be…
/kernel/linux/linux-4.19/drivers/crypto/cavium/zip/
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()
/kernel/linux/linux-5.10/drivers/crypto/cavium/zip/
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()

12345678910>>...40