Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 44) 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 int 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.c936 static void omap_i2c_receive_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_receive_data() argument
941 while (num_bytes--) { in omap_i2c_receive_data()
957 static int omap_i2c_transmit_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_transmit_data() argument
962 while (num_bytes--) { in omap_i2c_transmit_data()
1064 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1067 num_bytes = omap->buf_len; in omap_i2c_isr_thread()
1071 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_isr_thread()
1075 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_isr_thread()
1081 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1084 num_bytes = omap->threshold; in omap_i2c_isr_thread()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c235 unsigned int num_bytes; in mlx5e_sq_xmit() local
276 num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs; in mlx5e_sq_xmit()
283 num_bytes = max_t(unsigned int, skb->len, ETH_ZLEN); in mlx5e_sq_xmit()
286 sq->stats.bytes += num_bytes; in mlx5e_sq_xmit()
287 wi->num_bytes = num_bytes; in mlx5e_sq_xmit()
353 netdev_tx_sent_queue(sq->txq, wi->num_bytes); in mlx5e_sq_xmit()
474 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq()
/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/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/char/tpm/
Dtpm-interface.c1053 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); in tpm_get_random() local
1057 if (!out || !num_bytes || max > TPM_MAX_RNG_DATA) in tpm_get_random()
1072 tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); in tpm_get_random()
1075 TPM_GETRANDOM_RESULT_SIZE + num_bytes, in tpm_get_random()
1081 if (recd > num_bytes) { in tpm_get_random()
1090 num_bytes -= recd; in tpm_get_random()
Dtpm2-cmd.c363 u32 num_bytes; in tpm2_get_random() local
369 num_bytes = min_t(u32, max, sizeof(cmd.params.getrandom_out.buffer)); in tpm2_get_random()
371 if (!out || !num_bytes || in tpm2_get_random()
377 cmd.params.getrandom_in.size = cpu_to_be16(num_bytes); in tpm2_get_random()
385 num_bytes); in tpm2_get_random()
390 num_bytes -= recd; in tpm2_get_random()
/drivers/mfd/
Dtwl-core.c453 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_write() argument
462 value, num_bytes); in twl_i2c_write()
466 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_write()
481 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_read() argument
490 value, num_bytes); in twl_i2c_read()
494 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_read()
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c246 buf[idx] = (req->u.dpcd_read.num_bytes); in drm_dp_encode_sideband_req()
258 buf[idx] = (req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
260 memcpy(&buf[idx], req->u.dpcd_write.bytes, req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
261 idx += req->u.dpcd_write.num_bytes; in drm_dp_encode_sideband_req()
270 buf[idx] = req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
272 …emcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes); in drm_dp_encode_sideband_req()
273 idx += req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
290 buf[idx] = (req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
292 memcpy(&buf[idx], req->u.i2c_write.bytes, req->u.i2c_write.num_bytes); in drm_dp_encode_sideband_req()
293 idx += req->u.i2c_write.num_bytes; in drm_dp_encode_sideband_req()
[all …]
Ddrm_edid.c4009 if (block->num_bytes % 20) in add_displayid_detailed_1_modes()
4012 num_timings = block->num_bytes / 20; in add_displayid_detailed_1_modes()
4047 idx + sizeof(struct displayid_block) + block->num_bytes <= length && in add_displayid_detailed_modes()
4048 block->num_bytes > 0) { in add_displayid_detailed_modes()
4049 idx += block->num_bytes + sizeof(struct displayid_block); in add_displayid_detailed_modes()
4392 idx + sizeof(struct displayid_block) + block->num_bytes <= length && in drm_parse_display_id()
4393 block->num_bytes > 0) { in drm_parse_display_id()
4394 idx += block->num_bytes + sizeof(struct displayid_block); in drm_parse_display_id()
4396 block->tag, block->rev, block->num_bytes); in drm_parse_display_id()
/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/media/platform/vsp1/
Dvsp1_dl.c29 u32 num_bytes; member
449 hdr->num_bytes = dl->body0.num_entries in vsp1_dl_list_fill_header()
457 hdr->num_bytes = dlb->num_entries in vsp1_dl_list_fill_header()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_ioctl.h99 size_t num_bytes; member
Dvchiq_if.h184 void *ptr, size_t num_bytes);
/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/staging/comedi/drivers/
Ddas16m1.c132 void *data, unsigned int num_bytes, in das16m1_ai_munge() argument
136 unsigned int nsamples = comedi_bytes_to_samples(s, num_bytes); in das16m1_ai_munge()
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()
/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c2013 size_t num_bytes; in ath10k_htt_rx_tx_fetch_ind() local
2065 max_num_bytes = le32_to_cpu(record->num_bytes); in ath10k_htt_rx_tx_fetch_ind()
2092 num_bytes = 0; in ath10k_htt_rx_tx_fetch_ind()
2095 num_bytes < max_num_bytes) { in ath10k_htt_rx_tx_fetch_ind()
2101 num_bytes += ret; in ath10k_htt_rx_tx_fetch_ind()
2105 record->num_bytes = cpu_to_le32(num_bytes); in ath10k_htt_rx_tx_fetch_ind()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.h210 void amdgpu_atombios_copy_swap(u8 *dst, u8 *src, u8 num_bytes, bool to_le);
/drivers/staging/lustre/lustre/llite/
Dfile.c1584 size_t num_bytes) in ll_do_fiemap() argument
1589 __u32 vallen = num_bytes; in ll_do_fiemap()
1695 size_t num_bytes, ret_bytes; in ll_ioctl_fiemap() local
1709 num_bytes = sizeof(*fiemap_s) + (extent_count * in ll_ioctl_fiemap()
1712 fiemap_s = libcfs_kvzalloc(num_bytes, GFP_NOFS); in ll_ioctl_fiemap()
1736 rc = ll_do_fiemap(inode, fiemap_s, num_bytes); in ll_ioctl_fiemap()
3097 size_t num_bytes; in ll_fiemap() local
3101 num_bytes = sizeof(*fiemap) + (extent_count * in ll_fiemap()
3103 fiemap = libcfs_kvzalloc(num_bytes, GFP_NOFS); in ll_fiemap()
3119 rc = ll_do_fiemap(inode, fiemap, num_bytes); in ll_fiemap()

12