/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | crc32.h | 17 static inline u32 crc32_posix_end(u32 crc, size_t total_len) in crc32_posix_end() argument 20 while (total_len != 0) { in crc32_posix_end() 21 u8 c = total_len & 0xff; in crc32_posix_end() 24 total_len >>= 8; in crc32_posix_end()
|
/drivers/media/dvb-frontends/ |
D | mxl692.c | 260 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block() local 267 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block() 268 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block() 273 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block() 275 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block() 295 total_len -= chunk_len; in mxl692_write_fw_block() 312 int status = 0, total_len = 0; in mxl692_memwrite() local 315 total_len = size; in mxl692_memwrite() 316 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_memwrite() 318 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE)) in mxl692_memwrite() [all …]
|
/drivers/fsi/ |
D | fsi-core.c | 583 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 592 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 593 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 595 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 610 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local 619 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write() 620 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write() 622 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write() 698 size_t total_len, read_len; in cfam_read() local 708 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | trace.h | 121 TP_PROTO(unsigned int addr, int flags, unsigned int total_len, 124 TP_ARGS(addr, flags, total_len, entries, list), 131 __field(size_t, total_len) 133 __dynamic_array(u8, data, total_len) 144 __entry->total_len = total_len; 170 __entry->total_len
|
/drivers/gpu/drm/udl/ |
D | udl_main.c | 36 u8 total_len = 0; in udl_parse_vendor_descriptor() local 43 total_len = usb_get_descriptor(udev, 0x5f, /* vendor specific */ in udl_parse_vendor_descriptor() 45 if (total_len > 5) { in udl_parse_vendor_descriptor() 47 total_len, desc); in udl_parse_vendor_descriptor() 49 if ((desc[0] != total_len) || /* descriptor length */ in udl_parse_vendor_descriptor() 53 (desc[4] != total_len - 2)) /* length after type */ in udl_parse_vendor_descriptor() 56 desc_end = desc + total_len; in udl_parse_vendor_descriptor()
|
/drivers/mtd/spi-nor/ |
D | otp.c | 308 size_t total_len, size_t *retlen, in spi_nor_mtd_otp_read_write() argument 323 total_len = min_t(size_t, total_len, spi_nor_otp_size(nor) - ofs); in spi_nor_mtd_otp_read_write() 325 if (!total_len) in spi_nor_mtd_otp_read_write() 333 ret = spi_nor_mtd_otp_range_is_locked(nor, ofs, total_len); in spi_nor_mtd_otp_read_write() 342 while (total_len) { in spi_nor_mtd_otp_read_write() 360 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write() 374 total_len -= ret; in spi_nor_mtd_otp_read_write()
|
/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 141 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 142 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 143 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211() 146 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() [all …]
|
/drivers/staging/gdm724x/ |
D | gdm_mux.c | 147 int total_len; in up_to_host() local 165 total_len = ALIGN(MUX_HEADER_SIZE + payload_size, 4); in up_to_host() 167 if (len - packet_size_sum < total_len) { in up_to_host() 190 packet_size_sum += total_len; in up_to_host() 350 int total_len; in gdm_mux_send() local 362 total_len = ALIGN(MUX_HEADER_SIZE + len, 4); in gdm_mux_send() 364 t = alloc_mux_tx(total_len); in gdm_mux_send() 379 total_len - MUX_HEADER_SIZE - len); in gdm_mux_send() 381 t->len = total_len; in gdm_mux_send() 389 total_len, in gdm_mux_send()
|
/drivers/dax/ |
D | kmem.c | 47 unsigned long total_len = 0; in dev_dax_kmem_probe() local 74 total_len += range_len(&range); in dev_dax_kmem_probe() 77 if (!total_len) { in dev_dax_kmem_probe() 91 rc = memory_group_register_static(numa_node, PFN_UP(total_len)); in dev_dax_kmem_probe()
|
/drivers/net/ppp/ |
D | pppoe.c | 837 size_t total_len) in pppoe_sendmsg() argument 863 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 867 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 883 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 886 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 892 error = total_len; in pppoe_sendmsg() 894 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 898 ph->length = htons(total_len); in pppoe_sendmsg() 1004 size_t total_len, int flags) in pppoe_recvmsg() argument 1021 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 271 u64 total_len = 0; in mlx4_ib_umem_calc_optimal_mtt_size() local 331 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 347 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 349 total_len += (first_block_start & ((1ULL << block_shift) - 1ULL)); in mlx4_ib_umem_calc_optimal_mtt_size() 352 total_len += (last_block_aligned_end - last_block_end); in mlx4_ib_umem_calc_optimal_mtt_size() 354 if (total_len & ((1ULL << block_shift) - 1ULL)) in mlx4_ib_umem_calc_optimal_mtt_size() 356 total_len, block_shift); in mlx4_ib_umem_calc_optimal_mtt_size() 358 *num_of_mtts = total_len >> block_shift; in mlx4_ib_umem_calc_optimal_mtt_size()
|
/drivers/spi/ |
D | spi-bcm63xx.c | 332 unsigned int n_transfers = 0, total_len = 0; in bcm63xx_spi_transfer_one() local 346 total_len += t->len; in bcm63xx_spi_transfer_one() 356 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) || in bcm63xx_spi_transfer_one() 357 (!can_use_prepend && total_len > bs->fifo_size)) { in bcm63xx_spi_transfer_one() 359 total_len, bs->fifo_size); in bcm63xx_spi_transfer_one() 388 m->actual_length += total_len; in bcm63xx_spi_transfer_one() 392 total_len = 0; in bcm63xx_spi_transfer_one()
|
D | spi-cavium.c | 131 unsigned int total_len = 0; in octeon_spi_transfer_one_message() local 143 total_len += r; in octeon_spi_transfer_one_message() 147 msg->actual_length = total_len; in octeon_spi_transfer_one_message()
|
/drivers/net/wireless/broadcom/b43/ |
D | pio.c | 493 unsigned int hdrlen, total_len; in b43_pio_tx() local 511 total_len = roundup(skb->len + hdrlen, 4); in b43_pio_tx() 513 if (unlikely(total_len > q->buffer_size)) { in b43_pio_tx() 525 if (total_len > (q->buffer_size - q->buffer_used)) { in b43_pio_tx() 568 unsigned int total_len; in b43_pio_handle_txstatus() local 580 total_len = pack->skb->len + b43_txhdr_size(dev); in b43_pio_handle_txstatus() 581 total_len = roundup(total_len, 4); in b43_pio_handle_txstatus() 582 q->buffer_used -= total_len; in b43_pio_handle_txstatus()
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 173 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free() 302 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 308 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 317 pm8001_ha->memoryMap.region[ci_offset+i].total_len = 4; in pm8001_alloc() 326 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 335 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 347 pm8001_ha->memoryMap.region[pi_offset+i].total_len = 4; in pm8001_alloc() 356 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 366 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 375 pm8001_ha->memoryMap.region[NVMD].total_len = 4096; in pm8001_alloc() [all …]
|
/drivers/usb/core/ |
D | config.c | 985 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local 1004 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor() 1007 if (total_len < length) in usb_get_bos_descriptor() 1015 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor() 1022 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor() 1023 if (ret < total_len) { in usb_get_bos_descriptor() 1031 total_len -= length; in usb_get_bos_descriptor() 1037 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor() 1085 total_len -= length; in usb_get_bos_descriptor()
|
/drivers/nvme/target/ |
D | io-cmd-file.c | 132 size_t len = 0, total_len = 0; in nvmet_file_execute_io() local 151 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io() 169 if (WARN_ON_ONCE(total_len != req->transfer_len)) { in nvmet_file_execute_io() 175 ret = total_len; in nvmet_file_execute_io() 186 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io()
|
/drivers/dma/ioat/ |
D | prep.c | 109 size_t total_len = len; in ioat_dma_prep_memcpy_lock() local 140 desc->len = total_len; in ioat_dma_prep_memcpy_lock() 160 size_t total_len = len; in __ioat_prep_xor_lock() local 224 desc->len = total_len; in __ioat_prep_xor_lock() 349 size_t total_len = len; in __ioat_prep_pq_lock() local 434 desc->len = total_len; in __ioat_prep_pq_lock() 471 size_t total_len = len; in __ioat_prep_pq16_lock() local 548 desc->len = total_len; in __ioat_prep_pq16_lock()
|
/drivers/dma/ |
D | at_hdmac.c | 333 return desc->total_len; in atc_get_bytes_left() 336 ret = desc_first->total_len; in atc_get_bytes_left() 762 desc->total_len = desc->len = len; in atc_prep_dma_interleaved() 838 first->total_len = len; in atc_prep_dma_memcpy() 943 desc->total_len = len; in atc_prep_dma_memset() 969 size_t total_len = 0; in atc_prep_dma_memset_sg() local 1008 total_len += len; in atc_prep_dma_memset_sg() 1020 first->total_len = total_len; in atc_prep_dma_memset_sg() 1060 size_t total_len = 0; in atc_prep_slave_sg() local 1114 total_len += len; in atc_prep_slave_sg() [all …]
|
D | bcm2835-dma.c | 226 size_t *total_len, in bcm2835_dma_create_cb_set_length() argument 247 if (*total_len + control_block->length < period_len) { in bcm2835_dma_create_cb_set_length() 249 *total_len += control_block->length; in bcm2835_dma_create_cb_set_length() 254 control_block->length = period_len - *total_len; in bcm2835_dma_create_cb_set_length() 257 *total_len = 0; in bcm2835_dma_create_cb_set_length() 307 size_t len = buf_len, total_len; in bcm2835_dma_create_cb_chain() local 329 for (frame = 0, total_len = 0; frame < frames; d->frames++, frame++) { in bcm2835_dma_create_cb_chain() 348 len, period_len, &total_len, in bcm2835_dma_create_cb_chain()
|
/drivers/media/common/siano/ |
D | smscoreapi.c | 1941 u32 total_len; in smscore_gpio_configure() local 1961 total_len = sizeof(struct sms_msg_hdr) + (sizeof(u32) * 6); in smscore_gpio_configure() 1963 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_configure() 1973 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_configure() 2002 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_configure() 2020 u32 total_len; in smscore_gpio_set_level() local 2032 total_len = sizeof(struct sms_msg_hdr) + in smscore_gpio_set_level() 2035 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_set_level() 2046 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_set_level() 2051 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_set_level() [all …]
|
/drivers/scsi/qla4xxx/ |
D | ql4_bsg.c | 207 uint32_t total_len = 0; in qla4xxx_read_nvram() local 229 total_len = offset + len; in qla4xxx_read_nvram() 232 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_read_nvram() 234 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_read_nvram() 279 uint32_t total_len = 0; in qla4xxx_update_nvram() local 300 total_len = offset + len; in qla4xxx_update_nvram() 303 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_update_nvram() 305 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_update_nvram()
|
/drivers/net/wireless/intersil/orinoco/ |
D | hermes_dld.c | 257 int total_len = 0; in hermes_blocks_length() local 267 total_len += sizeof(*blk) + len; in hermes_blocks_length() 271 return total_len; in hermes_blocks_length()
|
/drivers/usb/renesas_usbhs/ |
D | fifo.c | 511 int total_len; in usbhsf_pio_try_push() local 538 total_len = len; in usbhsf_pio_try_push() 539 is_short = total_len < maxp; in usbhsf_pio_try_push() 549 buf += total_len - len; in usbhsf_pio_try_push() 564 pkt->actual += total_len; in usbhsf_pio_try_push() 661 int total_len = 0; in usbhsf_pio_try_pop() local 676 total_len = len; in usbhsf_pio_try_pop() 683 pkt->actual += total_len; in usbhsf_pio_try_pop() 686 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 720 buf += total_len - len; in usbhsf_pio_try_pop()
|
/drivers/hid/intel-ish-hid/ |
D | ishtp-hid-client.c | 70 size_t payload_len, total_len, cur_pos, raw_len; in process_recv() local 81 total_len = data_len; in process_recv() 85 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv() 100 total_len) { in process_recv() 317 sizeof(struct hostif_msg) < total_len) in process_recv() 323 } while (cur_pos < total_len); in process_recv()
|