Home
last modified time | relevance | path

Searched full:cs (Results 1 – 25 of 1683) sorted by relevance

12345678910>>...68

/Linux-v5.4/drivers/staging/isdn/gigaset/
Dcommon.c86 static int setflags(struct cardstate *cs, unsigned flags, unsigned delay) in setflags() argument
90 r = cs->ops->set_modem_ctrl(cs, cs->control_state, flags); in setflags()
91 cs->control_state = flags; in setflags()
103 int gigaset_enterconfigmode(struct cardstate *cs) in gigaset_enterconfigmode() argument
107 cs->control_state = TIOCM_RTS; in gigaset_enterconfigmode()
109 r = setflags(cs, TIOCM_DTR, 200); in gigaset_enterconfigmode()
112 r = setflags(cs, 0, 200); in gigaset_enterconfigmode()
116 r = setflags(cs, TIOCM_RTS, 100); in gigaset_enterconfigmode()
119 r = setflags(cs, 0, 100); in gigaset_enterconfigmode()
123 r = setflags(cs, TIOCM_RTS | TIOCM_DTR, 800); in gigaset_enterconfigmode()
[all …]
Dinterface.c18 static int if_lock(struct cardstate *cs, int *arg) in if_lock() argument
22 gig_dbg(DEBUG_IF, "%u: if_lock (%d)", cs->minor_index, cmd); in if_lock()
28 *arg = cs->mstate == MS_LOCKED; in if_lock()
32 if (!cmd && cs->mstate == MS_LOCKED && cs->connected) { in if_lock()
33 cs->ops->set_modem_ctrl(cs, 0, TIOCM_DTR | TIOCM_RTS); in if_lock()
34 cs->ops->baud_rate(cs, B115200); in if_lock()
35 cs->ops->set_line_ctrl(cs, CS8); in if_lock()
36 cs->control_state = TIOCM_DTR | TIOCM_RTS; in if_lock()
39 cs->waiting = 1; in if_lock()
40 if (!gigaset_add_event(cs, &cs->at_state, EV_IF_LOCK, in if_lock()
[all …]
Dev-layer.c404 static void add_cid_event(struct cardstate *cs, int cid, int type, in add_cid_event() argument
413 spin_lock_irqsave(&cs->ev_lock, flags); in add_cid_event()
415 tail = cs->ev_tail; in add_cid_event()
417 if (unlikely(next == cs->ev_head)) { in add_cid_event()
418 dev_err(cs->dev, "event queue full\n"); in add_cid_event()
421 event = cs->events + tail; in add_cid_event()
428 cs->ev_tail = next; in add_cid_event()
431 spin_unlock_irqrestore(&cs->ev_lock, flags); in add_cid_event()
436 * @cs: device descriptor structure.
440 * already in the cs structure.
[all …]
Dser-gigaset.c60 static int write_modem(struct cardstate *cs) in write_modem() argument
62 struct tty_struct *tty = cs->hw.ser->tty; in write_modem()
63 struct bc_state *bcs = &cs->bcs[0]; /* only one channel */ in write_modem()
81 flush_send_queue(cs); in write_modem()
101 static int send_cb(struct cardstate *cs) in send_cb() argument
103 struct tty_struct *tty = cs->hw.ser->tty; in send_cb()
110 cb = cs->cmdbuf; in send_cb()
120 flush_send_queue(cs); in send_cb()
126 sent, cb->len, cs->cmdbytes); in send_cb()
130 spin_lock_irqsave(&cs->cmdlock, flags); in send_cb()
[all …]
Dusb-gigaset.c151 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, in gigaset_set_modem_ctrl() argument
154 struct usb_device *udev = cs->hw.usb->udev; in gigaset_set_modem_ctrl()
175 static int set_value(struct cardstate *cs, u8 req, u16 val) in set_value() argument
177 struct usb_device *udev = cs->hw.usb->udev; in set_value()
197 0, 0, cs->hw.usb->bchars, 6, 2000 /*?*/); in set_value()
208 static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) in gigaset_baud_rate() argument
228 dev_err(cs->dev, "unsupported baudrate request 0x%x," in gigaset_baud_rate()
234 return set_value(cs, 1, val); in gigaset_baud_rate()
241 static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) in gigaset_set_line_ctrl() argument
260 dev_err(cs->dev, "CSIZE was not CS5-CS8, using default of 8\n"); in gigaset_set_line_ctrl()
[all …]
Dbas-gigaset.c89 struct cardstate *cs; member
304 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, in gigaset_set_modem_ctrl() argument
310 static int gigaset_baud_rate(struct cardstate *cs, unsigned cflag) in gigaset_baud_rate() argument
315 static int gigaset_set_line_ctrl(struct cardstate *cs, unsigned cflag) in gigaset_set_line_ctrl() argument
339 * cs->lock must not be held.
345 struct cardstate *cs = bcs->cs; in error_hangup() local
347 gigaset_add_event(cs, &bcs->at_state, EV_HUP, NULL, 0, NULL); in error_hangup()
348 gigaset_schedule_event(cs); in error_hangup()
355 * cs->hw.bas->lock must not be held.
359 static inline void error_reset(struct cardstate *cs) in error_reset() argument
[all …]
Dproc.c18 struct cardstate *cs = dev_get_drvdata(dev); in show_cidmode() local
20 return sprintf(buf, "%u\n", cs->cidmode); in show_cidmode()
26 struct cardstate *cs = dev_get_drvdata(dev); in set_cidmode() local
37 if (mutex_lock_interruptible(&cs->mutex)) in set_cidmode()
40 cs->waiting = 1; in set_cidmode()
41 if (!gigaset_add_event(cs, &cs->at_state, EV_PROC_CIDMODE, in set_cidmode()
43 cs->waiting = 0; in set_cidmode()
44 mutex_unlock(&cs->mutex); in set_cidmode()
47 gigaset_schedule_event(cs); in set_cidmode()
49 wait_event(cs->waitqueue, !cs->waiting); in set_cidmode()
[all …]
Dcapi.c148 static inline void ignore_cstruct_param(struct cardstate *cs, _cstruct param, in ignore_cstruct_param() argument
152 dev_warn(cs->dev, "%s: ignoring unsupported parameter: %s\n", in ignore_cstruct_param()
323 static void send_data_b3_conf(struct cardstate *cs, struct capi_ctr *ctr, in send_data_b3_conf() argument
332 dev_err(cs->dev, "%s: out of memory\n", __func__); in send_data_b3_conf()
369 struct cardstate *cs = bcs->cs; in gigaset_skb_sent() local
370 struct gigaset_capi_ctr *iif = cs->iif; in gigaset_skb_sent()
395 send_data_b3_conf(cs, &iif->ctr, ap->id, CAPIMSG_MSGID(req), in gigaset_skb_sent()
414 struct cardstate *cs = bcs->cs; in gigaset_skb_rcvd() local
415 struct gigaset_capi_ctr *iif = cs->iif; in gigaset_skb_rcvd()
494 struct cardstate *cs = at_state->cs; in gigaset_isdn_icall() local
[all …]
/Linux-v5.4/kernel/time/
Dclocksource.c119 static void __clocksource_change_rating(struct clocksource *cs, int rating);
145 static void __clocksource_unstable(struct clocksource *cs) in __clocksource_unstable() argument
147 cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG); in __clocksource_unstable()
148 cs->flags |= CLOCK_SOURCE_UNSTABLE; in __clocksource_unstable()
154 if (list_empty(&cs->list)) { in __clocksource_unstable()
155 cs->rating = 0; in __clocksource_unstable()
159 if (cs->mark_unstable) in __clocksource_unstable()
160 cs->mark_unstable(cs); in __clocksource_unstable()
169 * @cs: clocksource to be marked unstable
174 void clocksource_mark_unstable(struct clocksource *cs) in clocksource_mark_unstable() argument
[all …]
/Linux-v5.4/drivers/misc/habanalabs/
Dcommand_submission.c53 static void cs_get(struct hl_cs *cs) in cs_get() argument
55 kref_get(&cs->refcount); in cs_get()
58 static int cs_get_unless_zero(struct hl_cs *cs) in cs_get_unless_zero() argument
60 return kref_get_unless_zero(&cs->refcount); in cs_get_unless_zero()
63 static void cs_put(struct hl_cs *cs) in cs_put() argument
65 kref_put(&cs->refcount, cs_do_release); in cs_put()
85 parser.ctx_id = job->cs->ctx->asid; in cs_parser()
86 parser.cs_sequence = job->cs->sequence; in cs_parser()
111 * won't be accessed again for this CS in cs_parser()
125 struct hl_cs *cs = job->cs; in free_job() local
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dintel_ringbuffer.c64 u32 cmd, *cs; in gen2_render_ring_flush() local
73 cs = intel_ring_begin(rq, 2 + 3 * num_store_dw); in gen2_render_ring_flush()
74 if (IS_ERR(cs)) in gen2_render_ring_flush()
75 return PTR_ERR(cs); in gen2_render_ring_flush()
77 *cs++ = cmd; in gen2_render_ring_flush()
79 *cs++ = MI_STORE_DWORD_IMM | MI_MEM_VIRTUAL; in gen2_render_ring_flush()
80 *cs++ = intel_gt_scratch_offset(rq->engine->gt, in gen2_render_ring_flush()
82 *cs++ = 0; in gen2_render_ring_flush()
84 *cs++ = MI_FLUSH | MI_NO_WRITE_FLUSH; in gen2_render_ring_flush()
86 intel_ring_advance(rq, cs); in gen2_render_ring_flush()
[all …]
/Linux-v5.4/drivers/mfd/
Datmel-smc.c15 * atmel_smc_cs_conf_init - initialize a SMC CS conf
16 * @conf: the SMC CS conf to initialize
79 * atmel_smc_cs_conf_set_timing - set the SMC CS conf Txx parameter to a
81 * @conf: SMC CS conf descriptor
121 * atmel_smc_cs_conf_set_setup - set the SMC CS conf xx_SETUP parameter to a
123 * @conf: SMC CS conf descriptor
160 * atmel_smc_cs_conf_set_pulse - set the SMC CS conf xx_PULSE parameter to a
162 * @conf: SMC CS conf descriptor
199 * atmel_smc_cs_conf_set_cycle - set the SMC CS conf xx_CYCLE parameter to a
201 * @conf: SMC CS conf descriptor
[all …]
/Linux-v5.4/kernel/cgroup/
Dcpuset.c203 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() argument
205 return css_cs(cs->css.parent); in parent_cs()
221 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() argument
223 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
226 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() argument
228 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive()
231 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() argument
233 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive()
236 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() argument
238 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/memory-controllers/
Dti-aemif.txt34 - CS-specific partition/range. If continuous, must be
38 - control partition which is common for all CS
56 Child chip-select (cs) nodes contain the memory devices nodes connected to
60 Required child cs node properties:
73 - ti,cs-chipselect: number of chipselect. Indicates on the aemif driver
79 Optional child cs node properties:
81 - ti,cs-bus-width: width of the asynchronous device's data bus
84 - ti,cs-select-strobe-mode: enable/disable select strobe mode
89 - ti,cs-extended-wait-mode: enable/disable extended wait mode
95 - ti,cs-min-turnaround-ns: minimum turn around time, ns
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/fs/fuse/
Ddev.c651 static void fuse_copy_init(struct fuse_copy_state *cs, int write, in fuse_copy_init() argument
654 memset(cs, 0, sizeof(*cs)); in fuse_copy_init()
655 cs->write = write; in fuse_copy_init()
656 cs->iter = iter; in fuse_copy_init()
660 static void fuse_copy_finish(struct fuse_copy_state *cs) in fuse_copy_finish() argument
662 if (cs->currbuf) { in fuse_copy_finish()
663 struct pipe_buffer *buf = cs->currbuf; in fuse_copy_finish()
665 if (cs->write) in fuse_copy_finish()
666 buf->len = PAGE_SIZE - cs->len; in fuse_copy_finish()
667 cs->currbuf = NULL; in fuse_copy_finish()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/arch/m68k/include/asm/
Dm5307sim.h51 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80) /* CS 0 Address reg */
52 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84) /* CS 0 Mask reg */
53 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a) /* CS 0 Control reg */
54 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c) /* CS 1 Address reg */
55 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90) /* CS 1 Mask reg */
56 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96) /* CS 1 Control reg */
59 #define MCFSIM_CSBAR (MCF_MBAR + 0x98) /* CS Base Address */
60 #define MCFSIM_CSBAMR (MCF_MBAR + 0x9c) /* CS Base Mask */
61 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9e) /* CS 2 Mask reg */
62 #define MCFSIM_CSCR2 (MCF_MBAR + 0xa2) /* CS 2 Control reg */
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/memory/
Domap-gpmc.c204 /* Structure to save gpmc cs context */
265 void gpmc_cs_write_reg(int cs, int idx, u32 val) in gpmc_cs_write_reg() argument
269 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_write_reg()
273 static u32 gpmc_cs_read_reg(int cs, int idx) in gpmc_cs_read_reg() argument
277 reg_addr = gpmc_base + GPMC_CS0_OFFSET + (cs * GPMC_CS_SIZE) + idx; in gpmc_cs_read_reg()
294 * @cs Chip Select Region.
297 * GPMC_CS_CONFIG1 GPMCFCLKDIVIDER for cs has to be setup
300 static unsigned long gpmc_get_clk_period(int cs, enum gpmc_clk_domain cd) in gpmc_get_clk_period() argument
310 l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); in gpmc_get_clk_period()
325 static unsigned int gpmc_ns_to_clk_ticks(unsigned int time_ns, int cs, in gpmc_ns_to_clk_ticks() argument
[all …]
/Linux-v5.4/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
/Linux-v5.4/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 …]
/Linux-v5.4/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()
85 * @cs: channel status buffer, at least four bytes
88 * Create the consumer format channel status data in @cs of maximum size
95 int snd_pcm_create_iec958_consumer(struct snd_pcm_runtime *runtime, u8 *cs, in snd_pcm_create_iec958_consumer() argument
[all …]

12345678910>>...68