/linux-6.3-rc2/drivers/firmware/google/ |
A D | vpd_decode.c | 40 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() 70 if (*consumed >= max_len) in vpd_decode_string() 73 type = input_buf[*consumed]; in vpd_decode_string() [all …]
|
A D | vpd.c | 170 s32 consumed; in vpd_section_create_attribs() local 173 consumed = 0; in vpd_section_create_attribs() 176 &consumed, vpd_section_attrib_add, sec); in vpd_section_create_attribs()
|
A D | vpd_decode.h | 47 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed,
|
/linux-6.3-rc2/net/netfilter/ |
A D | nft_quota.c | 18 atomic64_t *consumed; member 70 u64 quota, consumed = 0; in nft_quota_do_init() local 81 if (consumed > quota) in nft_quota_do_init() 93 priv->consumed = kmalloc(sizeof(*priv->consumed), GFP_KERNEL_ACCOUNT); in nft_quota_do_init() 94 if (!priv->consumed) in nft_quota_do_init() 99 atomic64_set(priv->consumed, consumed); in nft_quota_do_init() 107 kfree(priv->consumed); in nft_quota_do_destroy() 141 consumed = atomic64_read(priv->consumed); in nft_quota_do_dump() 158 atomic64_sub(consumed, priv->consumed); in nft_quota_do_dump() 244 priv_dst->consumed = kmalloc(sizeof(*priv_dst->consumed), GFP_ATOMIC); in nft_quota_clone() [all …]
|
/linux-6.3-rc2/drivers/misc/cb710/ |
A D | sgbuf2.c | 14 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-6.3-rc2/include/linux/ |
A D | vringh.h | 90 size_t consumed; /* Within iov[i] */ member 102 size_t consumed; /* Within iov[i] */ member 120 iov->consumed = 0; in vringh_iov_init() 127 iov->iov[iov->i].iov_len += iov->consumed; in vringh_iov_reset() 128 iov->iov[iov->i].iov_base -= iov->consumed; in vringh_iov_reset() 129 iov->consumed = 0; in vringh_iov_reset() 137 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup() 182 kiov->consumed = 0; in vringh_kiov_init() 189 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset() 190 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset() [all …]
|
/linux-6.3-rc2/sound/firewire/fireface/ |
A D | ff-protocol-latter.c | 492 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()
|
A D | ff-protocol-former.c | 685 long consumed = 0; in ff400_copy_msg_to_user() local 692 consumed += sizeof(ev); in ff400_copy_msg_to_user() 696 if (copy_to_user(buf + consumed, parser->msgs + parser->pull_pos, in ff400_copy_msg_to_user() 708 consumed += sizeof(*parser->msgs); in ff400_copy_msg_to_user() 718 return consumed; in ff400_copy_msg_to_user()
|
/linux-6.3-rc2/sound/firewire/motu/ |
A D | motu-hwdep.c | 66 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-6.3-rc2/lib/ |
A D | textsearch.c | 204 static unsigned int get_linear_data(unsigned int consumed, const u8 **dst, in get_linear_data() argument 210 if (likely(consumed < st->len)) { in get_linear_data() 211 *dst = st->data + consumed; in get_linear_data() 212 return st->len - consumed; in get_linear_data()
|
A D | ts_kmp.c | 45 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()
|
A D | ts_bm.c | 61 unsigned int i, text_len, consumed = state->offset; in bm_find() local 67 text_len = conf->get_next_block(consumed, &text, conf, state); in bm_find() 83 return consumed + (shift-(bm->patlen-1)); in bm_find() 90 consumed += text_len; in bm_find()
|
A D | scatterlist.c | 852 off_t consumed; in sg_miter_skip() local 857 consumed = min_t(off_t, offset, miter->__remaining); in sg_miter_skip() 858 miter->__offset += consumed; in sg_miter_skip() 859 miter->__remaining -= consumed; in sg_miter_skip() 860 offset -= consumed; in sg_miter_skip() 895 miter->consumed = miter->length = miter->__remaining; in sg_miter_next() 921 WARN_ON(miter->consumed > miter->length); in sg_miter_stop() 925 miter->__offset += miter->consumed; in sg_miter_stop() 926 miter->__remaining -= miter->consumed; in sg_miter_stop() 940 miter->consumed = 0; in sg_miter_stop()
|
A D | ts_fsm.c | 139 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-6.3-rc2/drivers/media/dvb-core/ |
A D | dvb_ringbuffer.c | 326 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-6.3-rc2/drivers/crypto/cavium/zip/ |
A D | zip_device.c | 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()
|
/linux-6.3-rc2/sound/firewire/fireworks/ |
A D | fireworks_proc.c | 182 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-6.3-rc2/kernel/ |
A D | relay.c | 917 size_t consumed; in relay_file_read_avail() local 921 consumed = buf->subbufs_consumed; in relay_file_read_avail() 924 if (produced == consumed) in relay_file_read_avail() 929 if (unlikely(produced - consumed >= n_subbufs)) { in relay_file_read_avail() 930 consumed = produced - n_subbufs + 1; in relay_file_read_avail() 931 buf->subbufs_consumed = consumed; in relay_file_read_avail() 936 consumed = (consumed % n_subbufs) * subbuf_size + buf->bytes_consumed; in relay_file_read_avail() 938 if (consumed > produced) in relay_file_read_avail() 941 if (consumed == produced) { in relay_file_read_avail() 991 size_t consumed = buf->subbufs_consumed % n_subbufs; in relay_file_read_start_pos() local [all …]
|
/linux-6.3-rc2/drivers/scsi/aacraid/ |
A D | dpcsup.c | 45 int consumed = 0; in aac_response_normal() local 134 consumed++; in aac_response_normal() 138 if (consumed > aac_config.peak_fibs) in aac_response_normal() 139 aac_config.peak_fibs = consumed; in aac_response_normal() 140 if (consumed == 0) in aac_response_normal()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath11k/ |
A D | testmode.c | 29 bool consumed; in ath11k_tm_event_wmi() local 40 consumed = true; in ath11k_tm_event_wmi() 83 return consumed; in ath11k_tm_event_wmi()
|
/linux-6.3-rc2/drivers/scsi/ |
A D | iscsi_tcp.c | 89 unsigned int consumed, total_consumed = 0; in iscsi_sw_tcp_recv() local 96 consumed = iscsi_tcp_recv_skb(conn, skb, offset, 0, &status); in iscsi_sw_tcp_recv() 97 offset += consumed; in iscsi_sw_tcp_recv() 98 total_consumed += consumed; in iscsi_sw_tcp_recv() 99 } while (consumed != 0 && status != ISCSI_TCP_SKB_DONE); in iscsi_sw_tcp_recv() 351 unsigned int consumed = 0; in iscsi_sw_tcp_xmit() local 369 consumed += rc; in iscsi_sw_tcp_xmit() 380 ISCSI_SW_TCP_DBG(conn, "xmit %d bytes\n", consumed); in iscsi_sw_tcp_xmit() 382 conn->txdata_octets += consumed; in iscsi_sw_tcp_xmit() 383 return consumed; in iscsi_sw_tcp_xmit()
|
/linux-6.3-rc2/drivers/crypto/qat/qat_common/ |
A D | qat_comp_algs.c | 159 int consumed; in qat_comp_rfc1950_callback() local 161 consumed = qat_comp_get_consumed_ctr(resp); in qat_comp_rfc1950_callback() 162 footer_offset = consumed + QAT_RFC_1950_HDR_SIZE; in qat_comp_rfc1950_callback() 183 int consumed, produced; in qat_comp_generic_callback() local 194 consumed = qat_comp_get_consumed_ctr(resp); in qat_comp_generic_callback() 202 areq->slen, areq->dlen, consumed, produced, cmp_err, xlt_err); in qat_comp_generic_callback()
|
/linux-6.3-rc2/Documentation/hwmon/ |
A D | fam15h_power.rst | 29 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-6.3-rc2/drivers/mmc/host/ |
A D | cavium.c | 310 if (smi->consumed >= smi->length) { in do_read() 313 smi->consumed = 0; in do_read() 321 while (smi->consumed < smi->length && shift >= 0) { in do_read() 322 ((u8 *)smi->addr)[smi->consumed] = (dat >> shift) & 0xff; in do_read() 324 smi->consumed++; in do_read() 728 if (smi->consumed >= smi->length) { in do_write_request() 731 smi->consumed = 0; in do_write_request() 734 while (smi->consumed < smi->length && shift >= 0) { in do_write_request() 735 dat |= (u64)((u8 *)smi->addr)[smi->consumed] << shift; in do_write_request() 737 smi->consumed++; in do_write_request()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath10k/ |
A D | testmode.c | 34 bool consumed; in ath10k_tm_event_wmi() local 46 consumed = false; in ath10k_tm_event_wmi() 54 consumed = true; in ath10k_tm_event_wmi() 97 return consumed; in ath10k_tm_event_wmi()
|