/openbmc/linux/sound/usb/6fire/ |
H A D | midi.c | 24 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->out_lock, flags); in usb6fire_midi_out_handler() 50 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument 54 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received() [all …]
|
H A D | pcm.c | 70 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->chip->dev->dev, in usb6fire_pcm_set_rate() [all …]
|
H A D | control.c | 60 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->chip->comm; in usb6fire_control_input_vol_update() [all …]
|
H A D | comm.c | 21 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, u8 request, in usb6fire_comm_write8() argument [all …]
|
/openbmc/linux/arch/mips/ralink/ |
H A D | timer.c | 37 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 60 int err = request_irq(rt->irq, rt_timer_irq, 0, in rt_timer_request() 61 dev_name(rt->dev), rt); in rt_timer_request() [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | retimer.c | 21 * @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->dev); in nvm_read() 53 pm_runtime_put_autosuspend(&rt->dev); in nvm_read() [all …]
|
/openbmc/linux/sound/aoa/core/ |
H A D | gpio-pmf.c | 14 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)) return; in pmf_gpio_set_hw_reset() [all …]
|
H A D | gpio-feature.c | 133 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 [all …]
|
/openbmc/linux/net/x25/ |
H A D | x25_route.c | 29 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->sigdigits = sigdigits; in x25_add_route() 49 rt->dev = dev; in x25_add_route() [all …]
|
/openbmc/linux/arch/powerpc/xmon/ |
H A D | spu-insns.h | 15 RRR | op | RC | RB | RA | RT | RI7 | op | I7 | RA | RT | 21 RI8 | op | I8 | RA | RT | RI10 | op | I10 | RA | RT | 27 RI16 | op | I16 | RT | RI18 | op | I18 | RT | 33 RR | op | RB | RA | RT | LBT | op |RO| I16 | RO | 53 ASM_RRR mnemonic RC, RA, RB, RT ASM_RI4 mnemonic RT, RA, I4 54 ASM_RI7 mnemonic RT, RA, I7 57 ASM_RUI8 mnemonic RT, RA, UI8 ASM_AI10 mnemonic RA, I10 58 ASM_RI10 mnemonic RT, RA, R10 59 ASM_RI10IDX mnemonic RT, I10(RA) 62 ASM_I16W mnemonic I16W ASM_RI18 mnemonic RT, I18 [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | tx79_translate.c | 44 * MADD [rd,] rs, rt Multiply/Add 45 * MADDU [rd,] rs, rt Multiply/Add Unsigned 46 * MULT [rd,] rs, rt Multiply (3-operand) 47 * MULTU [rd,] rs, rt Multiply Unsigned (3-operand) 53 * MULT1 [rd,] rs, rt Multiply Pipeline 1 54 * MULTU1 [rd,] rs, rt Multiply Unsigned Pipeline 1 55 * DIV1 rs, rt Divide Pipeline 1 56 * DIVU1 rs, rt Divide Unsigned Pipeline 1 57 * MADD1 [rd,] rs, rt Multiply-Add Pipeline 1 58 * MADDU1 [rd,] rs, rt Multiply-Add Unsigned Pipeline 1 [all …]
|
H A D | nanomips_translate.c.inc | 986 static void gen_ext(DisasContext *ctx, int wordsz, int rd, int rs, int rt, 989 gen_align_bits(ctx, wordsz, rd, rs, rt, wordsz - shift); 1064 static void gen_save(DisasContext *ctx, uint8_t rt, uint8_t count, 1073 int this_rt = use_gp ? 28 : (rt & 0x10) | ((rt + counter) & 0x1f); 1086 static void gen_restore(DisasContext *ctx, uint8_t rt, uint8_t count, 1095 int this_rt = use_gp ? 28 : (rt & 0x10) | ((rt + counter) & 0x1f); 1111 int rs, int rt, int32_t offset) 1123 if (rs != rt) { 1125 gen_load_gpr(t1, rt); 1184 if (rt > 0) { [all …]
|
/openbmc/linux/drivers/leds/flash/ |
H A D | leds-rt8515.c | 66 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 = to_rt8515(fled); in rt8515_led_flash_strobe_set() local [all …]
|
/openbmc/linux/sound/usb/hiface/ |
H A D | pcm.c | 112 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->out_urbs[i].submitted); in hiface_pcm_stream_stop() [all …]
|
/openbmc/linux/arch/mips/mm/ |
H A D | uasm-mips.c | 51 [insn_addiu] = {M(addiu_op, 0, 0, 0, 0, 0), RS | RT | SIMM}, 52 [insn_addu] = {M(spec_op, 0, 0, 0, 0, addu_op), RS | RT | RD}, 53 [insn_and] = {M(spec_op, 0, 0, 0, 0, and_op), RS | RT | RD}, 54 [insn_andi] = {M(andi_op, 0, 0, 0, 0, 0), RS | RT | UIMM}, 55 [insn_bbit0] = {M(lwc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM}, 56 [insn_bbit1] = {M(swc2_op, 0, 0, 0, 0, 0), RS | RT | BIMM}, 57 [insn_beq] = {M(beq_op, 0, 0, 0, 0, 0), RS | RT | BIMM}, 58 [insn_beql] = {M(beql_op, 0, 0, 0, 0, 0), RS | RT | BIMM}, 65 [insn_bne] = {M(bne_op, 0, 0, 0, 0, 0), RS | RT | BIMM}, 68 [insn_cache] = {M(cache_op, 0, 0, 0, 0, 0), RS | RT | SIMM}, [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | uasm.h | 212 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument 213 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument 214 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument 215 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument 216 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument 217 # define UASM_i_MFC0(buf, rt, rd...) uasm_i_dmfc0(buf, rt, rd) argument 218 # define UASM_i_MTC0(buf, rt, rd...) uasm_i_dmtc0(buf, rt, rd) argument 219 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument 220 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument 221 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument [all …]
|
H A D | processor.h | 158 /* DMFC2 rt, 0x0201 */ 160 /* DMFC2 rt, 0x0202 (Set with DMTC2 rt, 0x1202) */ 162 /* DMFC2 rt, 0x0200 (set with DMTC2 rt, 0x4200) */ 164 /* DMFC2 rt, 0x0402; DMFC2 rt, 0x040A */ 166 /* DMFC2 rt, 0x0084 */ 168 /* DMFC2 rt, 0x0080; DMFC2 rt, 0x0081; DMFC2 rt, 0x0082 */ 170 /* DMFC2 rt, 0x0088 (Set with DMTC2 rt, 0x0098) */ 172 /* DMFC2 rt, 0x0111 (FIXME: Read Pass1 Errata) */ 174 /* DMFC2 rt, 0x0102; DMFC2 rt, 0x0103 */ 176 /* DMFC2 rt, 0x0104; DMFC2 rt, 0x0105; DMFC2 rt, 0x0106; DMFC2 [all …]
|
/openbmc/linux/net/mctp/test/ |
H A D | route-test.c | 8 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.list); in mctp_route_test_alloc() 31 refcount_set(&rt->rt.refs, 1); in mctp_route_test_alloc() 32 rt->rt.output = mctp_test_route_output; in mctp_route_test_alloc() 34 skb_queue_head_init(&rt->pkts); in mctp_route_test_alloc() [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-crypto.h | 34 "dmtc2 %[rt],0x0048+" STR(index) \ 36 : [rt] "d" (cpu_to_be64(value))); \ 47 "dmfc2 %[rt],0x0048+" STR(index) \ 48 : [rt] "=d" (__value) \ 60 "dmtc2 %[rt],0x0040+" STR(index) \ 62 : [rt] "d" (cpu_to_be64(value))); \ 71 "dmtc2 %[rt],0x4047" \ 73 : [rt] "d" (cpu_to_be64(value))); \ 82 "dmtc2 %[rt],0x4057" \ 84 : [rt] "d" (value)); \ [all …]
|
/openbmc/qemu/hw/mips/ |
H A D | bootloader.c | 84 bl_reg rs, bl_reg rt, bl_reg rd, in bl_gen_r_type() argument 92 insn = deposit32(insn, 16, 5, rt); in bl_gen_r_type() 104 bl_reg rs, bl_reg rt, uint16_t imm) in bl_gen_i_type() argument 111 insn = deposit32(insn, 16, 5, rt); in bl_gen_i_type() 121 static void bl_gen_dsll(void **p, bl_reg rd, bl_reg rt, uint8_t sa) in bl_gen_dsll() argument 124 bl_gen_r_type(p, 0, 0, rt, rd, sa, 0x38); in bl_gen_dsll() 145 static void bl_gen_lui_nm(void **ptr, bl_reg rt, uint32_t imm20) in bl_gen_lui_nm() argument 151 insn = deposit32(insn, 21, 5, rt); in bl_gen_lui_nm() 159 static void bl_gen_lui(void **p, bl_reg rt, uint16_t imm) in bl_gen_lui() argument 162 bl_gen_i_type(p, 0x0f, 0, rt, imm); in bl_gen_lui() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | route.c | 111 struct fib6_info *rt, struct dst_entry *dst, 139 void rt6_uncached_list_add(struct rt6_info *rt) in rt6_uncached_list_add() argument 143 rt->dst.rt_uncached_list = ul; in rt6_uncached_list_add() 146 list_add_tail(&rt->dst.rt_uncached, &ul->head); in rt6_uncached_list_add() 150 void rt6_uncached_list_del(struct rt6_info *rt) in rt6_uncached_list_del() argument 152 if (!list_empty(&rt->dst.rt_uncached)) { in rt6_uncached_list_del() 153 struct uncached_list *ul = rt->dst.rt_uncached_list; in rt6_uncached_list_del() 156 list_del_init(&rt->dst.rt_uncached); in rt6_uncached_list_del() 167 struct rt6_info *rt, *safe; in rt6_uncached_list_flush_dev() local 173 list_for_each_entry_safe(rt, safe, &ul->head, dst.rt_uncached) { in rt6_uncached_list_flush_dev() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | xfrm4_policy.c | 23 struct rtable *rt; in __xfrm4_dst_lookup() local 36 rt = __ip_route_output_key(params->net, fl4); in __xfrm4_dst_lookup() 37 if (!IS_ERR(rt)) in __xfrm4_dst_lookup() 38 return &rt->dst; in __xfrm4_dst_lookup() 40 return ERR_CAST(rt); in __xfrm4_dst_lookup() 68 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst() local 71 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst() 78 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst() 79 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst() 81 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst() [all …]
|
/openbmc/qemu/disas/ |
H A D | nanomips.c | 424 static char *save_restore_list(uint64 rt, uint64 count, uint64 gp, in save_restore_list() argument 433 uint64 this_rt = use_gp ? 28 : ((rt & 0x10) | (rt + counter)) & 0x1f; in save_restore_list() 1347 uint64 rt = extract_rt_25_24_23_22_21(instruction); in ADDIU_32__cond() local 1348 return rt != 0; in ADDIU_32__cond() 1354 uint64 rt = extract_rt_9_8_7_6_5(instruction); in ADDIU_RS5__cond() local 1355 return rt != 0; in ADDIU_RS5__cond() 1361 uint64 rt = extract_rt_25_24_23_22_21(instruction); in BALRSC_cond() local 1362 return rt != 0; in BALRSC_cond() 1386 uint64 rt = extract_rt_9_8_7_6_5(instruction); in MOVE_cond() local 1387 return rt != 0; in MOVE_cond() [all …]
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | sha1-powerpc-asm.S | 13 #define LWZ(rt, d, ra) \ argument 14 lwz rt,d(ra) 16 #define LWZ(rt, d, ra) \ argument 17 li rt,d; \ 18 lwbrx rt,rt,ra 26 #define RT(t) ((((t)+5)%6)+7) macro 42 rotlwi RT(t),RA(t),5; \ 45 add RT(t),RT(t),r6; \ 49 add RT(t),RT(t),r14 54 rotlwi RT(t),RA(t),5; \ [all …]
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra234-p3740-0002+p3701-0008.dts | 216 widgets = "Microphone", "CVB-RT MIC Jack", 217 "Microphone", "CVB-RT MIC", 218 "Headphone", "CVB-RT HP Jack", 219 "Speaker", "CVB-RT SPK"; 222 "CVB-RT AIF1 Playback", "I2S4 DAP-Playback", 223 "I2S4 DAP-Capture", "CVB-RT AIF1 Capture", 225 "CVB-RT HP Jack", "CVB-RT HPOL", 226 "CVB-RT HP Jack", "CVB-RT HPOR", 227 "CVB-RT IN1P", "CVB-RT MIC Jack", 228 "CVB-RT IN2P", "CVB-RT MIC Jack", [all …]
|