Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 37) sorted by relevance

12

/drivers/staging/comedi/
Dcomedi_buf.c301 unsigned int num_bytes) in comedi_buf_munge() argument
308 async->munge_count += num_bytes; in comedi_buf_munge()
309 count = num_bytes; in comedi_buf_munge()
312 num_bytes -= num_bytes % num_sample_bytes; in comedi_buf_munge()
313 while (count < num_bytes) { in comedi_buf_munge()
314 int block_size = num_bytes - count; in comedi_buf_munge()
398 unsigned num_bytes; in comedi_buf_read_n_available() local
403 num_bytes = async->munge_count - async->buf_read_count; in comedi_buf_read_n_available()
411 return num_bytes; in comedi_buf_read_n_available()
494 const void *data, unsigned int num_bytes) in comedi_buf_memcpy_to() argument
[all …]
Dcomedidev.h208 void *data, unsigned int num_bytes,
993 unsigned int num_bytes);
Ddrivers.c515 unsigned int num_bytes) in comedi_inc_scan_progress() argument
523 async->cur_chan += comedi_bytes_to_samples(s, num_bytes); in comedi_inc_scan_progress()
527 async->scan_progress += num_bytes; in comedi_inc_scan_progress()
/drivers/i2c/busses/
Di2c-omap.c937 static void omap_i2c_receive_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_receive_data() argument
942 while (num_bytes--) { in omap_i2c_receive_data()
958 static int omap_i2c_transmit_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_transmit_data() argument
963 while (num_bytes--) { in omap_i2c_transmit_data()
1070 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1073 num_bytes = omap->buf_len; in omap_i2c_isr_thread()
1077 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_isr_thread()
1081 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_isr_thread()
1087 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1090 num_bytes = omap->threshold; in omap_i2c_isr_thread()
[all …]
/drivers/uwb/
Ddrp.c107 int num_bytes = 0; in uwb_rc_send_all_drp_ie() local
114 num_bytes += rsv->drp_ie->hdr.length + 2; in uwb_rc_send_all_drp_ie()
118 num_bytes += in uwb_rc_send_all_drp_ie()
123 num_bytes += sizeof(rc->drp_avail.ie); in uwb_rc_send_all_drp_ie()
124 cmd = kzalloc(sizeof(*cmd) + num_bytes, GFP_KERNEL); in uwb_rc_send_all_drp_ie()
129 cmd->wIELength = num_bytes; in uwb_rc_send_all_drp_ie()
156 &cmd->rccb, sizeof(*cmd) + num_bytes, in uwb_rc_send_all_drp_ie()
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c74 size_t num_bytes) in cx18_alsa_announce_pcm_data() argument
84 pcm_data, num_bytes); in cx18_alsa_announce_pcm_data()
104 length = num_bytes / stride; in cx18_alsa_announce_pcm_data()
Dcx18-alsa-pcm.h27 size_t num_bytes);
/drivers/char/tpm/
Dtpm2-cmd.c345 u32 num_bytes; in tpm2_get_random() local
351 num_bytes = min_t(u32, max, sizeof(cmd.params.getrandom_out.buffer)); in tpm2_get_random()
353 if (!out || !num_bytes || in tpm2_get_random()
359 cmd.params.getrandom_in.size = cpu_to_be16(num_bytes); in tpm2_get_random()
367 num_bytes); in tpm2_get_random()
372 num_bytes -= recd; in tpm2_get_random()
Dtpm-interface.c1023 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); in tpm_get_random() local
1027 if (!out || !num_bytes || max > TPM_MAX_RNG_DATA) in tpm_get_random()
1042 tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); in tpm_get_random()
1045 TPM_GETRANDOM_RESULT_SIZE + num_bytes, in tpm_get_random()
1051 if (recd > num_bytes) { in tpm_get_random()
1060 num_bytes -= recd; in tpm_get_random()
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c247 buf[idx] = (req->u.dpcd_read.num_bytes); in drm_dp_encode_sideband_req()
259 buf[idx] = (req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
261 memcpy(&buf[idx], req->u.dpcd_write.bytes, req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
262 idx += req->u.dpcd_write.num_bytes; in drm_dp_encode_sideband_req()
271 buf[idx] = req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
273 …emcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes); in drm_dp_encode_sideband_req()
274 idx += req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
291 buf[idx] = (req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
293 memcpy(&buf[idx], req->u.i2c_write.bytes, req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
294 idx += req->u.i2c_write.num_bytes; in drm_dp_encode_sideband_req()
[all …]
/drivers/firmware/google/
Dmemconsole.c38 u16 num_bytes; member
90 hdr->v2.end, hdr->v2.num_bytes); in found_v2_header()
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c75 size_t num_bytes) in ivtv_alsa_announce_pcm_data() argument
85 pcm_data, num_bytes); in ivtv_alsa_announce_pcm_data()
105 length = num_bytes / stride; in ivtv_alsa_announce_pcm_data()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c195 MLX5E_TX_SKB_CB(skb)->num_bytes = skb->len + in mlx5e_sq_xmit()
204 MLX5E_TX_SKB_CB(skb)->num_bytes = max_t(unsigned int, skb->len, in mlx5e_sq_xmit()
272 netdev_tx_sent_queue(sq->txq, MLX5E_TX_SKB_CB(skb)->num_bytes); in mlx5e_sq_xmit()
379 nbytes += MLX5E_TX_SKB_CB(skb)->num_bytes; in mlx5e_poll_tx_cq()
Den.h330 u32 num_bytes; member
/drivers/mfd/
Dtwl-core.c454 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_write() argument
463 value, num_bytes); in twl_i2c_write()
467 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_write()
482 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_read() argument
491 value, num_bytes); in twl_i2c_read()
495 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_read()
/drivers/gpu/drm/radeon/
Datombios_dp.c57 void radeon_atom_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le) in radeon_atom_copy_swap() argument
62 u8 align_num_bytes = ALIGN(num_bytes, 4); in radeon_atom_copy_swap()
65 memcpy(src_tmp, src, num_bytes); in radeon_atom_copy_swap()
73 memcpy(dst, dst_tmp, num_bytes); in radeon_atom_copy_swap()
76 memcpy(dst, src, num_bytes); in radeon_atom_copy_swap()
/drivers/input/keyboard/
Dtwl4030_keypad.c139 u8 *data, u32 reg, u8 num_bytes) in twl4030_kpread() argument
141 int ret = twl_i2c_read(TWL4030_MODULE_KEYPAD, data, reg, num_bytes); in twl4030_kpread()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.h204 void amdgpu_atombios_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le);
Damdgpu_atombios.c1571 void amdgpu_atombios_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le) in amdgpu_atombios_copy_swap() argument
1576 u8 align_num_bytes = ALIGN(num_bytes, 4); in amdgpu_atombios_copy_swap()
1579 memcpy(src_tmp, src, num_bytes); in amdgpu_atombios_copy_swap()
1587 memcpy(dst, dst_tmp, num_bytes); in amdgpu_atombios_copy_swap()
1590 memcpy(dst, src, num_bytes); in amdgpu_atombios_copy_swap()
/drivers/staging/lustre/lustre/llite/
Dfile.c1669 size_t num_bytes) in ll_do_fiemap() argument
1674 __u32 vallen = num_bytes; in ll_do_fiemap()
1780 size_t num_bytes, ret_bytes; in ll_ioctl_fiemap() local
1793 num_bytes = sizeof(*fiemap_s) + (extent_count * in ll_ioctl_fiemap()
1796 fiemap_s = libcfs_kvzalloc(num_bytes, GFP_NOFS); in ll_ioctl_fiemap()
1819 rc = ll_do_fiemap(inode, fiemap_s, num_bytes); in ll_ioctl_fiemap()
3021 size_t num_bytes; in ll_fiemap() local
3025 num_bytes = sizeof(*fiemap) + (extent_count * in ll_fiemap()
3027 fiemap = libcfs_kvzalloc(num_bytes, GFP_NOFS); in ll_fiemap()
3040 rc = ll_do_fiemap(inode, fiemap, num_bytes); in ll_fiemap()
/drivers/staging/comedi/drivers/
Dadl_pci9111.c401 unsigned int num_bytes, in pci9111_ai_munge() argument
408 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in pci9111_ai_munge()
Damplc_pci224.c912 void *data, unsigned int num_bytes, unsigned int chan_index) in pci224_ao_munge() argument
917 unsigned int length = num_bytes / sizeof(*array); in pci224_ao_munge()
Ddas16.c798 unsigned int num_bytes, in das16_ai_munge() argument
802 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in das16_ai_munge()
/drivers/spi/
Dspi-atmel.c1052 u32 num_bytes, num_data = SPI_BFEXT(RXFL, fifolr); in atmel_spi_pump_fifo_data() local
1059 num_bytes = ((xfer->bits_per_word > 8) ? in atmel_spi_pump_fifo_data()
1063 if (as->current_remaining_bytes > num_bytes) in atmel_spi_pump_fifo_data()
1064 as->current_remaining_bytes -= num_bytes; in atmel_spi_pump_fifo_data()
/drivers/scsi/
Dultrastor.c171 u32 num_bytes; member
692 mscp->sglist[i].num_bytes = sg->length; in build_sg_list()

12