/drivers/acpi/ |
D | custom_method.c | 26 static u32 max_size; in cm_write() local 39 uncopied_bytes = max_size = table.length; in cm_write() 40 buf = kzalloc(max_size, GFP_KERNEL); in cm_write() 48 if ((*ppos > max_size) || in cm_write() 49 (*ppos + count > max_size) || in cm_write()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 116 for (i = 0; i < table->max_size; i++) { in find_rl_entry() 167 table->max_size); in mlx5_rl_add_rate() 228 table->max_size = 0; in mlx5_init_rl_table() 233 table->max_size = MLX5_CAP_QOS(dev, packet_pacing_rate_table_size) - 1; in mlx5_init_rl_table() 237 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_init_rl_table() 245 for (i = 0; i < table->max_size; i++) in mlx5_init_rl_table() 250 table->max_size, in mlx5_init_rl_table() 263 for (i = 0; i < table->max_size; i++) in mlx5_cleanup_rl_table()
|
/drivers/staging/lustre/lnet/lnet/ |
D | lib-md.c | 96 lmd->md_max_size = umd->max_size; in lnet_md_build() 125 (umd->max_size < 0 || in lnet_md_build() 126 umd->max_size > total_length)) /* illegal max_size */ in lnet_md_build() 147 (umd->max_size < 0 || in lnet_md_build() 148 umd->max_size > total_length)) /* illegal max_size */ in lnet_md_build() 158 (umd->max_size < 0 || in lnet_md_build() 159 umd->max_size > (int)umd->length)) /* illegal max_size */ in lnet_md_build() 219 umd->max_size = lmd->md_max_size; in lnet_md_deconstruct()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ioctl.c | 146 unsigned int max_size; in vmw_fill_compat_cap() local 151 max_size = (size - pair_offset) / sizeof(SVGA3dCapPair); in vmw_fill_compat_cap() 153 if (max_size > SVGA3D_DEVCAP_MAX) in vmw_fill_compat_cap() 154 max_size = SVGA3D_DEVCAP_MAX; in vmw_fill_compat_cap() 157 (pair_offset + max_size * sizeof(SVGA3dCapPair)) / sizeof(u32); in vmw_fill_compat_cap() 161 for (i = 0; i < max_size; ++i) { in vmw_fill_compat_cap() 187 if (unlikely(arg->pad64 != 0 || arg->max_size == 0)) { in vmw_get_cap_3d_ioctl() 200 if (arg->max_size < size) in vmw_get_cap_3d_ioctl() 201 size = arg->max_size; in vmw_get_cap_3d_ioctl()
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | sdk.c | 64 size_t max_size = MLX5_FPGA_ACCESS_REG_SIZE_MAX; in mlx5_fpga_mem_read_i2c() local 76 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_read_i2c() 96 size_t max_size = MLX5_FPGA_ACCESS_REG_SIZE_MAX; in mlx5_fpga_mem_write_i2c() local 108 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_write_i2c()
|
/drivers/staging/most/hdm-dim2/ |
D | dim2_hal.c | 452 u16 const max_size = ((u16)CDT3_BD_ISOC_MASK + 1u) / ISOC_DBR_FACTOR; in check_packet_length() local 457 if (packet_length > max_size) in check_packet_length() 469 u16 const max_size = ((u16)CDT3_BD_MASK + 1u) >> bd_factor; in check_bytes_per_frame() local 474 if (bytes_per_frame > max_size) in check_bytes_per_frame() 482 u16 const max_size = (u16)ADT1_CTRL_ASYNC_BD_MASK + 1u; in norm_ctrl_async_buffer_size() local 484 if (buf_size > max_size) in norm_ctrl_async_buffer_size() 485 return max_size; in norm_ctrl_async_buffer_size() 493 u16 const max_size = (u16)ADT1_ISOC_SYNC_BD_MASK + 1u; in norm_isoc_buffer_size() local 495 if (buf_size > max_size) in norm_isoc_buffer_size() 496 buf_size = max_size; in norm_isoc_buffer_size() [all …]
|
/drivers/usb/class/ |
D | usbtmc.c | 185 int max_size; in usbtmc_ioctl_abort_bulk_in() local 218 max_size = 0; in usbtmc_ioctl_abort_bulk_in() 223 max_size = usb_endpoint_maxp(¤t_setting->endpoint[n].desc); in usbtmc_ioctl_abort_bulk_in() 225 if (max_size == 0) { in usbtmc_ioctl_abort_bulk_in() 231 dev_dbg(&data->intf->dev, "wMaxPacketSize is %d\n", max_size); in usbtmc_ioctl_abort_bulk_in() 250 } while ((actual == max_size) && in usbtmc_ioctl_abort_bulk_in() 253 if (actual == max_size) { in usbtmc_ioctl_abort_bulk_in() 304 } while ((actual == max_size) && in usbtmc_ioctl_abort_bulk_in() 307 if (actual == max_size) { in usbtmc_ioctl_abort_bulk_in() 878 int max_size; in usbtmc_ioctl_clear() local [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/ |
D | sh_css_version.c | 21 ia_css_get_version(char *version, int max_size) in ia_css_get_version() argument 23 if (max_size <= (int)strlen(CSS_VERSION_STRING) + (int)strlen(sh_css_get_fw_version()) + 5) in ia_css_get_version()
|
D | ia_css_version.h | 38 ia_css_get_version(char *version, int max_size);
|
/drivers/crypto/virtio/ |
D | virtio_crypto_core.c | 308 u64 max_size = 0; in virtcrypto_probe() local 344 max_size, &max_size); in virtcrypto_probe() 363 vcrypto->max_size = max_size; in virtcrypto_probe() 370 vcrypto->max_size); in virtcrypto_probe()
|
/drivers/firmware/efi/ |
D | capsule.c | 92 u64 max_size; in efi_capsule_supported() local 101 status = efi.query_capsule_caps(cap_list, 1, &max_size, reset); in efi_capsule_supported() 105 if (size > max_size) in efi_capsule_supported()
|
/drivers/iio/buffer/ |
D | industrialio-buffer-dmaengine.c | 38 size_t max_size; member 66 block->bytes_used = min(block->size, dmaengine_buffer->max_size); in iio_dmaengine_buffer_submit_block() 178 dmaengine_buffer->max_size = dma_get_max_seg_size(chan->device->dev); in iio_dmaengine_buffer_alloc()
|
/drivers/regulator/ |
D | da9211-regulator.c | 157 int i, max_size; in da9211_set_current_limit() local 163 max_size = ARRAY_SIZE(da9211_current_limits)-1; in da9211_set_current_limit() 167 max_size = ARRAY_SIZE(da9213_current_limits)-1; in da9211_set_current_limit() 171 max_size = ARRAY_SIZE(da9215_current_limits)-1; in da9211_set_current_limit() 178 for (i = max_size; i >= 0; i--) { in da9211_set_current_limit()
|
/drivers/firmware/efi/test/ |
D | efi_test.c | 550 u64 max_storage, remaining, max_size; in efi_runtime_query_variableinfo() local 559 &max_storage, &remaining, &max_size); in efi_runtime_query_variableinfo() 575 if (put_user(max_size, queryvariableinfo.maximum_variable_size)) in efi_runtime_query_variableinfo() 587 u64 max_size; in efi_runtime_query_capsulecaps() local 627 &max_size, &reset_type); in efi_runtime_query_capsulecaps() 639 if (put_user(max_size, qcaps.maximum_capsule_size)) { in efi_runtime_query_capsulecaps()
|
/drivers/scsi/fnic/ |
D | fnic_trace.c | 802 int max_size = fnic_fc_trace_max_pages * PAGE_SIZE * 3; in copy_and_format_trace_data() local 812 max_size - len, in copy_and_format_trace_data() 825 max_size - len, "%c", fc_trace[j]); in copy_and_format_trace_data() 828 max_size - len, "%02x", fc_trace[j] & 0xff); in copy_and_format_trace_data() 830 max_size - len, " "); in copy_and_format_trace_data() 836 + len, max_size - len, in copy_and_format_trace_data() 843 max_size - len, "\n"); in copy_and_format_trace_data()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 424 unsigned int max_size) in hns_nic_get_headlen() argument 430 if (max_size < ETH_HLEN) in hns_nic_get_headlen() 431 return max_size; in hns_nic_get_headlen() 442 if ((typeof(max_size))(network - data) > (max_size - VLAN_HLEN)) in hns_nic_get_headlen() 443 return max_size; in hns_nic_get_headlen() 451 if ((typeof(max_size))(network - data) > in hns_nic_get_headlen() 452 (max_size - sizeof(struct iphdr))) in hns_nic_get_headlen() 453 return max_size; in hns_nic_get_headlen() 465 if ((typeof(max_size))(network - data) > in hns_nic_get_headlen() 466 (max_size - sizeof(struct ipv6hdr))) in hns_nic_get_headlen() [all …]
|
/drivers/staging/greybus/ |
D | authentication.c | 110 size_t max_size = gb_operation_get_payload_size_max(connection); in cap_get_ims_certificate() local 116 sizeof(*request), max_size, in cap_get_ims_certificate() 149 size_t max_size = gb_operation_get_payload_size_max(connection); in cap_authenticate() local 154 sizeof(*request), max_size, in cap_authenticate()
|
/drivers/gpu/drm/i915/ |
D | intel_fbdev.c | 539 unsigned int max_size = 0; in intel_fbdev_init_bios() local 553 if (obj->base.size > max_size) { in intel_fbdev_init_bios() 557 max_size = obj->base.size; in intel_fbdev_init_bios() 606 if (cur_size > max_size) { in intel_fbdev_init_bios() 609 cur_size, max_size); in intel_fbdev_init_bios() 616 max_size, cur_size); in intel_fbdev_init_bios()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hns3_enet.c | 1747 unsigned int max_size) in hns3_nic_get_headlen() argument 1753 if (max_size < ETH_HLEN) in hns3_nic_get_headlen() 1754 return max_size; in hns3_nic_get_headlen() 1765 if ((typeof(max_size))(network - data) > (max_size - VLAN_HLEN)) in hns3_nic_get_headlen() 1766 return max_size; in hns3_nic_get_headlen() 1774 if ((typeof(max_size))(network - data) > in hns3_nic_get_headlen() 1775 (max_size - sizeof(struct iphdr))) in hns3_nic_get_headlen() 1776 return max_size; in hns3_nic_get_headlen() 1788 if ((typeof(max_size))(network - data) > in hns3_nic_get_headlen() 1789 (max_size - sizeof(struct ipv6hdr))) in hns3_nic_get_headlen() [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.c | 382 unsigned int max_size; in nfp_nsp_command_buf() local 400 max_size = max(in_size, out_size); in nfp_nsp_command_buf() 401 if (FIELD_GET(NSP_DFLT_BUFFER_SIZE_MB, reg) * SZ_1M < max_size) { in nfp_nsp_command_buf() 404 max_size); in nfp_nsp_command_buf()
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 94 unsigned max_size; member 171 m->options.max_size = val; in ttm_pool_store() 198 val = m->options.max_size; in ttm_pool_show() 711 if (pool->npages > _manager->options.max_size) { in ttm_put_pages() 712 npages = pool->npages - _manager->options.max_size; in ttm_put_pages() 837 _manager->options.max_size = max_pages; in ttm_page_alloc_init()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 568 vgdev->capsets[i].max_size = le32_to_cpu(resp->capset_max_size); in virtio_gpu_cmd_get_capset_info_cb() 651 int max_size; in virtio_gpu_cmd_get_capset() local 665 max_size = vgdev->capsets[idx].max_size; in virtio_gpu_cmd_get_capset() 666 cache_ent->caps_cache = kmalloc(max_size, GFP_KERNEL); in virtio_gpu_cmd_get_capset() 672 resp_buf = kzalloc(sizeof(struct virtio_gpu_resp_capset) + max_size, in virtio_gpu_cmd_get_capset() 683 cache_ent->size = max_size; in virtio_gpu_cmd_get_capset() 690 sizeof(struct virtio_gpu_resp_capset) + max_size, in virtio_gpu_cmd_get_capset()
|
/drivers/nfc/fdp/ |
D | fdp.c | 195 int max_size, payload_size; in fdp_nci_send_patch() local 207 max_size = nci_conn_max_data_pkt_payload_size(ndev, conn_id); in fdp_nci_send_patch() 208 if (max_size <= 0) in fdp_nci_send_patch() 214 DIV_ROUND_UP(fw->size, max_size)); in fdp_nci_send_patch() 218 payload_size = min_t(unsigned long, max_size, len); in fdp_nci_send_patch()
|
/drivers/platform/chrome/ |
D | cros_ec_lightbar.c | 487 int extra_bytes, max_size, ret; in program_store() local 501 max_size = min(EC_LB_PROG_LEN, ec->ec_dev->max_request - extra_bytes); in program_store() 502 if (count > max_size) { in program_store() 504 (unsigned int)count, max_size); in program_store()
|
/drivers/xen/ |
D | efi.c | 206 *max_variable_size = efi_data(op).u.query_variable_info.max_size; in xen_efi_query_variable_info() 246 unsigned long count, u64 *max_size, in xen_efi_query_capsule_caps() argument 261 *max_size = efi_data(op).u.query_capsule_capabilities.max_capsule_size; in xen_efi_query_capsule_caps()
|