Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dsdk.c66 u8 actual_size; in mlx5_fpga_mem_read_i2c() local
76 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_read_i2c()
78 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, in mlx5_fpga_mem_read_i2c()
87 bytes_done += actual_size; in mlx5_fpga_mem_read_i2c()
98 u8 actual_size; in mlx5_fpga_mem_write_i2c() local
108 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_write_i2c()
110 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, in mlx5_fpga_mem_write_i2c()
118 bytes_done += actual_size; in mlx5_fpga_mem_write_i2c()
/linux-6.1.9/drivers/media/pci/saa7164/
Dsaa7164-core.c89 for (i = 0; i < buf->actual_size; i += 2048) { in saa7164_pack_verifier()
117 for (i = 0; i < buf->actual_size; i += 188) { in saa7164_ts_verifier()
271 buf->crc = crc32(0, buf->cpu, buf->actual_size); in saa7164_work_enchandler_helper()
276 if ((*(p + buf->actual_size + 0) != 0xff) || in saa7164_work_enchandler_helper()
277 (*(p + buf->actual_size + 1) != 0xff) || in saa7164_work_enchandler_helper()
278 (*(p + buf->actual_size + 2) != 0xff) || in saa7164_work_enchandler_helper()
279 (*(p + buf->actual_size + 3) != 0xff) || in saa7164_work_enchandler_helper()
280 (*(p + buf->actual_size + 0x10) != 0xff) || in saa7164_work_enchandler_helper()
281 (*(p + buf->actual_size + 0x11) != 0xff) || in saa7164_work_enchandler_helper()
282 (*(p + buf->actual_size + 0x12) != 0xff) || in saa7164_work_enchandler_helper()
[all …]
Dsaa7164-buffer.c99 buf->actual_size = params->pitch * params->numberoflines; in saa7164_buffer_alloc()
118 buf->crc = crc32(0, buf->cpu, buf->actual_size); in saa7164_buffer_alloc()
286 buf->actual_size = len; in saa7164_buffer_alloc_user()
Dsaa7164-vbi.c475 crc = crc32(0, ubuf->data, ubuf->actual_size); in saa7164_vbi_next_buf()
543 rem = ubuf->actual_size - ubuf->pos; in fops_read()
566 if (ubuf->pos > ubuf->actual_size) in fops_read()
569 if (ubuf->pos == ubuf->actual_size) { in fops_read()
Dsaa7164-encoder.c770 crc = crc32(0, ubuf->data, ubuf->actual_size); in saa7164_enc_next_buf()
839 rem = ubuf->actual_size - ubuf->pos; in fops_read()
862 if (ubuf->pos > ubuf->actual_size) in fops_read()
865 if (ubuf->pos == ubuf->actual_size) { in fops_read()
Dsaa7164.h206 u32 actual_size; member
318 u32 actual_size; member
/linux-6.1.9/drivers/net/wwan/iosm/
Diosm_ipc_coredump.c29 remaining = devlink->cd_file_info[entry].actual_size; in ipc_coredump_collect()
110 devlink->cd_file_info[i].actual_size = file_size; in ipc_coredump_get_list()
Diosm_ipc_devlink.h149 u32 actual_size; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c195 ring->actual_size, in mlx4_en_fill_rx_buffers()
197 if (ring->actual_size < MLX4_EN_MIN_RX_SIZE) { in mlx4_en_fill_rx_buffers()
201 new_size = rounddown_pow_of_two(ring->actual_size); in mlx4_en_fill_rx_buffers()
203 ring->actual_size, new_size); in mlx4_en_fill_rx_buffers()
207 ring->actual_size++; in mlx4_en_fill_rx_buffers()
216 while (ring->actual_size > new_size) { in mlx4_en_fill_rx_buffers()
217 ring->actual_size--; in mlx4_en_fill_rx_buffers()
219 mlx4_en_free_rx_desc(priv, ring, ring->actual_size); in mlx4_en_fill_rx_buffers()
340 ring->actual_size = 0; in mlx4_en_activate_rx_rings()
370 ring->size_mask = ring->actual_size - 1; in mlx4_en_activate_rx_rings()
[all …]
Den_cq.c132 cq->size = priv->rx_ring[cq->ring]->actual_size; in mlx4_en_activate_cq()
Dmlx4_en.h324 u32 actual_size; member
Den_ethtool.c1175 if (rx_size == (priv->port_up ? priv->rx_ring[0]->actual_size : in mlx4_en_set_ringparam()
1223 priv->rx_ring[0]->actual_size : priv->rx_ring[0]->size; in mlx4_en_get_ringparam()
/linux-6.1.9/kernel/
Dptrace.c997 unsigned long actual_size = offsetof(struct ptrace_syscall_info, entry); in ptrace_get_syscall_info() local
1010 actual_size = ptrace_get_syscall_info_entry(child, regs, in ptrace_get_syscall_info()
1014 actual_size = ptrace_get_syscall_info_exit(child, regs, in ptrace_get_syscall_info()
1020 actual_size = ptrace_get_syscall_info_seccomp(child, regs, in ptrace_get_syscall_info()
1025 write_size = min(actual_size, user_size); in ptrace_get_syscall_info()
1026 return copy_to_user(datavp, &info, write_size) ? -EFAULT : actual_size; in ptrace_get_syscall_info()
/linux-6.1.9/drivers/virt/vboxguest/
Dvboxguest_core.c1471 size_t actual_size; in vbg_ioctl_hgcm_call() local
1488 actual_size = sizeof(*call); in vbg_ioctl_hgcm_call()
1490 actual_size += call->parm_count * in vbg_ioctl_hgcm_call()
1493 actual_size += call->parm_count * in vbg_ioctl_hgcm_call()
1495 if (call->hdr.size_in < actual_size) { in vbg_ioctl_hgcm_call()
1497 call->hdr.size_in, actual_size); in vbg_ioctl_hgcm_call()
1500 call->hdr.size_out = actual_size; in vbg_ioctl_hgcm_call()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c762 eng_data.actual_size = 0; in engine_status_info()
770 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engine_status_info()
773 eng_data.actual_size, status_buf_size); in engine_status_info()
778 args->user_buffer_actual_size = eng_data.actual_size; in engine_status_info()
779 rc = copy_to_user(out, eng_data.buf, min_t(size_t, status_buf_size, eng_data.actual_size)) ? in engine_status_info()
Ddebugfs.c604 eng_data.actual_size = 0; in engines_show()
612 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engines_show()
615 eng_data.actual_size, eng_data.allocated_buf_size); in engines_show()
620 seq_write(s, eng_data.buf, eng_data.actual_size); in engines_show()
Ddevice.c302 if ((e->actual_size + str_size) < e->allocated_buf_size) { in hl_engine_data_sprintf()
304 vsnprintf(e->buf + e->actual_size, str_size, fmt, args); in hl_engine_data_sprintf()
311 e->actual_size += str_size; in hl_engine_data_sprintf()
Dhabanalabs.h1405 int actual_size; member
/linux-6.1.9/drivers/usb/serial/
Dcypress_m8.c686 int count = 0, result, offset, actual_size; in cypress_send() local
759 actual_size = 1; in cypress_send()
761 actual_size = count + in cypress_send()
769 port->interrupt_out_buffer, actual_size, in cypress_send()
/linux-6.1.9/drivers/net/ethernet/intel/
De100.c412 __le16 actual_size; member
1955 u16 rfd_status, actual_size; in e100_rx_indicate() local
1991 actual_size = le16_to_cpu(rfd->actual_size) & 0x3FFF; in e100_rx_indicate()
1992 if (unlikely(actual_size > RFD_BUF_LEN - sizeof(struct rfd))) in e100_rx_indicate()
1993 actual_size = RFD_BUF_LEN - sizeof(struct rfd); in e100_rx_indicate()
2014 skb_put(skb, actual_size); in e100_rx_indicate()
2021 if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) in e100_rx_indicate()
2030 } else if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) { in e100_rx_indicate()
2037 dev->stats.rx_bytes += (actual_size - fcs_pad); in e100_rx_indicate()
/linux-6.1.9/drivers/scsi/
Dscsi_transport_iscsi.c2836 int actual_size; in iscsi_if_get_stats() local
2860 actual_size = nlmsg_total_size(sizeof(struct iscsi_uevent) + in iscsi_if_get_stats()
2864 actual_size -= sizeof(*nlhstat); in iscsi_if_get_stats()
2865 actual_size = nlmsg_msg_size(actual_size); in iscsi_if_get_stats()
2866 skb_trim(skbstat, NLMSG_ALIGN(actual_size)); in iscsi_if_get_stats()
2867 nlhstat->nlmsg_len = actual_size; in iscsi_if_get_stats()
3327 int actual_size; in iscsi_get_chap() local
3351 actual_size = nlmsg_total_size(sizeof(*ev) + chap_buf_size); in iscsi_get_chap()
3352 skb_trim(skbchap, NLMSG_ALIGN(actual_size)); in iscsi_get_chap()
3353 nlhchap->nlmsg_len = actual_size; in iscsi_get_chap()
[all …]
/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_attr.c887 uint16_t actual_size; in qla2x00_sysfs_read_xgmac_stats() local
913 actual_size = 0; in qla2x00_sysfs_read_xgmac_stats()
917 XGMAC_DATA_SIZE, &actual_size); in qla2x00_sysfs_read_xgmac_stats()
926 count = actual_size > count ? count : actual_size; in qla2x00_sysfs_read_xgmac_stats()
Dqla_mbx.c5203 uint16_t size_in_bytes, uint16_t *actual_size) in qla2x00_get_xgmac_stats() argument
5236 *actual_size = mcp->mb[2] << 2; in qla2x00_get_xgmac_stats()
/linux-6.1.9/kernel/bpf/
Dsyscall.c82 size_t actual_size) in bpf_check_uarg_tail_zero() argument
86 if (unlikely(actual_size > PAGE_SIZE)) /* silly large */ in bpf_check_uarg_tail_zero()
89 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero()
94 actual_size - expected_size) == NULL; in bpf_check_uarg_tail_zero()
97 actual_size - expected_size); in bpf_check_uarg_tail_zero()
/linux-6.1.9/include/linux/
Dbpf.h1949 size_t actual_size);