Home
last modified time | relevance | path

Searched refs:cs (Results 1 – 25 of 1052) sorted by relevance

12345678910>>...43

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dgen6_engine_cs.c59 u32 *cs; in gen6_emit_post_sync_nonzero_flush() local
61 cs = intel_ring_begin(rq, 6); in gen6_emit_post_sync_nonzero_flush()
62 if (IS_ERR(cs)) in gen6_emit_post_sync_nonzero_flush()
63 return PTR_ERR(cs); in gen6_emit_post_sync_nonzero_flush()
65 *cs++ = GFX_OP_PIPE_CONTROL(5); in gen6_emit_post_sync_nonzero_flush()
66 *cs++ = PIPE_CONTROL_CS_STALL | PIPE_CONTROL_STALL_AT_SCOREBOARD; in gen6_emit_post_sync_nonzero_flush()
67 *cs++ = scratch_addr | PIPE_CONTROL_GLOBAL_GTT; in gen6_emit_post_sync_nonzero_flush()
68 *cs++ = 0; /* low dword */ in gen6_emit_post_sync_nonzero_flush()
69 *cs++ = 0; /* high dword */ in gen6_emit_post_sync_nonzero_flush()
70 *cs++ = MI_NOOP; in gen6_emit_post_sync_nonzero_flush()
[all …]
Dgen2_engine_cs.c17 u32 cmd, *cs; in gen2_emit_flush() local
23 cs = intel_ring_begin(rq, 2 + 4 * num_store_dw); in gen2_emit_flush()
24 if (IS_ERR(cs)) in gen2_emit_flush()
25 return PTR_ERR(cs); in gen2_emit_flush()
27 *cs++ = cmd; in gen2_emit_flush()
29 *cs++ = MI_STORE_DWORD_INDEX; in gen2_emit_flush()
30 *cs++ = I915_GEM_HWS_SCRATCH * sizeof(u32); in gen2_emit_flush()
31 *cs++ = 0; in gen2_emit_flush()
32 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH; in gen2_emit_flush()
34 *cs++ = cmd; in gen2_emit_flush()
[all …]
Dgen7_renderclear.c101 static u32 batch_offset(const struct batch_chunk *bc, u32 *cs) in batch_offset() argument
103 return (cs - bc->start) * sizeof(*bc->start) + bc->offset; in batch_offset()
147 u32 *cs = batch_alloc_items(state, 32, 8); in gen7_fill_surface_state() local
148 u32 offset = batch_offset(state, cs); in gen7_fill_surface_state()
154 *cs++ = SURFACE_2D << 29 | in gen7_fill_surface_state()
158 *cs++ = batch_addr(state) + dst_offset; in gen7_fill_surface_state()
160 *cs++ = ((surface_h / 4 - 1) << 16) | (surface_w / 4 - 1); in gen7_fill_surface_state()
161 *cs++ = surface_w; in gen7_fill_surface_state()
162 *cs++ = 0; in gen7_fill_surface_state()
163 *cs++ = 0; in gen7_fill_surface_state()
[all …]
/kernel/linux/linux-5.10/kernel/time/
Dclocksource.c133 static void __clocksource_change_rating(struct clocksource *cs, int rating);
158 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable() argument
160 cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); in __clocksource_unstable()
161 cs->flags |= CLOCK_SOURCE_UNSTABLE; in __clocksource_unstable()
167 if (list_empty(&cs->list)) { in __clocksource_unstable()
168 cs->rating = 0; in __clocksource_unstable()
172 if (cs->mark_unstable) in __clocksource_unstable()
173 cs->mark_unstable(cs); in __clocksource_unstable()
187 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable() argument
192 if (!(cs->flags & CLOCK_SOURCE_UNSTABLE)) { in clocksource_mark_unstable()
[all …]
/kernel/linux/linux-5.10/kernel/cgroup/
Dcpuset.c205 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() argument
207 return css_cs(cs->css.parent); in parent_cs()
223 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() argument
225 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
228 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() argument
230 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive()
233 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() argument
235 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive()
238 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() argument
240 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dmyrs.c104 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 …]
/kernel/linux/linux-5.10/include/linux/mfd/syscon/
Datmel-smc.h18 #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 …]
/kernel/linux/linux-5.10/arch/mips/include/asm/netlogic/xlr/
Dflash.h37 #define FLASH_CSBASE_ADDR(cs) (cs) argument
38 #define FLASH_CSADDR_MASK(cs) (0x10 + (cs)) argument
39 #define FLASH_CSDEV_PARM(cs) (0x20 + (cs)) argument
40 #define FLASH_CSTIME_PARMA(cs) (0x30 + (cs)) argument
41 #define FLASH_CSTIME_PARMB(cs) (0x40 + (cs)) argument
48 #define FLASH_NAND_CLE(cs) (0x90 + (cs)) argument
49 #define FLASH_NAND_ALE(cs) (0xa0 + (cs)) argument
/kernel/linux/linux-5.10/drivers/memory/
Dstm32-fmc2-ebi.c170 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 …]
Domap-gpmc.c263 void gpmc_cs_write_reg(int cs, int idx, u32 val) in gpmc_cs_write_reg() argument
267 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_write_reg()
271 static u32 gpmc_cs_read_reg(int cs, int idx) in gpmc_cs_read_reg() argument
275 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_read_reg()
298 static unsigned long gpmc_get_clk_period(int cs, enum gpmc_clk_domain cd) in gpmc_get_clk_period() argument
307 l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); in gpmc_get_clk_period()
320 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument
326 tick_ps = gpmc_get_clk_period(cs, cd); in gpmc_ns_to_clk_ticks()
346 static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, in gpmc_clk_ticks_to_ns() argument
349 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns()
[all …]
/kernel/linux/linux-5.10/arch/mips/bcm63xx/
Dcs.c24 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 …]
/kernel/linux/linux-5.10/tools/perf/util/
Dcomm.c22 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 …]
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/
Dcommand_submission.c108 static void cs_get(struct hl_cs *cs) in cs_get() argument
110 kref_get(&cs->refcount); in cs_get()
113 static int cs_get_unless_zero(struct hl_cs *cs) in cs_get_unless_zero() argument
115 return kref_get_unless_zero(&cs->refcount); in cs_get_unless_zero()
118 static void cs_put(struct hl_cs *cs) in cs_put() argument
120 kref_put(&cs->refcount, cs_do_release); in cs_put()
152 parser.ctx_id = job->cs->ctx->asid; in cs_parser()
153 parser.cs_sequence = job->cs->sequence; in cs_parser()
197 struct hl_cs *cs = job->cs; in free_job() local
232 spin_lock(&cs->job_lock); in free_job()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dclocksource.h92 u64 (*read)(struct clocksource *cs);
109 int (*enable)(struct clocksource *cs);
110 void (*disable)(struct clocksource *cs);
111 void (*suspend)(struct clocksource *cs);
112 void (*resume)(struct clocksource *cs);
113 void (*mark_unstable)(struct clocksource *cs);
114 void (*tick_stable)(struct clocksource *cs);
206 extern void clocksource_change_rating(struct clocksource *cs, int rating);
210 extern void clocksource_mark_unstable(struct clocksource *cs);
212 clocksource_start_suspend_timing(struct clocksource *cs, u64 start_cycles);
[all …]
/kernel/linux/linux-5.10/fs/fuse/
Ddev.c664 static void fuse_copy_init(struct fuse_copy_state *cs, int write, in fuse_copy_init() argument
667 memset(cs, 0, sizeof(*cs)); in fuse_copy_init()
668 cs->write = write; in fuse_copy_init()
669 cs->iter = iter; in fuse_copy_init()
673 static void fuse_copy_finish(struct fuse_copy_state *cs) in fuse_copy_finish() argument
675 if (cs->currbuf) { in fuse_copy_finish()
676 struct pipe_buffer *buf = cs->currbuf; in fuse_copy_finish()
678 if (cs->write) in fuse_copy_finish()
679 buf->len = PAGE_SIZE - cs->len; in fuse_copy_finish()
680 cs->currbuf = NULL; in fuse_copy_finish()
[all …]
/kernel/linux/linux-5.10/net/ceph/
Dstring_table.c13 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 …]
/kernel/linux/linux-5.10/drivers/s390/char/
Draw3270.h219 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 …]
/kernel/linux/linux-5.10/drivers/net/slip/
Dslhc.c232 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 …]
/kernel/linux/linux-5.10/drivers/staging/kpc2000/
Dkpc2000_spi.c126 unsigned int cs : 4; /* Chip Select */ member
163 kp_spi_read_reg(struct kp_spi_controller_state *cs, int idx) in kp_spi_read_reg() argument
165 u64 __iomem *addr = cs->base; in kp_spi_read_reg()
168 if ((idx == KP_SPI_REG_CONFIG) && (cs->conf_cache >= 0)) in kp_spi_read_reg()
169 return cs->conf_cache; in kp_spi_read_reg()
175 kp_spi_write_reg(struct kp_spi_controller_state *cs, int idx, u64 val) in kp_spi_write_reg() argument
177 u64 __iomem *addr = cs->base; in kp_spi_write_reg()
182 cs->conf_cache = val; in kp_spi_write_reg()
186 kp_spi_wait_for_reg_bit(struct kp_spi_controller_state *cs, int idx, in kp_spi_wait_for_reg_bit() argument
192 while (!(kp_spi_read_reg(cs, idx) & bit)) { in kp_spi_wait_for_reg_bit()
[all …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-pistachio.c51 struct clocksource cs; member
56 #define to_pistachio_clocksource(cs) \ argument
57 container_of(cs, struct pistachio_clocksource, cs)
71 pistachio_clocksource_read_cycles(struct clocksource *cs) in pistachio_clocksource_read_cycles() argument
73 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles()
92 return pistachio_clocksource_read_cycles(&pcs_gpt.cs); in pistachio_read_sched_clock()
95 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() argument
98 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode()
110 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() argument
112 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable()
[all …]
/kernel/linux/linux-5.10/arch/mips/netlogic/xlr/
Dplatform-flash.c88 int cs; member
99 FLASH_NAND_CLE(nand_priv.cs), cmd); in xlr_nand_ctrl()
102 FLASH_NAND_ALE(nand_priv.cs), cmd); in xlr_nand_ctrl()
143 uint64_t flash_map_base, int cs, struct resource *res) in setup_flash_resource() argument
147 base = nlm_read_reg(flash_mmio, FLASH_CSBASE_ADDR(cs)); in setup_flash_resource()
148 mask = nlm_read_reg(flash_mmio, FLASH_CSADDR_MASK(cs)); in setup_flash_resource()
158 int cs, boot_nand, boot_nor; in xlr_flash_init() local
187 cs = 0; in xlr_flash_init()
190 nand_priv.cs = cs; in xlr_flash_init()
192 setup_flash_resource(flash_mmio, flash_map_base, cs, in xlr_flash_init()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Datmel-smc.c245 void atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, in atmel_smc_cs_conf_apply() argument
248 regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup); in atmel_smc_cs_conf_apply()
249 regmap_write(regmap, ATMEL_SMC_PULSE(cs), conf->pulse); in atmel_smc_cs_conf_apply()
250 regmap_write(regmap, ATMEL_SMC_CYCLE(cs), conf->cycle); in atmel_smc_cs_conf_apply()
251 regmap_write(regmap, ATMEL_SMC_MODE(cs), conf->mode); in atmel_smc_cs_conf_apply()
267 int cs, const struct atmel_smc_cs_conf *conf) in atmel_hsmc_cs_conf_apply() argument
269 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply()
270 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse); in atmel_hsmc_cs_conf_apply()
271 regmap_write(regmap, ATMEL_HSMC_CYCLE(layout, cs), conf->cycle); in atmel_hsmc_cs_conf_apply()
272 regmap_write(regmap, ATMEL_HSMC_TIMINGS(layout, cs), conf->timings); in atmel_hsmc_cs_conf_apply()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dmmio_context.c198 u32 *cs; in restore_context_mmio_for_inhibit() local
212 cs = intel_ring_begin(req, count * 2 + 2); in restore_context_mmio_for_inhibit()
213 if (IS_ERR(cs)) in restore_context_mmio_for_inhibit()
214 return PTR_ERR(cs); in restore_context_mmio_for_inhibit()
216 *cs++ = MI_LOAD_REGISTER_IMM(count); in restore_context_mmio_for_inhibit()
222 *cs++ = i915_mmio_reg_offset(mmio->reg); in restore_context_mmio_for_inhibit()
223 *cs++ = vgpu_vreg_t(vgpu, mmio->reg) | (mmio->mask << 16); in restore_context_mmio_for_inhibit()
225 *(cs-2), *(cs-1), vgpu->id, ring_id); in restore_context_mmio_for_inhibit()
228 *cs++ = MI_NOOP; in restore_context_mmio_for_inhibit()
229 intel_ring_advance(req, cs); in restore_context_mmio_for_inhibit()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-fsl-spi.c92 struct spi_mpc8xxx_cs *cs = spi->controller_state; in fsl_spi_change_mode() local
97 if (cs->hw_mode == mpc8xxx_spi_read_reg(mode)) in fsl_spi_change_mode()
104 mpc8xxx_spi_write_reg(mode, cs->hw_mode & ~SPMODE_ENABLE); in fsl_spi_change_mode()
110 mpc8xxx_spi_write_reg(mode, cs->hw_mode); in fsl_spi_change_mode()
118 struct spi_mpc8xxx_cs *cs = spi->controller_state; in fsl_spi_chipselect() local
128 mpc8xxx_spi->rx_shift = cs->rx_shift; in fsl_spi_chipselect()
129 mpc8xxx_spi->tx_shift = cs->tx_shift; in fsl_spi_chipselect()
130 mpc8xxx_spi->get_rx = cs->get_rx; in fsl_spi_chipselect()
131 mpc8xxx_spi->get_tx = cs->get_tx; in fsl_spi_chipselect()
174 static int mspi_apply_cpu_mode_quirks(struct spi_mpc8xxx_cs *cs, in mspi_apply_cpu_mode_quirks() argument
[all …]
/kernel/linux/linux-5.10/sound/core/
Dpcm_iec958.c13 u8 *cs, size_t len) in create_iec958_consumer() argument
69 memset(cs, 0, len); in create_iec958_consumer()
71 cs[0] = IEC958_AES0_CON_NOT_COPYRIGHT | IEC958_AES0_CON_EMPHASIS_NONE; in create_iec958_consumer()
72 cs[1] = IEC958_AES1_CON_GENERAL; in create_iec958_consumer()
73 cs[2] = IEC958_AES2_CON_SOURCE_UNSPEC | IEC958_AES2_CON_CHANNEL_UNSPEC; in create_iec958_consumer()
74 cs[3] = IEC958_AES3_CON_CLOCK_1000PPM | fs; in create_iec958_consumer()
77 cs[4] = ws; in create_iec958_consumer()
95 int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, in snd_pcm_create_iec958_consumer() argument
100 cs, len); in snd_pcm_create_iec958_consumer()
118 u8 *cs, size_t len) in snd_pcm_create_iec958_consumer_hw_params() argument
[all …]

12345678910>>...43