Home
last modified time | relevance | path

Searched refs:rt (Results 1 - 25 of 678) sorted by relevance

12345678910>>...28

/kernel/linux/linux-5.10/sound/usb/6fire/
H A Dpcm.c70 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument
73 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate()
78 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
80 rates[rt->rate]); in usb6fire_pcm_set_rate()
84 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate()
86 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
88 rates[rt->rate]); in usb6fire_pcm_set_rate()
95 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
97 rates[rt->rate]); in usb6fire_pcm_set_rate()
104 dev_err(&rt in usb6fire_pcm_set_rate()
120 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_get_substream() local
131 usb6fire_pcm_stream_stop(struct pcm_runtime *rt) usb6fire_pcm_stream_stop() argument
151 usb6fire_pcm_stream_start(struct pcm_runtime *rt) usb6fire_pcm_stream_start() argument
198 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); usb6fire_pcm_capture() local
245 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); usb6fire_pcm_playback() local
290 struct pcm_runtime *rt = in_urb->chip->pcm; usb6fire_pcm_in_urb_handler() local
378 struct pcm_runtime *rt = urb->chip->pcm; usb6fire_pcm_out_urb_handler() local
388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_open() local
424 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_close() local
451 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_prepare() local
497 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_trigger() local
529 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_pointer() local
568 usb6fire_pcm_buffers_init(struct pcm_runtime *rt) usb6fire_pcm_buffers_init() argument
587 usb6fire_pcm_buffers_destroy(struct pcm_runtime *rt) usb6fire_pcm_buffers_destroy() argument
602 struct pcm_runtime *rt = usb6fire_pcm_init() local
656 struct pcm_runtime *rt = chip->pcm; usb6fire_pcm_abort() local
678 struct pcm_runtime *rt = chip->pcm; usb6fire_pcm_destroy() local
[all...]
H A Dmidi.c24 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local
28 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler()
30 if (rt->out) { in usb6fire_midi_out_handler()
31 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler()
34 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler()
35 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler()
44 rt->out = NULL; in usb6fire_midi_out_handler()
46 spin_unlock_irqrestore(&rt in usb6fire_midi_out_handler()
49 usb6fire_midi_in_received( struct midi_runtime *rt, u8 *data, int length) usb6fire_midi_in_received() argument
73 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_out_trigger() local
107 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_out_drain() local
127 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_in_trigger() local
154 struct midi_runtime *rt = kzalloc(sizeof(struct midi_runtime), usb6fire_midi_init() local
201 struct midi_runtime *rt = chip->midi; usb6fire_midi_abort() local
209 struct midi_runtime *rt = chip->midi; usb6fire_midi_destroy() local
[all...]
H A Dcontrol.c60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument
62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update()
67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update()
69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update()
70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update()
74 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument
76 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update()
79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update()
82 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument
84 struct comm_runtime *comm_rt = rt in usb6fire_control_input_vol_update()
96 usb6fire_control_line_phono_update(struct control_runtime *rt) usb6fire_control_line_phono_update() argument
105 usb6fire_control_opt_coax_update(struct control_runtime *rt) usb6fire_control_opt_coax_update() argument
114 usb6fire_control_set_rate(struct control_runtime *rt, int rate) usb6fire_control_set_rate() argument
136 usb6fire_control_set_channels( struct control_runtime *rt, int n_analog_out, int n_analog_in, bool spdif_out, bool spdif_in) usb6fire_control_set_channels() argument
160 usb6fire_control_streaming_update(struct control_runtime *rt) usb6fire_control_streaming_update() argument
188 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_put() local
218 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_get() local
235 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_put() local
262 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_get() local
292 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_put() local
315 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_get() local
332 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_put() local
345 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_get() local
359 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_put() local
373 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_get() local
381 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_put() local
395 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_get() local
516 usb6fire_control_add_virtual( struct control_runtime *rt, struct snd_card *card, char *name, const struct snd_kcontrol_new *elems) usb6fire_control_add_virtual() argument
554 struct control_runtime *rt = kzalloc(sizeof(struct control_runtime), usb6fire_control_init() local
[all...]
H A Dcomm.c21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument
26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb()
30 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb()
35 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local
36 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler()
39 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler()
42 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler()
43 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler()
46 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler()
106 static int usb6fire_comm_write8(struct comm_runtime *rt, u argument
124 usb6fire_comm_write16(struct comm_runtime *rt, u8 request, u8 reg, u8 vl, u8 vh) usb6fire_comm_write16() argument
144 struct comm_runtime *rt = kzalloc(sizeof(struct comm_runtime), usb6fire_comm_init() local
187 struct comm_runtime *rt = chip->comm; usb6fire_comm_abort() local
195 struct comm_runtime *rt = chip->comm; usb6fire_comm_destroy() local
[all...]
/kernel/linux/linux-6.6/sound/usb/6fire/
H A Dpcm.c70 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument
73 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate()
78 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
80 rates[rt->rate]); in usb6fire_pcm_set_rate()
84 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate()
86 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
88 rates[rt->rate]); in usb6fire_pcm_set_rate()
95 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
97 rates[rt->rate]); in usb6fire_pcm_set_rate()
104 dev_err(&rt in usb6fire_pcm_set_rate()
120 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_get_substream() local
131 usb6fire_pcm_stream_stop(struct pcm_runtime *rt) usb6fire_pcm_stream_stop() argument
151 usb6fire_pcm_stream_start(struct pcm_runtime *rt) usb6fire_pcm_stream_start() argument
198 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); usb6fire_pcm_capture() local
245 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); usb6fire_pcm_playback() local
290 struct pcm_runtime *rt = in_urb->chip->pcm; usb6fire_pcm_in_urb_handler() local
378 struct pcm_runtime *rt = urb->chip->pcm; usb6fire_pcm_out_urb_handler() local
388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_open() local
424 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_close() local
451 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_prepare() local
497 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_trigger() local
529 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); usb6fire_pcm_pointer() local
568 usb6fire_pcm_buffers_init(struct pcm_runtime *rt) usb6fire_pcm_buffers_init() argument
587 usb6fire_pcm_buffers_destroy(struct pcm_runtime *rt) usb6fire_pcm_buffers_destroy() argument
602 struct pcm_runtime *rt = usb6fire_pcm_init() local
656 struct pcm_runtime *rt = chip->pcm; usb6fire_pcm_abort() local
678 struct pcm_runtime *rt = chip->pcm; usb6fire_pcm_destroy() local
[all...]
H A Dmidi.c24 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local
28 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler()
30 if (rt->out) { in usb6fire_midi_out_handler()
31 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler()
34 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler()
35 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler()
44 rt->out = NULL; in usb6fire_midi_out_handler()
46 spin_unlock_irqrestore(&rt in usb6fire_midi_out_handler()
49 usb6fire_midi_in_received( struct midi_runtime *rt, u8 *data, int length) usb6fire_midi_in_received() argument
73 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_out_trigger() local
107 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_out_drain() local
127 struct midi_runtime *rt = alsa_sub->rmidi->private_data; usb6fire_midi_in_trigger() local
154 struct midi_runtime *rt = kzalloc(sizeof(struct midi_runtime), usb6fire_midi_init() local
201 struct midi_runtime *rt = chip->midi; usb6fire_midi_abort() local
209 struct midi_runtime *rt = chip->midi; usb6fire_midi_destroy() local
[all...]
H A Dcontrol.c60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument
62 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update()
67 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update()
69 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update()
70 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update()
74 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument
76 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update()
79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update()
82 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument
84 struct comm_runtime *comm_rt = rt in usb6fire_control_input_vol_update()
96 usb6fire_control_line_phono_update(struct control_runtime *rt) usb6fire_control_line_phono_update() argument
105 usb6fire_control_opt_coax_update(struct control_runtime *rt) usb6fire_control_opt_coax_update() argument
114 usb6fire_control_set_rate(struct control_runtime *rt, int rate) usb6fire_control_set_rate() argument
136 usb6fire_control_set_channels( struct control_runtime *rt, int n_analog_out, int n_analog_in, bool spdif_out, bool spdif_in) usb6fire_control_set_channels() argument
160 usb6fire_control_streaming_update(struct control_runtime *rt) usb6fire_control_streaming_update() argument
188 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_put() local
218 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_vol_get() local
235 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_put() local
262 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_output_mute_get() local
292 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_put() local
315 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_input_vol_get() local
332 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_put() local
345 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_line_phono_get() local
359 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_put() local
373 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_opt_coax_get() local
381 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_put() local
395 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); usb6fire_control_digital_thru_get() local
516 usb6fire_control_add_virtual( struct control_runtime *rt, struct snd_card *card, char *name, const struct snd_kcontrol_new *elems) usb6fire_control_add_virtual() argument
554 struct control_runtime *rt = kzalloc(sizeof(struct control_runtime), usb6fire_control_init() local
[all...]
H A Dcomm.c21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument
26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb()
30 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb()
35 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local
36 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler()
39 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler()
42 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler()
43 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler()
46 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler()
106 static int usb6fire_comm_write8(struct comm_runtime *rt, u argument
124 usb6fire_comm_write16(struct comm_runtime *rt, u8 request, u8 reg, u8 vl, u8 vh) usb6fire_comm_write16() argument
144 struct comm_runtime *rt = kzalloc(sizeof(struct comm_runtime), usb6fire_comm_init() local
187 struct comm_runtime *rt = chip->comm; usb6fire_comm_abort() local
195 struct comm_runtime *rt = chip->comm; usb6fire_comm_destroy() local
[all...]
/kernel/linux/linux-5.10/arch/mips/ralink/
H A Dtimer.c37 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument
39 __raw_writel(val, rt->membase + reg); in rt_timer_w32()
42 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument
44 return __raw_readl(rt->membase + reg); in rt_timer_r32()
49 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local
51 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq()
52 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq()
58 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument
71 rt_timer_config(struct rt_timer *rt, unsigned long divisor) rt_timer_config() argument
83 rt_timer_enable(struct rt_timer *rt) rt_timer_enable() argument
99 struct rt_timer *rt; rt_timer_probe() local
[all...]
/kernel/linux/linux-6.6/arch/mips/ralink/
H A Dtimer.c37 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument
39 __raw_writel(val, rt->membase + reg); in rt_timer_w32()
42 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument
44 return __raw_readl(rt->membase + reg); in rt_timer_r32()
49 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local
51 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq()
52 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq()
58 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument
71 rt_timer_config(struct rt_timer *rt, unsigned long divisor) rt_timer_config() argument
83 rt_timer_enable(struct rt_timer *rt) rt_timer_enable() argument
98 struct rt_timer *rt; rt_timer_probe() local
[all...]
/kernel/liteos_m/testsuites/unittest/xts/sched/
H A Dpthread_sched_api_test.c61 int rt = pthread_attr_getinheritsched(&attr, &inheritsched); variable
62 ICUNIT_ASSERT_EQUAL(rt, 0, rt);
79 int rt = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); variable
80 ICUNIT_ASSERT_EQUAL(rt, 0, rt);
82 rt = pthread_attr_getinheritsched(&attr, &inheritsched);
83 ICUNIT_ASSERT_EQUAL(rt, 0, rt);
86 rt
108 int rt = pthread_attr_setinheritsched(&attr, n); global() variable
129 int rt = pthread_attr_getschedparam(&attr, &param); global() variable
155 int rt = pthread_attr_getschedpolicy(&attr, &policy); global() variable
172 int rt; global() variable
197 int rt = pthread_attr_getscope(&attr, &scope); global() variable
215 int rt = pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS); global() variable
[all...]
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dretimer.c21 * @rt: Retimer device
29 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf, in tb_retimer_nvm_read() argument
32 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); in tb_retimer_nvm_read()
38 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_read() local
41 pm_runtime_get_sync(&rt->dev); in nvm_read()
43 if (!mutex_trylock(&rt->tb->lock)) { in nvm_read()
48 ret = tb_retimer_nvm_read(rt, offset, val, bytes); in nvm_read()
49 mutex_unlock(&rt->tb->lock); in nvm_read()
52 pm_runtime_mark_last_busy(&rt in nvm_read()
61 struct tb_retimer *rt = tb_to_retimer(nvm->dev); nvm_write() local
73 tb_retimer_nvm_add(struct tb_retimer *rt) tb_retimer_nvm_add() argument
107 tb_retimer_nvm_validate_and_write(struct tb_retimer *rt) tb_retimer_nvm_validate_and_write() argument
129 tb_retimer_nvm_authenticate(struct tb_retimer *rt, bool auth_only) tb_retimer_nvm_authenticate() argument
163 struct tb_retimer *rt = tb_to_retimer(dev); device_show() local
172 struct tb_retimer *rt = tb_to_retimer(dev); nvm_authenticate_show() local
243 struct tb_retimer *rt = tb_to_retimer(dev); nvm_authenticate_store() local
309 struct tb_retimer *rt = tb_to_retimer(dev); nvm_version_show() local
328 struct tb_retimer *rt = tb_to_retimer(dev); vendor_show() local
353 struct tb_retimer *rt = tb_to_retimer(dev); tb_retimer_release() local
366 struct tb_retimer *rt; tb_retimer_add() local
438 tb_retimer_remove(struct tb_retimer *rt) tb_retimer_remove() argument
453 struct tb_retimer *rt = tb_to_retimer(dev); retimer_match() local
526 struct tb_retimer *rt; tb_retimer_scan() local
543 struct tb_retimer *rt = tb_to_retimer(dev); remove_retimer() local
[all...]
/kernel/linux/linux-5.10/sound/aoa/core/
H A Dgpio-pmf.c14 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
19 if (unlikely(!rt)) return; \
20 rc = pmf_call_function(rt->node, #name "-mute", &args); \
24 rt->implementation_private &= ~(1<<bit); \
25 rt->implementation_private |= (!!on << bit); \
27 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \
29 if (unlikely(!rt)) return 0; \
30 return (rt->implementation_private>>bit)&1; \
37 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument
42 if (unlikely(!rt)) retur in pmf_gpio_set_hw_reset()
49 pmf_gpio_all_amps_off(struct gpio_runtime *rt) pmf_gpio_all_amps_off() argument
61 pmf_gpio_all_amps_restore(struct gpio_runtime *rt) pmf_gpio_all_amps_restore() argument
83 pmf_gpio_init(struct gpio_runtime *rt) pmf_gpio_init() argument
95 pmf_gpio_exit(struct gpio_runtime *rt) pmf_gpio_exit() argument
129 pmf_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) pmf_set_notify() argument
208 pmf_get_detect(struct gpio_runtime *rt, enum notify_type type) pmf_get_detect() argument
[all...]
H A Dgpio-feature.c133 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\
137 if (unlikely(!rt)) return; \
152 rt->implementation_private &= ~(1<<bit); \
153 rt->implementation_private |= (!!on << bit); \
155 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \
157 if (unlikely(!rt)) return 0; \
158 return (rt->implementation_private>>bit)&1; \
166 static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in ftr_gpio_set_hw_reset() argument
170 if (unlikely(!rt)) return; in ftr_gpio_set_hw_reset()
183 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) in ftr_gpio_all_amps_off() argument
197 ftr_gpio_all_amps_restore(struct gpio_runtime *rt) ftr_gpio_all_amps_restore() argument
232 ftr_gpio_init(struct gpio_runtime *rt) ftr_gpio_init() argument
283 ftr_gpio_exit(struct gpio_runtime *rt) ftr_gpio_exit() argument
310 ftr_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) ftr_set_notify() argument
377 ftr_get_detect(struct gpio_runtime *rt, enum notify_type type) ftr_get_detect() argument
[all...]
/kernel/linux/linux-6.6/sound/aoa/core/
H A Dgpio-pmf.c14 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
19 if (unlikely(!rt)) return; \
20 rc = pmf_call_function(rt->node, #name "-mute", &args); \
24 rt->implementation_private &= ~(1<<bit); \
25 rt->implementation_private |= (!!on << bit); \
27 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \
29 if (unlikely(!rt)) return 0; \
30 return (rt->implementation_private>>bit)&1; \
37 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument
42 if (unlikely(!rt)) retur in pmf_gpio_set_hw_reset()
49 pmf_gpio_all_amps_off(struct gpio_runtime *rt) pmf_gpio_all_amps_off() argument
61 pmf_gpio_all_amps_restore(struct gpio_runtime *rt) pmf_gpio_all_amps_restore() argument
83 pmf_gpio_init(struct gpio_runtime *rt) pmf_gpio_init() argument
95 pmf_gpio_exit(struct gpio_runtime *rt) pmf_gpio_exit() argument
129 pmf_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) pmf_set_notify() argument
208 pmf_get_detect(struct gpio_runtime *rt, enum notify_type type) pmf_get_detect() argument
[all...]
H A Dgpio-feature.c133 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\
137 if (unlikely(!rt)) return; \
152 rt->implementation_private &= ~(1<<bit); \
153 rt->implementation_private |= (!!on << bit); \
155 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \
157 if (unlikely(!rt)) return 0; \
158 return (rt->implementation_private>>bit)&1; \
166 static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in ftr_gpio_set_hw_reset() argument
170 if (unlikely(!rt)) return; in ftr_gpio_set_hw_reset()
183 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) in ftr_gpio_all_amps_off() argument
197 ftr_gpio_all_amps_restore(struct gpio_runtime *rt) ftr_gpio_all_amps_restore() argument
232 ftr_gpio_init(struct gpio_runtime *rt) ftr_gpio_init() argument
283 ftr_gpio_exit(struct gpio_runtime *rt) ftr_gpio_exit() argument
310 ftr_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) ftr_set_notify() argument
377 ftr_get_detect(struct gpio_runtime *rt, enum notify_type type) ftr_get_detect() argument
[all...]
/kernel/linux/linux-5.10/net/x25/
H A Dx25_route.c29 struct x25_route *rt; in x25_add_route() local
36 rt = list_entry(entry, struct x25_route, node); in x25_add_route()
38 if (!memcmp(&rt->address, address, sigdigits) && in x25_add_route()
39 rt->sigdigits == sigdigits) in x25_add_route()
43 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in x25_add_route()
45 if (!rt) in x25_add_route()
48 strcpy(rt->address.x25_addr, "000000000000000"); in x25_add_route()
49 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); in x25_add_route()
51 rt in x25_add_route()
69 __x25_remove_route(struct x25_route *rt) __x25_remove_route() argument
80 struct x25_route *rt; x25_del_route() local
106 struct x25_route *rt; x25_route_device_down() local
151 struct x25_route *rt, *use = NULL; x25_get_route() local
179 struct x25_route_struct rt; x25_route_ioctl() local
212 struct x25_route *rt; x25_route_free() local
[all...]
/kernel/linux/linux-6.6/net/x25/
H A Dx25_route.c29 struct x25_route *rt; in x25_add_route() local
34 list_for_each_entry(rt, &x25_route_list, node) { in x25_add_route()
35 if (!memcmp(&rt->address, address, sigdigits) && in x25_add_route()
36 rt->sigdigits == sigdigits) in x25_add_route()
40 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in x25_add_route()
42 if (!rt) in x25_add_route()
45 strcpy(rt->address.x25_addr, "000000000000000"); in x25_add_route()
46 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); in x25_add_route()
48 rt in x25_add_route()
66 __x25_remove_route(struct x25_route *rt) __x25_remove_route() argument
77 struct x25_route *rt; x25_del_route() local
100 struct x25_route *rt; x25_route_device_down() local
137 struct x25_route *rt, *use = NULL; x25_get_route() local
162 struct x25_route_struct rt; x25_route_ioctl() local
195 struct x25_route *rt; x25_route_free() local
[all...]
/kernel/linux/linux-6.6/drivers/leds/flash/
H A Dleds-rt8515.c66 static void rt8515_gpio_led_off(struct rt8515 *rt) in rt8515_gpio_led_off() argument
68 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off()
69 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off()
94 struct rt8515 *rt = to_rt8515(fled); in rt8515_led_brightness_set() local
96 mutex_lock(&rt->lock); in rt8515_led_brightness_set()
100 rt8515_gpio_led_off(rt); in rt8515_led_brightness_set()
103 rt8515_gpio_brightness_commit(rt->enable_torch, brightness); in rt8515_led_brightness_set()
106 gpiod_set_value(rt->enable_torch, 1); in rt8515_led_brightness_set()
109 mutex_unlock(&rt->lock); in rt8515_led_brightness_set()
117 struct rt8515 *rt in rt8515_led_flash_strobe_set() local
146 struct rt8515 *rt = to_rt8515(fled); rt8515_led_flash_strobe_get() local
168 struct rt8515 *rt = from_timer(rt, t, powerdown_timer); rt8515_powerdown_timer() local
174 rt8515_init_flash_timeout(struct rt8515 *rt) rt8515_init_flash_timeout() argument
193 rt8515_init_v4l2_flash_config(struct rt8515 *rt, struct v4l2_flash_config *v4l2_sd_cfg) rt8515_init_v4l2_flash_config() argument
214 rt8515_v4l2_flash_release(struct rt8515 *rt) rt8515_v4l2_flash_release() argument
220 rt8515_init_v4l2_flash_config(struct rt8515 *rt, struct v4l2_flash_config *v4l2_sd_cfg) rt8515_init_v4l2_flash_config() argument
225 rt8515_v4l2_flash_release(struct rt8515 *rt) rt8515_v4l2_flash_release() argument
230 rt8515_determine_max_intensity(struct rt8515 *rt, struct fwnode_handle *led, const char *resistance, const char *max_ua_prop, int hw_max, int *max_intensity_setting) rt8515_determine_max_intensity() argument
280 struct rt8515 *rt; rt8515_probe() local
372 struct rt8515 *rt = platform_get_drvdata(pdev); rt8515_remove() local
[all...]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Droute.c139 struct nip_addr *nip_nexthop(struct nip_rt_info *rt, struct nip_addr *daddr) in nip_nexthop() argument
141 if (rt->rt_flags & RTF_GATEWAY) in nip_nexthop()
142 return &rt->gateway; in nip_nexthop()
166 static void nip_rt_info_init(struct nip_rt_info *rt) in nip_rt_info_init() argument
168 struct dst_entry *dst = &rt->dst; in nip_rt_info_init()
170 memset(dst + 1, 0, sizeof(*rt) - sizeof(*dst)); in nip_rt_info_init()
171 rt->from = NULL; in nip_rt_info_init()
177 struct nip_rt_info *rt = in __nip_dst_alloc() local
181 if (rt) in __nip_dst_alloc()
182 nip_rt_info_init(rt); in __nip_dst_alloc()
190 struct nip_rt_info *rt = __nip_dst_alloc(net, dev, flags); nip_dst_alloc() local
214 nip_rt_dst_from_metrics_check(struct nip_rt_info *rt) nip_rt_dst_from_metrics_check() argument
221 nip_rt_get_pcpu_route(struct nip_rt_info *rt) nip_rt_get_pcpu_route() argument
235 nip_rt_set_from(struct nip_rt_info *rt, struct nip_rt_info *from) nip_rt_set_from() argument
245 nip_rt_copy_init(struct nip_rt_info *rt, struct nip_rt_info *ort) nip_rt_copy_init() argument
264 nip_rt_pcpu_alloc(struct nip_rt_info *rt) nip_rt_pcpu_alloc() argument
278 nip_rt_make_pcpu_route(struct nip_rt_info *rt) nip_rt_make_pcpu_route() argument
376 struct nip_rt_info *rt; nip_route_output_flags() local
410 struct nip_rt_info *rt, *pcpu_rt; nip_pol_route() local
475 struct nip_rt_info *rt = NULL; nip_route_info_create() local
560 __nip_ins_rt(struct nip_rt_info *rt) __nip_ins_rt() argument
574 nip_ins_rt(struct nip_rt_info *rt) nip_ins_rt() argument
583 struct nip_rt_info *rt; nip_route_add() local
599 __nip_del_rt(struct nip_rt_info *rt, struct nl_info *info) __nip_del_rt() argument
620 nip_del_rt(struct nip_rt_info *rt) nip_del_rt() argument
633 struct nip_rt_info *rt; nip_route_del() local
691 struct nip_rt_info *rt = (struct nip_rt_info *)dst; nip_dst_destroy() local
711 nip_choose_neigh_daddr(struct nip_rt_info *rt, struct sk_buff *skb, const void *daddr) nip_choose_neigh_daddr() argument
728 struct nip_rt_info *rt = (struct nip_rt_info *)dst; nip_neigh_lookup() local
777 struct nip_rt_info *rt = (struct nip_rt_info *)dst; nip_dst_ifdown() local
821 struct nip_rt_info *rt; nip_addrconf_dst_alloc() local
854 nip_fib_ifdown(struct nip_rt_info *rt, void *arg) nip_fib_ifdown() argument
979 struct nip_rt_info *rt = fn->nip_route_info; nip_route_show_table() local
[all...]
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dretimer.c23 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in tb_retimer_nvm_read() local
26 pm_runtime_get_sync(&rt->dev); in tb_retimer_nvm_read()
28 if (!mutex_trylock(&rt->tb->lock)) { in tb_retimer_nvm_read()
33 ret = usb4_port_retimer_nvm_read(rt->port, rt->index, offset, val, bytes); in tb_retimer_nvm_read()
34 mutex_unlock(&rt->tb->lock); in tb_retimer_nvm_read()
37 pm_runtime_mark_last_busy(&rt->dev); in tb_retimer_nvm_read()
38 pm_runtime_put_autosuspend(&rt->dev); in tb_retimer_nvm_read()
47 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in tb_retimer_nvm_write() local
50 if (!mutex_trylock(&rt in tb_retimer_nvm_write()
59 tb_retimer_nvm_add(struct tb_retimer *rt) tb_retimer_nvm_add() argument
101 tb_retimer_nvm_validate_and_write(struct tb_retimer *rt) tb_retimer_nvm_validate_and_write() argument
150 struct tb_retimer *rt = tb_to_retimer(dev); device_show() local
159 struct tb_retimer *rt = tb_to_retimer(dev); nvm_authenticate_show() local
178 struct tb_retimer *rt = tb_to_retimer(dev); nvm_authenticate_store() local
229 struct tb_retimer *rt = tb_to_retimer(dev); nvm_version_show() local
248 struct tb_retimer *rt = tb_to_retimer(dev); vendor_show() local
273 struct tb_retimer *rt = tb_to_retimer(dev); tb_retimer_release() local
286 struct tb_retimer *rt; tb_retimer_add() local
367 tb_retimer_remove(struct tb_retimer *rt) tb_retimer_remove() argument
382 struct tb_retimer *rt = tb_to_retimer(dev); retimer_match() local
449 struct tb_retimer *rt; tb_retimer_scan() local
466 struct tb_retimer *rt = tb_to_retimer(dev); remove_retimer() local
[all...]
/kernel/linux/linux-5.10/sound/usb/hiface/
H A Dpcm.c112 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument
114 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate()
172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local
173 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream()
176 return &rt->playback; in hiface_pcm_get_substream()
183 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument
187 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop()
188 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop()
192 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop()
195 &rt in hiface_pcm_stream_stop()
204 hiface_pcm_stream_start(struct pcm_runtime *rt) hiface_pcm_stream_start() argument
305 struct pcm_runtime *rt = out_urb->chip->pcm; hiface_pcm_out_urb_handler() local
351 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_open() local
394 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_close() local
418 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_prepare() local
455 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_trigger() local
485 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_pointer() local
530 struct pcm_runtime *rt = chip->pcm; hiface_pcm_abort() local
543 struct pcm_runtime *rt = chip->pcm; hiface_pcm_destroy() local
555 struct pcm_runtime *rt = pcm->private_data; hiface_pcm_free() local
566 struct pcm_runtime *rt; hiface_pcm_init() local
[all...]
/kernel/linux/linux-6.6/sound/usb/hiface/
H A Dpcm.c112 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument
114 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate()
172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local
173 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream()
176 return &rt->playback; in hiface_pcm_get_substream()
183 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument
187 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop()
188 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop()
192 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop()
195 &rt in hiface_pcm_stream_stop()
204 hiface_pcm_stream_start(struct pcm_runtime *rt) hiface_pcm_stream_start() argument
305 struct pcm_runtime *rt = out_urb->chip->pcm; hiface_pcm_out_urb_handler() local
351 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_open() local
394 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_close() local
418 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_prepare() local
455 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_trigger() local
485 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); hiface_pcm_pointer() local
530 struct pcm_runtime *rt = chip->pcm; hiface_pcm_abort() local
543 struct pcm_runtime *rt = chip->pcm; hiface_pcm_destroy() local
555 struct pcm_runtime *rt = pcm->private_data; hiface_pcm_free() local
566 struct pcm_runtime *rt; hiface_pcm_init() local
[all...]
/kernel/liteos_m/testsuites/unittest/xts/time/
H A Dsleep_test.c71 int rt = clock_nanosleep(cid, 0, &req, &rem); variable
73 ICUNIT_ASSERT_EQUAL(rt, EINVAL, rt);
87 int rt; variable
90 rt = clock_nanosleep(id, 0, &req, &rem);
91 ICUNIT_ASSERT_EQUAL(rt, EINVAL, rt);
94 rt = clock_nanosleep(id, 0, &req, &rem);
95 ICUNIT_ASSERT_EQUAL(rt, EINVAL, rt);
[all...]
/kernel/linux/linux-6.6/net/mctp/test/
H A Droute-test.c8 struct mctp_route rt; member
12 static int mctp_test_route_output(struct mctp_route *rt, struct sk_buff *skb) in mctp_test_route_output() argument
14 struct mctp_test_route *test_rt = container_of(rt, struct mctp_test_route, rt); in mctp_test_route_output()
24 struct mctp_test_route *rt; in mctp_route_test_alloc() local
26 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in mctp_route_test_alloc()
27 if (!rt) in mctp_route_test_alloc()
30 INIT_LIST_HEAD(&rt->rt in mctp_route_test_alloc()
44 struct mctp_test_route *rt; mctp_test_create_route() local
63 mctp_test_route_destroy(struct kunit *test, struct mctp_test_route *rt) mctp_test_route_destroy() argument
133 struct mctp_test_route *rt; mctp_test_fragment() local
237 struct mctp_test_route *rt; mctp_test_rx_input() local
289 struct mctp_test_route *rt; __mctp_route_test_init() local
315 __mctp_route_test_fini(struct kunit *test, struct mctp_test_dev *dev, struct mctp_test_route *rt, struct socket *sock) __mctp_route_test_fini() argument
335 struct mctp_test_route *rt; mctp_test_route_input_sk() local
405 struct mctp_test_route *rt; mctp_test_route_input_sk_reasm() local
539 struct mctp_test_route *rt; mctp_test_route_input_sk_keys() local
[all...]

Completed in 13 milliseconds

12345678910>>...28