/drivers/thunderbolt/ |
D | retimer.c | 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() 61 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in nvm_write() local [all …]
|
D | nvm.c | 201 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in intel_retimer_nvm_version() local 205 ret = tb_retimer_nvm_read(rt, INTEL_NVM_VERSION, &val, sizeof(val)); in intel_retimer_nvm_version() 212 ret = tb_retimer_nvm_read(rt, INTEL_NVM_FLASH_SIZE, &val, sizeof(val)); in intel_retimer_nvm_version() 225 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in intel_retimer_nvm_validate() local 257 if (device != rt->device) in intel_retimer_nvm_validate() 309 const struct tb_retimer *rt = tb_to_retimer(dev); in tb_nvm_alloc() local 314 if (v->vendor == rt->vendor) { in tb_nvm_alloc() 322 rt->vendor); in tb_nvm_alloc()
|
/drivers/leds/flash/ |
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 …]
|
/drivers/net/appletalk/ |
D | ipddp.c | 56 static int ipddp_delete(struct ipddp_route *rt); 57 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt); 124 struct ipddp_route *rt; in ipddp_xmit() local 135 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit() 137 if(rt->ip == paddr) in ipddp_xmit() 140 if(rt == NULL) { in ipddp_xmit() 145 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit() 164 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit() 171 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit() 174 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit() [all …]
|
/drivers/infiniband/core/ |
D | restrack.c | 25 struct rdma_restrack_root *rt; in rdma_restrack_init() local 28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init() 32 rt = dev->res; in rdma_restrack_init() 35 xa_init_flags(&rt[i].xa, XA_FLAGS_ALLOC); in rdma_restrack_init() 46 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean() local 55 kfree(rt); in rdma_restrack_clean() 65 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count() local 67 XA_STATE(xas, &rt->xa, 0); in rdma_restrack_count() 70 xa_lock(&rt->xa); in rdma_restrack_count() 73 xa_unlock(&rt->xa); in rdma_restrack_count() [all …]
|
D | counters.c | 285 struct rdma_restrack_root *rt; in rdma_get_counter_auto_mode() local 289 rt = &dev->res[RDMA_RESTRACK_COUNTER]; in rdma_get_counter_auto_mode() 290 xa_lock(&rt->xa); in rdma_get_counter_auto_mode() 291 xa_for_each(&rt->xa, id, res) { in rdma_get_counter_auto_mode() 305 xa_unlock(&rt->xa); in rdma_get_counter_auto_mode() 396 struct rdma_restrack_root *rt; in get_running_counters_hwstat_sum() local 401 rt = &dev->res[RDMA_RESTRACK_COUNTER]; in get_running_counters_hwstat_sum() 402 xa_lock(&rt->xa); in get_running_counters_hwstat_sum() 403 xa_for_each(&rt->xa, id, res) { in get_running_counters_hwstat_sum() 407 xa_unlock(&rt->xa); in get_running_counters_hwstat_sum() [all …]
|
D | addr.c | 351 struct rtable *rt; in has_gateway() local 355 rt = container_of(dst, struct rtable, dst); in has_gateway() 356 return rt->rt_uses_gateway; in has_gateway() 395 struct rtable *rt; in addr4_resolve() local 403 rt = ip_route_output_key(addr->net, &fl4); in addr4_resolve() 404 ret = PTR_ERR_OR_ZERO(rt); in addr4_resolve() 410 addr->hoplimit = ip4_dst_hoplimit(&rt->dst); in addr4_resolve() 412 *prt = rt; in addr4_resolve() 561 struct rtable *rt = NULL; in addr_resolve() local 588 ret = addr4_resolve(src_in, dst_in, addr, &rt); in addr_resolve() [all …]
|
/drivers/acpi/ |
D | acpi_tad.c | 69 static int acpi_tad_set_real_time(struct device *dev, struct acpi_tad_rt *rt) in acpi_tad_set_real_time() argument 82 if (rt->year < 1900 || rt->year > 9999 || in acpi_tad_set_real_time() 83 rt->month < 1 || rt->month > 12 || in acpi_tad_set_real_time() 84 rt->hour > 23 || rt->minute > 59 || rt->second > 59 || in acpi_tad_set_real_time() 85 rt->tz < -1440 || (rt->tz > 1440 && rt->tz != 2047) || in acpi_tad_set_real_time() 86 rt->daylight > 3) in acpi_tad_set_real_time() 89 args[0].buffer.pointer = (u8 *)rt; in acpi_tad_set_real_time() 90 args[0].buffer.length = sizeof(*rt); in acpi_tad_set_real_time() 104 static int acpi_tad_get_real_time(struct device *dev, struct acpi_tad_rt *rt) in acpi_tad_get_real_time() argument 126 if (out_obj->buffer.length != sizeof(*rt)) in acpi_tad_get_real_time() [all …]
|
/drivers/slimbus/ |
D | stream.c | 102 struct slim_stream_runtime *rt; in slim_stream_allocate() local 104 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in slim_stream_allocate() 105 if (!rt) in slim_stream_allocate() 108 rt->name = kasprintf(GFP_KERNEL, "slim-%s", name); in slim_stream_allocate() 109 if (!rt->name) { in slim_stream_allocate() 110 kfree(rt); in slim_stream_allocate() 114 rt->dev = dev; in slim_stream_allocate() 116 list_add_tail(&rt->node, &dev->stream_list); in slim_stream_allocate() 119 return rt; in slim_stream_allocate() 202 int slim_stream_prepare(struct slim_stream_runtime *rt, in slim_stream_prepare() argument [all …]
|
/drivers/media/radio/ |
D | radio-aimslab.c | 70 struct rtrack *rt = kzalloc(sizeof(struct rtrack), GFP_KERNEL); in rtrack_alloc() local 72 if (rt) in rtrack_alloc() 73 rt->curvol = 0xff; in rtrack_alloc() 74 return rt ? &rt->isa : NULL; in rtrack_alloc() 89 struct rtrack *rt = container_of(isa, struct rtrack, isa); in rtrack_set_pins() local 92 if (!v4l2_ctrl_g_ctrl(rt->isa.mute)) in rtrack_set_pins() 102 outb_p(bits, rt->isa.io); in rtrack_set_pins() 120 struct rtrack *rt = container_of(isa, struct rtrack, isa); in rtrack_s_mute_volume() local 121 int curvol = rt->curvol; in rtrack_s_mute_volume() 140 rt->curvol = vol; in rtrack_s_mute_volume()
|
/drivers/input/touchscreen/ |
D | tsc2007_core.c | 71 u32 rt = 0; in tsc2007_calculate_resistance() local 79 rt = tc->z2 - tc->z1; in tsc2007_calculate_resistance() 80 rt *= tc->x; in tsc2007_calculate_resistance() 81 rt *= tsc->x_plate_ohms; in tsc2007_calculate_resistance() 82 rt /= tc->z1; in tsc2007_calculate_resistance() 83 rt = (rt + 2047) >> 12; in tsc2007_calculate_resistance() 86 return rt; in tsc2007_calculate_resistance() 116 u32 rt; in tsc2007_soft_irq() local 126 rt = tsc2007_calculate_resistance(ts, &tc); in tsc2007_soft_irq() 128 if (!rt && !ts->get_pendown_state) { in tsc2007_soft_irq() [all …]
|
D | 88pm860x-ts.c | 54 int z1, z2, rt = 0; in pm860x_touch_handler() local 69 rt = z2 / z1 - 1; in pm860x_touch_handler() 70 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler() 72 z1, z2, rt); in pm860x_touch_handler() 76 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler()
|
/drivers/media/pci/tw686x/ |
D | tw686x-audio.c | 108 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_open() local 112 rt->hw = tw686x_capture_hw; in tw686x_pcm_open() 114 err = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in tw686x_pcm_open() 134 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_prepare() local 145 if (((dev->audio_rate != rt->rate) || in tw686x_pcm_prepare() 152 if (dev->audio_rate != rt->rate) { in tw686x_pcm_prepare() 155 dev->audio_rate = rt->rate; in tw686x_pcm_prepare() 156 reg = ((125000000 / rt->rate) << 16) + in tw686x_pcm_prepare() 157 ((125000000 % rt->rate) << 16) / rt->rate; in tw686x_pcm_prepare() 173 if (rt->periods < TW686X_AUDIO_PERIODS_MIN || in tw686x_pcm_prepare() [all …]
|
/drivers/net/netdevsim/ |
D | fib.c | 96 struct fib6_info *rt; member 483 const struct fib6_info *rt) in nsim_fib6_rt_nh_find() argument 488 if (fib6_rt_nh->rt == rt) in nsim_fib6_rt_nh_find() 496 struct fib6_info *rt) in nsim_fib6_rt_nh_add() argument 504 fib6_info_hold(rt); in nsim_fib6_rt_nh_add() 505 fib6_rt_nh->rt = rt; in nsim_fib6_rt_nh_add() 513 static void nsim_rt6_release(struct fib6_info *rt) in nsim_rt6_release() argument 515 fib6_info_release(rt); in nsim_rt6_release() 518 static void nsim_rt6_release(struct fib6_info *rt) in nsim_rt6_release() argument 524 const struct fib6_info *rt) in nsim_fib6_rt_nh_del() argument [all …]
|
/drivers/net/wireguard/ |
D | socket.c | 30 struct rtable *rt = NULL; in send4() local 49 rt = dst_cache_get_ip4(cache, &fl.saddr); in send4() 51 if (!rt) { in send4() 61 rt = ip_route_output_flow(sock_net(sock), &fl, sock); in send4() 62 if (unlikely(endpoint->src_if4 && ((IS_ERR(rt) && in send4() 63 PTR_ERR(rt) == -EINVAL) || (!IS_ERR(rt) && in send4() 64 rt->dst.dev->ifindex != endpoint->src_if4)))) { in send4() 70 if (!IS_ERR(rt)) in send4() 71 ip_rt_put(rt); in send4() 72 rt = ip_route_output_flow(sock_net(sock), &fl, sock); in send4() [all …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00.h | 143 u16 rt; member 1101 const u16 rt, const u16 rf, const u16 rev) in rt2x00_set_chip() argument 1103 rt2x00dev->chip.rt = rt; in rt2x00_set_chip() 1108 rt2x00dev->chip.rt, rt2x00dev->chip.rf, in rt2x00_set_chip() 1113 const u16 rt, const u16 rev) in rt2x00_set_rt() argument 1115 rt2x00dev->chip.rt = rt; in rt2x00_set_rt() 1119 rt2x00dev->chip.rt, rt2x00dev->chip.rev); in rt2x00_set_rt() 1130 static inline bool rt2x00_rt(struct rt2x00_dev *rt2x00dev, const u16 rt) in rt2x00_rt() argument 1132 return (rt2x00dev->chip.rt == rt); in rt2x00_rt() 1146 const u16 rt, const u16 rev) in rt2x00_rt_rev() argument [all …]
|
/drivers/bus/ |
D | omap_l3_smx.c | 169 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_0); in omap3_l3_app_irq() 171 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_1); in omap3_l3_app_irq() 176 base = l3->rt + omap3_l3_bases[int_type][err_source]; in omap3_l3_app_irq() 230 l3->rt = ioremap(res->start, resource_size(res)); in omap3_l3_probe() 231 if (!l3->rt) { in omap3_l3_probe() 258 iounmap(l3->rt); in omap3_l3_probe() 270 iounmap(l3->rt); in omap3_l3_remove()
|
/drivers/platform/chrome/ |
D | cros_usbpd_logger.c | 88 struct rtc_time rt; in cros_usbpd_print_log_entry() local 95 rt = rtc_ktime_to_tm(tstamp); in cros_usbpd_print_log_entry() 163 rt.tm_year + 1900, rt.tm_mon + 1, rt.tm_mday, in cros_usbpd_print_log_entry() 164 rt.tm_hour, rt.tm_min, rt.tm_sec, rem, in cros_usbpd_print_log_entry()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 97 struct rtable *rt; in cxgb_find_route() local 101 rt = ip_route_output_ports(&init_net, &fl4, NULL, peer_ip, local_ip, in cxgb_find_route() 104 if (IS_ERR(rt)) in cxgb_find_route() 106 n = dst_neigh_lookup(&rt->dst, &peer_ip); in cxgb_find_route() 112 dst_release(&rt->dst); in cxgb_find_route() 116 return &rt->dst; in cxgb_find_route()
|
/drivers/net/ |
D | geneve.c | 813 struct rtable *rt = NULL; in geneve_get_v4_rt() local 839 rt = dst_cache_get_ip4(dst_cache, &fl4->saddr); in geneve_get_v4_rt() 840 if (rt) in geneve_get_v4_rt() 841 return rt; in geneve_get_v4_rt() 843 rt = ip_route_output_key(geneve->net, fl4); in geneve_get_v4_rt() 844 if (IS_ERR(rt)) { in geneve_get_v4_rt() 848 if (rt->dst.dev == dev) { /* is this necessary? */ in geneve_get_v4_rt() 850 ip_rt_put(rt); in geneve_get_v4_rt() 854 dst_cache_set_ip4(dst_cache, &rt->dst, fl4->saddr); in geneve_get_v4_rt() 855 return rt; in geneve_get_v4_rt() [all …]
|
D | bareudp.c | 299 struct rtable *rt; in bareudp_xmit_skb() local 309 rt = ip_route_output_tunnel(skb, dev, bareudp->net, &saddr, info, in bareudp_xmit_skb() 312 if (IS_ERR(rt)) in bareudp_xmit_skb() 313 return PTR_ERR(rt); in bareudp_xmit_skb() 315 skb_tunnel_check_pmtu(skb, &rt->dst, in bareudp_xmit_skb() 330 min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len + in bareudp_xmit_skb() 342 udp_tunnel_xmit_skb(rt, sock->sk, skb, saddr, info->key.u.ipv4.dst, in bareudp_xmit_skb() 349 dst_release(&rt->dst); in bareudp_xmit_skb() 483 struct rtable *rt; in bareudp_fill_metadata_dst() local 486 rt = ip_route_output_tunnel(skb, dev, bareudp->net, &saddr, in bareudp_fill_metadata_dst() [all …]
|
D | gtp.c | 299 struct rtable *rt; in gtp0_send_echo_resp() local 333 rt = ip4_route_output_gtp(&fl4, gtp->sk0, iph->saddr, iph->daddr); in gtp0_send_echo_resp() 334 if (IS_ERR(rt)) { in gtp0_send_echo_resp() 340 udp_tunnel_xmit_skb(rt, gtp->sk0, skb, in gtp0_send_echo_resp() 343 ip4_dst_hoplimit(&rt->dst), in gtp0_send_echo_resp() 479 struct rtable *rt; in gtp1u_send_echo_resp() local 515 rt = ip4_route_output_gtp(&fl4, gtp->sk1u, iph->saddr, iph->daddr); in gtp1u_send_echo_resp() 516 if (IS_ERR(rt)) { in gtp1u_send_echo_resp() 522 udp_tunnel_xmit_skb(rt, gtp->sk1u, skb, in gtp1u_send_echo_resp() 525 ip4_dst_hoplimit(&rt->dst), in gtp1u_send_echo_resp() [all …]
|
/drivers/net/ppp/ |
D | pptp.c | 164 struct rtable *rt; in pptp_xmit() local 172 rt = pptp_route_output(po, &fl4); in pptp_xmit() 173 if (IS_ERR(rt)) in pptp_xmit() 176 tdev = rt->dst.dev; in pptp_xmit() 183 ip_rt_put(rt); in pptp_xmit() 241 if (ip_dont_fragment(sk, &rt->dst)) in pptp_xmit() 249 iph->ttl = ip4_dst_hoplimit(&rt->dst); in pptp_xmit() 253 skb_dst_set(skb, &rt->dst); in pptp_xmit() 421 struct rtable *rt; in pptp_connect() local 455 rt = pptp_route_output(po, &fl4); in pptp_connect() [all …]
|
/drivers/i2c/busses/ |
D | i2c-synquacer.c | 201 u32 rt = i2c->pclkrate; in synquacer_i2c_hw_init() local 213 ccr_cs = SYNQUACER_I2C_CCR_CS_FAST_MAX_18M(rt); in synquacer_i2c_hw_init() 214 csr_cs = SYNQUACER_I2C_CSR_CS_FAST_MAX_18M(rt); in synquacer_i2c_hw_init() 216 ccr_cs = SYNQUACER_I2C_CCR_CS_FAST_MIN_18M(rt); in synquacer_i2c_hw_init() 217 csr_cs = SYNQUACER_I2C_CSR_CS_FAST_MIN_18M(rt); in synquacer_i2c_hw_init() 228 ccr_cs = SYNQUACER_I2C_CCR_CS_STD_MAX_18M(rt); in synquacer_i2c_hw_init() 229 csr_cs = SYNQUACER_I2C_CSR_CS_STD_MAX_18M(rt); in synquacer_i2c_hw_init() 231 ccr_cs = SYNQUACER_I2C_CCR_CS_STD_MIN_18M(rt); in synquacer_i2c_hw_init() 232 csr_cs = SYNQUACER_I2C_CSR_CS_STD_MIN_18M(rt); in synquacer_i2c_hw_init()
|
/drivers/md/ |
D | dm-raid.c | 454 static bool rt_is_raid0(struct raid_type *rt) in rt_is_raid0() argument 456 return !rt->level; in rt_is_raid0() 460 static bool rt_is_raid1(struct raid_type *rt) in rt_is_raid1() argument 462 return rt->level == 1; in rt_is_raid1() 466 static bool rt_is_raid10(struct raid_type *rt) in rt_is_raid10() argument 468 return rt->level == 10; in rt_is_raid10() 472 static bool rt_is_raid45(struct raid_type *rt) in rt_is_raid45() argument 474 return __within_range(rt->level, 4, 5); in rt_is_raid45() 478 static bool rt_is_raid6(struct raid_type *rt) in rt_is_raid6() argument 480 return rt->level == 6; in rt_is_raid6() [all …]
|