| /include/linux/ |
| A D | kstrtox.h | 40 return _kstrtoul(s, base, res); in kstrtoul() 66 return kstrtoll(s, base, (long long *)res); in kstrtol() 68 return _kstrtol(s, base, res); in kstrtol() 76 return kstrtoull(s, base, res); in kstrtou64() 81 return kstrtoll(s, base, res); in kstrtos64() 86 return kstrtouint(s, base, res); in kstrtou32() 91 return kstrtoint(s, base, res); in kstrtos32() 114 return kstrtoull_from_user(s, count, base, res); in kstrtou64_from_user() 119 return kstrtoll_from_user(s, count, base, res); in kstrtos64_from_user() 124 return kstrtouint_from_user(s, count, base, res); in kstrtou32_from_user() [all …]
|
| A D | pnp.h | 39 if (res) in pnp_resource_valid() 46 if (res && !(res->flags & IORESOURCE_DISABLED)) in pnp_resource_enabled() 53 if (res->start == 0 && res->end == 0) in pnp_resource_len() 65 return res->start; in pnp_port_start() 75 return res->end; in pnp_port_end() 85 return res->flags; in pnp_port_flags() 111 return res->start; in pnp_mem_start() 121 return res->end; in pnp_mem_end() 130 return res->flags; in pnp_mem_flags() 155 return res->start; in pnp_irq() [all …]
|
| A D | apple-gmux.h | 103 struct resource *res; in apple_gmux_detect() local 120 res = pnp_get_resource(pnp_dev, IORESOURCE_IO, 0); in apple_gmux_detect() 121 if (res && resource_size(res) >= GMUX_MIN_IO_LEN) { in apple_gmux_detect() 126 ver_major = inb(res->start + GMUX_PORT_VERSION_MAJOR); in apple_gmux_detect() 127 ver_minor = inb(res->start + GMUX_PORT_VERSION_MINOR); in apple_gmux_detect() 128 ver_release = inb(res->start + GMUX_PORT_VERSION_RELEASE); in apple_gmux_detect() 130 if (apple_gmux_is_indexed(res->start)) in apple_gmux_detect() 136 res = pnp_get_resource(pnp_dev, IORESOURCE_MEM, 0); in apple_gmux_detect() 137 if (res && apple_gmux_is_mmio(res->start)) in apple_gmux_detect()
|
| A D | devm-helpers.h | 29 static inline void devm_delayed_work_drop(void *res) in devm_delayed_work_drop() argument 31 cancel_delayed_work_sync(res); in devm_delayed_work_drop() 54 static inline void devm_work_drop(void *res) in devm_work_drop() argument 56 cancel_work_sync(res); in devm_work_drop()
|
| A D | arm-smccc.h | 456 struct arm_smccc_1_2_regs *res); 470 struct arm_smccc_1_2_regs *res); 509 *res = (struct arm_smccc_res){}; in __arm_smccc_smc() 562 #define __declare_arg_2(a0, res) \ argument 563 struct arm_smccc_res *___res = res; \ 566 #define __declare_arg_3(a0, a1, res) \ argument 568 struct arm_smccc_res *___res = res; \ 572 #define __declare_arg_4(a0, a1, a2, res) \ argument 575 struct arm_smccc_res *___res = res; \ 584 struct arm_smccc_res *___res = res; \ [all …]
|
| A D | ioport.h | 209 const struct resource *res, 256 resource_size_t resource_alignment(struct resource *res); 270 res->end = res->start + size - 1; in resource_set_size() 281 static inline void resource_set_range(struct resource *res, in resource_set_range() argument 285 res->start = start; in resource_set_range() 286 resource_set_size(res, size); in resource_set_range() 291 return res->end - res->start + 1; in resource_size() 295 return res->flags & IORESOURCE_TYPE_BITS; in resource_type() 299 return res->flags & IORESOURCE_EXT_TYPE_BITS; in resource_ext_type() 422 res->start = irq; in irqresource_disabled() [all …]
|
| A D | resource_ext.h | 15 struct resource res; /* In master (CPU) address space */ member 25 struct resource *res; /* In master (CPU) address space */ member 31 resource_list_create_entry(struct resource *res, size_t extra_size); 75 if (resource_type(entry->res) == type) in resource_list_first_type()
|
| A D | uaccess.h | 92 unsigned long res; in __copy_from_user_inatomic() local 96 res = raw_copy_from_user(to, from, n); in __copy_from_user_inatomic() 98 return res; in __copy_from_user_inatomic() 104 unsigned long res; in __copy_from_user() local 111 res = raw_copy_from_user(to, from, n); in __copy_from_user() 113 return res; in __copy_from_user() 161 unsigned long res = n; in _inline_copy_from_user() local 178 res = raw_copy_from_user(to, from, n); in _inline_copy_from_user() 180 if (likely(!res)) in _inline_copy_from_user() 183 memset(to + (n - res), 0, res); in _inline_copy_from_user() [all …]
|
| A D | platform_device.h | 70 unsigned int index, struct resource **res); 81 unsigned int index, struct resource **res) in devm_platform_get_and_ioremap_resource() argument 127 const struct resource *res; member 155 const struct resource *res, unsigned int num, in platform_device_register_resndata() argument 162 .res = res, in platform_device_register_resndata() 196 const struct resource *res, unsigned int num) in platform_device_register_simple() argument 199 res, num, NULL, 0); in platform_device_register_simple() 228 const struct resource *res, 336 #define platform_create_bundle(driver, probe, res, n_res, data, size) \ argument 337 __platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE) [all …]
|
| A D | of_reserved_mem.h | 44 unsigned int idx, struct resource *res); 46 const char *name, struct resource *res); 76 struct resource *res) in of_reserved_mem_region_to_resource() argument 83 struct resource *res) in of_reserved_mem_region_to_resource_byname() argument
|
| /include/kunit/ |
| A D | resource.h | 114 if (res->free) in kunit_release_resource() 115 res->free(res); in kunit_release_resource() 121 kfree(res); in kunit_release_resource() 209 res->name = name; in kunit_add_named_resource() 246 res = kzalloc(sizeof(*res), internal_gfp); in kunit_alloc_and_get_resource() 247 if (!res) in kunit_alloc_and_get_resource() 259 return res; in kunit_alloc_and_get_resource() 288 res = kzalloc(sizeof(*res), internal_gfp); in kunit_alloc_resource() 289 if (!res) in kunit_alloc_resource() 313 return res->name && strcmp(res->name, match_name) == 0; in kunit_resource_name_match() [all …]
|
| A D | skbuff.h | 33 struct sk_buff *res = alloc_skb(len, gfp); in kunit_zalloc_skb() local 35 if (!res || skb_pad(res, len)) in kunit_zalloc_skb() 38 if (kunit_add_action_or_reset(test, kunit_action_kfree_skb, res)) in kunit_zalloc_skb() 41 return res; in kunit_zalloc_skb()
|
| /include/net/ |
| A D | tc_wrapper.h | 23 struct tcf_result *res)) 47 struct tcf_result *res) in tc_act() argument 54 return tcf_gact_act(skb, a, res); in tc_act() 78 return tcf_bpf_act(skb, a, res); in tc_act() 90 return tcf_ct_act(skb, a, res); in tc_act() 106 return tcf_nat_act(skb, a, res); in tc_act() 130 return a->ops->act(skb, a, res); in tc_act() 141 struct tcf_result *res)) 154 struct tcf_result *res) in tc_classify() argument 215 struct tcf_result *res) in tc_act() argument [all …]
|
| A D | gre.h | 67 IP_TUNNEL_DECLARE_FLAGS(res) = { }; in gre_flags_to_tnl_flags() 69 __assign_bit(IP_TUNNEL_CSUM_BIT, res, flags & GRE_CSUM); in gre_flags_to_tnl_flags() 70 __assign_bit(IP_TUNNEL_ROUTING_BIT, res, flags & GRE_ROUTING); in gre_flags_to_tnl_flags() 71 __assign_bit(IP_TUNNEL_KEY_BIT, res, flags & GRE_KEY); in gre_flags_to_tnl_flags() 72 __assign_bit(IP_TUNNEL_SEQ_BIT, res, flags & GRE_SEQ); in gre_flags_to_tnl_flags() 73 __assign_bit(IP_TUNNEL_STRICT_BIT, res, flags & GRE_STRICT); in gre_flags_to_tnl_flags() 74 __assign_bit(IP_TUNNEL_REC_BIT, res, flags & GRE_REC); in gre_flags_to_tnl_flags() 75 __assign_bit(IP_TUNNEL_VERSION_BIT, res, flags & GRE_VERSION); in gre_flags_to_tnl_flags() 77 ip_tunnel_flags_copy(dst, res); in gre_flags_to_tnl_flags()
|
| A D | iw_handler.h | 470 char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len); in iwe_stream_add_event_check() local 472 if (res == stream) in iwe_stream_add_event_check() 474 return res; in iwe_stream_add_event_check() 489 char *res = iwe_stream_add_point(info, stream, ends, iwe, extra); in iwe_stream_add_point_check() local 491 if (res == stream) in iwe_stream_add_point_check() 493 return res; in iwe_stream_add_point_check()
|
| A D | ip_fib.h | 212 #define FIB_RES_NHC(res) ((res).nhc) argument 213 #define FIB_RES_DEV(res) (FIB_RES_NHC(res)->nhc_dev) argument 214 #define FIB_RES_OIF(res) (FIB_RES_NHC(res)->nhc_oif) argument 280 struct fib_result *res, int fib_flags); 372 struct fib_result *res, unsigned int flags); 382 return __fib_lookup(net, flp, res, flags); in fib_lookup() 386 res->tclassid = 0; in fib_lookup() 390 err = fib_table_lookup(tb, flp, res, flags); in fib_lookup() 397 err = fib_table_lookup(tb, flp, res, flags); in fib_lookup() 602 struct fib_nh_common *nhc = res->nhc; in fib_combine_itag() [all …]
|
| A D | checksum.h | 61 u32 res = (__force u32)csum; in csum_add() local 62 res += (__force u32)addend; in csum_add() 63 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add() 74 u16 res = (__force u16)csum; in csum16_add() local 76 res += (__force u16)addend; in csum16_add() 77 return (__force __sum16)(res + (res < (__force u16)addend)); in csum16_add()
|
| /include/linux/mfd/ |
| A D | ocelot.h | 22 struct resource *res; in ocelot_regmap_from_resource_optional() local 29 res = platform_get_resource(pdev, IORESOURCE_MEM, index); in ocelot_regmap_from_resource_optional() 30 if (res) { in ocelot_regmap_from_resource_optional() 31 regs = devm_ioremap_resource(dev, res); in ocelot_regmap_from_resource_optional() 42 res = platform_get_resource(pdev, IORESOURCE_REG, index); in ocelot_regmap_from_resource_optional() 43 if (!res) in ocelot_regmap_from_resource_optional() 46 return dev_get_regmap(dev->parent, res->name); in ocelot_regmap_from_resource_optional()
|
| /include/rdma/ |
| A D | restrack.h | 132 static inline bool rdma_is_kernel_res(const struct rdma_restrack_entry *res) in rdma_is_kernel_res() argument 134 return !res->user; in rdma_is_kernel_res() 141 int __must_check rdma_restrack_get(struct rdma_restrack_entry *res); 147 int rdma_restrack_put(struct rdma_restrack_entry *res); 175 static inline void rdma_restrack_no_track(struct rdma_restrack_entry *res) in rdma_restrack_no_track() argument 177 res->no_track = true; in rdma_restrack_no_track() 179 static inline bool rdma_restrack_is_tracked(struct rdma_restrack_entry *res) in rdma_restrack_is_tracked() argument 181 return !res->no_track; in rdma_restrack_is_tracked()
|
| /include/drm/ttm/ |
| A D | ttm_resource.h | 115 struct ttm_resource **res); 127 struct ttm_resource *res); 141 struct ttm_resource *res, 157 struct ttm_resource *res, 441 struct ttm_resource *res); 443 struct ttm_resource *res); 447 struct ttm_resource **res, 451 struct ttm_resource *res, 457 void ttm_resource_set_bo(struct ttm_resource *res, 487 for (res = ttm_resource_manager_first(cursor); res; \ [all …]
|
| /include/trace/events/ |
| A D | fib6.h | 15 TP_PROTO(const struct net *net, const struct fib6_result *res, 18 TP_ARGS(net, res, table, flp), 43 __entry->err = ip6_rt_type_to_error(res->fib6_type); 67 if (res->nh && res->nh->fib_nh_dev) { 68 strscpy(__entry->name, res->nh->fib_nh_dev->name, IFNAMSIZ); 72 if (res->f6i == net->ipv6.fib6_null_entry) { 75 } else if (res->nh) { 77 *in6 = res->nh->fib_nh_gw6;
|
| A D | rdma_core.h | 64 __entry->cq_id = cq->res.id; 85 __entry->cq_id = cq->res.id; 107 __entry->cq_id = cq->res.id; 134 __entry->cq_id = cq->res.id; 156 __entry->cq_id = cq->res.id; 181 __entry->cq_id = cq->res.id; 209 __entry->cq_id = cq->res.id; 263 __entry->cq_id = cq->res.id; 320 __entry->pd_id = pd->res.id; 357 __entry->pd_id = pd->res.id; [all …]
|
| A D | smbus.h | 137 const union i2c_smbus_data *data, int res), 138 TP_ARGS(adap, addr, flags, read_write, command, protocol, data, res), 139 TP_CONDITION(res >= 0 && read_write == I2C_SMBUS_READ), 203 int res), 204 TP_ARGS(adap, addr, flags, read_write, command, protocol, res), 211 __field(__s16, res ) 221 __entry->res = res; 239 __entry->res
|
| /include/vdso/ |
| A D | gettime.h | 12 int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res); 15 int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
|
| /include/linux/device/ |
| A D | devres.h | 18 typedef void (*dr_release_t)(struct device *dev, void *res); 19 typedef int (*dr_match_t)(struct device *dev, void *res, void *match_data); 32 void devres_free(void *res); 33 void devres_add(struct device *dev, void *res); 102 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res); 103 void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res); 110 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res) in devm_ioremap_resource() argument 116 void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res) in devm_ioremap_resource_wc() argument
|