Home
last modified time | relevance | path

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

12345678910>>...24

/linux/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,
/linux/net/netfilter/
H A Dnft_quota.c18 atomic64_t *consumed; member
25 u64 consumed = atomic64_add_return(skb->len, priv->consumed); in nft_overquota()
29 *report = consumed >= quota; in nft_quota_invert()
31 return consumed > quota; in nft_quota_invert()
76 u64 quota, consumed = 0; in nft_quota_do_init()
86 consumed = be64_to_cpu(nla_get_be64(tb[NFTA_QUOTA_CONSUMED])); in nft_quota_do_init()
87 if (consumed > quota) in nft_quota_do_init()
99 priv->consumed = kmalloc(sizeof(*priv->consumed), GFP_KERNEL_ACCOUN in nft_quota_do_init()
70 u64 quota, consumed = 0; nft_quota_do_init() local
134 u64 consumed, consumed_cap, quota; nft_quota_do_dump() local
[all...]
/linux/include/linux/
H A Diov_iter.h48 size_t remain, consumed; in iterate_iovec() local
53 consumed = part - remain; in iterate_iovec()
54 progress += consumed; in iterate_iovec()
55 skip += consumed; in iterate_iovec()
56 len -= consumed; in iterate_iovec()
82 size_t remain, consumed; in iterate_kvec() local
87 consumed = part - remain; in iterate_kvec()
88 progress += consumed; in iterate_kvec()
89 skip += consumed; in iterate_kvec()
90 len -= consumed; in iterate_kvec()
[all …]
H A Dvringh.h89 * @consumed: number of bytes consumed within iov[i]
100 size_t consumed; /* Within iov[i] */ member
107 * @consumed: number of bytes consumed within iov[i]
118 size_t consumed; /* Within iov[i] */ member
136 iov->consumed = 0; in vringh_iov_init()
143 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset()
144 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset()
145 iov->consumed = 0; in vringh_iov_reset()
153 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
198 kiov->consumed = 0; in vringh_kiov_init()
[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,
/linux/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 …]
/linux/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c54 ssize_t consumed = pread(fd, buf, size, 0); in dev_papr_vpd_get_handle_all() local
55 FAIL_IF(consumed != size); in dev_papr_vpd_get_handle_all()
86 size_t consumed = 0; in dev_papr_vpd_get_handle_byte_at_a_time() local
96 consumed += res; in dev_papr_vpd_get_handle_byte_at_a_time()
101 FAIL_IF(consumed != lseek(fd, 0, SEEK_END)); in dev_papr_vpd_get_handle_byte_at_a_time()
203 ssize_t consumed = pread(fd, bufs[i], size, 0); in papr_vpd_reread() local
204 FAIL_IF(consumed != size); in papr_vpd_reread()
286 ssize_t consumed = pread(fd, buf, size, 0); in papr_vpd_system_loc_code() local
287 FAIL_IF(consumed != size); in papr_vpd_system_loc_code()
/linux/kernel/
H A Drelay.c604 * relay_subbufs_consumed - update the buffer's sub-buffers-consumed count
609 * Adds to the channel buffer's consumed sub-buffer count.
610 * subbufs_consumed should be the number of sub-buffers newly consumed,
611 * not the total consumed.
766 * relay_file_read_consume - update the consumed count for the buffer
807 size_t consumed; in relay_file_read_avail() local
811 consumed = buf->subbufs_consumed; in relay_file_read_avail()
814 if (produced == consumed) in relay_file_read_avail()
819 if (unlikely(produced - consumed >= n_subbufs)) { in relay_file_read_avail()
820 consumed = produced - n_subbufs + 1; in relay_file_read_avail()
[all …]
/linux/sound/firewire/motu/
H A Dmotu-hwdep.c66 size_t consumed = 0; in hwdep_read() local
73 consumed += sizeof(event.motu_register_dsp_change); in hwdep_read()
75 while (consumed < count && in hwdep_read()
77 ptr = (u32 __user *)(buf + consumed); in hwdep_read()
80 consumed += sizeof(ev); in hwdep_read()
85 (consumed - sizeof(event.motu_register_dsp_change)) / 4; in hwdep_read()
89 count = consumed; in hwdep_read()
/linux/drivers/accessibility/speakup/
H A Dsynth.c222 * In all cases, returns the number of consumed bytes in *consumed,
226 s32 synth_utf8_get(const char *buf, size_t count, size_t *consumed, size_t *want) in synth_utf8_get() argument
238 *consumed = 1; in synth_utf8_get()
244 *consumed = 1; in synth_utf8_get()
253 *consumed = 0; in synth_utf8_get()
266 *consumed = i; in synth_utf8_get()
273 *consumed = nbytes; in synth_utf8_get()
281 size_t i, consumed, want; in synth_writeu() local
287 value = synth_utf8_get(buf + i, count - i, &consumed, &want); in synth_writeu()
/linux/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
/linux/sound/firewire/fireface/
H A Dff-protocol-latter.c492 int consumed; in latter_fill_midi_msg() local
495 consumed = snd_rawmidi_transmit_peek(substream, buf + 1, 3); in latter_fill_midi_msg()
496 if (consumed <= 0) in latter_fill_midi_msg()
497 return consumed; in latter_fill_midi_msg()
501 if (consumed < calculate_message_bytes(buf[1])) in latter_fill_midi_msg()
508 buf[0] |= consumed; in latter_fill_midi_msg()
513 consumed -= 1; in latter_fill_midi_msg()
516 buf[0] |= consumed; in latter_fill_midi_msg()
520 consumed = 1; in latter_fill_midi_msg()
526 ff->rx_bytes[port] = consumed; in latter_fill_midi_msg()
/linux/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()
H A Dts_bm.c79 unsigned int i, text_len, consumed = state->offset; in bm_find() local
87 text_len = conf->get_next_block(consumed, &text, conf, state); in bm_find()
101 return consumed + (shift-(bm->patlen-1)); in bm_find()
109 consumed += text_len; in bm_find()
H A Dts_fsm.c139 unsigned block_len = 0, strict, consumed = state->offset; in fsm_find() local
143 ({ consumed += block_idx; \ in fsm_find()
145 block_len = conf->get_next_block(consumed, &data, conf, state); }) in fsm_find()
163 match_start = consumed + block_idx; in fsm_find()
237 match_start = consumed + block_idx; in fsm_find()
251 state->offset = consumed + block_idx; in fsm_find()
/linux/net/batman-adv/
H A Drouting.c213 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
253 /* skb was consumed */ in batadv_recv_my_icmp_packet()
262 /* skb was consumed */ in batadv_recv_my_icmp_packet()
319 /* skb was consumed */ in batadv_recv_icmp_ttl_exceeded()
418 /* skb was consumed */ in batadv_recv_icmp_packet()
711 /* skb was transmitted and consumed */ in batadv_route_unicast_packet()
717 /* skb was consumed */ in batadv_route_unicast_packet()
905 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
1030 /* skb was consumed */ in batadv_recv_unicast_packet()
1044 * Return: NET_RX_SUCCESS if the packet has been consumed or NET_RX_DROP
[all …]
/linux/drivers/media/dvb-core/
H A Ddvb_ringbuffer.c326 int consumed; in dvb_ringbuffer_pkt_next() local
338 consumed = (idx - rbuf->pread); in dvb_ringbuffer_pkt_next()
339 if (consumed < 0) in dvb_ringbuffer_pkt_next()
340 consumed += rbuf->size; in dvb_ringbuffer_pkt_next()
342 while((dvb_ringbuffer_avail(rbuf) - consumed) > DVB_RINGBUFFER_PKTHDRSIZE) { in dvb_ringbuffer_pkt_next()
353 consumed += curpktlen + DVB_RINGBUFFER_PKTHDRSIZE; in dvb_ringbuffer_pkt_next()
/linux/kernel/kcsan/
H A Dkcsan.h120 * The calling thread hit and consumed a watchpoint: set the access information
121 * to be consumed by the reporting thread. No report is printed yet.
128 * consumed: print the full report based on information set by the racing
/linux/Documentation/devicetree/bindings/usb/
H A Dusb251xb.yaml194 Specifies max current consumed by the hub from VBUS when
203 Specifies max current consumed by the hub from VBUS when
212 Specifies max current consumed by the hub from VBUS when
221 Specifies max current consumed by the hub from VBUS when
/linux/Documentation/mm/
H A Dhugetlbfs_reserv.rst126 consumed, the reservation map is not modified.
129 consumed, entries are added to the reservation map. Therefore, the
131 been consumed.
180 Reservations are consumed when huge pages associated with the reservations
222 SetPagePrivate(page); /* Indicates allocating this page consumed
343 consumed. When an attempt to allocate a new page is made as a result of
446 reservation map we know how many reservations were consumed and how many are
526 allocation has consumed the reservation and made the appropriate subpool,
530 indicates the reservation was consumed. This resulting inconsistent state
544 reservation map will continue to look as though the reservation was consumed.
/linux/drivers/scsi/
H A Discsi_tcp.c88 unsigned int consumed, total_consumed = 0; in iscsi_sw_tcp_recv() local
95 consumed = iscsi_tcp_recv_skb(conn, skb, offset, 0, &status); in iscsi_sw_tcp_recv()
96 offset += consumed; in iscsi_sw_tcp_recv()
97 total_consumed += consumed; in iscsi_sw_tcp_recv()
98 } while (consumed != 0 && status != ISCSI_TCP_SKB_DONE); in iscsi_sw_tcp_recv()
347 unsigned int consumed = 0; in iscsi_sw_tcp_xmit() local
365 consumed += rc; in iscsi_sw_tcp_xmit()
376 ISCSI_SW_TCP_DBG(conn, "xmit %d bytes\n", consumed); in iscsi_sw_tcp_xmit()
378 conn->txdata_octets += consumed; in iscsi_sw_tcp_xmit()
379 return consumed; in iscsi_sw_tcp_xmit()
/linux/drivers/iio/
H A Diio_core_trigger.h19 * @indio_dev: iio_dev associated with the device that consumed the trigger
42 * @indio_dev: iio_dev associated with the device that consumed the trigger
/linux/sound/firewire/fireworks/
H A Dfireworks_proc.c182 unsigned int consumed; in proc_read_queues_state() local
185 consumed = snd_efw_resp_buf_size - in proc_read_queues_state()
188 consumed = (unsigned int)(efw->push_ptr - efw->pull_ptr); in proc_read_queues_state()
191 consumed, snd_efw_resp_buf_size); in proc_read_queues_state()
/linux/tools/testing/selftests/sched_ext/
H A Dselect_cpu_vtime.c33 SCX_ASSERT(!skel->bss->consumed); in run()
40 SCX_ASSERT(skel->bss->consumed); in run()

12345678910>>...24