/include/kunit/ |
D | resource.h | 100 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() argument 102 kref_get(&res->refcount); in kunit_get_resource() 111 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource() local 114 if (res->free) in kunit_release_resource() 115 res->free(res); in kunit_release_resource() 120 if (res->should_kfree) in kunit_release_resource() 121 kfree(res); in kunit_release_resource() 136 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource() argument 138 kref_put(&res->refcount, kunit_release_resource); in kunit_put_resource() 156 struct kunit_resource *res, [all …]
|
/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 | 73 struct resource *res; in apple_gmux_detect() local 90 res = pnp_get_resource(pnp_dev, IORESOURCE_IO, 0); in apple_gmux_detect() 91 if (!res || resource_size(res) < GMUX_MIN_IO_LEN) in apple_gmux_detect() 98 ver_major = inb(res->start + GMUX_PORT_VERSION_MAJOR); in apple_gmux_detect() 99 ver_minor = inb(res->start + GMUX_PORT_VERSION_MINOR); in apple_gmux_detect() 100 ver_release = inb(res->start + GMUX_PORT_VERSION_RELEASE); in apple_gmux_detect() 102 indexed = apple_gmux_is_indexed(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 | 334 struct arm_smccc_1_2_regs *res); 348 struct arm_smccc_1_2_regs *res); 389 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk); 394 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk) in __arm_smccc_smc() argument 396 *res = (struct arm_smccc_res){}; in __arm_smccc_smc() 415 struct arm_smccc_res *res, struct arm_smccc_quirk *quirk); 468 #define __declare_arg_0(a0, res) \ argument 469 struct arm_smccc_res *___res = res; \ 472 #define __declare_arg_1(a0, a1, res) \ argument 474 struct arm_smccc_res *___res = res; \ [all …]
|
D | uaccess.h | 61 unsigned long res; in __copy_from_user_inatomic() local 65 res = raw_copy_from_user(to, from, n); in __copy_from_user_inatomic() 66 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user_inatomic() 67 return res; in __copy_from_user_inatomic() 73 unsigned long res; in __copy_from_user() local 80 res = raw_copy_from_user(to, from, n); in __copy_from_user() 81 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user() 82 return res; in __copy_from_user() 123 unsigned long res = n; in _copy_from_user() local 127 res = raw_copy_from_user(to, from, n); in _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 | 72 unsigned int index, struct resource **res); 103 const struct resource *res; member 133 const struct resource *res, unsigned int num, in platform_device_register_resndata() argument 140 .res = res, in platform_device_register_resndata() 174 const struct resource *res, unsigned int num) in platform_device_register_simple() argument 177 res, num, NULL, 0); in platform_device_register_simple() 206 const struct resource *res, 327 #define platform_create_bundle(driver, probe, res, n_res, data, size) \ argument 328 __platform_create_bundle(driver, probe, res, n_res, data, size, THIS_MODULE) 331 struct resource *res, unsigned int n_res,
|
D | ioport.h | 222 int adjust_resource(struct resource *res, resource_size_t start, 224 resource_size_t resource_alignment(struct resource *res); 225 static inline resource_size_t resource_size(const struct resource *res) in resource_size() argument 227 return res->end - res->start + 1; in resource_size() 229 static inline unsigned long resource_type(const struct resource *res) in resource_type() argument 231 return res->flags & IORESOURCE_TYPE_BITS; in resource_type() 233 static inline unsigned long resource_ext_type(const struct resource *res) in resource_ext_type() argument 235 return res->flags & IORESOURCE_EXT_TYPE_BITS; in resource_ext_type() 299 extern void merge_system_ram_resource(struct resource *res); 348 static inline void irqresource_disabled(struct resource *res, u32 irq) in irqresource_disabled() argument [all …]
|
D | rio_drv.h | 256 static inline void rio_init_mbox_res(struct resource *res, int start, int end) in rio_init_mbox_res() argument 258 memset(res, 0, sizeof(struct resource)); in rio_init_mbox_res() 259 res->start = start; in rio_init_mbox_res() 260 res->end = end; in rio_init_mbox_res() 261 res->flags = RIO_RESOURCE_MAILBOX; in rio_init_mbox_res() 274 static inline void rio_init_dbell_res(struct resource *res, u16 start, u16 end) in rio_init_dbell_res() argument 276 memset(res, 0, sizeof(struct resource)); in rio_init_dbell_res() 277 res->start = start; in rio_init_dbell_res() 278 res->end = end; in rio_init_dbell_res() 279 res->flags = RIO_RESOURCE_DOORBELL; in rio_init_dbell_res()
|
D | part_stat.h | 36 typeof((part)->bd_stats->field) res = 0; \ 39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \ 40 res; \
|
/include/drm/ttm/ |
D | ttm_resource.h | 77 struct ttm_resource **res); 89 struct ttm_resource *res); 103 struct ttm_resource *res, 119 struct ttm_resource *res, 348 void ttm_resource_add_bulk_move(struct ttm_resource *res, 350 void ttm_resource_del_bulk_move(struct ttm_resource *res, 352 void ttm_resource_move_to_lru_tail(struct ttm_resource *res); 356 struct ttm_resource *res); 358 struct ttm_resource *res); 362 struct ttm_resource **res); [all …]
|
D | ttm_range_manager.h | 32 to_ttm_range_mgr_node(struct ttm_resource *res) in to_ttm_range_mgr_node() argument 34 return container_of(res, struct ttm_range_mgr_node, base); in to_ttm_range_mgr_node()
|
/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 | 125 static inline bool rdma_is_kernel_res(const struct rdma_restrack_entry *res) in rdma_is_kernel_res() argument 127 return !res->user; in rdma_is_kernel_res() 134 int __must_check rdma_restrack_get(struct rdma_restrack_entry *res); 140 int rdma_restrack_put(struct rdma_restrack_entry *res); 168 static inline void rdma_restrack_no_track(struct rdma_restrack_entry *res) in rdma_restrack_no_track() argument 170 res->no_track = true; in rdma_restrack_no_track() 172 static inline bool rdma_restrack_is_tracked(struct rdma_restrack_entry *res) in rdma_restrack_is_tracked() argument 174 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/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 strlcpy(__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/net/ |
D | ip_fib.h | 204 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res); 206 #define FIB_RES_NHC(res) ((res).nhc) argument 207 #define FIB_RES_DEV(res) (FIB_RES_NHC(res)->nhc_dev) argument 208 #define FIB_RES_OIF(res) (FIB_RES_NHC(res)->nhc_oif) argument 273 struct fib_result *res, int fib_flags); 310 struct fib_result *res, unsigned int flags) in fib_lookup() argument 319 err = fib_table_lookup(tb, flp, res, flags | FIB_LOOKUP_NOREF); in fib_lookup() 365 struct fib_result *res, unsigned int flags); 368 struct fib_result *res, unsigned int flags) in fib_lookup() argument 375 return __fib_lookup(net, flp, res, flags); in fib_lookup() [all …]
|
D | iw_handler.h | 516 char *res = iwe_stream_add_event(info, stream, ends, iwe, event_len); in iwe_stream_add_event_check() local 518 if (res == stream) in iwe_stream_add_event_check() 520 return res; in iwe_stream_add_event_check() 535 char *res = iwe_stream_add_point(info, stream, ends, iwe, extra); in iwe_stream_add_point_check() local 537 if (res == stream) in iwe_stream_add_point_check() 539 return res; in iwe_stream_add_point_check()
|
D | checksum.h | 59 u32 res = (__force u32)csum; in csum_add() local 60 res += (__force u32)addend; in csum_add() 61 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add() 72 u16 res = (__force u16)csum; in csum16_add() local 74 res += (__force u16)addend; in csum16_add() 75 return (__force __sum16)(res + (res < (__force u16)addend)); in csum16_add()
|
D | ipv6_stubs.h | 35 struct fib6_result *res, int flags); 38 struct fib6_result *res, int flags); 39 void (*fib6_select_path)(const struct net *net, struct fib6_result *res, 42 u32 (*ip6_mtu_from_fib6)(const struct fib6_result *res,
|
/include/drm/ |
D | drm_fixed.h | 157 s64 res; in drm_fixp_from_fraction() local 188 res = (s64) res_abs; in drm_fixp_from_fraction() 190 res = -res; in drm_fixp_from_fraction() 191 return res; in drm_fixp_from_fraction()
|