Home
last modified time | relevance | path

Searched refs:max_num (Results 1 – 19 of 19) sorted by relevance

/linux-6.3-rc2/include/linux/
A Dvringh.h91 unsigned i, used, max_num; member
103 unsigned i, used, max_num; member
121 iov->max_num = num; in vringh_iov_init()
135 if (iov->max_num & VRINGH_IOV_ALLOCATED) in vringh_iov_cleanup()
137 iov->max_num = iov->used = iov->i = iov->consumed = 0; in vringh_iov_cleanup()
183 kiov->max_num = num; in vringh_kiov_init()
197 if (kiov->max_num & VRINGH_IOV_ALLOCATED) in vringh_kiov_cleanup()
199 kiov->max_num = kiov->used = kiov->i = kiov->consumed = 0; in vringh_kiov_cleanup()
/linux-6.3-rc2/fs/cifs/
A Dsmb2file.c193 unsigned int max_num, num = 0, max_buf; in smb2_unlock_range() local
213 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_unlock_range()
214 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_unlock_range()
251 if (++num == max_num) { in smb2_unlock_range()
294 struct smb2_lock_element *buf, unsigned int max_num) in smb2_push_mand_fdlocks() argument
308 if (++num == max_num) { in smb2_push_mand_fdlocks()
337 unsigned int max_num, max_buf; in smb2_push_mandatory_locks() local
356 max_num = max_buf / sizeof(struct smb2_lock_element); in smb2_push_mandatory_locks()
357 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_push_mandatory_locks()
364 stored_rc = smb2_push_mand_fdlocks(fdlocks, xid, buf, max_num); in smb2_push_mandatory_locks()
A Dfile.c1452 unsigned int num, max_num, max_buf; in cifs_push_mandatory_locks() local
1477 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1479 buf = kcalloc(max_num, sizeof(LOCKING_ANDX_RANGE), GFP_KERNEL); in cifs_push_mandatory_locks()
1496 if (++num == max_num) { in cifs_push_mandatory_locks()
1807 unsigned int max_num, num, max_buf; in cifs_unlock_range() local
1829 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
1831 buf = kcalloc(max_num, sizeof(LOCKING_ANDX_RANGE), GFP_KERNEL); in cifs_unlock_range()
1869 if (++num == max_num) { in cifs_unlock_range()
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw88/
A Dpci.h241 u32 max_num; in max_num_of_tx_queue() local
245 max_num = RTK_BEQ_TX_DESC_NUM; in max_num_of_tx_queue()
248 max_num = 1; in max_num_of_tx_queue()
251 max_num = RTK_DEFAULT_TX_DESC_NUM; in max_num_of_tx_queue()
255 return max_num; in max_num_of_tx_queue()
/linux-6.3-rc2/lib/math/
A Drational-test.c9 unsigned long max_num, max_den; member
39 rational_best_approximation(param->num, param->den, param->max_num, param->max_den, &n, &d); in rational_test()
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_vdpa.c147 u32 align, max_num, min_num = 1; in virtio_vdpa_setup_vq() local
166 max_num = ops->get_vq_num_max(vdpa); in virtio_vdpa_setup_vq()
167 if (max_num == 0) { in virtio_vdpa_setup_vq()
175 may_reduce_num = (max_num == min_num) ? false : true; in virtio_vdpa_setup_vq()
184 vq = vring_create_virtqueue_dma(index, max_num, align, vdev, in virtio_vdpa_setup_vq()
193 vq->num_max = max_num; in virtio_vdpa_setup_vq()
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_binding.c750 u32 max_num) in vmw_collect_view_ids() argument
757 for (i = 0; i < max_num; ++i, ++biv) { in vmw_collect_view_ids()
784 u32 max_num) in vmw_collect_dirty_view_ids() argument
791 i = find_first_bit(dirty, max_num); in vmw_collect_dirty_view_ids()
796 for (; i < max_num; ++i, ++biv) { in vmw_collect_dirty_view_ids()
803 if (next_bit >= max_num) in vmw_collect_dirty_view_ids()
907 u32 max_num) in vmw_collect_so_targets() argument
1011 u32 max_num) in vmw_collect_dirty_vbs() argument
1019 i = find_first_bit(dirty, max_num); in vmw_collect_dirty_vbs()
1024 for (; i < max_num; ++i, ++biv, ++vbs) { in vmw_collect_dirty_vbs()
[all …]
/linux-6.3-rc2/drivers/vhost/
A Dvringh.c211 unsigned int flag, new_num = (iov->max_num & ~VRINGH_IOV_ALLOCATED) * 2; in resize_iovec()
216 flag = (iov->max_num & VRINGH_IOV_ALLOCATED); in resize_iovec()
224 iov->max_num * sizeof(struct iovec)); in resize_iovec()
231 iov->max_num = (new_num | flag); in resize_iovec()
393 if (unlikely(iov->used == (iov->max_num & ~VRINGH_IOV_ALLOCATED))) { in __vringh_iov()
719 BUILD_BUG_ON(offsetof(struct vringh_kiov, max_num) != in vringh_getdesc_user()
720 offsetof(struct vringh_iov, max_num)); in vringh_getdesc_user()
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw89/
A Dpci.c1388 [RTW89_TXCH_ACH0] = {.start_idx = 0, .max_num = 5, .min_num = 2},
1389 [RTW89_TXCH_ACH1] = {.start_idx = 5, .max_num = 5, .min_num = 2},
1390 [RTW89_TXCH_ACH2] = {.start_idx = 10, .max_num = 5, .min_num = 2},
1391 [RTW89_TXCH_ACH3] = {.start_idx = 15, .max_num = 5, .min_num = 2},
1392 [RTW89_TXCH_ACH4] = {.start_idx = 20, .max_num = 5, .min_num = 2},
1393 [RTW89_TXCH_ACH5] = {.start_idx = 25, .max_num = 5, .min_num = 2},
1394 [RTW89_TXCH_ACH6] = {.start_idx = 30, .max_num = 5, .min_num = 2},
1395 [RTW89_TXCH_ACH7] = {.start_idx = 35, .max_num = 5, .min_num = 2},
1396 [RTW89_TXCH_CH8] = {.start_idx = 40, .max_num = 5, .min_num = 1},
1397 [RTW89_TXCH_CH9] = {.start_idx = 45, .max_num = 5, .min_num = 1},
[all …]
A Dpci.h755 u8 max_num; member
/linux-6.3-rc2/drivers/soc/mediatek/
A Dmtk-scpsys.c210 static void scpsys_clk_disable(struct clk *clk[], int max_num) in scpsys_clk_disable() argument
214 for (i = max_num - 1; i >= 0; i--) in scpsys_clk_disable()
218 static int scpsys_clk_enable(struct clk *clk[], int max_num) in scpsys_clk_enable() argument
222 for (i = 0; i < max_num && clk[i]; i++) { in scpsys_clk_enable()
/linux-6.3-rc2/fs/btrfs/
A Dcompression.c1236 u64 max_num; in radix_sort() local
1249 max_num = array[0].count; in radix_sort()
1252 if (buf_num > max_num) in radix_sort()
1253 max_num = buf_num; in radix_sort()
1256 buf_num = ilog2(max_num); in radix_sort()
/linux-6.3-rc2/tools/virtio/
A Dvringh_test.c596 assert(riov.max_num & VRINGH_IOV_ALLOCATED); in main()
603 assert(!(wiov.max_num & VRINGH_IOV_ALLOCATED)); in main()
736 assert(riov.max_num & VRINGH_IOV_ALLOCATED); in main()
/linux-6.3-rc2/include/uapi/rdma/
A Dmlx5-abi.h186 __u32 max_num; member
/linux-6.3-rc2/drivers/vdpa/
A Dvdpa.c39 u32 max_num, min_num = 1; in vdpa_dev_probe() local
47 max_num = ops->get_vq_num_max(vdev); in vdpa_dev_probe()
50 if (max_num < min_num) in vdpa_dev_probe()
/linux-6.3-rc2/drivers/i2c/
A Di2c-core-base.c2105 int max_num = q->max_num_msgs, i; in i2c_check_for_quirks() local
2109 max_num = 2; in i2c_check_for_quirks()
2132 if (i2c_quirk_exceeded(num, max_num)) in i2c_check_for_quirks()
/linux-6.3-rc2/drivers/net/wireless/quantenna/qtnfmac/
A Dqlink.h1519 __le16 max_num; member
A Dcommands.c1101 limits[i].max = le16_to_cpu(lim->max_num); in qtnf_parse_variable_mac_info()
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dmain.c1055 resp.cqe_comp_caps.max_num = in mlx5_ib_query_device()

Completed in 585 milliseconds