| /linux/drivers/iommu/ |
| H A D | io-pgtable-arm-v7s.c | 51 #define _ARM_V7S_LVL_BITS(lvl, cfg) ((lvl) == 1 ? ((cfg)->ias - 20) : 8) argument 52 #define ARM_V7S_LVL_SHIFT(lvl) ((lvl) == 1 ? 20 : 12) argument 55 #define ARM_V7S_PTES_PER_LVL(lvl, cfg) (1 << _ARM_V7S_LVL_BITS(lvl, cfg)) argument 56 #define ARM_V7S_TABLE_SIZE(lvl, cfg) \ argument 57 (ARM_V7S_PTES_PER_LVL(lvl, cfg) * sizeof(arm_v7s_iopte)) 59 #define ARM_V7S_BLOCK_SIZE(lvl) (1UL << ARM_V7S_LVL_SHIFT(lvl)) argument 60 #define ARM_V7S_LVL_MASK(lvl) ((u32)(~0U << ARM_V7S_LVL_SHIFT(lvl))) argument 62 #define _ARM_V7S_IDX_MASK(lvl, cfg) (ARM_V7S_PTES_PER_LVL(lvl, cfg) - 1) argument 63 #define ARM_V7S_LVL_IDX(addr, lvl, cfg) ({ \ argument 64 int _l = lvl; \ [all …]
|
| H A D | io-pgtable-arm.c | 169 static inline bool iopte_leaf(arm_lpae_iopte pte, int lvl, in iopte_leaf() argument 172 if (lvl == (ARM_LPAE_MAX_LEVELS - 1) && fmt != ARM_MALI_LPAE) in iopte_leaf() 178 static inline bool iopte_table(arm_lpae_iopte pte, int lvl) in iopte_table() argument 180 if (lvl == (ARM_LPAE_MAX_LEVELS - 1)) in iopte_table() 335 int lvl, arm_lpae_iopte *ptep); 339 int lvl, int num_entries, arm_lpae_iopte *ptep) in __arm_lpae_init_pte() argument 343 size_t sz = ARM_LPAE_BLOCK_SIZE(lvl, data); in __arm_lpae_init_pte() 346 if (data->iop.fmt != ARM_MALI_LPAE && lvl == ARM_LPAE_MAX_LEVELS - 1) in __arm_lpae_init_pte() 360 arm_lpae_iopte prot, int lvl, int num_entries, in arm_lpae_init_pte() argument 366 if (iopte_leaf(ptep[i], lvl, data->iop.fmt)) { in arm_lpae_init_pte() [all …]
|
| /linux/tools/perf/util/ |
| H A D | mem-events.c | 447 int lvl; in perf_mem__lvl_scnprintf() local 463 lvl = data_src.mem_lvl_num; in perf_mem__lvl_scnprintf() 464 if (lvl && lvl != PERF_MEM_LVLNUM_NA) { in perf_mem__lvl_scnprintf() 473 if (mem_lvlnum[lvl]) in perf_mem__lvl_scnprintf() 474 l += scnprintf(out + l, sz - l, mem_lvlnum[lvl]); in perf_mem__lvl_scnprintf() 476 l += scnprintf(out + l, sz - l, "Unknown level %d", lvl); in perf_mem__lvl_scnprintf() 482 lvl = data_src.mem_lvl; in perf_mem__lvl_scnprintf() 483 if (!lvl) in perf_mem__lvl_scnprintf() 486 lvl &= ~(PERF_MEM_LVL_NA | PERF_MEM_LVL_HIT | PERF_MEM_LVL_MISS); in perf_mem__lvl_scnprintf() 487 if (!lvl) in perf_mem__lvl_scnprintf() [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | gen8_ppgtt.c | 140 #define gen8_pd_shift(lvl) ((lvl) * ilog2(GEN8_PDES)) argument 141 #define gen8_pd_index(i, lvl) i915_pde_index((i), gen8_pd_shift(lvl)) argument 142 #define __gen8_pte_shift(lvl) (GEN8_PTE_SHIFT + gen8_pd_shift(lvl)) argument 143 #define __gen8_pte_index(a, lvl) i915_pde_index((a), __gen8_pte_shift(lvl)) argument 148 gen8_pd_range(u64 start, u64 end, int lvl, unsigned int *idx) in gen8_pd_range() argument 150 const int shift = gen8_pd_shift(lvl); in gen8_pd_range() 151 const u64 mask = ~0ull << gen8_pd_shift(lvl + 1); in gen8_pd_range() 163 static bool gen8_pd_contains(u64 start, u64 end, int lvl) in gen8_pd_contains() argument 165 const u64 mask = ~0ull << gen8_pd_shift(lvl + 1); in gen8_pd_contains() 206 int count, int lvl) in __gen8_ppgtt_cleanup() argument [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | qos.c | 215 cfg->lvl = parent->level; in otx2_qos_txschq_set_parent_topology() 462 int lvl; in otx2_qos_alloc_txschq_node() local 465 for (lvl = node->level - 1; lvl >= NIX_TXSCH_LVL_MDQ; lvl--) { in otx2_qos_alloc_txschq_node() 471 txschq_node->level = lvl; in otx2_qos_alloc_txschq_node() 628 req->lvl = node->level; in otx2_qos_txschq_config() 644 int lvl, rc, schq; in otx2_qos_txschq_alloc() local 653 for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++) { in otx2_qos_txschq_alloc() 654 req->schq[lvl] = cfg->schq[lvl]; in otx2_qos_txschq_alloc() 655 req->schq_contig[lvl] = cfg->schq_contig[lvl]; in otx2_qos_txschq_alloc() 672 for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++) { in otx2_qos_txschq_alloc() [all …]
|
| H A D | otx2_common.c | 617 int otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool txschq_for_pfc) in otx2_txschq_config() argument 631 req->lvl = lvl; in otx2_txschq_config() 640 schq = schq_list[lvl][prio]; in otx2_txschq_config() 642 if (lvl == NIX_TXSCH_LVL_SMQ) { in otx2_txschq_config() 660 } else if (lvl == NIX_TXSCH_LVL_TL4) { in otx2_txschq_config() 677 } else if (lvl == NIX_TXSCH_LVL_TL3) { in otx2_txschq_config() 684 if (lvl == hw->txschq_link_cfg_lvl && in otx2_txschq_config() 693 } else if (lvl == NIX_TXSCH_LVL_TL2) { in otx2_txschq_config() 702 if (lvl == hw->txschq_link_cfg_lvl && in otx2_txschq_config() 711 } else if (lvl == NIX_TXSCH_LVL_TL1) { in otx2_txschq_config() [all …]
|
| /linux/net/netlabel/ |
| H A D | netlabel_cipso_v4.c | 173 doi_def->map.std->lvl.local_size) in netlbl_cipsov4_add_std() 174 doi_def->map.std->lvl.local_size = in netlbl_cipsov4_add_std() 182 doi_def->map.std->lvl.cipso_size) in netlbl_cipsov4_add_std() 183 doi_def->map.std->lvl.cipso_size = in netlbl_cipsov4_add_std() 188 doi_def->map.std->lvl.local = kcalloc(doi_def->map.std->lvl.local_size, in netlbl_cipsov4_add_std() 191 if (doi_def->map.std->lvl.local == NULL) { in netlbl_cipsov4_add_std() 195 doi_def->map.std->lvl.cipso = kcalloc(doi_def->map.std->lvl.cipso_size, in netlbl_cipsov4_add_std() 198 if (doi_def->map.std->lvl.cipso == NULL) { in netlbl_cipsov4_add_std() 202 for (iter = 0; iter < doi_def->map.std->lvl.local_size; iter++) in netlbl_cipsov4_add_std() 203 doi_def->map.std->lvl.local[iter] = CIPSO_V4_INV_LVL; in netlbl_cipsov4_add_std() [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | kernel-pgtable.h | 48 #define EARLY_ENTRIES(lvl, vstart, vend) \ argument 49 SPAN_NR_ENTRIES(vstart, vend, SWAPPER_BLOCK_SHIFT + lvl * PTDESC_TABLE_SHIFT) 51 #define EARLY_LEVEL(lvl, lvls, vstart, vend, add) \ argument 52 ((lvls) > (lvl) ? EARLY_ENTRIES(lvl, vstart, vend) + (add) : 0)
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_nix.c | 294 int lvl, u16 pcifunc, u16 schq) in is_valid_txschq() argument 305 txsch = &nix_hw->txsch[lvl]; in is_valid_txschq() 315 if (lvl >= hw->cap.nix_tx_aggr_lvl) { in is_valid_txschq() 1820 int lvl, u64 reg, u64 regval) in handle_txschq_shaper_update() argument 1832 switch (lvl) { in handle_txschq_shaper_update() 1895 nixlf, schq, lvl); in handle_txschq_shaper_update() 1909 int lvl, int schq) in nix_reset_tx_schedule() argument 1913 switch (lvl) { in nix_reset_tx_schedule() 1948 int nixlf, int lvl, int schq) in nix_reset_tx_shaping() argument 1954 switch (lvl) { in nix_reset_tx_shaping() [all …]
|
| /linux/drivers/pcmcia/ |
| H A D | soc_common.h | 52 int lvl, const char *fmt, ...); 54 #define debug(skt, lvl, fmt, arg...) \ argument 55 soc_pcmcia_debug(skt, __func__, lvl, fmt , ## arg) 58 #define debug(skt, lvl, fmt, arg...) do { } while (0) argument
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
| H A D | vmm.c | 77 u16 max, lvl; member 100 int lvl; in nvkm_vmm_trace() local 101 for (lvl = it->max; lvl >= 0; lvl--) { in nvkm_vmm_trace() 102 if (lvl >= it->lvl) in nvkm_vmm_trace() 103 buf += sprintf(buf, "%05x:", it->pte[lvl]); in nvkm_vmm_trace() 122 it->flush = min(it->flush, it->max - it->lvl); in nvkm_vmm_flush_mark() 141 const int type = desc[it->lvl].type == SPT; in nvkm_vmm_unref_pdes() 142 struct nvkm_vmm_pt *pgd = it->pt[it->lvl + 1]; in nvkm_vmm_unref_pdes() 143 struct nvkm_vmm_pt *pgt = it->pt[it->lvl]; in nvkm_vmm_unref_pdes() 146 u32 pdei = it->pte[it->lvl + 1]; in nvkm_vmm_unref_pdes() [all …]
|
| /linux/arch/sparc/mm/ |
| H A D | leon_mm.c | 42 unsigned int lvl, pte; in leon_swprobe() local 72 lvl = 3; in leon_swprobe() 94 lvl = 2; in leon_swprobe() 121 lvl = 1; in leon_swprobe() 143 lvl = 0; in leon_swprobe() 152 switch (lvl) { in leon_swprobe()
|
| /linux/drivers/media/tuners/ |
| H A D | tda18271-priv.h | 135 #define tda_printk(st, lvl, fmt, arg...) \ argument 136 _tda_printk(st, lvl, __func__, fmt, ##arg) 138 #define tda_dprintk(st, lvl, fmt, arg...) \ argument 140 if (tda18271_debug & lvl) \
|
| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | log.h | 6 #define pr_msg(fmt, lvl, ...) \ argument 8 lvl, __FILE__, __LINE__, ##__VA_ARGS__)
|
| /linux/tools/testing/selftests/timens/ |
| H A D | log.h | 6 #define pr_msg(fmt, lvl, ...) \ argument 8 lvl, __FILE__, __LINE__, ##__VA_ARGS__)
|
| /linux/drivers/infiniband/hw/usnic/ |
| H A D | usnic_log.h | 46 #define usnic_printk(lvl, args...) \ argument 48 printk(lvl "%s:%s:%d: ", DRV_NAME, __func__, \
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_rcfw.c | 838 u8 pgsz, lvl; in bnxt_qplib_init_rcfw() local 859 lvl = ctx->qpc_tbl.level; in bnxt_qplib_init_rcfw() 862 lvl; in bnxt_qplib_init_rcfw() 863 lvl = ctx->mrw_tbl.level; in bnxt_qplib_init_rcfw() 866 lvl; in bnxt_qplib_init_rcfw() 867 lvl = ctx->srqc_tbl.level; in bnxt_qplib_init_rcfw() 870 lvl; in bnxt_qplib_init_rcfw() 871 lvl = ctx->cq_tbl.level; in bnxt_qplib_init_rcfw() 874 lvl; in bnxt_qplib_init_rcfw() 875 lvl = ctx->tim_tbl.level; in bnxt_qplib_init_rcfw() [all …]
|
| /linux/net/ipv4/ |
| H A D | cipso_ipv4.c | 470 kfree(doi_def->map.std->lvl.cipso); in cipso_v4_doi_free() 471 kfree(doi_def->map.std->lvl.local); in cipso_v4_doi_free() 647 if ((level < doi_def->map.std->lvl.cipso_size) && in cipso_v4_map_lvl_valid() 648 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL)) in cipso_v4_map_lvl_valid() 677 if (host_lvl < doi_def->map.std->lvl.local_size && in cipso_v4_map_lvl_hton() 678 doi_def->map.std->lvl.local[host_lvl] < CIPSO_V4_INV_LVL) { in cipso_v4_map_lvl_hton() 679 *net_lvl = doi_def->map.std->lvl.local[host_lvl]; in cipso_v4_map_lvl_hton() 712 if (net_lvl < map_tbl->lvl.cipso_size && in cipso_v4_map_lvl_ntoh() 713 map_tbl->lvl.cipso[net_lvl] < CIPSO_V4_INV_LVL) { in cipso_v4_map_lvl_ntoh() 714 *host_lvl = doi_def->map.std->lvl.cipso[net_lvl]; in cipso_v4_map_lvl_ntoh() [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | da7218.txt | 28 - dlg,micbias1-lvl-millivolt : Voltage (mV) for Mic Bias 1 30 - dlg,micbias2-lvl-millivolt : Voltage (mV) for Mic Bias 2 84 dlg,micbias1-lvl-millivolt = <2600>; 85 dlg,micbias2-lvl-millivolt = <2600>;
|
| /linux/drivers/media/common/siano/ |
| H A D | sms-cards.c | 228 int lvl, ret; in sms_set_gpio() local 244 lvl = enable ? 0 : 1; in sms_set_gpio() 247 lvl = enable ? 1 : 0; in sms_set_gpio() 254 return smscore_set_gpio(coredev, gpio, lvl); in sms_set_gpio()
|
| /linux/tools/thermal/lib/ |
| H A D | log.c | 23 int log_str2level(const char *lvl) in log_str2level() argument 28 if (!strcmp(lvl, loglvl[i])) in log_str2level()
|
| /linux/arch/arc/kernel/ |
| H A D | mcip.c | 203 static void idu_set_mode(unsigned int cmn_irq, bool set_lvl, unsigned int lvl, in idu_set_mode() argument 209 unsigned int distr:2, pad:2, lvl:1, pad2:27; in idu_set_mode() member 217 data.lvl = lvl; in idu_set_mode()
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sm8250-xiaomi-pipa.dts | 105 /* S6c is really ebi.lvl but it's there for supply map completeness sake. */ 184 /* (S1+S2+S3) - cx.lvl (ARC) */ 224 /* L4 - lmx.lvl (ARC) */ 252 /* L10 is unused, L11 - lcx.lvl (ARC) */ 318 * (S1+S2) - gfx.lvl, 319 * S3 - mx.lvl, 320 * (S4+S5) - mmcx.lvl, 321 * S6 - ebi.lvl
|
| /linux/drivers/media/cec/core/ |
| H A D | cec-priv.h | 14 #define dprintk(lvl, fmt, arg...) \ argument 16 if (lvl <= cec_debug) \
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | pble.c | 437 struct irdma_pble_alloc *palloc, u8 lvl) in get_lvl1_lvl2_pble() argument 442 if (!status || lvl == PBLE_LEVEL_1 || palloc->total_cnt <= PBLE_PER_PAGE) in get_lvl1_lvl2_pble() 459 u8 lvl) in irdma_get_pble() argument 473 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, lvl); in irdma_get_pble() 483 status = get_lvl1_lvl2_pble(pble_rsrc, palloc, lvl); in irdma_get_pble() 485 if (!status || lvl) in irdma_get_pble()
|