Home
last modified time | relevance | path

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

12345678910>>...31

/linux/drivers/gpu/drm/i915/gt/
H A Dgen6_engine_cs.c60 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 Dgen8_engine_cs.h43 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 Dselftest_engine_pm.c34 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 in emit_store()
57 emit_srm(u32 * cs,i915_reg_t reg,u32 offset) emit_srm() argument
80 u32 *cs; __measure_timestamps() local
[all...]
/linux/kernel/cgroup/
H A Dcpuset.c230 struct cpuset *cs = task_cs(p); in inc_dl_tasks_cs() local
232 atomic_inc(&cs->nr_deadline_tasks); in inc_dl_tasks_cs()
237 struct cpuset *cs = task_cs(p); in dec_dl_tasks_cs() local
239 atomic_dec(&cs->nr_deadline_tasks); in dec_dl_tasks_cs()
242 static inline bool is_partition_valid(const struct cpuset *cs) in is_partition_valid() argument
244 return cs->partition_root_state > 0; in is_partition_valid()
247 static inline bool is_partition_invalid(const struct cpuset *cs) in is_partition_invalid() argument
249 return cs->partition_root_state < 0; in is_partition_invalid()
252 static inline bool cs_is_member(const struct cpuset *cs) in cs_is_member() argument
254 return cs in cs_is_member()
260 make_partition_invalid(struct cpuset * cs) make_partition_invalid() argument
269 notify_partition_change(struct cpuset * cs,int old_prs) notify_partition_change() argument
465 partition_is_populated(struct cpuset * cs,struct cpuset * excluded_child) partition_is_populated() argument
513 struct cpuset *cs; guarantee_active_cpus() local
558 guarantee_online_mems(struct cpuset * cs,nodemask_t * pmask) guarantee_online_mems() argument
632 dup_or_alloc_cpuset(struct cpuset * cs) dup_or_alloc_cpuset() argument
673 free_cpuset(struct cpuset * cs) free_cpuset() argument
683 user_xcpus(struct cpuset * cs) user_xcpus() argument
689 xcpus_empty(struct cpuset * cs) xcpus_empty() argument
976 dl_update_tasks_root_domain(struct cpuset * cs) dl_update_tasks_root_domain() argument
994 struct cpuset *cs = NULL; dl_rebuild_rd_accounting() local
1120 cpuset_update_tasks_cpumask(struct cpuset * cs,struct cpumask * new_cpus) cpuset_update_tasks_cpumask() argument
1156 compute_effective_cpumask(struct cpumask * new_cpus,struct cpuset * cs,struct cpuset * parent) compute_effective_cpumask() argument
1174 compute_effective_nodemask(nodemask_t * new_mems,struct cpuset * cs,struct cpuset * parent) compute_effective_nodemask() argument
1202 update_partition_exclusive_flag(struct cpuset * cs,int new_prs) update_partition_exclusive_flag() argument
1223 update_partition_sd_lb(struct cpuset * cs,int old_prs) update_partition_sd_lb() argument
1253 tasks_nocpu_error(struct cpuset * parent,struct cpuset * cs,struct cpumask * xcpus) tasks_nocpu_error() argument
1265 reset_partition_data(struct cpuset * cs) reset_partition_data() argument
1491 rm_siblings_excl_cpus(struct cpuset * parent,struct cpuset * cs,struct cpumask * excpus) rm_siblings_excl_cpus() argument
1539 compute_excpus(struct cpuset * cs,struct cpumask * excpus) compute_excpus() argument
1560 compute_trialcs_excpus(struct cpuset * trialcs,struct cpuset * cs) compute_trialcs_excpus() argument
1575 is_remote_partition(struct cpuset * cs) is_remote_partition() argument
1580 is_local_partition(struct cpuset * cs) is_local_partition() argument
1595 remote_partition_enable(struct cpuset * cs,int new_prs,struct tmpmasks * tmp) remote_partition_enable() argument
1650 remote_partition_disable(struct cpuset * cs,struct tmpmasks * tmp) remote_partition_disable() argument
1693 remote_cpus_update(struct cpuset * cs,struct cpumask * xcpus,struct cpumask * excpus,struct tmpmasks * tmp) remote_cpus_update() argument
1795 update_parent_effective_cpumask(struct cpuset * cs,int cmd,struct cpumask * newmask,struct tmpmasks * tmp) update_parent_effective_cpumask() argument
2126 compute_partition_effective_cpumask(struct cpuset * cs,struct cpumask * new_ecpus) compute_partition_effective_cpumask() argument
2193 update_cpumasks_hier(struct cpuset * cs,struct tmpmasks * tmp,bool force) update_cpumasks_hier() argument
2362 update_sibling_cpumasks(struct cpuset * parent,struct cpuset * cs,struct tmpmasks * tmp) update_sibling_cpumasks() argument
2426 validate_partition(struct cpuset * cs,struct cpuset * trialcs) validate_partition() argument
2455 partition_cpus_change(struct cpuset * cs,struct cpuset * trialcs,struct tmpmasks * tmp) partition_cpus_change() argument
2491 update_cpumask(struct cpuset * cs,struct cpuset * trialcs,const char * buf) update_cpumask() argument
2551 update_exclusive_cpumask(struct cpuset * cs,struct cpuset * trialcs,const char * buf) update_exclusive_cpumask() argument
2727 cpuset_update_tasks_nodemask(struct cpuset * cs) cpuset_update_tasks_nodemask() argument
2798 update_nodemasks_hier(struct cpuset * cs,nodemask_t * new_mems) update_nodemasks_hier() argument
2847 update_nodemask(struct cpuset * cs,struct cpuset * trialcs,const char * buf) update_nodemask() argument
2903 cpuset_update_flag(cpuset_flagbits_t bit,struct cpuset * cs,int turning_on) cpuset_update_flag() argument
2955 update_prstate(struct cpuset * cs,int new_prs) update_prstate() argument
3084 cpuset_can_attach_check(struct cpuset * cs,struct cpuset * oldcs,bool * psetsched) cpuset_can_attach_check() argument
3132 struct cpuset *cs; cpuset_reserve_dl_bw() local
3158 struct cpuset *cs, *next; clear_attach_data() local
3179 struct cpuset *cs, *oldcs; cpuset_can_attach() local
3307 cpuset_attach_task(struct cpuset * cs,struct task_struct * task) cpuset_attach_task() argument
3365 struct cpuset *cs; cpuset_attach() local
3416 struct cpuset *cs = css_cs(of_css(of)); cpuset_write_resmask() local
3473 struct cpuset *cs = css_cs(seq_css(sf)); cpuset_common_seq_show() local
3514 struct cpuset *cs = css_cs(seq_css(seq)); cpuset_partition_show() local
3546 struct cpuset *cs = css_cs(of_css(of)); cpuset_partition_write() local
3661 struct cpuset *cs; cpuset_css_alloc() local
3682 struct cpuset *cs = css_cs(css); cpuset_css_online() local
3718 struct cpuset *cs = css_cs(css); cpuset_css_offline() local
3735 struct cpuset *cs = css_cs(css); cpuset_css_killed() local
3746 struct cpuset *cs = css_cs(css); cpuset_css_free() local
3778 struct cpuset *cs = css_cs(cset->subsys[cpuset_cgrp_id]); cpuset_can_fork() local
3813 struct cpuset *cs = css_cs(cset->subsys[cpuset_cgrp_id]); cpuset_cancel_fork() local
3833 struct cpuset *cs, *oldcs; cpuset_fork() local
3927 hotplug_update_tasks(struct cpuset * cs,struct cpumask * new_cpus,nodemask_t * new_mems,bool cpus_updated,bool mems_updated) hotplug_update_tasks() argument
3962 cpuset_hotplug_update_tasks(struct cpuset * cs,struct tmpmasks * tmp) cpuset_hotplug_update_tasks() argument
4132 struct cpuset *cs; cpuset_handle_hotplug() local
4222 struct cpuset *cs; __cpuset_cpus_allowed_locked() local
4337 struct cpuset *cs; cpuset_num_cpus() local
4393 nearest_hardwall_ancestor(struct cpuset * cs) nearest_hardwall_ancestor() argument
4442 struct cpuset *cs; /* current cpuset ancestors */ cpuset_current_node_allowed() local
4495 struct cpuset *cs; cpuset_nodes_allowed() local
[all...]
H A Dcpuset-internal.h213 static inline struct cpuset *parent_cs(struct cpuset *cs) in is_cpuset_online() argument
215 return css_cs(cs->css.parent); in is_cpuset_online()
219 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpu_exclusive()
221 return css_is_online(&cs->css) && !css_is_dying(&cs->css); in is_cpu_exclusive()
224 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_mem_exclusive()
226 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_mem_exclusive()
229 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_hardwall()
231 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_hardwall()
234 static inline int is_mem_hardwall(const struct cpuset *cs) in is_sched_load_balance()
207 parent_cs(struct cpuset * cs) parent_cs() argument
218 is_cpu_exclusive(const struct cpuset * cs) is_cpu_exclusive() argument
223 is_mem_exclusive(const struct cpuset * cs) is_mem_exclusive() argument
228 is_mem_hardwall(const struct cpuset * cs) is_mem_hardwall() argument
233 is_sched_load_balance(const struct cpuset * cs) is_sched_load_balance() argument
238 is_memory_migrate(const struct cpuset * cs) is_memory_migrate() argument
243 is_spread_page(const struct cpuset * cs) is_spread_page() argument
248 is_spread_slab(const struct cpuset * cs) is_spread_slab() argument
268 cpuset_is_populated(struct cpuset * cs) cpuset_is_populated() argument
333 cpuset1_update_task_spread_flags(struct cpuset * cs,struct task_struct * tsk) cpuset1_update_task_spread_flags() argument
335 cpuset1_update_tasks_flags(struct cpuset * cs) cpuset1_update_tasks_flags() argument
336 cpuset1_hotplug_update_tasks(struct cpuset * cs,struct cpumask * new_cpus,nodemask_t * new_mems,bool cpus_updated,bool mems_updated) cpuset1_hotplug_update_tasks() argument
343 cpuset1_init(struct cpuset * cs) cpuset1_init() argument
[all...]
H A Dcpuset-v1.c11 struct cpuset *cs; member
148 static int update_relax_domain_level(struct cpuset *cs, s64 val) in update_relax_domain_level() argument
155 if (val != cs->relax_domain_level) { in update_relax_domain_level()
156 cs->relax_domain_level = val; in update_relax_domain_level()
157 if (!cpumask_empty(cs->cpus_allowed) && in update_relax_domain_level()
158 is_sched_load_balance(cs)) in update_relax_domain_level()
168 struct cpuset *cs = css_cs(css); in cpuset_write_s64() local
173 if (!is_cpuset_online(cs)) in cpuset_write_s64()
179 retval = update_relax_domain_level(cs, val); in cpuset_write_s64()
192 struct cpuset *cs in cpuset_read_s64() local
212 cpuset1_update_task_spread_flags(struct cpuset * cs,struct task_struct * tsk) cpuset1_update_task_spread_flags() argument
232 cpuset1_update_tasks_flags(struct cpuset * cs) cpuset1_update_tasks_flags() argument
250 remove_tasks_in_empty_cpuset(struct cpuset * cs) remove_tasks_in_empty_cpuset() argument
280 cpuset1_hotplug_update_tasks(struct cpuset * cs,struct cpumask * new_cpus,nodemask_t * new_mems,bool cpus_updated,bool mems_updated) cpuset1_hotplug_update_tasks() argument
446 struct cpuset *cs = css_cs(css); cpuset_read_u64() local
479 struct cpuset *cs = css_cs(css); cpuset_write_u64() local
530 cpuset1_init(struct cpuset * cs) cpuset1_init() argument
540 struct cpuset *cs = css_cs(css); cpuset1_online_css() local
[all...]
/linux/drivers/scsi/
H A 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 in myrs_qcmd()
128 myrs_exec_cmd(struct myrs_hba * cs,struct myrs_cmdblk * cmd_blk) myrs_exec_cmd() argument
145 myrs_report_progress(struct myrs_hba * cs,unsigned short ldev_num,unsigned char * msg,unsigned long blocks,unsigned long size) myrs_report_progress() argument
158 myrs_get_ctlr_info(struct myrs_hba * cs) myrs_get_ctlr_info() argument
219 myrs_get_ldev_info(struct myrs_hba * cs,unsigned short ldev_num,struct myrs_ldev_info * ldev_info) myrs_get_ldev_info() argument
306 myrs_get_pdev_info(struct myrs_hba * cs,unsigned char channel,unsigned char target,unsigned char lun,struct myrs_pdev_info * pdev_info) myrs_get_pdev_info() argument
350 myrs_dev_op(struct myrs_hba * cs,enum myrs_ioctl_opcode opcode,enum myrs_opdev opdev) myrs_dev_op() argument
375 myrs_translate_pdev(struct myrs_hba * cs,unsigned char channel,unsigned char target,unsigned char lun,struct myrs_devmap * devmap) myrs_translate_pdev() argument
419 myrs_get_event(struct myrs_hba * cs,unsigned int event_num,struct myrs_event * event_buf) myrs_get_event() argument
454 myrs_get_fwstatus(struct myrs_hba * cs) myrs_get_fwstatus() argument
481 myrs_enable_mmio_mbox(struct myrs_hba * cs,enable_mbox_t enable_mbox_fn) myrs_enable_mmio_mbox() argument
580 myrs_get_config(struct myrs_hba * cs) myrs_get_config() argument
811 myrs_log_event(struct myrs_hba * cs,struct myrs_event * ev) myrs_log_event() argument
938 struct myrs_hba *cs = shost_priv(sdev->host); raid_state_show() local
973 struct myrs_hba *cs = shost_priv(sdev->host); raid_state_store() local
1057 struct myrs_hba *cs = shost_priv(sdev->host); raid_level_show() local
1083 struct myrs_hba *cs = shost_priv(sdev->host); rebuild_show() local
1112 struct myrs_hba *cs = shost_priv(sdev->host); rebuild_store() local
1188 struct myrs_hba *cs = shost_priv(sdev->host); consistency_check_show() local
1212 struct myrs_hba *cs = shost_priv(sdev->host); consistency_check_store() local
1301 struct myrs_hba *cs = shost_priv(shost); serial_show() local
1314 struct myrs_hba *cs = shost_priv(shost); ctlr_num_show() local
1337 struct myrs_hba *cs = shost_priv(shost); processor_show() local
1389 struct myrs_hba *cs = shost_priv(shost); model_show() local
1399 struct myrs_hba *cs = shost_priv(shost); ctlr_type_show() local
1409 struct myrs_hba *cs = shost_priv(shost); cache_size_show() local
1419 struct myrs_hba *cs = shost_priv(shost); firmware_show() local
1432 struct myrs_hba *cs = shost_priv(shost); discovery_store() local
1470 struct myrs_hba *cs = shost_priv(shost); flush_cache_store() local
1489 struct myrs_hba *cs = shost_priv(shost); disable_enclosure_messages_show() local
1498 struct myrs_hba *cs = shost_priv(sdev->host); disable_enclosure_messages_store() local
1535 struct myrs_hba *cs = shost_priv(shost); myrs_host_reset() local
1541 myrs_mode_sense(struct myrs_hba * cs,struct scsi_cmnd * scmd,struct myrs_ldev_info * ldev_info) myrs_mode_sense() argument
1588 struct myrs_hba *cs = shost_priv(shost); myrs_queuecommand() local
1777 myrs_translate_ldev(struct myrs_hba * cs,struct scsi_device * sdev) myrs_translate_ldev() argument
1791 struct myrs_hba *cs = shost_priv(sdev->host); myrs_sdev_init() local
1888 struct myrs_hba *cs = shost_priv(sdev->host); myrs_sdev_configure() local
1938 struct myrs_hba *cs; myrs_alloc_host() local
1966 struct myrs_hba *cs = shost_priv(sdev->host); myrs_is_raid() local
1979 struct myrs_hba *cs = shost_priv(sdev->host); myrs_get_resync() local
2003 struct myrs_hba *cs = shost_priv(sdev->host); myrs_get_state() local
2042 myrs_flush_cache(struct myrs_hba * cs) myrs_flush_cache() argument
2047 myrs_handle_scsi(struct myrs_hba * cs,struct myrs_cmdblk * cmd_blk,struct scsi_cmnd * scmd) myrs_handle_scsi() argument
2092 myrs_handle_cmdblk(struct myrs_hba * cs,struct myrs_cmdblk * cmd_blk) myrs_handle_cmdblk() argument
2105 struct myrs_hba *cs = container_of(work, struct myrs_hba, myrs_monitor() local
2172 myrs_create_mempools(struct pci_dev * pdev,struct myrs_hba * cs) myrs_create_mempools() argument
2231 myrs_destroy_mempools(struct myrs_hba * cs) myrs_destroy_mempools() argument
2241 myrs_unmap(struct myrs_hba * cs) myrs_unmap() argument
2262 myrs_cleanup(struct myrs_hba * cs) myrs_cleanup() argument
2291 struct myrs_hba *cs = NULL; myrs_detect() local
2343 myrs_err_status(struct myrs_hba * cs,unsigned char status,unsigned char parm0,unsigned char parm1) myrs_err_status() argument
2537 DAC960_GEM_hw_init(struct pci_dev * pdev,struct myrs_hba * cs,void __iomem * base) DAC960_GEM_hw_init() argument
2575 struct myrs_hba *cs = arg; DAC960_GEM_intr_handler() local
2756 DAC960_BA_hw_init(struct pci_dev * pdev,struct myrs_hba * cs,void __iomem * base) DAC960_BA_hw_init() argument
2794 struct myrs_hba *cs = arg; DAC960_BA_intr_handler() local
2974 DAC960_LP_hw_init(struct pci_dev * pdev,struct myrs_hba * cs,void __iomem * base) DAC960_LP_hw_init() argument
3013 struct myrs_hba *cs = arg; DAC960_LP_intr_handler() local
3071 struct myrs_hba *cs; myrs_probe() local
3105 struct myrs_hba *cs = pci_get_drvdata(pdev); myrs_remove() local
[all...]
/linux/drivers/gpu/drm/i915/pxp/
H A Dintel_pxp_cmd.c23 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/net/ovpn/
H A Dcrypto.c32 void ovpn_crypto_state_release(struct ovpn_crypto_state *cs) in ovpn_crypto_state_release() argument
36 ks = rcu_access_pointer(cs->slots[0]); in ovpn_crypto_state_release()
38 RCU_INIT_POINTER(cs->slots[0], NULL); in ovpn_crypto_state_release()
42 ks = rcu_access_pointer(cs->slots[1]); in ovpn_crypto_state_release()
44 RCU_INIT_POINTER(cs->slots[1], NULL); in ovpn_crypto_state_release()
50 bool ovpn_crypto_kill_key(struct ovpn_crypto_state *cs, u8 key_id) in ovpn_crypto_kill_key() argument
56 spin_lock_bh(&cs->lock); in ovpn_crypto_kill_key()
57 tmp = rcu_access_pointer(cs->slots[slot]); in ovpn_crypto_kill_key()
60 tmp = rcu_access_pointer(cs->slots[slot]); in ovpn_crypto_kill_key()
64 ks = rcu_replace_pointer(cs->slots[slot], NULL, in ovpn_crypto_kill_key()
[all …]
H A Dcrypto.h67 static inline void ovpn_crypto_state_init(struct ovpn_crypto_state *cs) in ovpn_crypto_state_init() argument
69 RCU_INIT_POINTER(cs->slots[0], NULL); in ovpn_crypto_state_init()
70 RCU_INIT_POINTER(cs->slots[1], NULL); in ovpn_crypto_state_init()
71 cs->primary_idx = 0; in ovpn_crypto_state_init()
72 spin_lock_init(&cs->lock); in ovpn_crypto_state_init()
76 ovpn_crypto_key_id_to_slot(const struct ovpn_crypto_state *cs, u8 key_id) in ovpn_crypto_key_id_to_slot() argument
81 if (unlikely(!cs)) in ovpn_crypto_key_id_to_slot()
85 idx = READ_ONCE(cs->primary_idx); in ovpn_crypto_key_id_to_slot()
86 ks = rcu_dereference(cs->slots[idx]); in ovpn_crypto_key_id_to_slot()
93 ks = rcu_dereference(cs->slots[!idx]); in ovpn_crypto_key_id_to_slot()
[all …]
/linux/sound/core/
H A Dpcm_iec958.c29 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/arch/mips/bcm63xx/
H A 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 …]
/linux/drivers/accel/habanalabs/common/
H A Dcommand_submission.c23 * enum hl_cs_wait_status - cs wait status
24 * @CS_WAIT_STATUS_BUSY: cs was not completed yet
25 * @CS_WAIT_STATUS_COMPLETED: cs completed
26 * @CS_WAIT_STATUS_GONE: cs completed but fence is already gone
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 in cs_put()
277 cs_needs_completion(struct hl_cs * cs) cs_needs_completion() argument
288 cs_needs_timeout(struct hl_cs * cs) cs_needs_timeout() argument
363 struct hl_cs *cs = job->cs; hl_complete_job() local
438 struct hl_cs *cs; hl_staged_cs_find_first() local
455 is_staged_cs_last_exists(struct hl_device * hdev,struct hl_cs * cs) is_staged_cs_last_exists() argument
478 staged_cs_get(struct hl_device * hdev,struct hl_cs * cs) staged_cs_get() argument
497 staged_cs_put(struct hl_device * hdev,struct hl_cs * cs) staged_cs_put() argument
506 cs_handle_tdr(struct hl_device * hdev,struct hl_cs * cs) cs_handle_tdr() argument
606 complete_multi_cs(struct hl_device * hdev,struct hl_cs * cs) complete_multi_cs() argument
656 cs_release_sob_reset_handler(struct hl_device * hdev,struct hl_cs * cs,struct hl_cs_compl * hl_cs_cmpl) cs_release_sob_reset_handler() argument
696 struct hl_cs *cs = container_of(ref, struct hl_cs, refcount); cs_do_release() local
818 struct hl_cs *cs = container_of(work, struct hl_cs, work_tdr.work); cs_timedout() local
905 struct hl_cs *cs; allocate_cs() local
1026 cs_rollback(struct hl_device * hdev,struct hl_cs * cs) cs_rollback() argument
1067 struct hl_cs *cs, *tmp; hl_cs_rollback_all() local
1148 struct hl_cs *cs; force_complete_cs() local
1170 struct hl_cs *cs = job->cs; job_wq_completion() local
1179 struct hl_cs *cs = container_of(work, struct hl_cs, finish_work); cs_completion() local
1190 struct hl_cs *cs; hl_get_active_cs_num() local
1444 cs_staged_submission(struct hl_device * hdev,struct hl_cs * cs,u64 sequence,u32 flags,u32 encaps_signal_handle) cs_staged_submission() argument
1498 struct hl_cs *cs; cs_ioctl_default() local
1937 cs_ioctl_signal_wait_create_jobs(struct hl_device * hdev,struct hl_ctx * ctx,struct hl_cs * cs,enum hl_queue_type q_type,u32 q_idx,u32 encaps_signal_offset) cs_ioctl_signal_wait_create_jobs() argument
2215 struct hl_cs *cs; cs_ioctl_signal_wait() local
[all...]
H A Dhw_queue.c41 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/drivers/memory/
H A Dstm32-fmc2-ebi.c234 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
304 stm32_fmc2_ebi_mp25_check_clk_period(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_mp25_check_clk_period() argument
321 stm32_fmc2_ebi_check_async_trans(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_check_async_trans() argument
338 stm32_fmc2_ebi_check_cpsize(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_check_cpsize() argument
355 stm32_fmc2_ebi_check_address_hold(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_check_address_hold() argument
380 stm32_fmc2_ebi_check_clk_period(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_check_clk_period() argument
405 stm32_fmc2_ebi_check_cclk(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_check_cclk() argument
414 stm32_fmc2_ebi_ns_to_clock_cycles(struct stm32_fmc2_ebi * ebi,int cs,u32 setup) stm32_fmc2_ebi_ns_to_clock_cycles() argument
423 stm32_fmc2_ebi_ns_to_clk_period(struct stm32_fmc2_ebi * ebi,int cs,u32 setup) stm32_fmc2_ebi_ns_to_clk_period() argument
446 stm32_fmc2_ebi_mp25_ns_to_clk_period(struct stm32_fmc2_ebi * ebi,int cs,u32 setup) stm32_fmc2_ebi_mp25_ns_to_clk_period() argument
469 stm32_fmc2_ebi_get_reg(int reg_type,int cs,u32 * reg) stm32_fmc2_ebi_get_reg() argument
496 stm32_fmc2_ebi_set_bit_field(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_bit_field() argument
513 stm32_fmc2_ebi_set_trans_type(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_trans_type() argument
646 stm32_fmc2_ebi_set_buswidth(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_buswidth() argument
669 stm32_fmc2_ebi_set_cpsize(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_cpsize() argument
701 stm32_fmc2_ebi_set_bl_setup(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_bl_setup() argument
714 stm32_fmc2_ebi_set_address_setup(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_address_setup() argument
747 stm32_fmc2_ebi_set_address_hold(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_address_hold() argument
765 stm32_fmc2_ebi_set_data_setup(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_data_setup() argument
783 stm32_fmc2_ebi_set_bus_turnaround(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_bus_turnaround() argument
801 stm32_fmc2_ebi_set_data_hold(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_data_hold() argument
822 stm32_fmc2_ebi_set_clk_period(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_clk_period() argument
835 stm32_fmc2_ebi_mp25_set_clk_period(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_mp25_set_clk_period() argument
859 stm32_fmc2_ebi_set_data_latency(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_data_latency() argument
872 stm32_fmc2_ebi_set_max_low_pulse(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_set_max_low_pulse() argument
904 stm32_fmc2_ebi_mp25_set_max_low_pulse(struct stm32_fmc2_ebi * ebi,const struct stm32_fmc2_prop * prop,int cs,u32 setup) stm32_fmc2_ebi_mp25_set_max_low_pulse() argument
1360 stm32_fmc2_ebi_parse_prop(struct stm32_fmc2_ebi * ebi,struct device_node * dev_node,const struct stm32_fmc2_prop * prop,int cs) stm32_fmc2_ebi_parse_prop() argument
1408 stm32_fmc2_ebi_enable_bank(struct stm32_fmc2_ebi * ebi,int cs) stm32_fmc2_ebi_enable_bank() argument
1414 stm32_fmc2_ebi_disable_bank(struct stm32_fmc2_ebi * ebi,int cs) stm32_fmc2_ebi_disable_bank() argument
1421 unsigned int cs; stm32_fmc2_ebi_save_setup() local
1465 unsigned int cs; stm32_fmc2_ebi_set_setup() local
1493 unsigned int cs; stm32_fmc2_ebi_disable_banks() local
1507 unsigned int cs; stm32_fmc2_ebi_nwait_used_by_ctrls() local
1550 stm32_fmc2_ebi_setup_cs(struct stm32_fmc2_ebi * ebi,struct device_node * dev_node,u32 cs) stm32_fmc2_ebi_setup_cs() argument
[all...]
/linux/net/ceph/
H A 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 …]
/linux/fs/xfs/scrub/
H A Dstats.c94 struct xchk_stats *cs, in xchk_stats_format() argument
98 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format()
144 struct xchk_stats *cs) in xchk_stats_estimate_bufsize() argument
146 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_estimate_bufsize()
178 struct xchk_stats *cs) in xchk_stats_clearall()
180 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_clearall()
199 struct xchk_stats *cs, in xchk_stats_merge_one()
218 css = &cs->cs_stats[sm->sm_type]; in xchk_stats_merge_one()
272 struct xchk_stats *cs = file->private_data; in xchk_scrub_stats_read()
285 bufsize = xchk_stats_estimate_bufsize(cs); in xchk_scrub_stats_read()
177 xchk_stats_clearall(struct xchk_stats * cs) xchk_stats_clearall() argument
198 xchk_stats_merge_one(struct xchk_stats * cs,const struct xfs_scrub_metadata * sm,int error,const struct xchk_stats_run * run) xchk_stats_merge_one() argument
271 struct xchk_stats *cs = file->private_data; xchk_scrub_stats_read() local
314 struct xchk_stats *cs = file->private_data; xchk_clear_scrub_stats_write() local
337 xchk_stats_init(struct xchk_stats * cs,struct xfs_mount * mp) xchk_stats_init() argument
352 xchk_stats_register(struct xchk_stats * cs,struct dentry * parent) xchk_stats_register() argument
371 xchk_stats_teardown(struct xchk_stats * cs) xchk_stats_teardown() argument
379 xchk_stats_unregister(struct xchk_stats * cs) xchk_stats_unregister() argument
412 struct xchk_stats *cs; xchk_mount_stats_alloc() local
[all...]
/linux/drivers/clocksource/
H A Dtimer-pistachio.c48 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 Dingenic-ost.c39 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 in ingenic_ost_probe()
[all...]
/linux/tools/perf/util/
H A Dcomm.c24 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/mfd/
H A Datmel-smc.c251 void atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, in atmel_smc_cs_conf_apply() argument
254 regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup); in atmel_smc_cs_conf_apply()
255 regmap_write(regmap, ATMEL_SMC_PULSE(cs), conf->pulse); in atmel_smc_cs_conf_apply()
256 regmap_write(regmap, ATMEL_SMC_CYCLE(cs), conf->cycle); in atmel_smc_cs_conf_apply()
257 regmap_write(regmap, ATMEL_SMC_MODE(cs), conf->mode); in atmel_smc_cs_conf_apply()
273 int cs, const struct atmel_smc_cs_conf *conf) in atmel_hsmc_cs_conf_apply() argument
275 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply()
276 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse); in atmel_hsmc_cs_conf_apply()
277 regmap_write(regmap, ATMEL_HSMC_CYCLE(layout, cs), conf->cycle); in atmel_hsmc_cs_conf_apply()
278 regmap_write(regmap, ATMEL_HSMC_TIMINGS(layout, cs), conf->timings); in atmel_hsmc_cs_conf_apply()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-ctrls-api.c230 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/fs/fat/
H A Dfat_test.c59 u8 cs; member
68 u8 cs; member
85 .cs = 0,
93 .cs = 0,
101 .cs = 0,
109 .cs = 0,
117 .cs = 0,
125 .cs = 0,
133 .cs = 0,
141 .cs = 0,
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c163 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 Dtest_cachestat.c28 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 …]

12345678910>>...31