| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | gen6_engine_cs.c | 60 u32 *cs; in gen6_emit_post_sync_nonzero_flush() local 62 cs = intel_ring_begin(rq, 6); in gen6_emit_post_sync_nonzero_flush() 63 if (IS_ERR(cs)) in gen6_emit_post_sync_nonzero_flush() 64 return PTR_ERR(cs); in gen6_emit_post_sync_nonzero_flush() 66 *cs++ = GFX_OP_PIPE_CONTROL(5); in gen6_emit_post_sync_nonzero_flush() 67 *cs++ = PIPE_CONTROL_CS_STALL | PIPE_CONTROL_STALL_AT_SCOREBOARD; in gen6_emit_post_sync_nonzero_flush() 68 *cs++ = scratch_addr | PIPE_CONTROL_GLOBAL_GTT; in gen6_emit_post_sync_nonzero_flush() 69 *cs++ = 0; /* low dword */ in gen6_emit_post_sync_nonzero_flush() 70 *cs++ = 0; /* high dword */ in gen6_emit_post_sync_nonzero_flush() 71 *cs++ = MI_NOOP; in gen6_emit_post_sync_nonzero_flush() [all …]
|
| H A D | gen8_engine_cs.h | 43 u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 44 u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 46 u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 47 u32 *gen11_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 48 u32 *gen12_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 50 u32 *gen12_emit_aux_table_inv(struct intel_engine_cs *engine, u32 *cs); 79 __gen8_emit_write_rcs(u32 *cs, u32 value, u32 offset, u32 flags0, u32 flags1) in __gen8_emit_write_rcs() argument 81 *cs++ = GFX_OP_PIPE_CONTROL(6) | flags0; in __gen8_emit_write_rcs() 82 *cs++ = flags1 | PIPE_CONTROL_QW_WRITE; in __gen8_emit_write_rcs() 83 *cs++ = offset; in __gen8_emit_write_rcs() [all …]
|
| H A D | selftest_engine_pm.c | 34 static u32 *emit_wait(u32 *cs, u32 offset, int op, u32 value) in emit_wait() argument 36 *cs++ = MI_SEMAPHORE_WAIT | in emit_wait() 40 *cs++ = value; in emit_wait() 41 *cs++ = offset; in emit_wait() 42 *cs++ = 0; in emit_wait() 44 return cs; in emit_wait() 47 static u32 *emit_store(u32 *cs, u32 offset, u32 value) in emit_store() argument 49 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in emit_store() 50 *cs++ = offset; in emit_store() 51 *cs++ = 0; in emit_store() [all …]
|
| H A D | intel_context_sseu.c | 21 u32 *cs; in gen8_emit_rpcs_config() local 23 cs = intel_ring_begin(rq, 4); in gen8_emit_rpcs_config() 24 if (IS_ERR(cs)) in gen8_emit_rpcs_config() 25 return PTR_ERR(cs); in gen8_emit_rpcs_config() 30 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in gen8_emit_rpcs_config() 31 *cs++ = lower_32_bits(offset); in gen8_emit_rpcs_config() 32 *cs++ = upper_32_bits(offset); in gen8_emit_rpcs_config() 33 *cs++ = intel_sseu_make_rpcs(rq->engine->gt, &sseu); in gen8_emit_rpcs_config() 35 intel_ring_advance(rq, cs); in gen8_emit_rpcs_config()
|
| /linux/drivers/gpu/drm/i915/pxp/ |
| H A D | intel_pxp_cmd.c | 23 static u32 *pxp_emit_session_selection(u32 *cs, u32 idx) in pxp_emit_session_selection() argument 25 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 28 *cs++ = MI_FLUSH_DW; in pxp_emit_session_selection() 29 *cs++ = 0; in pxp_emit_session_selection() 30 *cs++ = 0; in pxp_emit_session_selection() 33 *cs++ = MI_SET_APPID | MI_SET_APPID_SESSION_ID(idx); in pxp_emit_session_selection() 35 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 38 *cs++ = MI_FLUSH_DW | MI_FLUSH_DW_PROTECTED_MEM_EN | in pxp_emit_session_selection() 40 *cs++ = I915_GEM_HWS_PXP_ADDR | MI_FLUSH_DW_USE_GTT; in pxp_emit_session_selection() 41 *cs++ = 0; in pxp_emit_session_selection() [all …]
|
| /linux/drivers/scsi/ |
| H A D | myrs.c | 104 static void myrs_qcmd(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk) in myrs_qcmd() argument 106 void __iomem *base = cs->io_base; in myrs_qcmd() 108 union myrs_cmd_mbox *next_mbox = cs->next_cmd_mbox; in myrs_qcmd() 110 cs->write_cmd_mbox(next_mbox, mbox); in myrs_qcmd() 112 if (cs->prev_cmd_mbox1->words[0] == 0 || in myrs_qcmd() 113 cs->prev_cmd_mbox2->words[0] == 0) in myrs_qcmd() 114 cs->get_cmd_mbox(base); in myrs_qcmd() 116 cs->prev_cmd_mbox2 = cs->prev_cmd_mbox1; in myrs_qcmd() 117 cs->prev_cmd_mbox1 = next_mbox; in myrs_qcmd() 119 if (++next_mbox > cs->last_cmd_mbox) in myrs_qcmd() [all …]
|
| /linux/sound/core/ |
| H A D | pcm_iec958.c | 29 int snd_pcm_create_iec958_consumer_default(u8 *cs, size_t len) in snd_pcm_create_iec958_consumer_default() argument 34 memset(cs, 0, len); in snd_pcm_create_iec958_consumer_default() 36 cs[0] = IEC958_AES0_CON_NOT_COPYRIGHT | IEC958_AES0_CON_EMPHASIS_NONE; in snd_pcm_create_iec958_consumer_default() 37 cs[1] = IEC958_AES1_CON_GENERAL; in snd_pcm_create_iec958_consumer_default() 38 cs[2] = IEC958_AES2_CON_SOURCE_UNSPEC | IEC958_AES2_CON_CHANNEL_UNSPEC; in snd_pcm_create_iec958_consumer_default() 39 cs[3] = IEC958_AES3_CON_CLOCK_1000PPM | IEC958_AES3_CON_FS_NOTID; in snd_pcm_create_iec958_consumer_default() 42 cs[4] = IEC958_AES4_CON_WORDLEN_NOTID; in snd_pcm_create_iec958_consumer_default() 49 u8 *cs, size_t len) in fill_iec958_consumer() argument 54 if ((cs[3] & IEC958_AES3_CON_FS) == IEC958_AES3_CON_FS_NOTID) { in fill_iec958_consumer() 83 cs[3] &= ~IEC958_AES3_CON_FS; in fill_iec958_consumer() [all …]
|
| /linux/kernel/cgroup/ |
| H A D | cpuset-internal.h | 208 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() argument 210 return css_cs(cs->css.parent); in parent_cs() 214 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() argument 216 return css_is_online(&cs->css) && !css_is_dying(&cs->css); in is_cpuset_online() 219 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() argument 221 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive() 224 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() argument 226 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive() 229 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() argument 231 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall() [all …]
|
| /linux/arch/mips/bcm63xx/ |
| H A D | cs.c | 24 static int is_valid_cs(unsigned int cs) in is_valid_cs() argument 26 if (cs > 6) in is_valid_cs() 35 int bcm63xx_set_cs_base(unsigned int cs, u32 base, unsigned int size) in bcm63xx_set_cs_base() argument 40 if (!is_valid_cs(cs)) in bcm63xx_set_cs_base() 55 bcm_mpi_writel(val, MPI_CSBASE_REG(cs)); in bcm63xx_set_cs_base() 66 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait, in bcm63xx_set_cs_timing() argument 72 if (!is_valid_cs(cs)) in bcm63xx_set_cs_timing() 76 val = bcm_mpi_readl(MPI_CSCTL_REG(cs)); in bcm63xx_set_cs_timing() 83 bcm_mpi_writel(val, MPI_CSCTL_REG(cs)); in bcm63xx_set_cs_timing() 94 int bcm63xx_set_cs_param(unsigned int cs, u32 params) in bcm63xx_set_cs_param() argument [all …]
|
| H A D | dev-pcmcia.c | 69 static int __init config_pcmcia_cs(unsigned int cs, in config_pcmcia_cs() argument 74 ret = bcm63xx_set_cs_status(cs, 0); in config_pcmcia_cs() 76 ret = bcm63xx_set_cs_base(cs, base, size); in config_pcmcia_cs() 78 ret = bcm63xx_set_cs_status(cs, 1); in config_pcmcia_cs() 83 unsigned int cs; member 88 .cs = MPI_CS_PCMCIA_COMMON, 93 .cs = MPI_CS_PCMCIA_ATTR, 98 .cs = MPI_CS_PCMCIA_IO, 132 ret = config_pcmcia_cs(pcmcia_cs[i].cs, in bcm63xx_pcmcia_register()
|
| /linux/net/ceph/ |
| H A D | string_table.c | 13 struct ceph_string *cs, *exist; in ceph_find_or_create_string() local 40 cs = kmalloc(sizeof(*cs) + len + 1, GFP_NOFS); in ceph_find_or_create_string() 41 if (!cs) in ceph_find_or_create_string() 44 kref_init(&cs->kref); in ceph_find_or_create_string() 45 cs->len = len; in ceph_find_or_create_string() 46 memcpy(cs->str, str, len); in ceph_find_or_create_string() 47 cs->str[len] = 0; in ceph_find_or_create_string() 68 rb_link_node(&cs->node, parent, p); in ceph_find_or_create_string() 69 rb_insert_color(&cs->node, &string_tree); in ceph_find_or_create_string() 80 kfree(cs); in ceph_find_or_create_string() [all …]
|
| /linux/drivers/clocksource/ |
| H A D | timer-pistachio.c | 48 struct clocksource cs; member 53 #define to_pistachio_clocksource(cs) \ argument 54 container_of(cs, struct pistachio_clocksource, cs) 68 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles() argument 70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles() 90 return pistachio_clocksource_read_cycles(&pcs_gpt.cs); in pistachio_read_sched_clock() 93 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() argument 96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode() 108 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() argument 110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable() [all …]
|
| H A D | em_sti.c | 33 struct clocksource cs; member 181 static struct em_sti_priv *cs_to_em_sti(struct clocksource *cs) in cs_to_em_sti() argument 183 return container_of(cs, struct em_sti_priv, cs); in cs_to_em_sti() 186 static u64 em_sti_clocksource_read(struct clocksource *cs) in em_sti_clocksource_read() argument 188 return em_sti_count(cs_to_em_sti(cs)); in em_sti_clocksource_read() 191 static int em_sti_clocksource_enable(struct clocksource *cs) in em_sti_clocksource_enable() argument 193 struct em_sti_priv *p = cs_to_em_sti(cs); in em_sti_clocksource_enable() 198 static void em_sti_clocksource_disable(struct clocksource *cs) in em_sti_clocksource_disable() argument 200 em_sti_stop(cs_to_em_sti(cs), USER_CLOCKSOURCE); in em_sti_clocksource_disable() 203 static void em_sti_clocksource_resume(struct clocksource *cs) in em_sti_clocksource_resume() argument [all …]
|
| H A D | ingenic-ost.c | 39 struct clocksource cs; member 56 static u64 notrace ingenic_ost_clocksource_readl(struct clocksource *cs) in ingenic_ost_clocksource_readl() argument 61 static u64 notrace ingenic_ost_clocksource_readh(struct clocksource *cs) in ingenic_ost_clocksource_readh() argument 71 struct clocksource *cs; in ingenic_ost_probe() local 114 cs = &ost->cs; in ingenic_ost_probe() 115 cs->name = "ingenic-ost"; in ingenic_ost_probe() 116 cs->rating = 320; in ingenic_ost_probe() 117 cs->flags = CLOCK_SOURCE_IS_CONTINUOUS; in ingenic_ost_probe() 118 cs->mask = CLOCKSOURCE_MASK(32); in ingenic_ost_probe() 121 cs->read = ingenic_ost_clocksource_readl; in ingenic_ost_probe() [all …]
|
| H A D | timer-ti-32k.c | 50 struct clocksource cs; member 53 static inline struct ti_32k *to_ti_32k(struct clocksource *cs) in to_ti_32k() argument 55 return container_of(cs, struct ti_32k, cs); in to_ti_32k() 58 static u64 notrace ti_32k_read_cycles(struct clocksource *cs) in ti_32k_read_cycles() argument 60 struct ti_32k *ti = to_ti_32k(cs); in ti_32k_read_cycles() 66 .cs = { 77 return ti_32k_read_cycles(&ti_32k_timer.cs); in omap_32k_read_sched_clock() 134 ti_32k_timer.cs.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP; in ti_32k_timer_init() 154 ret = clocksource_register_hz(&ti_32k_timer.cs, 32768); in ti_32k_timer_init()
|
| /linux/fs/xfs/scrub/ |
| H A D | stats.c | 92 struct xchk_stats *cs, in xchk_stats_format() argument 96 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() 135 struct xchk_stats *cs) in xchk_stats_estimate_bufsize() argument 137 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_estimate_bufsize() 168 struct xchk_stats *cs) in xchk_stats_clearall() argument 170 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_clearall() 189 struct xchk_stats *cs, in xchk_stats_merge_one() argument 200 css = &cs->cs_stats[sm->sm_type]; in xchk_stats_merge_one() 248 struct xchk_stats *cs = file->private_data; in xchk_scrub_stats_read() local 261 bufsize = xchk_stats_estimate_bufsize(cs); in xchk_scrub_stats_read() [all …]
|
| /linux/drivers/memory/ |
| H A D | stm32-fmc2-ebi.c | 234 const struct stm32_fmc2_prop *prop, int cs); 235 u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup); 238 int cs, u32 setup); 243 int cs) in stm32_fmc2_ebi_check_mux() argument 248 ret = regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_mux() 260 int cs) in stm32_fmc2_ebi_check_waitcfg() argument 265 ret = regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_waitcfg() 277 int cs) in stm32_fmc2_ebi_check_sync_trans() argument 282 ret = regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_sync_trans() 294 int cs) in stm32_fmc2_ebi_mp25_check_cclk() argument [all …]
|
| H A D | pl172.c | 83 struct device_node *np, u32 cs) in pl172_setup_static() argument 98 dev_err(&adev->dev, "invalid memory width cs%u\n", cs); in pl172_setup_static() 125 writel(cfg, pl172->base + MPMC_STATIC_CFG(cs)); in pl172_setup_static() 126 dev_dbg(&adev->dev, "mpmc static config cs%u: 0x%08x\n", cs, cfg); in pl172_setup_static() 130 MPMC_STATIC_WAIT_WEN(cs), in pl172_setup_static() 136 MPMC_STATIC_WAIT_OEN(cs), in pl172_setup_static() 142 MPMC_STATIC_WAIT_RD(cs), in pl172_setup_static() 148 MPMC_STATIC_WAIT_PAGE(cs), in pl172_setup_static() 154 MPMC_STATIC_WAIT_WR(cs), in pl172_setup_static() 160 MPMC_STATIC_WAIT_TURN(cs), in pl172_setup_static() [all …]
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | command_submission.c | 250 void cs_get(struct hl_cs *cs) in cs_get() argument 252 kref_get(&cs->refcount); in cs_get() 255 static int cs_get_unless_zero(struct hl_cs *cs) in cs_get_unless_zero() argument 257 return kref_get_unless_zero(&cs->refcount); in cs_get_unless_zero() 260 static void cs_put(struct hl_cs *cs) in cs_put() argument 262 kref_put(&cs->refcount, cs_do_release); in cs_put() 277 bool cs_needs_completion(struct hl_cs *cs) in cs_needs_completion() argument 282 if (cs->staged_cs && !cs->staged_last) in cs_needs_completion() 288 bool cs_needs_timeout(struct hl_cs *cs) in cs_needs_timeout() argument 293 if (cs->staged_cs && !cs->staged_first) in cs_needs_timeout() [all …]
|
| H A D | hw_queue.c | 41 void hl_hw_queue_update_ci(struct hl_cs *cs) in hl_hw_queue_update_ci() argument 43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() 62 if (!cs_needs_completion(cs) || q->queue_type == QUEUE_TYPE_INT) in hl_hw_queue_update_ci() 63 atomic_add(cs->jobs_in_queue_cnt[i], &q->ci); in hl_hw_queue_update_ci() 281 struct hl_device *hdev = job->cs->ctx->hdev; in ext_queue_schedule_job() 302 if (!cs_needs_completion(job->cs)) in ext_queue_schedule_job() 346 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job() 382 struct hl_device *hdev = job->cs->ctx->hdev; in hw_queue_schedule_job() 393 offset = job->cs->sequence & (hdev->asic_prop.max_pending_cs - 1); in hw_queue_schedule_job() 444 job->cs->sob_addr_offset = hw_sob->sob_addr; in init_signal_cs() [all …]
|
| /linux/tools/perf/util/ |
| H A D | comm.c | 24 static void comm_strs__remove_if_last(struct comm_str *cs); 44 static refcount_t *comm_str__refcnt(struct comm_str *cs) in comm_str__refcnt() argument 46 return &RC_CHK_ACCESS(cs)->refcnt; in comm_str__refcnt() 49 static const char *comm_str__str(const struct comm_str *cs) in comm_str__str() argument 51 return &RC_CHK_ACCESS(cs)->str[0]; in comm_str__str() 54 static struct comm_str *comm_str__get(struct comm_str *cs) in comm_str__get() argument 58 if (RC_CHK_GET(result, cs)) in comm_str__get() 59 refcount_inc_not_zero(comm_str__refcnt(cs)); in comm_str__get() 64 static void comm_str__put(struct comm_str *cs) in comm_str__put() argument 66 if (!cs) in comm_str__put() [all …]
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-ctrls-api.c | 230 struct v4l2_ext_controls *cs, in prepare_ext_ctrls() argument 239 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls() 240 struct v4l2_ext_control *c = &cs->controls[i]; in prepare_ext_ctrls() 245 cs->error_idx = i; in prepare_ext_ctrls() 247 if (cs->which && in prepare_ext_ctrls() 248 (cs->which < V4L2_CTRL_WHICH_DEF_VAL || in prepare_ext_ctrls() 249 cs->which > V4L2_CTRL_WHICH_MAX_VAL) && in prepare_ext_ctrls() 250 V4L2_CTRL_ID2WHICH(id) != cs->which) { in prepare_ext_ctrls() 253 cs->which, id); in prepare_ext_ctrls() 279 (cs->which == V4L2_CTRL_WHICH_MIN_VAL || in prepare_ext_ctrls() [all …]
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_perf.c | 163 u32 *cs; in write_timestamp() local 166 cs = intel_ring_begin(rq, 6); in write_timestamp() 167 if (IS_ERR(cs)) in write_timestamp() 168 return PTR_ERR(cs); in write_timestamp() 174 *cs++ = GFX_OP_PIPE_CONTROL(len); in write_timestamp() 175 *cs++ = PIPE_CONTROL_GLOBAL_GTT_IVB | in write_timestamp() 178 *cs++ = slot * sizeof(u32); in write_timestamp() 179 *cs++ = 0; in write_timestamp() 180 *cs++ = 0; in write_timestamp() 181 *cs++ = 0; in write_timestamp() [all …]
|
| /linux/tools/testing/selftests/cachestat/ |
| H A D | test_cachestat.c | 28 void print_cachestat(struct cachestat *cs) in print_cachestat() argument 32 cs->nr_cache, cs->nr_dirty, cs->nr_writeback, in print_cachestat() 33 cs->nr_evicted, cs->nr_recently_evicted); in print_cachestat() 131 struct cachestat cs; in test_cachestat() local 152 syscall_ret = syscall(__NR_cachestat, fd, &cs_range, &cs, 0); in test_cachestat() 162 print_cachestat(&cs); in test_cachestat() 165 if (cs.nr_cache + cs.nr_evicted != num_pages) { in test_cachestat() 180 syscall_ret = syscall(__NR_cachestat, fd, &cs_range, &cs, 0); in test_cachestat() 186 print_cachestat(&cs); in test_cachestat() 188 if (cs.nr_dirty) { in test_cachestat() [all …]
|
| /linux/net/core/ |
| H A D | netclassid_cgroup.c | 33 struct cgroup_cls_state *cs; in cgrp_css_alloc() local 35 cs = kzalloc_obj(*cs); in cgrp_css_alloc() 36 if (!cs) in cgrp_css_alloc() 39 return &cs->css; in cgrp_css_alloc() 44 struct cgroup_cls_state *cs = css_cls_state(css); in cgrp_css_online() local 48 cs->classid = parent->classid; in cgrp_css_online() 125 struct cgroup_cls_state *cs = css_cls_state(css); in write_classid() local 129 cs->classid = (u32)value; in write_classid() 133 update_classid_task(p, cs->classid); in write_classid()
|