Searched refs:bytes (Results 426 - 450 of 1673) sorted by path

<<11121314151617181920>>

/linux-master/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c304 .desc = "DP_REMOTE_DPCD_READ with max number of bytes",
329 .u.dpcd_write.bytes = data,
353 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7f,
355 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7e,
357 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7d,
381 .u.i2c_write.bytes = data,
464 if (memcmp(txin->bytes, txout->bytes,
480 return memcmp(IN.bytes, OUT.bytes, I
[all...]
/linux-master/drivers/gpu/drm/ttm/
H A Dttm_bo_vm.c382 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); local
394 memcpy(ptr, buf, bytes);
396 memcpy(buf, ptr, bytes);
400 buf += bytes;
401 bytes_left -= bytes;
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmw_surface_cache.h105 * Return the number of bytes of buffer space required to store one image of a
164 * vmw_surface_get_serialized_size_extended - Returns the number of bytes
185 * vmw_surface_get_pixel_offset - Compute the offset (in bytes) to a pixel
222 u32 bytes; local
230 bytes = vmw_surface_get_image_buffer_size(desc, &mipSize, 0);
231 mipChainBytes += bytes;
233 mipChainBytesToLevel += bytes;
304 * @bytes: Bytes required in the backing store of this mipmap level.
310 size_t bytes; member in struct:vmw_surface_mip
396 mip->bytes
[all...]
H A Dvmwgfx_cmd.c186 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) argument
193 return ((max - next_cmd) + (stop - min) <= bytes);
197 uint32_t bytes, bool interruptible,
210 if (!vmw_fifo_is_full(dev_priv, bytes))
230 uint32_t bytes, bool interruptible,
235 if (likely(!vmw_fifo_is_full(dev_priv, bytes)))
240 return vmw_fifo_wait_noirq(dev_priv, bytes,
249 !vmw_fifo_is_full(dev_priv, bytes), timeout);
253 !vmw_fifo_is_full(dev_priv, bytes), timeout);
267 * Reserve @bytes numbe
196 vmw_fifo_wait_noirq(struct vmw_private *dev_priv, uint32_t bytes, bool interruptible, unsigned long timeout) argument
229 vmw_fifo_wait(struct vmw_private *dev_priv, uint32_t bytes, bool interruptible, unsigned long timeout) argument
276 vmw_local_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes) argument
364 vmw_cmd_ctx_reserve(struct vmw_private *dev_priv, uint32_t bytes, int ctx_id) argument
384 vmw_fifo_res_copy(struct vmw_fifo_state *fifo_state, struct vmw_private *vmw, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) argument
406 vmw_fifo_slow_copy(struct vmw_fifo_state *fifo_state, struct vmw_private *vmw, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) argument
426 vmw_local_fifo_commit(struct vmw_private *dev_priv, uint32_t bytes) argument
471 vmw_cmd_commit(struct vmw_private *dev_priv, uint32_t bytes) argument
486 vmw_cmd_commit_flush(struct vmw_private *dev_priv, uint32_t bytes) argument
516 uint32_t bytes = sizeof(u32) + sizeof(*cmd_fence); local
[all...]
H A Dvmwgfx_drv.h867 vmw_cmd_ctx_reserve(struct vmw_private *dev_priv, uint32_t bytes, int ctx_id);
868 extern void vmw_cmd_commit(struct vmw_private *dev_priv, uint32_t bytes);
869 extern void vmw_cmd_commit_flush(struct vmw_private *dev_priv, uint32_t bytes);
882 DRM_ERROR("FIFO reserve failed at %s for %u bytes\n", \
H A Dvmwgfx_msg.c188 /* HB port not available. Send the message 4 bytes at a time. */
191 unsigned int bytes = min_t(size_t, msg_len, 4); local
194 memcpy(&word, msg, bytes);
195 msg_len -= bytes;
196 msg += bytes;
243 /* HB port not available. Retrieve the message 4 bytes at a time. */
246 unsigned int bytes = min_t(unsigned long, reply_len, 4); local
260 memcpy(reply, &ebx, bytes);
261 reply_len -= bytes;
262 reply += bytes;
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_guc_submit.c355 size_t bytes = sizeof(policy->h2g.header) +
358 return bytes / sizeof(u32);
380 size_t bytes = sizeof(policy->h2g.header) + local
/linux-master/drivers/gpu/drm/xlnx/
H A Dzynqmp_dp.c530 * @link_rate: link rate (Kilo-bytes / sec)
924 * @bytes: number of bytes for @buf
938 * -EIO when received bytes are less than requested
941 u8 *buf, u8 bytes, u8 *reply)
952 for (i = 0; i < bytes; i++)
957 if (!buf || !bytes)
960 reg |= (bytes - 1) << ZYNQMP_DP_AUX_COMMAND_BYTES_SHIFT;
984 if ((reg & ZYNQMP_DP_REPLY_DATA_COUNT_MASK) != bytes)
987 for (i = 0; i < bytes;
939 zynqmp_dp_aux_cmd_submit(struct zynqmp_dp *dp, u32 cmd, u16 addr, u8 *buf, u8 bytes, u8 *reply) argument
[all...]
/linux-master/drivers/hwmon/
H A Dibmaem.c175 u8 bytes[3]; member in struct:aem_iana_id
178 .bytes = {0x4D, 0x4F, 0x00}
222 u8 bytes[]; member in struct:aem_read_sensor_resp
358 /* AEM registers are 1, 2, 4 or 8 bytes */
401 *x = rs_resp->bytes[0];
406 *x = be16_to_cpup((__be16 *)rs_resp->bytes);
411 *x = be32_to_cpup((__be32 *)rs_resp->bytes);
416 *x = be64_to_cpup((__be64 *)rs_resp->bytes);
/linux-master/drivers/hwmon/pmbus/
H A Dadm1266.c70 .bytes = 2048,
378 static int adm1266_nvmem_read(void *priv, unsigned int offset, void *val, size_t bytes) argument
383 if (offset + bytes > data->nvmem_config.size)
396 memcpy(val, data->dev_mem + offset, bytes);
414 data->nvmem_config.size = adm1266_nvmem_cells[0].bytes;
/linux-master/drivers/hwtracing/coresight/
H A Dcoresight-tmc-etr.c355 * by the device from @offset upto a @size bytes.
925 * with a maximum of @len bytes.
956 * within the buffer, with @etr_buf->len bytes to consume.
1503 long bytes; local
1524 bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy,
1526 if (WARN_ON_ONCE(bytes <= 0))
1528 bytes = min(bytes, (long)(PAGE_SIZE - pg_offset));
1530 memcpy(dst_pages[pg_idx] + pg_offset, src_buf, bytes);
1532 to_copy -= bytes;
[all...]
/linux-master/drivers/hwtracing/intel_th/
H A Dmsu-sink.c99 static int msu_sink_ready(void *data, struct sg_table *sgt, size_t bytes) argument
/linux-master/drivers/i2c/busses/
H A Di2c-cadence.c174 * @send_count: Number of bytes still expected to send
175 * @recv_count: Number of bytes still expected to receive
176 * @curr_recv_count: Number of bytes to be received in current transfer
191 * @transfer_size: The maximum number of bytes in one transfer
296 u8 bytes; local
305 /* Fetch number of bytes to receive */
306 bytes = cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET);
309 while (bytes--) {
471 * Check number of bytes to be received against maximum
502 * space available in FIFO and fill with that many bytes
[all...]
H A Di2c-xiic.c132 * Register offsets in bytes from RegisterBase. Three is added to the
519 * Minimum of 3 bytes required to exit cleanly. 1 byte
553 "%s entry, bytes in fifo: %d, rem: %d, SR: 0x%x, CR: 0x%x\n",
606 u8 bytes; local
608 /* Receive remaining bytes if less than fifo depth */
609 bytes = min_t(u8, xiic_rx_space(i2c), IIC_RX_FIFO_DEPTH);
610 bytes--;
611 xiic_setreg8(i2c, XIIC_RFD_REG_OFFSET, bytes);
891 u8 bytes; local
907 bytes
[all...]
/linux-master/drivers/i3c/master/
H A Ddw-i3c-master.c328 const u8 *bytes, int nbytes)
330 writesl(master->regs + RX_TX_DATA_PORT, bytes, nbytes / 4);
334 memcpy(&tmp, bytes + (nbytes & ~3), nbytes & 3);
340 int reg, u8 *bytes, int nbytes)
342 readsl(master->regs + reg, bytes, nbytes / 4);
347 memcpy(bytes + (nbytes & ~3), &tmp, nbytes & 3);
352 u8 *bytes, int nbytes)
354 return dw_i3c_master_read_fifo(master, RX_TX_DATA_PORT, bytes, nbytes);
358 u8 *bytes, int nbytes)
360 return dw_i3c_master_read_fifo(master, IBI_QUEUE_STATUS, bytes, nbyte
327 dw_i3c_master_wr_tx_fifo(struct dw_i3c_master *master, const u8 *bytes, int nbytes) argument
339 dw_i3c_master_read_fifo(struct dw_i3c_master *master, int reg, u8 *bytes, int nbytes) argument
351 dw_i3c_master_read_rx_fifo(struct dw_i3c_master *master, u8 *bytes, int nbytes) argument
357 dw_i3c_master_read_ibi_fifo(struct dw_i3c_master *master, u8 *bytes, int nbytes) argument
[all...]
H A Di3c-master-cdns.c428 const u8 *bytes, int nbytes)
430 writesl(master->regs + TX_FIFO, bytes, nbytes / 4);
434 memcpy(&tmp, bytes + (nbytes & ~3), nbytes & 3);
440 u8 *bytes, int nbytes)
442 readsl(master->regs + RX_FIFO, bytes, nbytes / 4);
447 memcpy(bytes + (nbytes & ~3), &tmp, nbytes & 3);
427 cdns_i3c_master_wr_to_tx_fifo(struct cdns_i3c_master *master, const u8 *bytes, int nbytes) argument
439 cdns_i3c_master_rd_from_rx_fifo(struct cdns_i3c_master *master, u8 *bytes, int nbytes) argument
/linux-master/drivers/iio/adc/
H A Dad7124.c234 unsigned int bytes)
239 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval);
246 return ad_sd_write_reg(&st->sd, addr, bytes, readval);
230 ad7124_spi_write_mask(struct ad7124_state *st, unsigned int addr, unsigned long mask, unsigned int val, unsigned int bytes) argument
/linux-master/drivers/iio/
H A Dindustrialio-buffer.c97 * @n: First n bytes to read
706 unsigned int bytes; local
709 bytes = ch->scan_type.storagebits / 8;
711 bytes *= ch->scan_type.repeat;
712 return bytes;
726 unsigned int bytes = 0; local
733 bytes = ALIGN(bytes, length);
734 bytes += length;
740 bytes
794 unsigned int bytes; local
[all...]
/linux-master/drivers/iio/light/
H A Dadux1020.c103 u8 bytes; member in struct:adux1020_mode_data
110 .bytes = 2,
337 if (status >= adux1020_modes[mode].bytes)
/linux-master/drivers/iio/pressure/
H A Dbmp280-core.c1469 size_t bytes)
1490 while (bytes >= sizeof(*dst)) {
1512 bytes -= sizeof(*dst);
1525 size_t bytes)
1546 while (bytes >= sizeof(*buf)) {
1576 bytes -= sizeof(*buf);
1468 bmp580_nvmem_read(void *priv, unsigned int offset, void *val, size_t bytes) argument
1524 bmp580_nvmem_write(void *priv, unsigned int offset, void *val, size_t bytes) argument
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c1001 * wqe size is fixed to 128 bytes
1025 int bytes = 0, psn_sz; local
1035 bytes = (qplib_qp->sq.max_wqe * qplib_qp->sq.wqe_size);
1045 bytes += (psn_nume * psn_sz);
1048 bytes = PAGE_ALIGN(bytes);
1049 umem = ib_umem_get(&rdev->ibdev, ureq.qpsva, bytes,
1061 bytes = (qplib_qp->rq.max_wqe * qplib_qp->rq.wqe_size);
1062 bytes = PAGE_ALIGN(bytes);
1704 int bytes = 0; local
[all...]
H A Dqplib_fp.c517 /* Unconditionally map 8 bytes to support 57500 series */
1731 u32 ilsize, bytes; local
1737 bytes = sizeof(struct sq_send_hdr) + nsge * sizeof(struct sq_sge);
1740 bytes = ALIGN(ilsize, sizeof(struct sq_sge));
1741 bytes += sizeof(struct sq_send_hdr);
1744 *qdf = __xlate_qfd(qp->sq.q_full_delta, bytes);
1745 slot = bytes >> 4;
H A Dqplib_res.c696 u32 bytes; local
698 bytes = max >> 3;
699 if (!bytes)
700 bytes = 1;
701 pdt->tbl = kmalloc(bytes, GFP_KERNEL);
706 memset((u8 *)pdt->tbl, 0xFF, bytes);
803 u32 bytes; local
824 bytes = dpit->max >> 3;
825 if (!bytes)
826 bytes
[all...]
/linux-master/drivers/infiniband/hw/erdma/
H A Derdma_cm.h69 void (*sk_data_ready)(struct sock *sk, int bytes);
H A Derdma_qp.c211 u32 remain_size, copy_size, data_off, bytes = 0; local
221 bytes += send_wr->sg_list[i].length;
222 if (bytes > (int)ERDMA_MAX_INLINE)
249 *length_field = cpu_to_le32(bytes);
251 return bytes;
258 u32 bytes = 0; local
273 bytes += send_wr->sg_list[i].length;
281 *length_field = cpu_to_le32(bytes);

Completed in 949 milliseconds

<<11121314151617181920>>