/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_aic.c | 312 int16_t start_idx, end_idx; in ar9003_aic_cal_post_process() local 317 start_idx = ar9003_aic_find_valid(cal_sram_valid, 0, i); in ar9003_aic_cal_post_process() 320 if (start_idx < 0) { in ar9003_aic_cal_post_process() 322 start_idx = end_idx; in ar9003_aic_cal_post_process() 323 end_idx = ar9003_aic_find_valid(cal_sram_valid, 1, start_idx); in ar9003_aic_cal_post_process() 331 ((aic_sram[start_idx].dir_path_gain_lin - in ar9003_aic_cal_post_process() 333 (start_idx - i) + ((end_idx - i) >> 1)) / in ar9003_aic_cal_post_process() 335 aic_sram[start_idx].dir_path_gain_lin; in ar9003_aic_cal_post_process() 337 ((aic_sram[start_idx].quad_path_gain_lin - in ar9003_aic_cal_post_process() 339 (start_idx - i) + ((end_idx - i) >> 1)) / in ar9003_aic_cal_post_process() [all …]
|
/openbmc/qemu/tests/tcg/multiarch/ |
H A D | vma-pthread.c | 119 size_t i, start_idx, end_idx, page_idx, tmp; in thread_mutate() local 126 start_idx = rand_r(&seed) & PAGE_IDX_MASK; in thread_mutate() 128 if (start_idx > end_idx) { in thread_mutate() 129 tmp = start_idx; in thread_mutate() 130 start_idx = end_idx; in thread_mutate() 134 for (page_idx = start_idx & REGION_MASK; page_idx <= end_idx; in thread_mutate() 147 ret = mprotect(&ctx->ptr[start_idx * ctx->pagesize], in thread_mutate() 148 (end_idx - start_idx + 1) * ctx->pagesize, prot); in thread_mutate()
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | scan.c | 40 static int send_scan_req(struct wfx_vif *wvif, struct cfg80211_scan_request *req, int start_idx) in send_scan_req() argument 46 for (i = start_idx; i < req->n_channels; i++) { in send_scan_req() 47 ch_start = req->channels[start_idx]; in send_scan_req() 58 ret = wfx_hif_scan(wvif, req, start_idx, i - start_idx); in send_scan_req() 76 } else if (wvif->scan_nb_chan_done > i - start_idx) { in send_scan_req() 81 if (req->channels[start_idx]->max_power != vif->bss_conf.txpower) in send_scan_req()
|
/openbmc/linux/fs/fuse/ |
H A D | dax.c | 182 static int fuse_setup_one_mapping(struct inode *inode, unsigned long start_idx, in fuse_setup_one_mapping() argument 190 loff_t offset = start_idx << FUSE_DAX_SHIFT; in fuse_setup_one_mapping() 221 dmap->itn.start = dmap->itn.last = start_idx; in fuse_setup_one_mapping() 317 unsigned long start_idx = start >> FUSE_DAX_SHIFT; in inode_reclaim_dmap_range() local 322 node = interval_tree_iter_first(&fi->dax->tree, start_idx, in inode_reclaim_dmap_range() 441 unsigned long start_idx = pos >> FUSE_DAX_SHIFT; in fuse_setup_new_dax_mapping() local 477 node = interval_tree_iter_first(&fi->dax->tree, start_idx, start_idx); in fuse_setup_new_dax_mapping() 569 unsigned long start_idx = pos >> FUSE_DAX_SHIFT; in fuse_iomap_begin() local 589 node = interval_tree_iter_first(&fi->dax->tree, start_idx, start_idx); in fuse_iomap_begin() 952 unsigned long start_idx; in inode_inline_reclaim_one_dmap() local [all …]
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | hmc.c | 198 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) in irdma_hmc_finish_add_sd_reg() 201 if ((info->start_idx + info->count) > in irdma_hmc_finish_add_sd_reg() 231 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) in irdma_sc_create_hmc_obj() 234 if ((info->start_idx + info->count) > in irdma_sc_create_hmc_obj() 238 info->rsrc_type, info->start_idx, info->count, in irdma_sc_create_hmc_obj() 244 info->start_idx, info->count, &sd_idx, in irdma_sc_create_hmc_obj() 252 info->start_idx, info->count, &pd_idx, in irdma_sc_create_hmc_obj() 379 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in irdma_sc_del_hmc_obj() 382 info->start_idx, info->rsrc_type, in irdma_sc_del_hmc_obj() 387 if ((info->start_idx + info->count) > in irdma_sc_del_hmc_obj() [all …]
|
H A D | hmc.h | 127 u32 start_idx; member 138 u32 start_idx; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | rsc_dump.c | 59 int read_size, int start_idx) in mlx5_rsc_dump_read_menu_sgmt() argument 70 if (!start_idx) { in mlx5_rsc_dump_read_menu_sgmt() 79 for (i = 0; start_idx + i < num_of_items; i++) { in mlx5_rsc_dump_read_menu_sgmt() 82 return start_idx + i; in mlx5_rsc_dump_read_menu_sgmt() 189 int start_idx = 0; in mlx5_rsc_dump_menu() local 211 start_idx = mlx5_rsc_dump_read_menu_sgmt(dev->rsc_dump, page, size, start_idx); in mlx5_rsc_dump_menu()
|
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema_iface.c | 317 u16 start_idx, num_macs, idx = 0, count = 0; in opa_vnic_query_mcast_macs() local 320 start_idx = be16_to_cpu(macs->start_idx); in opa_vnic_query_mcast_macs() 325 if (start_idx > idx++) in opa_vnic_query_mcast_macs() 349 u16 start_idx, tot_macs, num_macs, idx = 0, count = 0, em_macs = 0; in opa_vnic_query_ucast_macs() local 352 start_idx = be16_to_cpu(macs->start_idx); in opa_vnic_query_ucast_macs() 365 if (start_idx > idx++) in opa_vnic_query_ucast_macs() 377 if (start_idx > idx++) in opa_vnic_query_ucast_macs()
|
/openbmc/linux/fs/squashfs/ |
H A D | block.c | 85 int start_idx = 0, end_idx = 0; in squashfs_bio_read_cached() local 119 bio_trim(bio, start_idx * PAGE_SECTORS, in squashfs_bio_read_cached() 120 (end_idx - start_idx) * PAGE_SECTORS); in squashfs_bio_read_cached() 126 start_idx = idx; in squashfs_bio_read_cached() 134 bio_trim(bio, start_idx * PAGE_SECTORS, in squashfs_bio_read_cached() 135 (end_idx - start_idx) * PAGE_SECTORS); in squashfs_bio_read_cached()
|
/openbmc/linux/drivers/cpuidle/ |
H A D | dt_idle_states.c | 150 unsigned int start_idx) in dt_init_idle_driver() argument 157 unsigned int state_idx = start_idx; in dt_init_idle_driver() 222 return state_idx - start_idx; in dt_init_idle_driver()
|
H A D | dt_idle_states.h | 7 unsigned int start_idx);
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_lan_hmc.c | 304 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_create_lan_hmc_object() 310 if ((info->start_idx + info->count) > in i40e_create_lan_hmc_object() 320 info->start_idx, info->count, in i40e_create_lan_hmc_object() 329 info->start_idx, info->count, &pd_idx, in i40e_create_lan_hmc_object() 446 info.start_idx = 0; in i40e_configure_lan_hmc() 556 if (info->start_idx >= info->hmc_info->hmc_obj[info->rsrc_type].cnt) { in i40e_delete_lan_hmc_object() 563 if ((info->start_idx + info->count) > in i40e_delete_lan_hmc_object() 572 info->start_idx, info->count, &pd_idx, in i40e_delete_lan_hmc_object() 595 info->start_idx, info->count, in i40e_delete_lan_hmc_object() 639 info.start_idx = 0; in i40e_shutdown_lan_hmc()
|
H A D | i40e_lan_hmc.h | 129 u32 start_idx; member 138 u32 start_idx; member
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | umem_odp.c | 352 int pfn_index, dma_index, ret = 0, start_idx; in ib_umem_odp_map_dma_and_lock() local 406 start_idx = (range.start - ib_umem_start(umem_odp)) >> page_shift; in ib_umem_odp_map_dma_and_lock() 407 dma_index = start_idx; in ib_umem_odp_map_dma_and_lock() 458 ret = dma_index - start_idx; in ib_umem_odp_map_dma_and_lock()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | dm.c | 225 u64 start_idx; in mlx5_dm_sw_icm_dealloc() local 259 start_idx = (addr - icm_start_addr) >> MLX5_LOG_SW_ICM_BLOCK_SIZE(dev); in mlx5_dm_sw_icm_dealloc() 262 start_idx, num_blocks); in mlx5_dm_sw_icm_dealloc()
|
/openbmc/linux/fs/f2fs/ |
H A D | compress.c | 963 unsigned int start_idx = cluster_idx << in __f2fs_cluster_blocks() local 968 ret = f2fs_get_dnode_of_data(&dn, start_idx, LOOKUP_NODE); in __f2fs_cluster_blocks() 1067 pgoff_t start_idx = start_idx_of_cluster(cc); in prepare_compress_overwrite() local 1071 ret = f2fs_is_compressed_cluster(cc->inode, start_idx); in prepare_compress_overwrite() 1081 page = f2fs_pagecache_get_page(mapping, start_idx + i, in prepare_compress_overwrite() 1114 page = find_lock_page(mapping, start_idx + i); in prepare_compress_overwrite() 1187 pgoff_t start_idx = from >> (PAGE_SHIFT + log_cluster_size) << in f2fs_truncate_partial_cluster() local 1191 err = f2fs_is_compressed_cluster(inode, start_idx); in f2fs_truncate_partial_cluster() 1201 start_idx, &fsdata); in f2fs_truncate_partial_cluster() 1226 f2fs_compress_write_end(inode, fsdata, start_idx, true); in f2fs_truncate_partial_cluster() [all …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_sdma.c | 110 idx = txp->start_idx; in clear_sdma_activelist() 345 idx = txp->start_idx; in qib_sdma_make_progress() 377 idx = txp->start_idx; in qib_sdma_make_progress() 496 tx->txreq.start_idx = 0; in complete_sdma_err_req() 563 tx->txreq.start_idx = tail; in qib_sdma_verbs_send() 730 txp->start_idx, txp->next_descq_idx); in dump_sdma_state()
|
/openbmc/linux/drivers/perf/ |
H A D | arm_dmc620_pmu.c | 296 int idx, start_idx, end_idx; in dmc620_get_event_idx() local 299 start_idx = 0; in dmc620_get_event_idx() 302 start_idx = DMC620_PMU_CLKDIV2_MAX_COUNTERS; in dmc620_get_event_idx() 306 for (idx = start_idx; idx < end_idx; ++idx) { in dmc620_get_event_idx()
|
/openbmc/linux/drivers/media/test-drivers/vicodec/ |
H A D | codec-v4l2-fwht.c | 60 unsigned int start_idx) in v4l2_fwht_find_nth_fmt() argument 69 if (start_idx == 0) in v4l2_fwht_find_nth_fmt() 71 start_idx--; in v4l2_fwht_find_nth_fmt()
|
H A D | codec-v4l2-fwht.h | 59 unsigned int start_idx);
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | cfg.c | 402 unsigned int start_idx; in draw_bb_node() local 404 start_idx = bb->head - func->start; in draw_bb_node() 405 dump_xlated_for_graph(dd, bb->head, bb->tail, start_idx, in draw_bb_node()
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | pci.c | 1390 [RTW89_TXCH_ACH0] = {.start_idx = 0, .max_num = 5, .min_num = 2}, 1391 [RTW89_TXCH_ACH1] = {.start_idx = 5, .max_num = 5, .min_num = 2}, 1392 [RTW89_TXCH_ACH2] = {.start_idx = 10, .max_num = 5, .min_num = 2}, 1393 [RTW89_TXCH_ACH3] = {.start_idx = 15, .max_num = 5, .min_num = 2}, 1394 [RTW89_TXCH_ACH4] = {.start_idx = 20, .max_num = 5, .min_num = 2}, 1395 [RTW89_TXCH_ACH5] = {.start_idx = 25, .max_num = 5, .min_num = 2}, 1396 [RTW89_TXCH_ACH6] = {.start_idx = 30, .max_num = 5, .min_num = 2}, 1397 [RTW89_TXCH_ACH7] = {.start_idx = 35, .max_num = 5, .min_num = 2}, 1398 [RTW89_TXCH_CH8] = {.start_idx = 40, .max_num = 5, .min_num = 1}, 1399 [RTW89_TXCH_CH9] = {.start_idx = 45, .max_num = 5, .min_num = 1}, [all …]
|
/openbmc/linux/drivers/dma/ti/ |
H A D | k3-udma.c | 165 u32 start_idx[3]; member 452 if (chan_id >= tpl_map->start_idx[i]) in udma_get_chan_tpl_index() 1350 start = ud->res##_tpl.start_idx[tpl]; \ 1503 chan_id = ud->tchan_tpl.start_idx[ud->tchan_tpl.levels - 1]; in udma_get_chan_pair() 4539 ud->tchan_tpl.start_idx[0] = 8; in udma_setup_resources() 4543 ud->tchan_tpl.start_idx[0] = 2; in udma_setup_resources() 4546 ud->tchan_tpl.start_idx[1] = UDMA_CAP3_UCHAN_CNT(cap3); in udma_setup_resources() 4547 ud->tchan_tpl.start_idx[0] = UDMA_CAP3_HCHAN_CNT(cap3); in udma_setup_resources() 4550 ud->tchan_tpl.start_idx[0] = UDMA_CAP3_HCHAN_CNT(cap3); in udma_setup_resources() 4556 ud->rchan_tpl.start_idx[0] = ud->tchan_tpl.start_idx[0]; in udma_setup_resources() [all …]
|
/openbmc/linux/sound/hda/ext/ |
H A D | hdac_ext_stream.c | 55 int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx, in snd_hdac_ext_stream_init_all() argument 59 int i, tag, idx = start_idx; in snd_hdac_ext_stream_init_all()
|
/openbmc/u-boot/drivers/dma/ |
H A D | keystone_nav.c | 62 qm_cfg->desc_mem[0].start_idx = 0; in _qm_init() 93 qm_cfg->desc_mem[j].start_idx = 0; in qm_close()
|