Searched refs:total_len (Results 26 - 50 of 210) sorted by relevance

123456789

/linux-master/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2_tlv_multi.c36 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len));
/linux-master/fs/squashfs/
H A Dblock.c199 int total_len = (block_end - block) << msblk->devblksize_log2; local
200 const int page_count = DIV_ROUND_UP(total_len + offset, PAGE_SIZE);
212 min_t(unsigned int, PAGE_SIZE - offset, total_len);
231 total_len -= len;
/linux-master/include/rdma/
H A Dibta_vol1_c12.h31 #define CM_STRUCT(field_struct, total_len) \
35 u32 _data[(total_len) / 32 + \
36 BUILD_BUG_ON_ZERO((total_len) % 32 != 0)]; \
/linux-master/drivers/nvme/target/
H A Dio-cmd-file.c125 size_t len = 0, total_len = 0; local
145 total_len += req->f.bvec[bv_cnt].bv_len;
163 if (WARN_ON_ONCE(total_len != req->transfer_len)) {
169 ret = total_len;
180 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags);
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; local
209 if (total_len > ETH_HLEN)
211 else if (total_len > offsetof(struct ethhdr, h_proto))
212 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN;
213 else if (total_len > ETH_ALEN)
214 hdr_80211_end_offset = total_len - ETH_ALEN +
217 hdr_80211_end_offset = total_len +
229 if (total_len > ETH_HLEN) {
233 total_len - ETH_HLEN);
236 total_len
[all...]
/linux-master/drivers/spi/
H A Dspi-bcm63xx.c322 unsigned int n_transfers = 0, total_len = 0; local
336 total_len += t->len;
346 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) ||
347 (!can_use_prepend && total_len > bs->fifo_size)) {
349 total_len, bs->fifo_size);
378 m->actual_length += total_len;
382 total_len = 0;
H A Dspi-sunplus-sp7021.c183 unsigned int tx_cnt, total_len; local
192 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
194 if ((fd_status & SP7021_TX_EMP_FLAG) && (fd_status & SP7021_RX_EMP_FLAG) && total_len == 0)
197 if (tx_len == 0 && total_len == 0)
215 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
218 while (total_len != pspim->rx_cur_len) {
220 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status);
/linux-master/drivers/usb/core/
H A Dconfig.c985 int length, total_len, num, i, ssac; local
1004 total_len = le16_to_cpu(bos->wTotalLength);
1007 if (total_len < length)
1015 buffer = kzalloc(total_len, GFP_KERNEL);
1022 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len);
1023 if (ret < total_len) {
1031 total_len -= length;
1037 if (total_len < sizeof(*cap) || total_len < cap->bLength) {
1082 total_len
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal.c445 size_t total_len, bool atomic)
458 if (rc || be64_to_cpu(olen) < total_len) {
461 written = total_len;
468 olen = cpu_to_be64(total_len);
484 if (written < total_len) {
488 "len=%zu written=%zd\n", total_len, written);
501 ssize_t opal_put_chars(uint32_t vtermno, const u8 *data, size_t total_len) argument
503 return __opal_put_chars(vtermno, data, total_len, false);
513 size_t total_len)
515 return __opal_put_chars(vtermno, data, total_len, tru
444 __opal_put_chars(uint32_t vtermno, const u8 *data, size_t total_len, bool atomic) argument
512 opal_put_chars_atomic(uint32_t vtermno, const u8 *data, size_t total_len) argument
[all...]
/linux-master/fs/
H A Dsplice.c435 * the pipe or if the requested number of bytes (@sd->total_len)
457 if (sd->len > sd->total_len)
458 sd->len = sd->total_len;
477 sd->total_len -= ret;
487 if (!sd->total_len)
639 .total_len = len,
671 .total_len = len,
690 while (sd.total_len) {
717 left = sd.total_len;
740 iov_iter_bvec(&from, ITER_SOURCE, array, n, sd.total_len
[all...]
H A Dpipe.c253 size_t total_len = iov_iter_count(to); local
260 if (unlikely(total_len == 0))
285 if (total_len < 8) {
300 total_len -= sizeof(n);
311 if (chars > total_len) {
317 chars = total_len;
339 total_len = chars;
345 total_len -= chars;
346 if (!total_len)
434 size_t total_len local
[all...]
/linux-master/drivers/net/ethernet/fungible/funcore/
H A Dfun_queue.c236 u32 bufoff, total_len, remaining, fragsize, dataoff; local
244 total_len = be32_to_cpu(dataop->total_len);
252 total_len, DMA_FROM_DEVICE);
259 data = kmalloc(total_len, GFP_ATOMIC);
267 for (remaining = total_len; remaining; remaining -= fragsize) {
/linux-master/tools/testing/selftests/net/
H A Dudpgso_bench_tx.c292 int ret, total_len, len, count = 0; local
294 total_len = cfg_payload_len;
296 while (total_len) {
297 len = total_len < cfg_mss ? total_len : cfg_mss;
307 total_len -= len;
H A Dtxtimestamp.c490 int fd, i, val = 1, total_len, epfd = 0; local
496 total_len = cfg_payload_len;
498 total_len += sizeof(struct udphdr);
501 total_len += sizeof(struct iphdr);
503 total_len += sizeof(struct ipv6hdr);
512 buf = malloc(total_len);
580 memset(buf, 'a' + i, total_len);
598 iov.iov_len = total_len;
638 if (val != total_len)
H A Dtls.c632 int total_len = 0; local
644 total_len += vec[i].iov_len;
649 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len);
650 buf = malloc(total_len);
651 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1);
669 int total_len = 0; local
681 total_len += vec[i].iov_len;
686 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len);
687 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1);
945 unsigned int total_len local
962 unsigned int total_len = 2 * 10; local
980 const unsigned int total_len = 15; local
[all...]
/linux-master/drivers/hid/intel-ish-hid/
H A Dishtp-hid-client.c73 size_t payload_len, total_len, cur_pos, raw_len; local
84 total_len = data_len;
88 if (cur_pos + sizeof(struct hostif_msg) > total_len) {
103 total_len) {
320 sizeof(struct hostif_msg) < total_len)
326 } while (cur_pos < total_len);
/linux-master/drivers/vhost/
H A Dtest.c48 size_t len, total_len = 0; local
88 total_len += len;
89 if (unlikely(vhost_exceeds_weight(vq, 0, total_len)))
/linux-master/net/rds/
H A Dmessage.c334 struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned int total_len) argument
338 int num_sgs = DIV_ROUND_UP(total_len, PAGE_SIZE);
346 rm->m_inc.i_hdr.h_len = cpu_to_be32(total_len);
347 rm->data.op_nents = DIV_ROUND_UP(total_len, PAGE_SIZE);
/linux-master/drivers/usb/musb/
H A Dcppi_dma.h136 u32 total_len; member in struct:cppi41_dma_channel
/linux-master/drivers/infiniband/sw/rdmavt/
H A Drc.c167 ss->total_len = wqe->length;
/linux-master/include/linux/
H A Dsplice.h30 size_t total_len; /* remaining length */ member in struct:splice_desc
/linux-master/drivers/crypto/starfive/
H A Djh7110-aes.c394 int total_len, loop; local
396 total_len = ALIGN(cryp->assoclen, AES_BLOCK_SIZE) / sizeof(unsigned int);
399 for (loop = 0; loop < total_len; loop += 4) {
423 int total_len, loop; local
425 total_len = cryp->assoclen;
432 total_len -= 2;
438 total_len -= 12;
440 while (total_len > 0) {
444 total_len -= AES_BLOCK_SIZE;
/linux-master/drivers/dma/
H A Dat_hdmac.c224 * @total_len: total transaction byte count
237 size_t total_len; member in struct:at_desc
684 len = desc->total_len;
768 len = desc->total_len;
956 desc->total_len = len;
1038 desc->total_len = len;
1147 desc->total_len = len;
1173 size_t total_len = 0; local
1218 total_len += len;
1225 desc->total_len
1265 size_t total_len = 0; local
[all...]
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dpio.c493 unsigned int hdrlen, total_len; local
511 total_len = roundup(skb->len + hdrlen, 4);
513 if (unlikely(total_len > q->buffer_size)) {
525 if (total_len > (q->buffer_size - q->buffer_used)) {
568 unsigned int total_len; local
580 total_len = pack->skb->len + b43_txhdr_size(dev);
581 total_len = roundup(total_len, 4);
582 q->buffer_used -= total_len;
/linux-master/drivers/media/common/siano/
H A Dsmscoreapi.c1941 u32 total_len; local
1961 total_len = sizeof(struct sms_msg_hdr) + (sizeof(u32) * 6);
1963 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT,
1973 p_msg->x_msg_header.msg_length = (u16) total_len;
2002 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len,
2020 u32 total_len; local
2032 total_len = sizeof(struct sms_msg_hdr) +
2035 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT,
2046 p_msg->x_msg_header.msg_length = (u16) total_len;
2051 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len,
2068 u32 total_len; local
[all...]

Completed in 249 milliseconds

123456789