Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/selftests/
Dtest-drm_dp_mst_helper.c76 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal()
82 txin->num_bytes) != 0) in sideband_msg_req_equal()
93 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal()
97 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal()
106 IN.num_bytes != OUT.num_bytes) in sideband_msg_req_equal()
109 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal()
206 in.u.dpcd_read.num_bytes = U8_MAX; in igt_dp_mst_sideband_msg_req_decode()
214 in.u.dpcd_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
227 in.u.i2c_read.transactions[i].num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
238 in.u.i2c_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
/drivers/staging/comedi/
Dcomedi_buf.c366 unsigned int num_bytes) in comedi_buf_munge() argument
373 async->munge_count += num_bytes; in comedi_buf_munge()
374 count = num_bytes; in comedi_buf_munge()
377 num_bytes -= num_bytes % num_sample_bytes; in comedi_buf_munge()
378 while (count < num_bytes) { in comedi_buf_munge()
379 int block_size = num_bytes - count; in comedi_buf_munge()
463 unsigned int num_bytes; in comedi_buf_read_n_available() local
468 num_bytes = async->munge_count - async->buf_read_count; in comedi_buf_read_n_available()
476 return num_bytes; in comedi_buf_read_n_available()
559 const void *data, unsigned int num_bytes) in comedi_buf_memcpy_to() argument
[all …]
Dcomedidev.h203 void *data, unsigned int num_bytes,
1012 unsigned int num_bytes);
/drivers/slimbus/
Dmessaging.c182 if (!msg || msg->num_bytes > 16 || in slim_val_inf_sanity()
183 (msg->start_offset + msg->num_bytes) > 0xC00) in slim_val_inf_sanity()
249 sl = slim_slicesize(msg->num_bytes); in slim_xfer_msg()
252 msg->start_offset, msg->num_bytes, mc, sl); in slim_xfer_msg()
261 txn->rl += msg->num_bytes; in slim_xfer_msg()
277 msg->num_bytes = count; in slim_fill_msg()
Dqcom-ngd-ctrl.c792 if (txn->msg->num_bytes > SLIM_MSGQ_BUF_LEN || in qcom_slim_ngd_xfer_msg()
840 txn->msg->num_bytes = i; in qcom_slim_ngd_xfer_msg()
843 txn->rl = txn->msg->num_bytes + 4; in qcom_slim_ngd_xfer_msg()
869 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg()
932 txn.msg->num_bytes = 0; in qcom_slim_ngd_enable_stream()
939 if (txn.msg->num_bytes == 0) { in qcom_slim_ngd_enable_stream()
943 wbuf[txn.msg->num_bytes++] = sdev->laddr; in qcom_slim_ngd_enable_stream()
944 wbuf[txn.msg->num_bytes] = rt->bps >> 2 | in qcom_slim_ngd_enable_stream()
950 wbuf[txn.msg->num_bytes] |= BIT(5); in qcom_slim_ngd_enable_stream()
952 txn.msg->num_bytes++; in qcom_slim_ngd_enable_stream()
[all …]
Dsched.c98 msg.num_bytes = 1; in slim_ctrl_clk_pause()
106 msg.num_bytes = 1; in slim_ctrl_clk_pause()
/drivers/i2c/busses/
Di2c-omap.c999 static void omap_i2c_receive_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_receive_data() argument
1004 while (num_bytes--) { in omap_i2c_receive_data()
1020 static int omap_i2c_transmit_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_transmit_data() argument
1025 while (num_bytes--) { in omap_i2c_transmit_data()
1126 u8 num_bytes = 1; in omap_i2c_xfer_data() local
1129 num_bytes = omap->buf_len; in omap_i2c_xfer_data()
1133 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_xfer_data()
1137 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_xfer_data()
1143 u8 num_bytes = 1; in omap_i2c_xfer_data() local
1146 num_bytes = omap->threshold; in omap_i2c_xfer_data()
[all …]
/drivers/nvmem/
Dimx-ocotp-scu.c136 u32 count, index, num_bytes; in imx_scu_ocotp_read() local
142 num_bytes = round_up(bytes, 4); in imx_scu_ocotp_read()
143 count = num_bytes >> 2; in imx_scu_ocotp_read()
148 p = kzalloc(num_bytes, GFP_KERNEL); in imx_scu_ocotp_read()
/drivers/spi/
Dspi-fsi.c202 int num_bytes = min(len, 8); in fsi_spi_data_in() local
204 for (i = 0; i < num_bytes; ++i) in fsi_spi_data_in()
205 rx[i] = (u8)(in >> (8 * ((num_bytes - 1) - i))); in fsi_spi_data_in()
207 return num_bytes; in fsi_spi_data_in()
213 int num_bytes = min(len, 8); in fsi_spi_data_out() local
219 for (i = 0; i < num_bytes; ++i) in fsi_spi_data_out()
222 return num_bytes; in fsi_spi_data_out()
Dspi-qup.c232 int i, shift, num_bytes; in spi_qup_read_from_fifo() local
239 num_bytes = min_t(int, spi_qup_len(controller) - in spi_qup_read_from_fifo()
244 controller->rx_bytes += num_bytes; in spi_qup_read_from_fifo()
248 for (i = 0; i < num_bytes; i++, controller->rx_bytes++) { in spi_qup_read_from_fifo()
320 int i, num_bytes; in spi_qup_write_to_fifo() local
326 num_bytes = min_t(int, spi_qup_len(controller) - in spi_qup_write_to_fifo()
330 for (i = 0; i < num_bytes; i++) { in spi_qup_write_to_fifo()
335 controller->tx_bytes += num_bytes; in spi_qup_write_to_fifo()
Dspi-fsl-dspi.c696 int num_bytes = num_words * dspi->oper_word_size; in dspi_xspi_fifo_write() local
707 if (!(dspi->tx_cmd & SPI_PUSHR_CMD_CONT) && num_bytes == dspi->len) in dspi_xspi_fifo_write()
813 int num_words, num_bytes; in dspi_fifo_write() local
831 num_bytes = num_words * dspi->oper_word_size; in dspi_fifo_write()
832 msg->actual_length += num_bytes; in dspi_fifo_write()
833 dspi->progress += num_bytes / DIV_ROUND_UP(xfer->bits_per_word, 8); in dspi_fifo_write()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c262 u32 num_bytes; member
310 .num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs, in mlx5e_sq_xmit_prepare()
323 .num_bytes = max_t(unsigned int, skb->len, ETH_ZLEN), in mlx5e_sq_xmit_prepare()
331 stats->bytes += attr->num_bytes; in mlx5e_sq_xmit_prepare()
390 .num_bytes = attr->num_bytes, in mlx5e_txwqe_complete()
405 send_doorbell = __netdev_tx_sent_queue(sq->txq, attr->num_bytes, xmit_more); in mlx5e_txwqe_complete()
543 .num_bytes = session->bytes_count, in mlx5e_tx_mpwqe_session_complete()
786 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq()
799 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq()
867 nbytes += wi->num_bytes; in mlx5e_free_txqsq_descs()
[all …]
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c59 size_t num_bytes) in cx18_alsa_announce_pcm_data() argument
69 pcm_data, num_bytes); in cx18_alsa_announce_pcm_data()
89 length = num_bytes / stride; in cx18_alsa_announce_pcm_data()
Dcx18-alsa-pcm.h13 size_t num_bytes);
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c382 buf[idx] = (req->u.dpcd_read.num_bytes); in drm_dp_encode_sideband_req()
394 buf[idx] = (req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
396 memcpy(&buf[idx], req->u.dpcd_write.bytes, req->u.dpcd_write.num_bytes); in drm_dp_encode_sideband_req()
397 idx += req->u.dpcd_write.num_bytes; in drm_dp_encode_sideband_req()
406 buf[idx] = req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
408 …emcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes); in drm_dp_encode_sideband_req()
409 idx += req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
426 buf[idx] = (req->u.i2c_write.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()
429 idx += req->u.i2c_write.num_bytes; in drm_dp_encode_sideband_req()
[all …]
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c56 size_t num_bytes) in ivtv_alsa_announce_pcm_data() argument
66 pcm_data, num_bytes); in ivtv_alsa_announce_pcm_data()
86 length = num_bytes / stride; in ivtv_alsa_announce_pcm_data()
/drivers/firmware/google/
Dmemconsole-x86-legacy.c36 u16 num_bytes; member
71 hdr->v2.end, hdr->v2.num_bytes); in found_v2_header()
/drivers/tty/serial/
Dtegra-tcu.c166 unsigned int num_bytes, i; in tegra_tcu_receive() local
168 num_bytes = TCU_MBOX_NUM_BYTES_V(value); in tegra_tcu_receive()
170 for (i = 0; i < num_bytes; i++) in tegra_tcu_receive()
/drivers/char/tpm/
Dtpm2-cmd.c293 u32 num_bytes = max; in tpm2_get_random() local
299 if (!num_bytes || max > TPM_MAX_RNG_DATA) in tpm2_get_random()
308 tpm_buf_append_u16(&buf, num_bytes); in tpm2_get_random()
321 recd = min_t(u32, be16_to_cpu(out->size), num_bytes); in tpm2_get_random()
333 num_bytes -= recd; in tpm2_get_random()
Dtpm1-cmd.c533 u32 num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); in tpm1_get_random() local
545 tpm_buf_append_u32(&buf, num_bytes); in tpm1_get_random()
558 if (recd > num_bytes) { in tpm1_get_random()
572 num_bytes -= recd; in tpm1_get_random()
/drivers/mfd/
Dtwl-core.c440 int twl_i2c_write(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_write() argument
449 value, num_bytes); in twl_i2c_write()
453 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_write()
468 int twl_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes) in twl_i2c_read() argument
477 value, num_bytes); in twl_i2c_read()
481 DRIVER_NAME, mod_no, reg, num_bytes); in twl_i2c_read()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c139 u16 pi, u8 num_wqebbs, u32 num_bytes, in tx_fill_wi() argument
146 .num_bytes = num_bytes, in tx_fill_wi()
353 stats->tls_dump_bytes += wi->num_bytes; in mlx5e_ktls_tx_handle_resync_dump_comp()
/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.c126 u8 *data, u32 reg, u8 num_bytes) in twl4030_kpread() argument
128 int ret = twl_i2c_read(TWL4030_MODULE_KEYPAD, data, reg, num_bytes); in twl4030_kpread()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_ioctl.h80 size_t num_bytes; member

123