| /include/linux/ |
| D | kstrtox.h | 9 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); 10 int __must_check _kstrtol(const char *s, unsigned int base, long *res); 12 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res); 13 int __must_check kstrtoll(const char *s, unsigned int base, long long *res); 30 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument 38 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul() 40 return _kstrtoul(s, base, res); in kstrtoul() 58 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument 66 return kstrtoll(s, base, (long long *)res); in kstrtol() 68 return _kstrtol(s, base, res); in kstrtol() [all …]
|
| D | pnp.h | 37 static inline int pnp_resource_valid(struct resource *res) in pnp_resource_valid() argument 39 if (res) in pnp_resource_valid() 44 static inline int pnp_resource_enabled(struct resource *res) in pnp_resource_enabled() argument 46 if (res && !(res->flags & IORESOURCE_DISABLED)) in pnp_resource_enabled() 51 static inline resource_size_t pnp_resource_len(struct resource *res) in pnp_resource_len() argument 53 if (res->start == 0 && res->end == 0) in pnp_resource_len() 55 return resource_size(res); in pnp_resource_len() 62 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start() local 64 if (pnp_resource_valid(res)) in pnp_port_start() 65 return res->start; in pnp_port_start() [all …]
|
| 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()
|
| 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()
|
| D | arm-smccc.h | 458 struct arm_smccc_1_2_regs *res); 472 struct arm_smccc_1_2_regs *res); 504 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk); 509 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk) in __arm_smccc_smc() argument 511 *res = (struct arm_smccc_res){}; in __arm_smccc_smc() 530 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk); 564 #define __declare_arg_2(a0, res) \ argument 565 struct arm_smccc_res *___res = res; \ 568 #define __declare_arg_3(a0, a1, res) \ argument 570 struct arm_smccc_res *___res = res; \ [all …]
|
| 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() 97 instrument_copy_from_user_after(to, from, n, res); 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() 112 instrument_copy_from_user_after(to, from, n, res); 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() [all …]
|
| 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()
|
| D | platform_device.h | 74 unsigned int index, struct resource **res); 85 unsigned int index, struct resource **res) in devm_platform_get_and_ioremap_resource() argument 131 const struct resource *res; member 161 const struct resource *res, unsigned int num, in platform_device_register_resndata() argument 168 .res = res, in platform_device_register_resndata() 202 const struct resource *res, unsigned int num) in platform_device_register_simple() argument 205 res, num, NULL, 0); in platform_device_register_simple() 234 const struct resource *res, 354 #define platform_create_bundle(driver, probe, res, n_res, data, size) \ argument 355 __platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE) [all …]
|
| D | ioport.h | 210 const struct resource *res, 255 int adjust_resource(struct resource *res, resource_size_t start, 257 resource_size_t resource_alignment(struct resource *res); 258 static inline resource_size_t resource_size(const struct resource *res) in resource_size() argument 260 return res->end - res->start + 1; in resource_size() 262 static inline unsigned long resource_type(const struct resource *res) in resource_type() argument 264 return res->flags & IORESOURCE_TYPE_BITS; in resource_type() 266 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type() argument 268 return res->flags & IORESOURCE_EXT_TYPE_BITS; in resource_ext_type() 335 extern void merge_system_ram_resource(struct resource *res); [all …]
|
| /include/kunit/ |
| D | resource.h | 103 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() argument 105 kref_get(&res->refcount); in kunit_get_resource() 114 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource() local 117 if (res->free) in kunit_release_resource() 118 res->free(res); in kunit_release_resource() 123 if (res->should_kfree) in kunit_release_resource() 124 kfree(res); in kunit_release_resource() 139 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource() argument 141 kref_put(&res->refcount, kunit_release_resource); in kunit_put_resource() 159 struct kunit_resource *res, [all …]
|
| D | skbuff.h | 32 struct sk_buff *res = alloc_skb(len, gfp); in kunit_zalloc_skb() local 34 if (!res || skb_pad(res, len)) in kunit_zalloc_skb() 37 if (kunit_add_action_or_reset(test, kunit_action_kfree_skb, res)) in kunit_zalloc_skb() 40 return res; in kunit_zalloc_skb()
|
| /include/net/ |
| 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() 58 return tcf_mirred_act(skb, a, res); in tc_act() 62 return tcf_pedit_act(skb, a, res); in tc_act() 66 return tcf_skbedit_act(skb, a, res); in tc_act() 70 return tcf_skbmod_act(skb, a, res); in tc_act() 74 return tcf_police_act(skb, a, res); in tc_act() 78 return tcf_bpf_act(skb, a, res); in tc_act() 82 return tcf_connmark_act(skb, a, res); in tc_act() [all …]
|
| 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()
|
| D | iw_handler.h | 509 char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len); in iwe_stream_add_event_check() local 511 if (res == stream) in iwe_stream_add_event_check() 513 return res; in iwe_stream_add_event_check() 528 char *res = iwe_stream_add_point(info, stream, ends, iwe, extra); in iwe_stream_add_point_check() local 530 if (res == stream) in iwe_stream_add_point_check() 532 return res; in iwe_stream_add_point_check()
|
| D | ip_fib.h | 208 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res); 210 #define FIB_RES_NHC(res) ((res).nhc) argument 211 #define FIB_RES_DEV(res) (FIB_RES_NHC(res)->nhc_dev) argument 212 #define FIB_RES_OIF(res) (FIB_RES_NHC(res)->nhc_oif) argument 278 struct fib_result *res, int fib_flags); 315 struct fib_result *res, unsigned int flags) in fib_lookup() argument 324 err = fib_table_lookup(tb, flp, res, flags | FIB_LOOKUP_NOREF); in fib_lookup() 370 struct fib_result *res, unsigned int flags); 373 struct fib_result *res, unsigned int flags) in fib_lookup() argument 380 return __fib_lookup(net, flp, res, flags); in fib_lookup() [all …]
|
| 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/ |
| 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/ |
| D | restrack.h | 128 static inline bool rdma_is_kernel_res(const struct rdma_restrack_entry *res) in rdma_is_kernel_res() argument 130 return !res->user; in rdma_is_kernel_res() 137 int __must_check rdma_restrack_get(struct rdma_restrack_entry *res); 143 int rdma_restrack_put(struct rdma_restrack_entry *res); 171 static inline void rdma_restrack_no_track(struct rdma_restrack_entry *res) in rdma_restrack_no_track() argument 173 res->no_track = true; in rdma_restrack_no_track() 175 static inline bool rdma_restrack_is_tracked(struct rdma_restrack_entry *res) in rdma_restrack_is_tracked() argument 177 return !res->no_track; in rdma_restrack_is_tracked()
|
| /include/asm-generic/ |
| D | div64.h | 177 uint64_t res; in __arch_xprod_64() local 181 res = ((uint64_t)m_lo * n_lo) >> 32; in __arch_xprod_64() 184 res = (m + (uint64_t)m_lo * n_lo) >> 32; in __arch_xprod_64() 186 res = m + (uint64_t)m_lo * n_lo; in __arch_xprod_64() 187 res_lo = res >> 32; in __arch_xprod_64() 189 res = res_lo | ((uint64_t)res_hi << 32); in __arch_xprod_64() 194 res += (uint64_t)m_lo * n_hi; in __arch_xprod_64() 195 res += (uint64_t)m_hi * n_lo; in __arch_xprod_64() 196 res >>= 32; in __arch_xprod_64() 198 res += (uint64_t)m_lo * n_hi; in __arch_xprod_64() [all …]
|
| /include/drm/ttm/ |
| D | ttm_resource.h | 114 struct ttm_resource **res); 126 struct ttm_resource *res); 140 struct ttm_resource *res, 156 struct ttm_resource *res, 421 void ttm_resource_add_bulk_move(struct ttm_resource *res, 423 void ttm_resource_del_bulk_move(struct ttm_resource *res, 425 void ttm_resource_move_to_lru_tail(struct ttm_resource *res); 429 struct ttm_resource *res); 431 struct ttm_resource *res); 435 struct ttm_resource **res); [all …]
|
| /include/trace/events/ |
| D | fib6.h | 15 TP_PROTO(const struct net *net, const struct fib6_result *res, 18 TP_ARGS(net, res, table, flp), 42 __entry->err = ip6_rt_type_to_error(res->fib6_type); 65 if (res->nh && res->nh->fib_nh_dev) { 66 strscpy(__entry->name, res->nh->fib_nh_dev->name, IFNAMSIZ); 70 if (res->f6i == net->ipv6.fib6_null_entry) { 73 } else if (res->nh) { 75 *in6 = res->nh->fib_nh_gw6;
|
| 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; 325 __entry->mr_id = mr->res.id; [all …]
|
| 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/linux/device/ |
| D | devres.h | 17 typedef void (*dr_release_t)(struct device *dev, void *res); 18 typedef int (*dr_match_t)(struct device *dev, void *res, void *match_data); 31 void devres_free(void *res); 32 void devres_add(struct device *dev, void *res); 101 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res); 102 void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res); 109 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res) in devm_ioremap_resource() argument 115 void __iomem *devm_ioremap_resource_wc(struct device *dev, const struct resource *res) in devm_ioremap_resource_wc() argument
|
| /include/vdso/ |
| 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);
|