/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | gen8_engine_cs.c | 16 u32 *cs, flags = 0; in gen8_emit_flush_rcs() local 58 cs = intel_ring_begin(rq, len); in gen8_emit_flush_rcs() 59 if (IS_ERR(cs)) in gen8_emit_flush_rcs() 60 return PTR_ERR(cs); in gen8_emit_flush_rcs() 63 cs = gen8_emit_pipe_control(cs, 0, 0); in gen8_emit_flush_rcs() 66 cs = gen8_emit_pipe_control(cs, PIPE_CONTROL_DC_FLUSH_ENABLE, in gen8_emit_flush_rcs() 69 cs = gen8_emit_pipe_control(cs, flags, LRC_PPHWSP_SCRATCH_ADDR); in gen8_emit_flush_rcs() 72 cs = gen8_emit_pipe_control(cs, PIPE_CONTROL_CS_STALL, 0); in gen8_emit_flush_rcs() 74 intel_ring_advance(rq, cs); in gen8_emit_flush_rcs() 81 u32 cmd, *cs; in gen8_emit_flush_xcs() local [all …]
|
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 …]
|
D | gen2_engine_cs.c | 19 u32 cmd, *cs; in gen2_emit_flush() local 25 cs = intel_ring_begin(rq, 2 + 4 * num_store_dw); in gen2_emit_flush() 26 if (IS_ERR(cs)) in gen2_emit_flush() 27 return PTR_ERR(cs); in gen2_emit_flush() 29 *cs++ = cmd; in gen2_emit_flush() 31 *cs++ = MI_STORE_DWORD_INDEX; in gen2_emit_flush() 32 *cs++ = I915_GEM_HWS_SCRATCH * sizeof(u32); in gen2_emit_flush() 33 *cs++ = 0; in gen2_emit_flush() 34 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH; in gen2_emit_flush() 36 *cs++ = cmd; in gen2_emit_flush() [all …]
|
D | gen7_renderclear.c | 102 static u32 batch_offset(const struct batch_chunk *bc, u32 *cs) in batch_offset() argument 104 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset() 148 u32 *cs = batch_alloc_items(state, 32, 8); in gen7_fill_surface_state() local 149 u32 offset = batch_offset(state, cs); in gen7_fill_surface_state() 155 *cs++ = SURFACE_2D << 29 | in gen7_fill_surface_state() 159 *cs++ = batch_addr(state) + dst_offset; in gen7_fill_surface_state() 161 *cs++ = ((surface_h / 4 - 1) << 16) | (surface_w / 4 - 1); in gen7_fill_surface_state() 162 *cs++ = surface_w; in gen7_fill_surface_state() 163 *cs++ = 0; in gen7_fill_surface_state() 164 *cs++ = 0; in gen7_fill_surface_state() [all …]
|
D | intel_migrate.c | 330 u32 *cs; in emit_no_arbitration() local 332 cs = intel_ring_begin(rq, 2); in emit_no_arbitration() 333 if (IS_ERR(cs)) in emit_no_arbitration() 334 return PTR_ERR(cs); in emit_no_arbitration() 337 *cs++ = MI_ARB_ON_OFF; in emit_no_arbitration() 338 *cs++ = MI_NOOP; in emit_no_arbitration() 339 intel_ring_advance(rq, cs); in emit_no_arbitration() 368 u32 *hdr, *cs; in emit_pte() local 395 cs = intel_ring_begin(rq, 6); in emit_pte() 396 if (IS_ERR(cs)) in emit_pte() [all …]
|
D | gen8_engine_cs.h | 42 u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 43 u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs); 45 u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 46 u32 *gen11_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 47 u32 *gen12_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs); 49 u32 *gen12_emit_aux_table_inv(struct intel_gt *gt, u32 *cs, const i915_reg_t inv_reg); 74 __gen8_emit_write_rcs(u32 *cs, u32 value, u32 offset, u32 flags0, u32 flags1) in __gen8_emit_write_rcs() argument 76 *cs++ = GFX_OP_PIPE_CONTROL(6) | flags0; in __gen8_emit_write_rcs() 77 *cs++ = flags1 | PIPE_CONTROL_QW_WRITE; in __gen8_emit_write_rcs() 78 *cs++ = offset; in __gen8_emit_write_rcs() [all …]
|
D | selftest_engine_pm.c | 33 static u32 *emit_wait(u32 *cs, u32 offset, int op, u32 value) in emit_wait() argument 35 *cs++ = MI_SEMAPHORE_WAIT | in emit_wait() 39 *cs++ = value; in emit_wait() 40 *cs++ = offset; in emit_wait() 41 *cs++ = 0; in emit_wait() 43 return cs; in emit_wait() 46 static u32 *emit_store(u32 *cs, u32 offset, u32 value) in emit_store() argument 48 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in emit_store() 49 *cs++ = offset; in emit_store() 50 *cs++ = 0; in emit_store() [all …]
|
D | selftest_lrc.c | 84 u32 *cs; in emit_semaphore_signal() local 90 cs = intel_ring_begin(rq, 4); in emit_semaphore_signal() 91 if (IS_ERR(cs)) { in emit_semaphore_signal() 93 return PTR_ERR(cs); in emit_semaphore_signal() 96 *cs++ = MI_STORE_DWORD_IMM_GEN4 | MI_USE_GGTT; in emit_semaphore_signal() 97 *cs++ = offset; in emit_semaphore_signal() 98 *cs++ = 0; in emit_semaphore_signal() 99 *cs++ = 1; in emit_semaphore_signal() 101 intel_ring_advance(rq, cs); in emit_semaphore_signal() 414 u32 *cs; in __live_lrc_state() local [all …]
|
/linux-6.1.9/kernel/time/ |
D | clocksource.c | 141 static void __clocksource_change_rating(struct clocksource *cs, int rating); 166 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable() argument 168 cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); in __clocksource_unstable() 169 cs->flags |= CLOCK_SOURCE_UNSTABLE; in __clocksource_unstable() 175 if (list_empty(&cs->list)) { in __clocksource_unstable() 176 cs->rating = 0; in __clocksource_unstable() 180 if (cs->mark_unstable) in __clocksource_unstable() 181 cs->mark_unstable(cs); in __clocksource_unstable() 195 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable() argument 200 if (!(cs->flags & CLOCK_SOURCE_UNSTABLE)) { in clocksource_mark_unstable() [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/pxp/ |
D | intel_pxp_cmd.c | 21 static u32 *pxp_emit_session_selection(u32 *cs, u32 idx) in pxp_emit_session_selection() argument 23 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 26 *cs++ = MI_FLUSH_DW; in pxp_emit_session_selection() 27 *cs++ = 0; in pxp_emit_session_selection() 28 *cs++ = 0; in pxp_emit_session_selection() 31 *cs++ = MI_SET_APPID | MI_SET_APPID_SESSION_ID(idx); in pxp_emit_session_selection() 33 *cs++ = MFX_WAIT_PXP; in pxp_emit_session_selection() 36 *cs++ = MI_FLUSH_DW | MI_FLUSH_DW_PROTECTED_MEM_EN | in pxp_emit_session_selection() 38 *cs++ = I915_GEM_HWS_PXP_ADDR | MI_FLUSH_DW_USE_GTT; in pxp_emit_session_selection() 39 *cs++ = 0; in pxp_emit_session_selection() [all …]
|
/linux-6.1.9/kernel/cgroup/ |
D | cpuset.c | 243 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() argument 245 return css_cs(cs->css.parent); in parent_cs() 261 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() argument 263 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online() 266 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() argument 268 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive() 271 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() argument 273 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive() 276 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() argument 278 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall() [all …]
|
/linux-6.1.9/drivers/scsi/ |
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-6.1.9/sound/core/ |
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-6.1.9/include/linux/mfd/syscon/ |
D | atmel-smc.h | 18 #define ATMEL_SMC_SETUP(cs) (((cs) * 0x10)) argument 19 #define ATMEL_HSMC_SETUP(layout, cs) \ argument 20 ((layout)->timing_regs_offset + ((cs) * 0x14)) 21 #define ATMEL_SMC_PULSE(cs) (((cs) * 0x10) + 0x4) argument 22 #define ATMEL_HSMC_PULSE(layout, cs) \ argument 23 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x4) 24 #define ATMEL_SMC_CYCLE(cs) (((cs) * 0x10) + 0x8) argument 25 #define ATMEL_HSMC_CYCLE(layout, cs) \ argument 26 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x8) 32 #define ATMEL_SMC_MODE(cs) (((cs) * 0x10) + 0xc) argument [all …]
|
/linux-6.1.9/drivers/memory/ |
D | stm32-fmc2-ebi.c | 170 const struct stm32_fmc2_prop *prop, int cs); 171 u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup); 174 int cs, u32 setup); 179 int cs) in stm32_fmc2_ebi_check_mux() argument 183 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_mux() 193 int cs) in stm32_fmc2_ebi_check_waitcfg() argument 197 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_waitcfg() 207 int cs) in stm32_fmc2_ebi_check_sync_trans() argument 211 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_sync_trans() 221 int cs) in stm32_fmc2_ebi_check_async_trans() argument [all …]
|
D | omap-gpmc.c | 269 void gpmc_cs_write_reg(int cs, int idx, u32 val) in gpmc_cs_write_reg() argument 273 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_write_reg() 277 static u32 gpmc_cs_read_reg(int cs, int idx) in gpmc_cs_read_reg() argument 281 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_read_reg() 304 static unsigned long gpmc_get_clk_period(int cs, enum gpmc_clk_domain cd) in gpmc_get_clk_period() argument 313 l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); in gpmc_get_clk_period() 326 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument 332 tick_ps = gpmc_get_clk_period(cs, cd); in gpmc_ns_to_clk_ticks() 352 static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, in gpmc_clk_ticks_to_ns() argument 355 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns() [all …]
|
/linux-6.1.9/arch/mips/bcm63xx/ |
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 …]
|
/linux-6.1.9/tools/perf/util/ |
D | comm.c | 22 static struct comm_str *comm_str__get(struct comm_str *cs) in comm_str__get() argument 24 if (cs && refcount_inc_not_zero(&cs->refcnt)) in comm_str__get() 25 return cs; in comm_str__get() 30 static void comm_str__put(struct comm_str *cs) in comm_str__put() argument 32 if (cs && refcount_dec_and_test(&cs->refcnt)) { in comm_str__put() 34 rb_erase(&cs->rb_node, &comm_str_root); in comm_str__put() 36 zfree(&cs->str); in comm_str__put() 37 free(cs); in comm_str__put() 43 struct comm_str *cs; in comm_str__alloc() local 45 cs = zalloc(sizeof(*cs)); in comm_str__alloc() [all …]
|
/linux-6.1.9/include/linux/ |
D | clocksource.h | 97 u64 (*read)(struct clocksource *cs); 115 int (*enable)(struct clocksource *cs); 116 void (*disable)(struct clocksource *cs); 117 void (*suspend)(struct clocksource *cs); 118 void (*resume)(struct clocksource *cs); 119 void (*mark_unstable)(struct clocksource *cs); 120 void (*tick_stable)(struct clocksource *cs); 212 extern void clocksource_change_rating(struct clocksource *cs, int rating); 216 extern void clocksource_mark_unstable(struct clocksource *cs); 218 clocksource_start_suspend_timing(struct clocksource *cs, u64 start_cycles); [all …]
|
/linux-6.1.9/fs/fuse/ |
D | dev.c | 656 static void fuse_copy_init(struct fuse_copy_state *cs, int write, in fuse_copy_init() argument 659 memset(cs, 0, sizeof(*cs)); in fuse_copy_init() 660 cs->write = write; in fuse_copy_init() 661 cs->iter = iter; in fuse_copy_init() 665 static void fuse_copy_finish(struct fuse_copy_state *cs) in fuse_copy_finish() argument 667 if (cs->currbuf) { in fuse_copy_finish() 668 struct pipe_buffer *buf = cs->currbuf; in fuse_copy_finish() 670 if (cs->write) in fuse_copy_finish() 671 buf->len = PAGE_SIZE - cs->len; in fuse_copy_finish() 672 cs->currbuf = NULL; in fuse_copy_finish() [all …]
|
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | command_submission.c | 231 void cs_get(struct hl_cs *cs) in cs_get() argument 233 kref_get(&cs->refcount); in cs_get() 236 static int cs_get_unless_zero(struct hl_cs *cs) in cs_get_unless_zero() argument 238 return kref_get_unless_zero(&cs->refcount); in cs_get_unless_zero() 241 static void cs_put(struct hl_cs *cs) in cs_put() argument 243 kref_put(&cs->refcount, cs_do_release); in cs_put() 258 bool cs_needs_completion(struct hl_cs *cs) in cs_needs_completion() argument 263 if (cs->staged_cs && !cs->staged_last) in cs_needs_completion() 269 bool cs_needs_timeout(struct hl_cs *cs) in cs_needs_timeout() argument 274 if (cs->staged_cs && !cs->staged_first) in cs_needs_timeout() [all …]
|
/linux-6.1.9/net/ceph/ |
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-6.1.9/drivers/s390/char/ |
D | raw3270.h | 219 struct string *cs, *tmp; in alloc_string() local 223 list_for_each_entry(cs, free_list, list) { in alloc_string() 224 if (cs->size < size) in alloc_string() 226 if (cs->size > size + sizeof(struct string)) { in alloc_string() 227 char *endaddr = (char *) (cs + 1) + cs->size; in alloc_string() 230 cs->size -= size + sizeof(struct string); in alloc_string() 231 cs = tmp; in alloc_string() 233 list_del(&cs->list); in alloc_string() 234 cs->len = len; in alloc_string() 235 INIT_LIST_HEAD(&cs->list); in alloc_string() [all …]
|
/linux-6.1.9/drivers/net/slip/ |
D | slhc.c | 232 struct cstate *cs = lcs->next; in slhc_compress() local 297 if( ip->saddr == cs->cs_ip.saddr in slhc_compress() 298 && ip->daddr == cs->cs_ip.daddr in slhc_compress() 299 && th->source == cs->cs_tcp.source in slhc_compress() 300 && th->dest == cs->cs_tcp.dest) in slhc_compress() 304 if ( cs == ocs ) in slhc_compress() 306 lcs = cs; in slhc_compress() 307 cs = cs->next; in slhc_compress() 329 } else if (cs == ocs) { in slhc_compress() 334 lcs->next = cs->next; in slhc_compress() [all …]
|
/linux-6.1.9/drivers/clocksource/ |
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 …]
|