Home
last modified time | relevance | path

Searched refs:bytes (Results 2326 - 2350 of 5586) sorted by relevance

1...<<919293949596979899100>>...224

/kernel/linux/linux-6.6/sound/drivers/
H A Daloop.c147 unsigned int pcm_bps; /* bytes per second */
148 unsigned int pcm_salign; /* bytes per sample * channels */
499 static void clear_capture_buf(struct loopback_pcm *dpcm, unsigned int bytes) in clear_capture_buf() argument
507 if (dpcm->silent_size + bytes > dpcm->pcm_buffer_size) in clear_capture_buf()
508 bytes = dpcm->pcm_buffer_size - dpcm->silent_size; in clear_capture_buf()
511 unsigned int size = bytes; in clear_capture_buf()
518 bytes -= size; in clear_capture_buf()
519 if (!bytes) in clear_capture_buf()
527 unsigned int bytes) in copy_play_buf()
547 if (diff < bytes) { in copy_play_buf()
525 copy_play_buf(struct loopback_pcm *play, struct loopback_pcm *capt, unsigned int bytes) copy_play_buf() argument
[all...]
/third_party/alsa-lib/src/control/
H A Dcontrol.c156 bytes and IEC958 structure. This indicates the type of value for each member in
755 * labels is empty, or longer than 63 bytes, or total length of the labels
774 unsigned int i, bytes; in snd_ctl_add_enumerated_elem_set() local
786 bytes = 0; in snd_ctl_add_enumerated_elem_set()
788 bytes += strlen(labels[i]) + 1; in snd_ctl_add_enumerated_elem_set()
789 if (bytes == 0) in snd_ctl_add_enumerated_elem_set()
791 buf = malloc(bytes); in snd_ctl_add_enumerated_elem_set()
795 info->value.enumerated.names_length = bytes; in snd_ctl_add_enumerated_elem_set()
810 * \brief Create and add some user-defined control elements of bytes type.
819 * This function creates some user elements with bytes typ
[all...]
/third_party/toybox/toys/pending/
H A Ddhcp.c473 * ip [0..4 bytes depending on mask] in strtoopt()
474 * router [4 bytes] in strtoopt()
653 int bytes = 0; in read_raw() local
656 if ((bytes = read(state->sockfd, &packet, sizeof(packet))) < 0) { in read_raw()
658 return bytes; in read_raw()
660 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) { in read_raw()
664 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw()
668 // ignore any extra garbage bytes in read_raw()
669 bytes = ntohs(packet.iph.tot_len); in read_raw()
674 || ntohs(packet.udph.len) != (uint16_t)(bytes in read_raw()
1164 int bytes; dhcpc_parseoptions() local
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Device/
H A DBlitter.cpp119 assert_cast<uint32_t>(format.bytes()), // sPitchB in clear()
278 switch(viewFormat.bytes()) in fastClear()
1478 Int Blitter::ComputeOffset(Int &x, Int &y, Int &pitchB, int bytes) in ComputeOffset() argument
1480 return y * pitchB + x * bytes; in ComputeOffset()
1483 Int Blitter::ComputeOffset(Int &x, Int &y, Int &z, Int &sliceB, Int &pitchB, int bytes) in ComputeOffset() argument
1485 return z * sliceB + y * pitchB + x * bytes; in ComputeOffset()
1517 int srcBytes = state.sourceFormat.bytes(); in sample()
1708 int srcBytes = state.sourceFormat.bytes(); in generate()
1709 int dstBytes = state.destFormat.bytes(); in generate()
1981 // To support other resolve modes, get the slice bytes an in resolveDepth()
2243 int bytes = state.sourceFormat.bytes(); computeCubeCorner() local
2387 int bytes = image->getFormat(aspect).bytes(); copyCubeEdge() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_dp_mst_topology.c75 int offset, int size, u8 *bytes);
78 int offset, int size, u8 *bytes);
396 memcpy(&buf[idx], req->u.dpcd_write.bytes, req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
408 memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes); in drm_dp_encode_sideband_req()
428 memcpy(&buf[idx], req->u.i2c_write.bytes, req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
519 w->bytes = kmemdup(&buf[++idx], w->num_bytes, in drm_dp_decode_sideband_req()
521 if (!w->bytes) in drm_dp_decode_sideband_req()
538 tx->bytes = kmemdup(&buf[++idx], in drm_dp_decode_sideband_req()
541 if (!tx->bytes) { in drm_dp_decode_sideband_req()
553 kfree(tx->bytes); in drm_dp_decode_sideband_req()
1133 build_dpcd_write(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes, u8 *bytes) build_dpcd_write() argument
3528 drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int offset, int size, u8 *bytes) drm_dp_send_dpcd_read() argument
3580 drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int offset, int size, u8 *bytes) drm_dp_send_dpcd_write() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/display/
H A Ddrm_dp_mst_topology.c75 int offset, int size, u8 *bytes);
78 int offset, int size, u8 *bytes);
397 memcpy(&buf[idx], req->u.dpcd_write.bytes, req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
409 memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes); in drm_dp_encode_sideband_req()
429 memcpy(&buf[idx], req->u.i2c_write.bytes, req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
520 w->bytes = kmemdup(&buf[++idx], w->num_bytes, in drm_dp_decode_sideband_req()
522 if (!w->bytes) in drm_dp_decode_sideband_req()
539 tx->bytes = kmemdup(&buf[++idx], in drm_dp_decode_sideband_req()
542 if (!tx->bytes) { in drm_dp_decode_sideband_req()
554 kfree(tx->bytes); in drm_dp_decode_sideband_req()
1141 build_dpcd_write(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes, u8 *bytes) build_dpcd_write() argument
3426 drm_dp_send_dpcd_read(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int offset, int size, u8 *bytes) drm_dp_send_dpcd_read() argument
3477 drm_dp_send_dpcd_write(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, int offset, int size, u8 *bytes) drm_dp_send_dpcd_write() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/nx/
H A Dnx-842-pseries.c82 * CE2 0=processed_bytes is source bytes, 1=processed_bytes is target bytes */
243 "(Additional info: csbcbp->processed bytes " in nx842_validate_result()
244 "does not specify processed bytes for the " in nx842_validate_result()
590 dev_dbg(devdata->dev, "%s: ibm,max-sg-len is %d bytes long, expected %lu bytes\n", __func__, in nx842_OF_upd_maxsglen()
647 dev_dbg(devdata->dev, "%s: ibm,max-sync-cop is %d bytes long, expected %lu bytes\n", __func__, prop->length, in nx842_OF_upd_maxsyncop()
894 int bytes; in nx842_timehist_show() local
914 bytes in nx842_timehist_show()
[all...]
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
H A Dkobjects.c418 int bytes; in synth_direct_store() local
428 bytes = min_t(size_t, len, 250); in synth_direct_store()
429 strncpy(tmp, ptr, bytes); in synth_direct_store()
430 tmp[bytes] = '\0'; in synth_direct_store()
433 ptr += bytes; in synth_direct_store()
434 len -= bytes; in synth_direct_store()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c282 if (req->pagesize <= 0 || req->oobsize <= 0 || req->ecc.bytes <= 0) in atmel_pmecc_prepare_user_req()
286 req->ecc.ooboffset + req->ecc.bytes > req->oobsize) in atmel_pmecc_prepare_user_req()
307 max_eccbytes = req->ecc.bytes; in atmel_pmecc_prepare_user_req()
333 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req()
390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user()
405 user->cache.eaddr = req->ecc.ooboffset + req->ecc.bytes - 1; in atmel_pmecc_create_user()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dtango_nand.c50 * Error reports are split in two bytes:
201 const int ecc_size = chip->ecc.bytes; in check_erased_page()
356 /* skip over "len" bytes */ in aux_read()
371 /* skip over "len" bytes */ in aux_write()
405 const int ecc_size = chip->ecc.bytes; in raw_read()
408 int rem = page_size; /* bytes remaining until BBM area */ in raw_read()
432 const int ecc_size = chip->ecc.bytes; in raw_write()
435 int rem = page_size; /* bytes remaining until BBM area */ in raw_write()
496 res->offset = BBM_SIZE + METADATA_SIZE + ecc->bytes * idx; in oob_ecc()
497 res->length = ecc->bytes; in oob_ecc()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dpsock_tpacket.c130 "small: %zu bytes!\n", len); in test_payload()
276 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, total_bytes >> 1); in walk_v1_v2_rx()
497 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, got); in walk_tx()
523 static void __v3_test_block_len(struct block_desc *pbd, uint32_t bytes, int block_num) in __v3_test_block_len() argument
525 if (pbd->h1.num_pkts && bytes != pbd->h1.blk_len) { in __v3_test_block_len()
528 pbd->h1.num_pkts, bytes, pbd->h1.blk_len); in __v3_test_block_len()
546 unsigned long bytes = 0, bytes_with_padding = ALIGN_8(sizeof(*pbd)); in __v3_walk_block() local
555 bytes += ppd->tp_snaplen; in __v3_walk_block()
572 total_bytes += bytes; in __v3_walk_block()
619 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKET in walk_v3_rx()
[all...]
/kernel/linux/linux-5.10/tools/vm/
H A Dpage-types.c259 long bytes; in do_u64_read() local
264 bytes = pread(fd, buf, count * 8, (off_t)index * 8); in do_u64_read()
265 if (bytes < 0) { in do_u64_read()
269 if (bytes % 8) in do_u64_read()
270 fatal("partial read: %lu bytes\n", bytes); in do_u64_read()
272 return bytes / 8; in do_u64_read()
/kernel/linux/linux-5.10/sound/mips/
H A Dhal2.c574 struct snd_pcm_indirect *rec, size_t bytes) in hal2_playback_transfer()
579 memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes); in hal2_playback_transfer()
581 hal2->dac.buffer_dma + rec->hw_data, bytes, in hal2_playback_transfer()
659 struct snd_pcm_indirect *rec, size_t bytes) in hal2_capture_transfer()
665 hal2->adc.buffer_dma + rec->hw_data, bytes, in hal2_capture_transfer()
667 memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes); in hal2_capture_transfer()
806 * endian format. It assumes that even address bytes are on high in hal2_create()
573 hal2_playback_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) hal2_playback_transfer() argument
658 hal2_capture_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, size_t bytes) hal2_capture_transfer() argument
/kernel/linux/linux-5.10/fs/afs/
H A Drxrpc.c285 unsigned int nr, n, i, to, bytes = 0; in afs_load_bvec() local
301 bytes += to - offset; in afs_load_bvec()
305 iov_iter_bvec(&msg->msg_iter, WRITE, bv, nr, bytes); in afs_load_bvec()
327 unsigned int bytes, nr, loop, offset; in afs_send_pages() local
339 bytes = msg->msg_iter.count; in afs_send_pages()
343 bytes, afs_notify_end_request_tx); in afs_send_pages()
810 /* the operation ID forms the first four bytes of the request data */ in afs_deliver_cm_op_id()
/kernel/linux/linux-5.10/fs/fat/
H A Dfatent.c26 int bytes = entry + (entry >> 1); in fat12_ent_blocknr() local
28 *offset = bytes & (sb->s_blocksize - 1); in fat12_ent_blocknr()
29 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr()
36 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr() local
38 *offset = bytes & (sb->s_blocksize - 1); in fat_ent_blocknr()
39 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
H A Dintel_memory_region.c544 u32 bytes[] = { in igt_lmem_write_cpu() local
594 count = ARRAY_SIZE(bytes); in igt_lmem_write_cpu()
602 bytes[0] = igt_random_offset(&prng, 64, PAGE_SIZE - 64, 0, sizeof(u32)); in igt_lmem_write_cpu()
603 GEM_BUG_ON(!IS_ALIGNED(bytes[0], sizeof(u32))); in igt_lmem_write_cpu()
613 size = bytes[order[i] % count]; in igt_lmem_write_cpu()
616 align = bytes[order[i] % count]; in igt_lmem_write_cpu()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c282 if (req->pagesize <= 0 || req->oobsize <= 0 || req->ecc.bytes <= 0) in atmel_pmecc_prepare_user_req()
286 req->ecc.ooboffset + req->ecc.bytes > req->oobsize) in atmel_pmecc_prepare_user_req()
307 max_eccbytes = req->ecc.bytes; in atmel_pmecc_prepare_user_req()
333 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req()
390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user()
405 user->cache.eaddr = req->ecc.ooboffset + req->ecc.bytes - 1; in atmel_pmecc_create_user()
/kernel/linux/linux-6.6/drivers/accessibility/speakup/
H A Dkobjects.c418 int bytes; in synth_direct_store() local
428 bytes = min_t(size_t, len, 250); in synth_direct_store()
429 strncpy(tmp, ptr, bytes); in synth_direct_store()
430 tmp[bytes] = '\0'; in synth_direct_store()
433 ptr += bytes; in synth_direct_store()
434 len -= bytes; in synth_direct_store()
/kernel/linux/linux-6.6/fs/fat/
H A Dfatent.c27 int bytes = entry + (entry >> 1); in fat12_ent_blocknr() local
29 *offset = bytes & (sb->s_blocksize - 1); in fat12_ent_blocknr()
30 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr()
37 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr() local
39 *offset = bytes & (sb->s_blocksize - 1); in fat_ent_blocknr()
40 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr()
/kernel/linux/linux-6.6/include/linux/
H A Ddevice.h319 size_t bytes; in devm_kmalloc_array() local
321 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
324 return devm_kmalloc(dev, bytes, flags); in devm_kmalloc_array()
334 size_t bytes; in devm_krealloc_array() local
336 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in devm_krealloc_array()
339 return devm_krealloc(dev, p, bytes, flags); in devm_krealloc_array()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_ioctl.c494 * - The length (x + y) must be at least OMAX_SB_LEN bytes long to
496 * The sense buffer is truncated to OMAX_SB_LEN (16) bytes so that
502 * bytes in one int) where the lowest byte is the SCSI status.
509 unsigned int in_len, out_len, bytes, opcode, cmdlen; in sg_scsi_ioctl() local
528 bytes = max(in_len, out_len); in sg_scsi_ioctl()
529 if (bytes) { in sg_scsi_ioctl()
530 buffer = kzalloc(bytes, GFP_NOIO | GFP_USER | __GFP_NOWARN); in sg_scsi_ioctl()
587 if (bytes) { in sg_scsi_ioctl()
588 err = blk_rq_map_kern(q, rq, buffer, bytes, GFP_NOIO); in sg_scsi_ioctl()
/kernel/linux/linux-6.6/drivers/crypto/nx/
H A Dnx-common-pseries.c29 __be64 req_max_processed_len; /* Max bytes in one GZIP request */
30 __be64 min_compress_len; /* Min compression size in bytes */
31 __be64 min_decompress_len; /* Min decompression size in bytes */
39 u64 req_max_processed_len; /* Max bytes in one GZIP request */
40 u64 min_compress_len; /* Min compression in bytes */
41 u64 min_decompress_len; /* Min decompression in bytes */
107 * CE2 0=processed_bytes is source bytes, 1=processed_bytes is target bytes */
270 "(Additional info: csbcbp->processed bytes " in nx842_validate_result()
271 "does not specify processed bytes fo in nx842_validate_result()
919 int bytes; nx842_timehist_show() local
[all...]
/kernel/linux/linux-6.6/drivers/nvdimm/
H A Dpmem.c327 void *addr, size_t bytes, struct iov_iter *i) in pmem_recovery_write()
336 len = PFN_PHYS(PFN_UP(off + bytes)); in pmem_recovery_write()
338 return _copy_from_iter_flushcache(addr, bytes, i); in pmem_recovery_write()
344 if (off || !PAGE_ALIGNED(bytes)) { in pmem_recovery_write()
345 dev_dbg(dev, "Found poison, but addr(%p) or bytes(%#zx) not page aligned\n", in pmem_recovery_write()
346 addr, bytes); in pmem_recovery_write()
353 dev_dbg(dev, "poison cleared only %ld out of %zu bytes\n", in pmem_recovery_write()
362 olen = _copy_from_iter_flushcache(addr, bytes, i); in pmem_recovery_write()
326 pmem_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i) pmem_recovery_write() argument
/kernel/linux/linux-6.6/tools/mm/
H A Dpage-types.c259 long bytes; in do_u64_read() local
264 bytes = pread(fd, buf, count * 8, (off_t)index * 8); in do_u64_read()
265 if (bytes < 0) { in do_u64_read()
269 if (bytes % 8) in do_u64_read()
270 fatal("partial read: %lu bytes\n", bytes); in do_u64_read()
272 return bytes / 8; in do_u64_read()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dpsock_tpacket.c130 "small: %zu bytes!\n", len); in test_payload()
276 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, total_bytes >> 1); in walk_v1_v2_rx()
497 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, got); in walk_tx()
523 static void __v3_test_block_len(struct block_desc *pbd, uint32_t bytes, int block_num) in __v3_test_block_len() argument
525 if (pbd->h1.num_pkts && bytes != pbd->h1.blk_len) { in __v3_test_block_len()
528 pbd->h1.num_pkts, bytes, pbd->h1.blk_len); in __v3_test_block_len()
546 unsigned long bytes = 0, bytes_with_padding = ALIGN_8(sizeof(*pbd)); in __v3_walk_block() local
555 bytes += ppd->tp_snaplen; in __v3_walk_block()
572 total_bytes += bytes; in __v3_walk_block()
619 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKET in walk_v3_rx()
[all...]

Completed in 45 milliseconds

1...<<919293949596979899100>>...224