Home
last modified time | relevance | path

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

12

/drivers/iommu/iommufd/
Dpages.c182 unsigned long start_index, in iopt_pages_err_unpin() argument
186 unsigned long npages = last_index - start_index + 1; in iopt_pages_err_unpin()
239 unsigned long start_index, in iopt_area_unmap_domain_range() argument
242 unsigned long start_iova = iopt_area_index_to_iova(area, start_index); in iopt_area_unmap_domain_range()
377 struct iopt_area *area, unsigned long start_index, in batch_from_domain() argument
384 iova = iopt_area_index_to_iova(area, start_index); in batch_from_domain()
385 if (start_index == iopt_area_index(area)) in batch_from_domain()
387 while (start_index <= last_index) { in batch_from_domain()
398 start_index++; in batch_from_domain()
404 unsigned long start_index, in raw_pages_from_domain() argument
[all …]
/drivers/soc/qcom/
Dspm.c83 .start_index[PM_SLEEP_MODE_STBY] = 0,
84 .start_index[PM_SLEEP_MODE_SPC] = 5,
95 .start_index[PM_SLEEP_MODE_STBY] = 0,
96 .start_index[PM_SLEEP_MODE_SPC] = 5,
106 .start_index[PM_SLEEP_MODE_STBY] = 0,
107 .start_index[PM_SLEEP_MODE_SPC] = 5,
125 .start_index[PM_SLEEP_MODE_STBY] = 0,
126 .start_index[PM_SLEEP_MODE_SPC] = 3,
135 .start_index[PM_SLEEP_MODE_STBY] = 0,
136 .start_index[PM_SLEEP_MODE_SPC] = 2,
[all …]
/drivers/video/fbdev/core/
Dsysimgblt.c53 void *dst1, u32 start_index, u32 pitch_index) in color_imageblit() argument
70 if (start_index) { in color_imageblit()
72 start_index)); in color_imageblit()
74 shift = start_index; in color_imageblit()
105 start_index += pitch_index; in color_imageblit()
106 start_index &= 32 - 1; in color_imageblit()
113 u32 start_index, u32 pitch_index) in slow_imageblit() argument
135 if (start_index) { in slow_imageblit()
137 start_index)); in slow_imageblit()
139 shift = start_index; in slow_imageblit()
[all …]
Dcfbimgblt.c77 u32 start_index, in color_imageblit() argument
96 if (start_index) { in color_imageblit()
98 start_index, bswapmask); in color_imageblit()
100 shift = start_index; in color_imageblit()
131 start_index += pitch_index; in color_imageblit()
132 start_index &= 32 - 1; in color_imageblit()
140 u32 start_index, in slow_imageblit() argument
164 if (start_index) { in slow_imageblit()
166 start_index, bswapmask); in slow_imageblit()
168 shift = start_index; in slow_imageblit()
[all …]
/drivers/misc/altera-stapl/
Daltera-jtag.h73 int altera_set_dr_pre(struct altera_jtag *js, u32 count, u32 start_index,
75 int altera_set_ir_pre(struct altera_jtag *js, u32 count, u32 start_index,
77 int altera_set_dr_post(struct altera_jtag *js, u32 count, u32 start_index,
79 int altera_set_ir_post(struct altera_jtag *js, u32 count, u32 start_index,
88 u8 *tdi_data, u32 start_index);
94 u8 *tdi_data, u32 start_index);
Daltera-jtag.c117 u32 count, u32 start_index, in altera_set_dr_pre() argument
136 j = i + start_index; in altera_set_dr_pre()
155 int altera_set_ir_pre(struct altera_jtag *js, u32 count, u32 start_index, in altera_set_ir_pre() argument
175 j = i + start_index; in altera_set_ir_pre()
193 int altera_set_dr_post(struct altera_jtag *js, u32 count, u32 start_index, in altera_set_dr_post() argument
214 j = i + start_index; in altera_set_dr_post()
233 int altera_set_ir_post(struct altera_jtag *js, u32 count, u32 start_index, in altera_set_ir_post() argument
255 j = i + start_index; in altera_set_ir_post()
394 u32 start_index, in altera_concatenate_data() argument
413 j = start_index; in altera_concatenate_data()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c33 unsigned int start_index; member
47 .start_index = MLXSW_SP1_KVDL_##id##_BASE, \
96 if (kvdl_index >= part->info.start_index && in mlxsw_sp1_kvdl_index_part()
108 return info->start_index + entry_index * info->alloc_size; in mlxsw_sp1_kvdl_to_kvdl_index()
115 return (kvdl_index - info->start_index) / info->alloc_size; in mlxsw_sp1_kvdl_to_entry_index()
124 nr_entries = (info->end_index - info->start_index + 1) / in mlxsw_sp1_kvdl_part_alloc()
202 part->info.start_index = part_prev->info.end_index + 1; in mlxsw_sp1_kvdl_part_update()
203 part->info.end_index = part->info.start_index + size - 1; in mlxsw_sp1_kvdl_part_update()
223 resource_size = info->end_index - info->start_index + 1; in mlxsw_sp1_kvdl_part_init()
285 info->start_index + 1) / in mlxsw_sp1_kvdl_part_occ()
Dspectrum_fid.c103 u16 start_index; member
320 return fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_family_num_fids()
410 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021q_setup()
768 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021d_setup()
789 nr_fids = fid_family->end_index - fid_family->start_index + 1; in mlxsw_sp_fid_8021d_index_alloc()
793 *p_fid_index = fid_family->start_index + fid_index; in mlxsw_sp_fid_8021d_index_alloc()
1127 *p_fid_index = fid->fid_family->start_index + rif_index; in mlxsw_sp_fid_rfid_index_alloc()
1137 return fid->fid_index == rif_index + fid->fid_family->start_index; in mlxsw_sp_fid_rfid_compare()
1268 *p_fid_index = fid->fid_family->start_index; in mlxsw_sp_fid_dummy_index_alloc()
1429 .start_index = MLXSW_SP_FID_8021Q_START,
[all …]
Dspectrum_policer.c16 u16 start_index; /* Inclusive */ member
92 family->start_index = MLXSW_CORE_RES_GET(core, MAX_CPU_POLICERS); in mlxsw_sp_policer_single_rate_family_init()
122 id = idr_alloc(&family->policer_idr, policer, family->start_index, in mlxsw_sp_policer_single_rate_index_alloc()
326 if (WARN_ON(family->start_index >= family->end_index)) { in mlxsw_sp_policer_family_register()
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c326 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm_helper_translate_curve_to_hw_format() local
379 start_index = (region_start + k + MAX_LOW_POINT) * in cm_helper_translate_curve_to_hw_format()
381 for (i = start_index; i < start_index + NUMBER_SW_SEGMENTS; in cm_helper_translate_curve_to_hw_format()
398 start_index = (region_end + MAX_LOW_POINT) * NUMBER_SW_SEGMENTS; in cm_helper_translate_curve_to_hw_format()
399 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm_helper_translate_curve_to_hw_format()
400 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm_helper_translate_curve_to_hw_format()
401 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm_helper_translate_curve_to_hw_format()
536 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm_helper_translate_curve_to_degamma_hw_format() local
568 start_index = (region_start + k + MAX_LOW_POINT) * in cm_helper_translate_curve_to_degamma_hw_format()
570 for (i = start_index; i < start_index + NUMBER_SW_SEGMENTS; in cm_helper_translate_curve_to_degamma_hw_format()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c121 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm3_helper_translate_curve_to_hw_format() local
175 start_index = (region_start + k + MAX_LOW_POINT) * in cm3_helper_translate_curve_to_hw_format()
177 for (i = start_index; i < start_index + NUMBER_SW_SEGMENTS; in cm3_helper_translate_curve_to_hw_format()
189 start_index = (region_end + MAX_LOW_POINT) * NUMBER_SW_SEGMENTS; in cm3_helper_translate_curve_to_hw_format()
190 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format()
191 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm3_helper_translate_curve_to_hw_format()
192 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm3_helper_translate_curve_to_hw_format()
320 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm3_helper_translate_curve_to_degamma_hw_format() local
352 start_index = (region_start + k + MAX_LOW_POINT) * in cm3_helper_translate_curve_to_degamma_hw_format()
354 for (i = start_index; i < start_index + NUMBER_SW_SEGMENTS; in cm3_helper_translate_curve_to_degamma_hw_format()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_mr.c253 int start_index, u64 *buffer_list, int list_len) in __mthca_write_mtt() argument
268 start_index * 8); in __mthca_write_mtt()
288 start_index += i; in __mthca_write_mtt()
314 struct mthca_mtt *mtt, int start_index, in mthca_tavor_write_mtt_seg() argument
321 start_index * sizeof (u64); in mthca_tavor_write_mtt_seg()
328 struct mthca_mtt *mtt, int start_index, in mthca_arbel_write_mtt_seg() argument
334 int s = start_index * sizeof (u64); in mthca_arbel_write_mtt_seg()
357 int start_index, u64 *buffer_list, int list_len) in mthca_write_mtt() argument
364 return __mthca_write_mtt(dev, mtt, start_index, buffer_list, list_len); in mthca_write_mtt()
369 mthca_arbel_write_mtt_seg(dev, mtt, start_index, in mthca_write_mtt()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.h105 __field(u32, start_index)
116 __entry->start_index = fg->start_index;
117 __entry->end_index = fg->start_index + fg->max_ftes;
139 __entry->start_index, __entry->end_index,
/drivers/infiniband/hw/mlx4/
Dmr.c98 int *start_index, int *npages) in mlx4_ib_umem_write_mtt_block() argument
134 err = mlx4_write_mtt(dev->dev, mtt, *start_index, in mlx4_ib_umem_write_mtt_block()
139 (*start_index) += *npages; in mlx4_ib_umem_write_mtt_block()
191 int start_index = 0; in mlx4_ib_umem_write_mtt() local
217 pages, &start_index, in mlx4_ib_umem_write_mtt()
235 &start_index, &npages); in mlx4_ib_umem_write_mtt()
241 err = mlx4_write_mtt(dev->dev, mtt, start_index, npages, pages); in mlx4_ib_umem_write_mtt()
/drivers/acpi/acpica/
Dnsrepair2.c74 u32 start_index,
765 u32 start_index, in acpi_ns_check_sorted_list() argument
791 if (!outer_element_count || start_index >= outer_element_count) { in acpi_ns_check_sorted_list()
795 outer_elements = &return_object->package.elements[start_index]; in acpi_ns_check_sorted_list()
796 outer_element_count -= start_index; in acpi_ns_check_sorted_list()
835 elements[start_index], in acpi_ns_check_sorted_list()
Dnsprepkg.c29 u8 type2, u32 count2, u32 start_index);
705 u8 type2, u32 count2, u32 start_index) in acpi_ns_check_package_elements() argument
720 type1, i + start_index); in acpi_ns_check_package_elements()
731 (i + count1 + start_index)); in acpi_ns_check_package_elements()
/drivers/net/ethernet/mellanox/mlx4/
Dmr.c693 int start_index, int npages, u64 *page_list) in mlx4_write_mtt_chunk() argument
701 start_index, &dma_handle); in mlx4_write_mtt_chunk()
719 int start_index, int npages, u64 *page_list) in __mlx4_write_mtt() argument
728 max_mtts_first_page = mtts_per_page - (mtt->offset + start_index) in __mlx4_write_mtt()
734 err = mlx4_write_mtt_chunk(dev, mtt, start_index, chunk, page_list); in __mlx4_write_mtt()
738 start_index += chunk; in __mlx4_write_mtt()
747 int start_index, int npages, u64 *page_list) in mlx4_write_mtt() argument
767 inbox[0] = cpu_to_be64(mtt->offset + start_index); in mlx4_write_mtt()
779 start_index += chunk; in mlx4_write_mtt()
786 return __mlx4_write_mtt(dev, mtt, start_index, npages, page_list); in mlx4_write_mtt()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-desc.c531 unsigned int start_index, cur_index; in xgbe_map_tx_skb() local
538 start_index = ring->cur; in xgbe_map_tx_skb()
646 packet->rdesc_count = cur_index - start_index; in xgbe_map_tx_skb()
653 while (start_index < cur_index) { in xgbe_map_tx_skb()
654 rdata = XGBE_GET_DESC_DATA(ring, start_index++); in xgbe_map_tx_skb()
/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-desc.c502 unsigned int start_index, cur_index; in xlgmac_map_tx_skb() local
512 start_index = ring->cur; in xlgmac_map_tx_skb()
622 pkt_info->desc_count = cur_index - start_index; in xlgmac_map_tx_skb()
627 while (start_index < cur_index) { in xlgmac_map_tx_skb()
628 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index++); in xlgmac_map_tx_skb()
Ddwc-xlgmac-hw.c711 int start_index = ring->cur; in xlgmac_dev_xmit() local
872 if (cur_index != start_index) in xlgmac_dev_xmit()
920 for (i = cur_index - start_index + 1; i < pkt_info->desc_count; i++) { in xlgmac_dev_xmit()
983 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_dev_xmit()
991 xlgmac_dump_tx_desc(pdata, ring, start_index, in xlgmac_dev_xmit()
1006 channel->name, start_index & (ring->dma_desc_count - 1), in xlgmac_dev_xmit()
1060 int start_index = ring->cur; in xlgmac_tx_desc_init() local
1075 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_tx_desc_init()
1143 unsigned int start_index = ring->cur; in xlgmac_rx_desc_init() local
1159 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_rx_desc_init()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/dcn321/
Ddcn321_fpu.c264 unsigned int start_index = 0; in sort_entries_with_same_bw() local
271 start_index = i; in sort_entries_with_same_bw()
278 if (start_index != end_index) { in sort_entries_with_same_bw()
279 for (int j = start_index; j < end_index; j++) { in sort_entries_with_same_bw()
280 for (int k = start_index; k < end_index; k++) { in sort_entries_with_same_bw()
287 start_index = 0; in sort_entries_with_same_bw()
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c702 ida_free(&fg->fte_allocator, fte->index - fg->start_index); in del_sw_fte()
738 fg->start_index < ft->autogroup.max_fte) in del_sw_flow_group()
756 fte->index = index + fg->start_index; in insert_fte()
803 int start_index, in alloc_flow_group() argument
824 fg->start_index = start_index; in alloc_flow_group()
825 fg->max_ftes = end_index - start_index + 1; in alloc_flow_group()
833 int start_index, in alloc_insert_flow_group() argument
842 start_index, end_index); in alloc_insert_flow_group()
1395 int start_index = MLX5_GET(create_flow_group_in, fg_in, in mlx5_create_flow_group() local
1402 if (ft->autogroup.active && start_index < ft->autogroup.max_fte) in mlx5_create_flow_group()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_mr.c809 u32 start_index; in hns_roce_mtr_find() local
820 start_index = offset >> HNS_HW_PAGE_SHIFT; in hns_roce_mtr_find()
824 if (npage < start_index) in hns_roce_mtr_find()
836 start_index = offset >> cfg->buf_pg_shift; in hns_roce_mtr_find()
841 start_index + total, in hns_roce_mtr_find()
/drivers/scsi/
D3w-9xxx.c646 unsigned char event_index, start_index; in twa_chrdev_ioctl() local
796 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
802 start_index = 0; in twa_chrdev_ioctl()
804 …event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id + 1) % TW… in twa_chrdev_ioctl()
825 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
831 start_index = 0; in twa_chrdev_ioctl()
833 …event_index = (start_index + sequence_id - tw_dev->event_queue[start_index]->sequence_id - 1) % TW… in twa_chrdev_ioctl()
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomctrl.c1341 int atomctrl_read_efuse(struct pp_hwmgr *hwmgr, uint16_t start_index, in atomctrl_read_efuse() argument
1349 if ((end_index - start_index) == 31) in atomctrl_read_efuse()
1352 mask = (1 << ((end_index - start_index) + 1)) - 1; in atomctrl_read_efuse()
1354 efuse_param.sEfuse.usEfuseIndex = cpu_to_le16((start_index / 32) * 4); in atomctrl_read_efuse()
1356 (start_index - ((start_index / 32) * 32)); in atomctrl_read_efuse()
1358 ((end_index - start_index) + 1); in atomctrl_read_efuse()

12