Searched refs:idx (Results 1 - 25 of 3979) sorted by last modified time

1234567891011>>

/linux-master/fs/bcachefs/
H A Dbuckets.c155 void bch2_fs_usage_acc_to_base(struct bch_fs *c, unsigned idx) argument
159 BUG_ON(idx >= ARRAY_SIZE(c->usage));
165 (u64 __percpu *) c->usage[idx], u64s);
166 percpu_memset(c->usage[idx], 0, u64s * sizeof(u64));
173 (u64 __percpu *) ca->usage[idx], u64s);
174 percpu_memset(ca->usage[idx], 0, u64s * sizeof(u64));
357 int idx = bch2_replicas_entry_idx(c, r); local
359 if (idx < 0)
363 fs_usage->replicas[idx] += sectors;
372 int idx, re local
[all...]
H A Dbtree_node_scan.c442 for_each_found_btree_node_in_range(f, search, idx)
443 if (f->nodes.data[idx].seq > BTREE_NODE_SEQ(b->data))
457 for_each_found_btree_node_in_range(&c->found_btree_nodes, search, idx)
493 for_each_found_btree_node_in_range(f, search, idx) {
494 struct found_btree_node n = f->nodes.data[idx];
/linux-master/drivers/power/supply/
H A Drt9455_charger.c293 unsigned int idx = rt9455_find_idx(tbl, tbl_size, val); local
295 return regmap_field_write(info->regmap_fields[field], idx);
546 int idx = ARRAY_SIZE(rt9455_ichrg_values) - 1; local
548 val->intval = rt9455_ichrg_values[idx];
576 int idx = ARRAY_SIZE(rt9455_vmreg_values) - 1; local
578 val->intval = rt9455_vmreg_values[idx];
656 int idx, ret; local
735 idx = ARRAY_SIZE(rt9455_vmreg_values) - 1;
739 rt9455_vmreg_values[idx]);
/linux-master/drivers/pinctrl/renesas/
H A Dpinctrl-rzg2l.c569 unsigned int idx = *index; local
631 ret = rzg2l_map_add_config(&maps[idx], pin,
637 idx++;
675 ret = rzg2l_map_add_config(&maps[idx], name,
681 idx++;
706 maps[idx].type = PIN_MAP_TYPE_MUX_GROUP;
707 maps[idx].data.mux.group = name;
708 maps[idx].data.mux.function = name;
709 idx++;
720 *index = idx;
[all...]
/linux-master/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-combo.c3148 unsigned int idx = clkspec->args[0]; local
3150 if (idx >= 2) {
3151 pr_err("%s: invalid index %u\n", __func__, idx);
3155 if (idx == 0)
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its.c2314 u32 idx = baser - its->tables; local
2316 return gits_read_baser(its->base + GITS_BASER + (idx << 3));
2322 u32 idx = baser - its->tables; local
2324 gits_write_baser(val, its->base + GITS_BASER + (idx << 3));
2778 unsigned int psz, esz, idx, npg, gpsz; local
2816 idx = id >> ilog2(psz / (esz * SZ_8));
2817 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE))
2823 if (!table[idx]) {
2832 table[idx] = cpu_to_le64(page_to_phys(page) | GITS_BASER_VALID);
2836 gic_flush_dcache_to_poc(table + idx, GITS_LVL1_ENTRY_SIZ
3320 u32 esz, idx; local
3498 int idx; local
[all...]
/linux-master/drivers/dma/
H A Dpl330.c1000 /* Start doing req 'idx' of thread 'thrd' */
1009 int idx; local
1015 idx = 1 - thrd->lstenq;
1016 if (thrd->req[idx].desc != NULL) {
1017 req = &thrd->req[idx];
1019 idx = thrd->lstenq;
1020 if (thrd->req[idx].desc != NULL)
1021 req = &thrd->req[idx];
1031 if (idx == thrd->req_running)
1054 thrd->req_running = idx;
1480 unsigned idx; local
[all...]
/linux-master/drivers/dma/idxd/
H A Dperfmon.c100 idxd_pmu->event_list[n]->hw.idx = n;
116 idxd_pmu->event_list[n]->hw.idx = n;
124 struct perf_event *event, int idx)
129 hwc->idx = idx;
130 hwc->config_base = ioread64(CNTRCFG_REG(idxd, idx));
131 hwc->event_base = ioread64(CNTRCFG_REG(idxd, idx));
159 int i, ret = 0, n, idx; local
186 idx = perfmon_assign_event(fake_pmu, event);
187 if (idx <
123 perfmon_assign_hw_event(struct idxd_pmu *idxd_pmu, struct perf_event *event, int idx) argument
413 int idx, n; local
[all...]
H A Didxd.h494 static inline struct idxd_irq_entry *idxd_get_ie(struct idxd_device *idxd, int idx) argument
496 return (idx == 0) ? &idxd->ie : &idxd->wqs[idx - 1]->ie;
756 int idxd_device_request_int_handle(struct idxd_device *idxd, int idx, int *handle,
H A Ddevice.c596 int idxd_device_request_int_handle(struct idxd_device *idxd, int idx, int *handle, argument
605 dev_dbg(dev, "get int handle, idx %d\n", idx);
607 operand = idx & GENMASK(15, 0);
983 int idx = n / BITS_PER_LONG_LONG; local
985 wq->wqcfg->op_config[idx] |= BIT(pos);
/linux-master/arch/x86/kernel/
H A Dprocess_64.c415 unsigned short idx = selector >> 3; local
419 if (unlikely(idx >= GDT_ENTRIES))
426 if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX)
429 idx -= GDT_ENTRY_TLS_MIN;
430 base = get_desc_base(&task->thread.tls_array[idx]);
442 if (unlikely(!ldt || idx >= ldt->nr_entries))
445 base = get_desc_base(ldt->entries + idx);
/linux-master/arch/riscv/mm/
H A Dinit.c318 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot) argument
320 unsigned long addr = __fix_to_virt(idx);
323 BUG_ON(idx <= FIX_HOLE || idx >= __end_of_fixed_addresses);
1306 unsigned long idx = pgd_index(__fix_to_virt(FIX_FDT)); local
1308 set_pgd(&swapper_pg_dir[idx], early_pg_dir[idx]);
/linux-master/net/wireless/
H A Dtrace.h911 __field(int, idx)
917 __entry->idx = _idx;
919 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: %pM, idx: %d",
921 __entry->idx)
989 __field(int, idx)
996 __entry->idx = _idx;
999 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, __entry->dst,
1033 __field(int, idx)
1040 __entry->idx = _idx;
1043 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, __entr
[all...]
H A Dnl80211.c1297 int idx; member in struct:key_parse
1325 k->idx = nla_get_u8(tb[NL80211_KEY_IDX]);
1377 k->idx = nla_get_u8(info->attrs[NL80211_ATTR_KEY_IDX]);
1417 k->idx = -1;
1443 if (k->idx != -1) {
1445 if (k->idx < 4 || k->idx > 5) {
1447 "defmgmt key idx not 4 or 5");
1451 if (k->idx < 6 || k->idx >
3067 int idx = 0, ret; local
3585 int idx, mbm = 0; local
4446 int idx; member in struct:get_key_cookie
7157 int idx; local
10404 int start = cb->args[2], idx = 0; local
15854 u32 idx = NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE, attr; local
[all...]
/linux-master/net/mac80211/
H A Dtx.c66 if (WARN_ON_ONCE(tx->rate.idx < 0))
70 txrate = &sband->bitrates[tx->rate.idx];
700 txrc.reported_rate.idx = -1;
768 if (unlikely(info->control.rates[0].idx < 0)) {
771 .idx = ratetbl->rate[0].idx,
776 if (ratetbl->rate[0].idx < 0)
787 if (txrc.reported_rate.idx < 0) {
1010 info->control.rates[1].idx = -1;
1011 info->control.rates[2].idx
[all...]
H A Drx.c1873 ieee80211_rx_get_bigtk(struct ieee80211_rx_data *rx, int idx) argument
1884 if (idx < 0) {
1885 idx = NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS;
1886 idx2 = idx + 1;
1888 if (idx == NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS)
1889 idx2 = idx + 1;
1891 idx2 = idx - 1;
1895 key = rcu_dereference(rx->link_sta->gtk[idx]);
1897 key = rcu_dereference(rx->link->gtk[idx]);
2197 int i, idx; local
[all...]
H A Dmlme.c510 unsigned int idx, int bw)
519 return sta_eht_cap->eht_mcs_nss_supp.only_20mhz.rx_tx_max_nss[idx];
522 if (idx > 0)
523 idx--;
527 return sta_eht_cap->eht_mcs_nss_supp.bw._80.rx_tx_max_nss[idx];
533 return sta_eht_cap->eht_mcs_nss_supp.bw._160.rx_tx_max_nss[idx];
537 return sta_eht_cap->eht_mcs_nss_supp.bw._320.rx_tx_max_nss[idx];
5094 const struct ieee80211_bssid_index *idx; local
5110 idx = (void *)(idx_ie + 2);
5113 *dtim_count = idx
508 ieee80211_get_eht_cap_mcs_nss(const struct ieee80211_sta_he_cap *sta_he_cap, const struct ieee80211_sta_eht_cap *sta_eht_cap, unsigned int idx, int bw) argument
[all...]
H A Drate.c325 rate->idx = 0;
331 if (rate->idx < 0)
333 if (basic_rates & (1 << rate->idx))
336 for (i = rate->idx + 1; i <= sband->n_bitrates; i++) {
338 rate->idx = i;
358 info->control.rates[0].idx = 0;
366 info->control.rates[0].idx = 0;
377 info->control.rates[0].idx = i;
411 info->control.rates[0].idx = mcast_rate - 1;
638 rate = &sband->bitrates[rates[0].idx];
[all...]
H A Dmesh_pathtbl.c280 __mesh_path_lookup_by_idx(struct mesh_table *tbl, int idx) argument
286 if (i++ == idx)
303 * @idx: index
311 mesh_path_lookup_by_idx(struct ieee80211_sub_if_data *sdata, int idx) argument
313 return __mesh_path_lookup_by_idx(&sdata->u.mesh.mesh_paths, idx);
318 * @idx: index
326 mpp_path_lookup_by_idx(struct ieee80211_sub_if_data *sdata, int idx) argument
328 return __mesh_path_lookup_by_idx(&sdata->u.mesh.mpp_paths, idx);
H A Dmesh.h315 mesh_path_lookup_by_idx(struct ieee80211_sub_if_data *sdata, int idx);
317 mpp_path_lookup_by_idx(struct ieee80211_sub_if_data *sdata, int idx);
H A Dmesh.c229 u8 idx; local
238 idx = le32_to_cpu(mesh_hdr->seqnum) & rmc->idx_mask;
239 hlist_for_each_entry_safe(p, n, &rmc->bucket[idx], list) {
257 hlist_add_head(&p->list, &rmc->bucket[idx]);
/linux-master/net/bluetooth/
H A Dmgmt.c4357 u16 idx = 0; local
4373 memcpy(rp->features[idx].uuid, debug_uuid, 16);
4374 rp->features[idx].flags = cpu_to_le32(flags);
4375 idx++;
4385 memcpy(rp->features[idx].uuid, le_simultaneous_roles_uuid, 16);
4386 rp->features[idx].flags = cpu_to_le32(flags);
4387 idx++;
4396 memcpy(rp->features[idx].uuid, rpa_resolution_uuid, 16);
4397 rp->features[idx].flags = cpu_to_le32(flags);
4398 idx
[all...]
/linux-master/mm/
H A Dhugetlb.c2807 pgoff_t idx; local
2815 idx = vma_hugecache_offset(h, vma, addr);
2818 ret = region_chg(resv, idx, idx + 1, &dummy_out_regions_needed);
2826 ret = region_add(resv, idx, idx + 1, 1, NULL, NULL);
2831 region_abort(resv, idx, idx + 1, 1);
2836 ret = region_add(resv, idx, idx
3140 int memcg_charge_ret, ret, idx; local
4458 int idx = hstate_index(h); local
6020 pgoff_t idx; local
6123 pgoff_t idx = linear_page_index(vma, address); local
6133 hugetlb_add_to_page_cache(struct folio *folio, struct address_space *mapping, pgoff_t idx) argument
6196 hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma, struct address_space *mapping, pgoff_t idx, unsigned long address, pte_t *ptep, pte_t old_pte, unsigned int flags, struct vm_fault *vmf) argument
6409 hugetlb_fault_mutex_hash(struct address_space *mapping, pgoff_t idx) argument
6426 hugetlb_fault_mutex_hash(struct address_space *mapping, pgoff_t idx) argument
6668 pgoff_t idx = vma_hugecache_offset(h, dst_vma, dst_addr); local
7297 page_table_shareable(struct vm_area_struct *svma, struct vm_area_struct *vma, unsigned long addr, pgoff_t idx) argument
7386 pgoff_t idx = ((addr - vma->vm_start) >> PAGE_SHIFT) + local
[all...]
/linux-master/include/net/
H A Dmac80211.h1023 * @IEEE80211_TX_RC_VHT_MCS: VHT MCS rate, in this case the idx field is split
1068 * @idx: rate index to attempt to send with
1072 * A value of -1 for @idx indicates an invalid rate and, if used
1081 * if this array contains, in the format { <idx>, <count> } the
1098 s8 idx; member in struct:ieee80211_tx_rate
1107 return rate->idx >= 0 && rate->count > 0;
1115 rate->idx = ((nss - 1) << 4) | mcs;
1121 return rate->idx & 0xF;
1127 return (rate->idx >> 4) + 1;
1265 * @tx_power_idx An idx int
2289 s8 idx; member in struct:ieee80211_sta_rates::__anon112
3126 ieee80211_get_alt_retry_rate(const struct ieee80211_hw *hw, const struct ieee80211_tx_info *c, int idx) argument
[all...]
/linux-master/fs/ntfs3/
H A Dsuper.c1166 u32 idx, done, bytes; local
1438 for (done = idx = 0; done < bytes; done += PAGE_SIZE, idx++) {
1440 struct page *page = ntfs_map_page(inode->i_mapping, idx);
1451 if (!idx && ATTR_STD != t->type) {
1498 for (idx = 0; idx < (0x10000 * sizeof(short) >> PAGE_SHIFT); idx++) {
1500 u16 *dst = Add2Ptr(sbi->upcase, idx << PAGE_SHIFT);
1501 struct page *page = ntfs_map_page(inode->i_mapping, idx);
[all...]

Completed in 460 milliseconds

1234567891011>>