/drivers/iommu/ |
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 …]
|
D | io-pgtable-arm.c | 157 static inline bool iopte_leaf(arm_lpae_iopte pte, int lvl, in iopte_leaf() argument 160 if (lvl == (ARM_LPAE_MAX_LEVELS - 1) && fmt != ARM_MALI_LPAE) in iopte_leaf() 161 return iopte_type(pte, lvl) == ARM_LPAE_PTE_TYPE_PAGE; in iopte_leaf() 163 return iopte_type(pte, lvl) == ARM_LPAE_PTE_TYPE_BLOCK; in iopte_leaf() 261 int lvl, arm_lpae_iopte *ptep); 265 int lvl, int num_entries, arm_lpae_iopte *ptep) in __arm_lpae_init_pte() argument 269 size_t sz = ARM_LPAE_BLOCK_SIZE(lvl, data); in __arm_lpae_init_pte() 272 if (data->iop.fmt != ARM_MALI_LPAE && lvl == ARM_LPAE_MAX_LEVELS - 1) in __arm_lpae_init_pte() 286 arm_lpae_iopte prot, int lvl, int num_entries, in arm_lpae_init_pte() argument 292 if (iopte_leaf(ptep[i], lvl, data->iop.fmt)) { in arm_lpae_init_pte() [all …]
|
/drivers/gpu/drm/i915/gt/ |
D | gen8_ppgtt.c | 105 #define gen8_pd_shift(lvl) ((lvl) * ilog2(GEN8_PDES)) argument 106 #define gen8_pd_index(i, lvl) i915_pde_index((i), gen8_pd_shift(lvl)) argument 107 #define __gen8_pte_shift(lvl) (GEN8_PTE_SHIFT + gen8_pd_shift(lvl)) argument 108 #define __gen8_pte_index(a, lvl) i915_pde_index((a), __gen8_pte_shift(lvl)) argument 113 gen8_pd_range(u64 start, u64 end, int lvl, unsigned int *idx) in gen8_pd_range() argument 115 const int shift = gen8_pd_shift(lvl); in gen8_pd_range() 116 const u64 mask = ~0ull << gen8_pd_shift(lvl + 1); in gen8_pd_range() 128 static inline bool gen8_pd_contains(u64 start, u64 end, int lvl) in gen8_pd_contains() argument 130 const u64 mask = ~0ull << gen8_pd_shift(lvl + 1); in gen8_pd_contains() 171 int count, int lvl) in __gen8_ppgtt_cleanup() argument [all …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_nix.c | 153 int lvl, u16 pcifunc, u16 schq) in is_valid_txschq() argument 164 txsch = &nix_hw->txsch[lvl]; in is_valid_txschq() 174 if (lvl >= hw->cap.nix_tx_aggr_lvl) { in is_valid_txschq() 1258 int lvl, int schq) in nix_reset_tx_shaping() argument 1263 switch (lvl) { in nix_reset_tx_shaping() 1294 int lvl, int schq) in nix_reset_tx_linkcfg() argument 1299 if (lvl >= hw->cap.nix_tx_aggr_lvl) in nix_reset_tx_linkcfg() 1303 if (lvl == NIX_TXSCH_LVL_TL4) in nix_reset_tx_linkcfg() 1306 if (lvl != NIX_TXSCH_LVL_TL2) in nix_reset_tx_linkcfg() 1351 static int nix_check_txschq_alloc_req(struct rvu *rvu, int lvl, u16 pcifunc, in nix_check_txschq_alloc_req() argument [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | trace_dbg.h | 88 #define __hfi1_trace_def(lvl) \ argument 89 void __printf(2, 3) __hfi1_trace_##lvl(const char *funct, char *fmt, ...); \ 91 DEFINE_EVENT(hfi1_trace_template, hfi1_ ##lvl, \ 95 #define __hfi1_trace_fn(lvl) \ argument 96 void __printf(2, 3) __hfi1_trace_##lvl(const char *func, char *fmt, ...)\ 105 trace_hfi1_ ##lvl(func, &vaf); \
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
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 …]
|
/drivers/ide/ |
D | ide-gd.h | 12 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args) argument 14 #define ide_debug_log(lvl, fmt, args...) do {} while (0) argument
|
D | ide-cd.h | 15 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args) argument 17 #define ide_debug_log(lvl, fmt, args...) do {} while (0) argument
|
/drivers/pcmcia/ |
D | soc_common.h | 170 int lvl, const char *fmt, ...); 172 #define debug(skt, lvl, fmt, arg...) \ argument 173 soc_pcmcia_debug(skt, __func__, lvl, fmt , ## arg) 176 #define debug(skt, lvl, fmt, arg...) do { } while (0) argument
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_common.c | 541 int otx2_txschq_config(struct otx2_nic *pfvf, int lvl) in otx2_txschq_config() argument 551 req->lvl = lvl; in otx2_txschq_config() 554 schq = hw->txschq_list[lvl][0]; in otx2_txschq_config() 556 if (lvl == NIX_TXSCH_LVL_SMQ) { in otx2_txschq_config() 572 } else if (lvl == NIX_TXSCH_LVL_TL4) { in otx2_txschq_config() 579 } else if (lvl == NIX_TXSCH_LVL_TL3) { in otx2_txschq_config() 586 } else if (lvl == NIX_TXSCH_LVL_TL2) { in otx2_txschq_config() 601 } else if (lvl == NIX_TXSCH_LVL_TL1) { in otx2_txschq_config() 625 int lvl; in otx2_txsch_alloc() local 633 for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++) in otx2_txsch_alloc() [all …]
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.c | 479 u8 pgsz, lvl; in bnxt_qplib_init_rcfw() local 500 lvl = ctx->qpc_tbl.level; in bnxt_qplib_init_rcfw() 503 lvl; in bnxt_qplib_init_rcfw() 504 lvl = ctx->mrw_tbl.level; in bnxt_qplib_init_rcfw() 507 lvl; in bnxt_qplib_init_rcfw() 508 lvl = ctx->srqc_tbl.level; in bnxt_qplib_init_rcfw() 511 lvl; in bnxt_qplib_init_rcfw() 512 lvl = ctx->cq_tbl.level; in bnxt_qplib_init_rcfw() 515 lvl; in bnxt_qplib_init_rcfw() 516 lvl = ctx->tim_tbl.level; in bnxt_qplib_init_rcfw() [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | power.c | 147 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument 169 if (WARN_ON(lvl < 0 || lvl >= IWL_POWER_NUM)) in iwl_static_sleep_cmd() 172 *cmd = table[lvl].cmd; in iwl_static_sleep_cmd() 181 skip = table[lvl].no_dtim; in iwl_static_sleep_cmd() 244 IWL_DEBUG_POWER(priv, "Sleep command for index %d\n", lvl + 1); in iwl_static_sleep_cmd()
|
/drivers/media/tuners/ |
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) \
|
/drivers/infiniband/hw/usnic/ |
D | usnic_log.h | 46 #define usnic_printk(lvl, args...) \ argument 48 printk(lvl "%s:%s:%d: ", DRV_NAME, __func__, \
|
/drivers/media/common/siano/ |
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()
|
/drivers/media/cec/core/ |
D | cec-priv.h | 14 #define dprintk(lvl, fmt, arg...) \ argument 16 if (lvl <= cec_debug) \
|
/drivers/media/pci/saa7164/ |
D | saa7164-api.c | 67 struct tmComResDebugSetLevel lvl; in saa7164_api_set_debug() local 74 SET_DEBUG_LEVEL_CONTROL, sizeof(lvl), &lvl); in saa7164_api_set_debug() 78 dprintk(DBGLVL_API, "%s() Was %d\n", __func__, lvl.dwDebugLevel); in saa7164_api_set_debug() 80 lvl.dwDebugLevel = level; in saa7164_api_set_debug() 84 SET_DEBUG_LEVEL_CONTROL, sizeof(lvl), &lvl); in saa7164_api_set_debug() 533 struct tmComResAudioDefaults lvl; in saa7164_api_set_audio_std() local 540 lvl.ucDecoderLevel = TMHW_LEV_ADJ_DECLEV_DEFAULT; in saa7164_api_set_audio_std() 541 lvl.ucDecoderFM_Level = TMHW_LEV_ADJ_DECLEV_DEFAULT; in saa7164_api_set_audio_std() 542 lvl.ucMonoLevel = TMHW_LEV_ADJ_MONOLEV_DEFAULT; in saa7164_api_set_audio_std() 543 lvl.ucNICAM_Level = TMHW_LEV_ADJ_NICLEV_DEFAULT; in saa7164_api_set_audio_std() [all …]
|
/drivers/media/dvb-frontends/ |
D | lnbp22.c | 27 #define dprintk(lvl, arg...) if (debug >= (lvl)) printk(arg) argument
|
/drivers/staging/media/meson/vdec/ |
D | codec_vp9.c | 404 u8 lvl[MAX_SEGMENTS][MAX_REF_FRAMES][MAX_MODE_LF_DELTAS]; member 511 int lvl; in vp9_update_sharpness() local 514 for (lvl = 0; lvl <= MAX_LOOP_FILTER; lvl++) { in vp9_update_sharpness() 516 int block_inside_limit = lvl >> ((sharpness_lvl > 0) + in vp9_update_sharpness() 527 lfi->lfthr[lvl].lim = (u8)block_inside_limit; in vp9_update_sharpness() 528 lfi->lfthr[lvl].mblim = (u8)(2 * (lvl + 2) + in vp9_update_sharpness() 626 memset(lfi->lvl[seg_id], lvl_seg, in vp9_loop_filter_frame_init() 627 sizeof(lfi->lvl[seg_id])); in vp9_loop_filter_frame_init() 632 lfi->lvl[seg_id][INTRA_FRAME][0] = in vp9_loop_filter_frame_init() 642 lfi->lvl[seg_id][ref][mode] = in vp9_loop_filter_frame_init() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | cxusb.h | 170 #define cxusb_vprintk(dvbdev, lvl, ...) do { \ argument 172 if (dvb_usb_cxusb_debug & CXUSB_DBG_##lvl) \
|
/drivers/media/pci/cx23885/ |
D | cx23885-f300.c | 25 static void f300_set_line(struct cx23885_dev *dev, u32 line, u8 lvl) in f300_set_line() argument 28 if (lvl == 1) in f300_set_line()
|
/drivers/iommu/amd/ |
D | amd_iommu_types.h | 285 #define PM_MAP_MASK(lvl) (PM_ADDR_MASK & \ argument 286 (~((1ULL << (12 + ((lvl) * 9))) - 1))) 287 #define PM_ALIGNED(lvl, addr) ((PM_MAP_MASK(lvl) & (addr)) == (addr)) argument
|
/drivers/usb/gadget/udc/ |
D | pxa25x_udc.h | 243 #define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0) argument
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-i2c.c | 30 #define dprintk1(lvl, fmt, args...) \ argument 32 if (i2c_debug >= lvl) { \ 37 #define dprintk2(lvl, fmt, args...) \ argument 39 if (i2c_debug >= lvl) { \
|
/drivers/gpio/ |
D | gpio-adp5588.c | 258 int lvl = key & (1 << 7); in adp5588_irq_handler() local 262 if ((lvl && dev->int_lvl_high[bank] & bit) || in adp5588_irq_handler() 263 (!lvl && dev->int_lvl_low[bank] & bit)) in adp5588_irq_handler()
|