/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | sdk.c | 66 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/drivers/media/pci/saa7164/ |
H A D | saa7164-core.c | 89 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 …]
|
H A D | saa7164-buffer.c | 99 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()
|
H A D | saa7164-vbi.c | 475 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()
|
H A D | saa7164-encoder.c | 770 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()
|
H A D | saa7164.h | 206 u32 actual_size; member 318 u32 actual_size; member
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_coredump.c | 29 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()
|
H A D | iosm_ipc_devlink.h | 149 u32 actual_size; member
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 198 ring->actual_size, in mlx4_en_fill_rx_buffers() 200 if (ring->actual_size < MLX4_EN_MIN_RX_SIZE) { in mlx4_en_fill_rx_buffers() 204 new_size = rounddown_pow_of_two(ring->actual_size); in mlx4_en_fill_rx_buffers() 206 ring->actual_size, new_size); in mlx4_en_fill_rx_buffers() 210 ring->actual_size++; in mlx4_en_fill_rx_buffers() 219 while (ring->actual_size > new_size) { in mlx4_en_fill_rx_buffers() 220 ring->actual_size--; in mlx4_en_fill_rx_buffers() 222 mlx4_en_free_rx_desc(priv, ring, ring->actual_size); in mlx4_en_fill_rx_buffers() 343 ring->actual_size = 0; in mlx4_en_activate_rx_rings() 373 ring->size_mask = ring->actual_size - 1; in mlx4_en_activate_rx_rings() [all …]
|
H A D | mlx4_en.h | 333 u32 actual_size; member
|
H A D | en_ethtool.c | 1156 if (rx_size == (priv->port_up ? priv->rx_ring[0]->actual_size : in mlx4_en_set_ringparam() 1204 priv->rx_ring[0]->actual_size : priv->rx_ring[0]->size; in mlx4_en_get_ringparam()
|
/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 820 eng_data.actual_size = 0; in engine_status_info() 828 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engine_status_info() 831 eng_data.actual_size, status_buf_size); in engine_status_info() 836 args->user_buffer_actual_size = eng_data.actual_size; in engine_status_info() 837 rc = copy_to_user(out, eng_data.buf, min_t(size_t, status_buf_size, eng_data.actual_size)) ? in engine_status_info() 869 u64 actual_size; in user_mappings_info() local 880 actual_size = pgf_info->num_of_user_mappings * sizeof(struct hl_user_mapping); in user_mappings_info() 881 if (user_buf_size < actual_size) in user_mappings_info() 884 return copy_to_user(out, pgf_info->user_mappings, actual_size) ? -EFAULT : 0; in user_mappings_info()
|
H A D | debugfs.c | 582 eng_data.actual_size = 0; in engines_show() 590 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engines_show() 593 eng_data.actual_size, eng_data.allocated_buf_size); in engines_show() 598 seq_write(s, eng_data.buf, eng_data.actual_size); in engines_show()
|
H A D | device.c | 361 if ((e->actual_size + str_size) < e->allocated_buf_size) { in hl_engine_data_sprintf() 363 vsnprintf(e->buf + e->actual_size, str_size, fmt, args); in hl_engine_data_sprintf() 370 e->actual_size += str_size; in hl_engine_data_sprintf()
|
H A D | habanalabs.h | 1508 int actual_size; member
|
/linux/kernel/ |
H A D | ptrace.c | 978 unsigned long actual_size = offsetof(struct ptrace_syscall_info, entry); in ptrace_get_syscall_info() local 991 actual_size = ptrace_get_syscall_info_entry(child, regs, in ptrace_get_syscall_info() 995 actual_size = ptrace_get_syscall_info_exit(child, regs, in ptrace_get_syscall_info() 1001 actual_size = ptrace_get_syscall_info_seccomp(child, regs, in ptrace_get_syscall_info() 1006 write_size = min(actual_size, user_size); in ptrace_get_syscall_info() 1007 return copy_to_user(datavp, &info, write_size) ? -EFAULT : actual_size; in ptrace_get_syscall_info()
|
/linux/drivers/virt/vboxguest/ |
H A D | vboxguest_core.c | 1497 size_t actual_size; in vbg_ioctl_hgcm_call() local 1514 actual_size = sizeof(*call); in vbg_ioctl_hgcm_call() 1516 actual_size += call->parm_count * in vbg_ioctl_hgcm_call() 1519 actual_size += call->parm_count * in vbg_ioctl_hgcm_call() 1521 if (call->hdr.size_in < actual_size) { in vbg_ioctl_hgcm_call() 1523 call->hdr.size_in, actual_size); in vbg_ioctl_hgcm_call() 1526 call->hdr.size_out = actual_size; in vbg_ioctl_hgcm_call()
|
/linux/drivers/usb/serial/ |
H A D | cypress_m8.c | 683 int count = 0, result, offset, actual_size; in cypress_send() local 756 actual_size = 1; in cypress_send() 758 actual_size = count + in cypress_send() 766 port->interrupt_out_buffer, actual_size, in cypress_send()
|
/linux/drivers/net/ethernet/intel/ |
H A D | e100.c | 411 __le16 actual_size; member 1954 u16 rfd_status, actual_size; in e100_rx_indicate() local 1990 actual_size = le16_to_cpu(rfd->actual_size) & 0x3FFF; in e100_rx_indicate() 1991 if (unlikely(actual_size > RFD_BUF_LEN - sizeof(struct rfd))) in e100_rx_indicate() 1992 actual_size = RFD_BUF_LEN - sizeof(struct rfd); in e100_rx_indicate() 2013 skb_put(skb, actual_size); in e100_rx_indicate() 2020 if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) in e100_rx_indicate() 2029 } else if (actual_size > ETH_DATA_LEN + VLAN_ETH_HLEN + fcs_pad) { in e100_rx_indicate() 2036 dev->stats.rx_bytes += (actual_size - fcs_pad); in e100_rx_indicate()
|
/linux/drivers/scsi/ |
H A D | scsi_transport_iscsi.c | 2838 int actual_size; in iscsi_if_get_stats() local 2862 actual_size = nlmsg_total_size(sizeof(struct iscsi_uevent) + in iscsi_if_get_stats() 2866 actual_size -= sizeof(*nlhstat); in iscsi_if_get_stats() 2867 actual_size = nlmsg_msg_size(actual_size); in iscsi_if_get_stats() 2868 skb_trim(skbstat, NLMSG_ALIGN(actual_size)); in iscsi_if_get_stats() 2869 nlhstat->nlmsg_len = actual_size; in iscsi_if_get_stats() 3351 int actual_size; in iscsi_get_chap() local 3375 actual_size = nlmsg_total_size(sizeof(*ev) + chap_buf_size); in iscsi_get_chap() 3376 skb_trim(skbchap, NLMSG_ALIGN(actual_size)); in iscsi_get_chap() 3377 nlhchap->nlmsg_len = actual_size; in iscsi_get_chap() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 887 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()
|
H A D | qla_mbx.c | 5202 uint16_t size_in_bytes, uint16_t *actual_size) in qla2x00_get_xgmac_stats() argument 5235 *actual_size = mcp->mb[2] << 2; in qla2x00_get_xgmac_stats()
|
/linux/kernel/bpf/ |
H A D | syscall.c | 87 size_t actual_size) in bpf_check_uarg_tail_zero() argument 91 if (unlikely(actual_size > PAGE_SIZE)) /* silly large */ in bpf_check_uarg_tail_zero() 94 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero() 99 actual_size - expected_size) == NULL; in bpf_check_uarg_tail_zero() 102 actual_size - expected_size); in bpf_check_uarg_tail_zero()
|
/linux/include/linux/ |
H A D | bpf.h | 2567 size_t actual_size);
|