/linux-master/arch/mips/ralink/ |
H A D | timer.c | 42 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) argument 44 __raw_writel(val, rt->membase + reg); 47 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) argument 49 return __raw_readl(rt->membase + reg); 54 struct rt_timer *rt = (struct rt_timer *) _rt; local 56 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); 57 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); 63 static int rt_timer_request(struct rt_timer *rt) argument 76 rt_timer_config(struct rt_timer *rt, unsigned long divisor) argument 88 rt_timer_enable(struct rt_timer *rt) argument 103 struct rt_timer *rt; local [all...] |
/linux-master/net/x25/ |
H A D | x25_route.c | 29 struct x25_route *rt; local 34 list_for_each_entry(rt, &x25_route_list, node) { 35 if (!memcmp(&rt->address, address, sigdigits) && 36 rt->sigdigits == sigdigits) 40 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); 42 if (!rt) 45 strcpy(rt->address.x25_addr, "000000000000000"); 46 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); 48 rt 66 __x25_remove_route(struct x25_route *rt) argument 77 struct x25_route *rt; local 100 struct x25_route *rt; local 137 struct x25_route *rt, *use = NULL; local 162 struct x25_route_struct rt; local 195 struct x25_route *rt; local [all...] |
/linux-master/sound/usb/6fire/ |
H A D | midi.c | 24 struct midi_runtime *rt = urb->context; local 28 spin_lock_irqsave(&rt->out_lock, flags); 30 if (rt->out) { 31 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, 34 rt->out_buffer[1] = ret + 2; 35 rt->out_buffer[3] = rt->out_serial++; 44 rt->out = NULL; 46 spin_unlock_irqrestore(&rt 49 usb6fire_midi_in_received( struct midi_runtime *rt, u8 *data, int length) argument 73 struct midi_runtime *rt = alsa_sub->rmidi->private_data; local 107 struct midi_runtime *rt = alsa_sub->rmidi->private_data; local 127 struct midi_runtime *rt = alsa_sub->rmidi->private_data; local 154 struct midi_runtime *rt = kzalloc(sizeof(struct midi_runtime), local 201 struct midi_runtime *rt = chip->midi; local 209 struct midi_runtime *rt = chip->midi; local [all...] |
H A D | pcm.c | 70 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) argument 73 struct control_runtime *ctrl_rt = rt->chip->control; 78 dev_err(&rt->chip->dev->dev, 80 rates[rt->rate]); 84 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); 86 dev_err(&rt->chip->dev->dev, 88 rates[rt->rate]); 95 dev_err(&rt->chip->dev->dev, 97 rates[rt->rate]); 104 dev_err(&rt 120 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 131 usb6fire_pcm_stream_stop(struct pcm_runtime *rt) argument 151 usb6fire_pcm_stream_start(struct pcm_runtime *rt) argument 198 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); local 245 struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance); local 290 struct pcm_runtime *rt = in_urb->chip->pcm; local 378 struct pcm_runtime *rt = urb->chip->pcm; local 388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 424 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 451 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 497 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 529 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 568 usb6fire_pcm_buffers_init(struct pcm_runtime *rt) argument 587 usb6fire_pcm_buffers_destroy(struct pcm_runtime *rt) argument 602 struct pcm_runtime *rt = local 656 struct pcm_runtime *rt = chip->pcm; local 678 struct pcm_runtime *rt = chip->pcm; local [all...] |
H A D | control.c | 60 static void usb6fire_control_output_vol_update(struct control_runtime *rt) argument 62 struct comm_runtime *comm_rt = rt->chip->comm; 67 if (!(rt->ovol_updated & (1 << i))) { 69 180 - rt->output_vol[i]); 70 rt->ovol_updated |= 1 << i; 74 static void usb6fire_control_output_mute_update(struct control_runtime *rt) argument 76 struct comm_runtime *comm_rt = rt->chip->comm; 79 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); 82 static void usb6fire_control_input_vol_update(struct control_runtime *rt) argument 84 struct comm_runtime *comm_rt = rt 96 usb6fire_control_line_phono_update(struct control_runtime *rt) argument 105 usb6fire_control_opt_coax_update(struct control_runtime *rt) argument 114 usb6fire_control_set_rate(struct control_runtime *rt, int 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) argument 160 usb6fire_control_streaming_update(struct control_runtime *rt) argument 188 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 218 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 235 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 262 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 292 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 315 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 332 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 345 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 359 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 373 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 381 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 395 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); local 516 usb6fire_control_add_virtual( struct control_runtime *rt, struct snd_card *card, char *name, const struct snd_kcontrol_new *elems) argument 554 struct control_runtime *rt = kzalloc(sizeof(struct control_runtime), local [all...] |
H A D | comm.c | 21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, argument 26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); 30 urb->dev = rt->chip->dev; 35 struct comm_runtime *rt = urb->context; local 36 struct midi_runtime *midi_rt = rt->chip->midi; 39 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ 42 rt->receiver_buffer + 2, 43 rt->receiver_buffer[1]); 46 if (!rt->chip->shutdown) { 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) argument 144 struct comm_runtime *rt = kzalloc(sizeof(struct comm_runtime), local 187 struct comm_runtime *rt = chip->comm; local 195 struct comm_runtime *rt = chip->comm; local [all...] |
H A D | control.h | 30 int (*update_streaming)(struct control_runtime *rt); 31 int (*set_rate)(struct control_runtime *rt, int rate); 32 int (*set_channels)(struct control_runtime *rt, int n_analog_out,
|
H A D | comm.h | 27 void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer, 30 int (*write8)(struct comm_runtime *rt, u8 request, u8 reg, u8 value); 31 int (*write16)(struct comm_runtime *rt, u8 request, u8 reg,
|
/linux-master/include/linux/sunrpc/ |
H A D | timer.h | 23 extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo); 24 extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m); 25 extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer); 27 static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) argument 32 t = &rt->ntimeouts[timer-1]; 43 static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) argument 47 return rt->ntimeouts[timer-1];
|
/linux-master/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, argument 32 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size); 38 struct tb_retimer *rt = tb_to_retimer(nvm->dev); local 41 pm_runtime_get_sync(&rt->dev); 43 if (!mutex_trylock(&rt->tb->lock)) { 48 ret = tb_retimer_nvm_read(rt, offset, val, bytes); 49 mutex_unlock(&rt->tb->lock); 52 pm_runtime_mark_last_busy(&rt 61 struct tb_retimer *rt = tb_to_retimer(nvm->dev); local 73 tb_retimer_nvm_add(struct tb_retimer *rt) argument 108 tb_retimer_nvm_validate_and_write(struct tb_retimer *rt) argument 130 tb_retimer_nvm_authenticate(struct tb_retimer *rt, bool auth_only) argument 164 struct tb_retimer *rt = tb_to_retimer(dev); local 173 struct tb_retimer *rt = tb_to_retimer(dev); local 248 struct tb_retimer *rt = tb_to_retimer(dev); local 314 struct tb_retimer *rt = tb_to_retimer(dev); local 333 struct tb_retimer *rt = tb_to_retimer(dev); local 358 struct tb_retimer *rt = tb_to_retimer(dev); local 371 struct tb_retimer *rt; local 443 tb_retimer_remove(struct tb_retimer *rt) argument 458 struct tb_retimer *rt = tb_to_retimer(dev); local 531 struct tb_retimer *rt; local 548 struct tb_retimer *rt = tb_to_retimer(dev); local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_ipv6_route.c | 15 struct fib6_info *rt = ctx->rt; local 21 if (rt == (void *)0) 24 fib6_nh = &rt->fib6_nh[0]; 25 flags = rt->fib6_flags; 28 nh = rt->nh; 29 if (rt->nh) 32 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_dst.addr, rt->fib6_dst.plen); 35 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt [all...] |
/linux-master/sound/aoa/ |
H A D | aoa-gpio.h | 24 void (*init)(struct gpio_runtime *rt); 25 void (*exit)(struct gpio_runtime *rt); 28 void (*all_amps_off)(struct gpio_runtime *rt); 30 void (*all_amps_restore)(struct gpio_runtime *rt); 32 void (*set_headphone)(struct gpio_runtime *rt, int on); 33 void (*set_speakers)(struct gpio_runtime *rt, int on); 34 void (*set_lineout)(struct gpio_runtime *rt, int on); 35 void (*set_master)(struct gpio_runtime *rt, int on); 37 int (*get_headphone)(struct gpio_runtime *rt); 38 int (*get_speakers)(struct gpio_runtime *rt); [all...] |
/linux-master/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) argument 42 if (unlikely(!rt)) retur 49 pmf_gpio_all_amps_off(struct gpio_runtime *rt) argument 61 pmf_gpio_all_amps_restore(struct gpio_runtime *rt) argument 83 pmf_gpio_init(struct gpio_runtime *rt) argument 95 pmf_gpio_exit(struct gpio_runtime *rt) argument 129 pmf_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) argument 208 pmf_get_detect(struct gpio_runtime *rt, enum notify_type type) argument [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) argument 170 if (unlikely(!rt)) return; 183 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) argument 197 ftr_gpio_all_amps_restore(struct gpio_runtime *rt) argument 232 ftr_gpio_init(struct gpio_runtime *rt) argument 283 ftr_gpio_exit(struct gpio_runtime *rt) argument 310 ftr_set_notify(struct gpio_runtime *rt, enum notify_type type, notify_func_t notify, void *data) argument 377 ftr_get_detect(struct gpio_runtime *rt, enum notify_type type) argument [all...] |
/linux-master/drivers/leds/flash/ |
H A D | leds-rt8515.c | 66 static void rt8515_gpio_led_off(struct rt8515 *rt) argument 68 gpiod_set_value(rt->enable_flash, 0); 69 gpiod_set_value(rt->enable_torch, 0); 94 struct rt8515 *rt = to_rt8515(fled); local 96 mutex_lock(&rt->lock); 100 rt8515_gpio_led_off(rt); 103 rt8515_gpio_brightness_commit(rt->enable_torch, brightness); 106 gpiod_set_value(rt->enable_torch, 1); 109 mutex_unlock(&rt->lock); 117 struct rt8515 *rt local 146 struct rt8515 *rt = to_rt8515(fled); local 168 struct rt8515 *rt = from_timer(rt, t, powerdown_timer); local 174 rt8515_init_flash_timeout(struct rt8515 *rt) argument 193 rt8515_init_v4l2_flash_config(struct rt8515 *rt, struct v4l2_flash_config *v4l2_sd_cfg) argument 214 rt8515_v4l2_flash_release(struct rt8515 *rt) argument 220 rt8515_init_v4l2_flash_config(struct rt8515 *rt, struct v4l2_flash_config *v4l2_sd_cfg) argument 225 rt8515_v4l2_flash_release(struct rt8515 *rt) 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) argument 280 struct rt8515 *rt; local 372 struct rt8515 *rt = platform_get_drvdata(pdev); local [all...] |
/linux-master/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] " [all...] |
/linux-master/net/sunrpc/ |
H A D | timer.c | 31 * @rt: context to initialize 35 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) argument 40 rt->timeo = timeo; 45 rt->srtt[i] = init; 46 rt->sdrtt[i] = RPC_RTO_INIT; 47 rt->ntimeouts[i] = 0; 54 * @rt: context to update 61 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) argument 75 srtt = (long *)&rt->srtt[timer]; 82 sdrtt = (long *)&rt 110 rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) argument [all...] |
/linux-master/sound/usb/hiface/ |
H A D | pcm.c | 112 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) argument 114 struct usb_device *device = rt->chip->dev; 172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 173 struct device *device = &rt->chip->dev->dev; 176 return &rt->playback; 183 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) argument 187 if (rt->stream_state != STREAM_DISABLED) { 188 rt->stream_state = STREAM_STOPPING; 192 &rt->out_urbs[i].submitted, 100); 195 &rt 204 hiface_pcm_stream_start(struct pcm_runtime *rt) argument 305 struct pcm_runtime *rt = out_urb->chip->pcm; local 351 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 394 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 418 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 455 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 485 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); local 530 struct pcm_runtime *rt = chip->pcm; local 543 struct pcm_runtime *rt = chip->pcm; local 555 struct pcm_runtime *rt = pcm->private_data; local 566 struct pcm_runtime *rt; local [all...] |
/linux-master/net/ipv4/ |
H A D | xfrm4_policy.c | 26 struct rtable *rt; local 36 rt = __ip_route_output_key(net, fl4); 37 if (!IS_ERR(rt)) 38 return &rt->dst; 40 return ERR_CAST(rt); 72 struct rtable *rt = dst_rtable(xdst->route); local 75 xdst->u.rt.rt_iif = fl4->flowi4_iif; 82 xdst->u.rt.rt_is_input = rt->rt_is_input; 83 xdst->u.rt [all...] |
H A D | netfilter.c | 23 struct rtable *rt; local 52 rt = ip_route_output_key(net, &fl4); 53 if (IS_ERR(rt)) 54 return PTR_ERR(rt); 58 skb_dst_set(skb, &rt->dst); 89 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); local 90 if (IS_ERR(rt)) 91 return PTR_ERR(rt); 92 *dst = &rt->dst;
|
/linux-master/drivers/infiniband/core/ |
H A D | restrack.c | 25 struct rdma_restrack_root *rt; local 28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); 32 rt = dev->res; 35 xa_init_flags(&rt[i].xa, XA_FLAGS_ALLOC); 46 struct rdma_restrack_root *rt = dev->res; local 55 kfree(rt); 67 struct rdma_restrack_root *rt = &dev->res[type]; local 69 XA_STATE(xas, &rt->xa, 0); 72 xa_lock(&rt->xa); 74 if (xa_get_mark(&rt 182 struct rdma_restrack_root *rt; local 246 struct rdma_restrack_root *rt = &dev->res[type]; local 284 struct rdma_restrack_root *rt; local [all...] |
/linux-master/net/bridge/ |
H A D | br_nf_core.c | 74 struct rtable *rt = &br->fake_rtable; local 76 rcuref_init(&rt->dst.__rcuref, 1); 77 rt->dst.dev = br->dev; 78 dst_init_metrics(&rt->dst, br_dst_default_metrics, true); 79 rt->dst.flags = DST_NOXFRM | DST_FAKE_RTABLE; 80 rt->dst.ops = &fake_dst_ops;
|
/linux-master/arch/mips/include/asm/ |
H A D | uasm.h | 210 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) 211 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) 212 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) 213 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) 214 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, r [all...] |
/linux-master/net/mctp/test/ |
H A D | route-test.c | 8 struct mctp_route rt; member in struct:mctp_test_route 12 static int mctp_test_route_output(struct mctp_route *rt, struct sk_buff *skb) argument 14 struct mctp_test_route *test_rt = container_of(rt, struct mctp_test_route, rt); 24 struct mctp_test_route *rt; local 26 rt = kzalloc(sizeof(*rt), GFP_KERNEL); 27 if (!rt) 30 INIT_LIST_HEAD(&rt->rt 44 struct mctp_test_route *rt; local 63 mctp_test_route_destroy(struct kunit *test, struct mctp_test_route *rt) argument 145 struct mctp_test_route *rt; local 249 struct mctp_test_route *rt; local 300 struct mctp_test_route *rt; local 328 __mctp_route_test_fini(struct kunit *test, struct mctp_test_dev *dev, struct mctp_test_route *rt, struct socket *sock) argument 348 struct mctp_test_route *rt; local 417 struct mctp_test_route *rt; local 550 struct mctp_test_route *rt; local 684 struct mctp_test_route *rt; member in struct:test_net 849 struct mctp_test_route *rt; local 880 mctp_test_flow_fini(struct kunit *test, struct mctp_test_dev *dev, struct mctp_test_route *rt, struct socket *sock) argument 892 struct mctp_test_route *rt; local 926 struct mctp_test_route *rt; local 979 struct mctp_test_route *rt; local [all...] |
/linux-master/arch/arm/mm/ |
H A D | cache-v7m.S | 25 .macro v7m_cache_read, rt, reg 26 movw \rt, #:lower16:BASEADDR_V7M_SCB + \reg 27 movt \rt, #:upper16:BASEADDR_V7M_SCB + \reg 28 ldr \rt, [\rt] 31 .macro v7m_cacheop, rt, tmp, op, c = al 34 str\c \rt, [\tmp] 38 .macro read_ccsidr, rt 39 v7m_cache_read \rt, V7M_SCB_CCSIDR 42 .macro read_clidr, rt [all...] |