/linux-4.4.14/tools/lib/ |
D | hweight.c | 19 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32() 20 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32() 21 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32() 22 res = res + (res >> 8); in __sw_hweight32() 23 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32() 29 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local 30 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() 31 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16() 32 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16() 37 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local [all …]
|
/linux-4.4.14/lib/ |
D | hweight.c | 20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32() 21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32() 22 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32() 23 res = res + (res >> 8); in __sw_hweight32() 24 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32() 31 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local 32 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() 33 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16() 34 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16() 40 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local [all …]
|
D | kstrtox.c | 49 unsigned long long res; in _parse_integer() local 53 res = 0; in _parse_integer() 72 if (unlikely(res & (~0ull << 60))) { in _parse_integer() 73 if (res > div_u64(ULLONG_MAX - val, base)) in _parse_integer() 76 res = res * base + val; in _parse_integer() 80 *p = res; in _parse_integer() 86 static int _kstrtoull(const char *s, unsigned int base, unsigned long long *res) in _kstrtoull() argument 102 *res = _res; in _kstrtoull() 122 int kstrtoull(const char *s, unsigned int base, unsigned long long *res) in kstrtoull() argument 126 return _kstrtoull(s, base, res); in kstrtoull() [all …]
|
D | strncpy_from_user.c | 26 long res = 0; in do_strncpy_from_user() local 42 if (unlikely(__get_user(c,(unsigned long __user *)(src+res)))) in do_strncpy_from_user() 44 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user() 48 return res + find_zero(data); in do_strncpy_from_user() 50 res += sizeof(unsigned long); in do_strncpy_from_user() 58 if (unlikely(__get_user(c,src+res))) in do_strncpy_from_user() 60 dst[res] = c; in do_strncpy_from_user() 62 return res; in do_strncpy_from_user() 63 res++; in do_strncpy_from_user() 71 if (res >= count) in do_strncpy_from_user() [all …]
|
D | devres.c | 7 void devm_ioremap_release(struct device *dev, void *res) in devm_ioremap_release() argument 9 iounmap(*(void __iomem **)res); in devm_ioremap_release() 12 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() argument 14 return *(void **)res == match_data; in devm_ioremap_match() 134 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res) in devm_ioremap_resource() argument 142 if (!res || resource_type(res) != IORESOURCE_MEM) { in devm_ioremap_resource() 147 size = resource_size(res); in devm_ioremap_resource() 148 name = res->name ?: dev_name(dev); in devm_ioremap_resource() 150 if (!devm_request_mem_region(dev, res->start, size, name)) { in devm_ioremap_resource() 151 dev_err(dev, "can't request region for resource %pR\n", res); in devm_ioremap_resource() [all …]
|
/linux-4.4.14/fs/ocfs2/dlm/ |
D | dlmthread.c | 61 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument 65 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags() 67 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 70 if (res->state & flags) { in __dlm_wait_on_lockres_flags() 71 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags() 73 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags() 76 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 80 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument 82 if (list_empty(&res->granted) && in __dlm_lockres_has_locks() 83 list_empty(&res->converting) && in __dlm_lockres_has_locks() [all …]
|
D | dlmmaster.c | 66 struct dlm_lock_resource *res, 93 struct dlm_lock_resource *res, 102 static int dlm_do_master_request(struct dlm_lock_resource *res, 107 struct dlm_lock_resource *res, 111 struct dlm_lock_resource *res, 115 struct dlm_lock_resource *res, 122 struct dlm_lock_resource *res); 124 struct dlm_lock_resource *res); 126 struct dlm_lock_resource *res, 129 struct dlm_lock_resource *res); [all …]
|
D | dlmconvert.c | 59 struct dlm_lock_resource *res, 64 struct dlm_lock_resource *res, 77 struct dlm_lock_resource *res, in dlmconvert_master() argument 83 spin_lock(&res->spinlock); in dlmconvert_master() 85 __dlm_wait_on_lockres(res); in dlmconvert_master() 86 __dlm_lockres_reserve_ast(res); in dlmconvert_master() 87 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 89 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 92 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 93 spin_unlock(&res->spinlock); in dlmconvert_master() [all …]
|
D | dlmlock.c | 61 struct dlm_lock_resource *res, 91 static int dlm_can_grant_new_lock(struct dlm_lock_resource *res, in dlm_can_grant_new_lock() argument 96 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock() 101 list_for_each_entry(tmplock, &res->converting, list) { in dlm_can_grant_new_lock() 120 struct dlm_lock_resource *res, in dlmlock_master() argument 128 spin_lock(&res->spinlock); in dlmlock_master() 131 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 135 spin_unlock(&res->spinlock); in dlmlock_master() 139 __dlm_wait_on_lockres(res); in dlmlock_master() 140 __dlm_lockres_reserve_ast(res); in dlmlock_master() [all …]
|
D | dlmunlock.c | 59 struct dlm_lock_resource *res, 64 struct dlm_lock_resource *res, 70 struct dlm_lock_resource *res, 99 struct dlm_lock_resource *res, in dlmunlock_common() argument 114 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common() 116 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common() 125 "while waiting for an ast!", res->lockname.len, in dlmunlock_common() 126 res->lockname.name); in dlmunlock_common() 130 spin_lock(&res->spinlock); in dlmunlock_common() 131 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common() [all …]
|
D | dlmrecovery.c | 67 static inline int dlm_num_locks_in_lockres(struct dlm_lock_resource *res); 75 struct dlm_lock_resource *res, 78 struct dlm_lock_resource *res, 95 struct dlm_lock_resource *res, 255 struct dlm_lock_resource *res; in dlm_print_reco_node_status() local 293 list_for_each_entry(res, &dlm->reco.resources, recovering) { in dlm_print_reco_node_status() 295 dlm->name, res->lockname.len, res->lockname.name); in dlm_print_reco_node_status() 883 struct dlm_lock_resource *res; in dlm_request_all_locks_worker() local 929 list_for_each_entry(res, &resources, recovering) { in dlm_request_all_locks_worker() 930 ret = dlm_send_one_lockres(dlm, res, mres, reco_master, in dlm_request_all_locks_worker() [all …]
|
D | dlmast.c | 51 static void dlm_update_lvb(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, 93 struct dlm_lock_resource *res; in __dlm_queue_ast() local 98 res = lock->lockres; in __dlm_queue_ast() 105 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 113 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 124 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_ast() 139 dlm_lockres_release_ast(dlm, res); in __dlm_queue_ast() 159 struct dlm_lock_resource *res; in __dlm_queue_bast() local 166 res = lock->lockres; in __dlm_queue_bast() 171 dlm->name, res->lockname.len, res->lockname.name, in __dlm_queue_bast() [all …]
|
D | dlmcommon.h | 418 dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) in dlm_list_idx_to_ptr() argument 422 ret = &res->granted; in dlm_list_idx_to_ptr() 424 ret = &res->converting; in dlm_list_idx_to_ptr() 426 ret = &res->blocked; in dlm_list_idx_to_ptr() 797 __dlm_lockres_state_to_status(struct dlm_lock_resource *res) in __dlm_lockres_state_to_status() argument 801 assert_spin_locked(&res->spinlock); in __dlm_lockres_state_to_status() 803 if (res->state & DLM_LOCK_RES_RECOVERING) in __dlm_lockres_state_to_status() 805 else if (res->state & DLM_LOCK_RES_MIGRATING) in __dlm_lockres_state_to_status() 807 else if (res->state & DLM_LOCK_RES_IN_PROGRESS) in __dlm_lockres_state_to_status() 834 struct dlm_lock_resource *res); [all …]
|
D | dlmdebug.c | 50 void dlm_print_one_lock_resource(struct dlm_lock_resource *res) in dlm_print_one_lock_resource() argument 52 spin_lock(&res->spinlock); in dlm_print_one_lock_resource() 53 __dlm_print_one_lock_resource(res); in dlm_print_one_lock_resource() 54 spin_unlock(&res->spinlock); in dlm_print_one_lock_resource() 57 static void dlm_print_lockres_refmap(struct dlm_lock_resource *res) in dlm_print_lockres_refmap() argument 60 assert_spin_locked(&res->spinlock); in dlm_print_lockres_refmap() 65 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); in dlm_print_lockres_refmap() 71 printk("], inflight=%u\n", res->inflight_locks); in dlm_print_lockres_refmap() 97 void __dlm_print_one_lock_resource(struct dlm_lock_resource *res) in __dlm_print_one_lock_resource() argument 102 assert_spin_locked(&res->spinlock); in __dlm_print_one_lock_resource() [all …]
|
/linux-4.4.14/drivers/pnp/ |
D | manager.c | 26 struct resource *res = pnp_get_resource(dev, type, bar); in pnp_find_resource() local 29 if (res) { in pnp_find_resource() 30 res->flags &= ~IORESOURCE_BITS; in pnp_find_resource() 31 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource() 34 return res; in pnp_find_resource() 39 struct resource *res, local_res; in pnp_assign_port() local 41 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port() 42 if (res) { in pnp_assign_port() 44 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_port() 45 (unsigned long long) res->end, res->flags); in pnp_assign_port() [all …]
|
D | system.c | 30 struct resource *res; in reserve_range() local 38 res = request_region(start, end - start + 1, regionid); in reserve_range() 40 res = request_mem_region(start, end - start + 1, regionid); in reserve_range() 41 if (res) in reserve_range() 42 res->flags &= ~IORESOURCE_BUSY; in reserve_range() 52 res ? "has been" : "could not be"); in reserve_range() 57 struct resource *res; in reserve_resources_of_dev() local 60 for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_IO, i)); i++) { in reserve_resources_of_dev() 61 if (res->flags & IORESOURCE_DISABLED) in reserve_resources_of_dev() 63 if (res->start == 0) in reserve_resources_of_dev() [all …]
|
D | resource.c | 165 int pnp_check_port(struct pnp_dev *dev, struct resource *res) in pnp_check_port() argument 172 port = &res->start; in pnp_check_port() 173 end = &res->end; in pnp_check_port() 176 if (cannot_compare(res->flags)) in pnp_check_port() 197 if (tres != res && tres->flags & IORESOURCE_IO) { in pnp_check_port() 228 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem() argument 235 addr = &res->start; in pnp_check_mem() 236 end = &res->end; in pnp_check_mem() 239 if (cannot_compare(res->flags)) in pnp_check_mem() 260 if (tres != res && tres->flags & IORESOURCE_MEM) { in pnp_check_mem() [all …]
|
D | quirks.c | 234 struct resource *res; in quirk_system_pci_resources() local 262 (res = pnp_get_resource(dev, type, j)); j++) { in quirk_system_pci_resources() 263 if (res->start == 0 && res->end == 0) in quirk_system_pci_resources() 266 pnp_start = res->start; in quirk_system_pci_resources() 267 pnp_end = res->end; in quirk_system_pci_resources() 294 "%s BAR %d %pR\n", res, in quirk_system_pci_resources() 296 res->flags |= IORESOURCE_DISABLED; in quirk_system_pci_resources() 310 struct resource *res; in quirk_amd_mmconfig_area() local 318 res = &pnp_res->res; in quirk_amd_mmconfig_area() 319 if (res->end < mmconfig->start || res->start > mmconfig->end || in quirk_amd_mmconfig_area() [all …]
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 120 __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_format() argument 124 return v4l2_subdev_get_try_format(&res->subdev, cfg, pad); in __resizer_get_format() 126 return &res->formats[pad]; in __resizer_get_format() 136 __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_crop() argument 140 return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK); in __resizer_get_crop() 142 return &res->crop.request; in __resizer_get_crop() 152 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, in resizer_set_filters() argument 155 struct isp_device *isp = to_isp_device(res); in resizer_set_filters() 183 static void resizer_set_bilinear(struct isp_res_device *res, in resizer_set_bilinear() argument 186 struct isp_device *isp = to_isp_device(res); in resizer_set_bilinear() [all …]
|
/linux-4.4.14/drivers/pci/hotplug/ |
D | cpqphp_sysfs.c | 46 struct pci_resource *res; in show_ctrl() local 50 res = ctrl->mem_head; in show_ctrl() 51 while (res && index--) { in show_ctrl() 52 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 53 res = res->next; in show_ctrl() 57 res = ctrl->p_mem_head; in show_ctrl() 58 while (res && index--) { in show_ctrl() 59 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 60 res = res->next; in show_ctrl() 64 res = ctrl->io_head; in show_ctrl() [all …]
|
D | ibmphp_res.c | 467 struct resource_node *res = NULL; in update_resources() local 473 res = bus_cur->firstMem; in update_resources() 477 res = bus_cur->firstPFMem; in update_resources() 481 res = bus_cur->firstIO; in update_resources() 485 if (res) { in update_resources() 486 while (res) { in update_resources() 487 if (res->rangeno == rangeno) in update_resources() 489 if (res->next) in update_resources() 490 res = res->next; in update_resources() 491 else if (res->nextRange) in update_resources() [all …]
|
D | shpchp_sysfs.c | 43 struct resource *res; in show_ctrl() local 50 pci_bus_for_each_resource(bus, res, index) { in show_ctrl() 51 if (res && (res->flags & IORESOURCE_MEM) && in show_ctrl() 52 !(res->flags & IORESOURCE_PREFETCH)) { in show_ctrl() 54 (unsigned long long)res->start, in show_ctrl() 55 (unsigned long long)resource_size(res)); in show_ctrl() 59 pci_bus_for_each_resource(bus, res, index) { in show_ctrl() 60 if (res && (res->flags & IORESOURCE_MEM) && in show_ctrl() 61 (res->flags & IORESOURCE_PREFETCH)) { in show_ctrl() 63 (unsigned long long)res->start, in show_ctrl() [all …]
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 49 struct vmw_resource res; member 86 struct vmw_resource *vmw_resource_reference(struct vmw_resource *res) in vmw_resource_reference() argument 88 kref_get(&res->kref); in vmw_resource_reference() 89 return res; in vmw_resource_reference() 93 vmw_resource_reference_unless_doomed(struct vmw_resource *res) in vmw_resource_reference_unless_doomed() argument 95 return kref_get_unless_zero(&res->kref) ? res : NULL; in vmw_resource_reference_unless_doomed() 105 void vmw_resource_release_id(struct vmw_resource *res) in vmw_resource_release_id() argument 107 struct vmw_private *dev_priv = res->dev_priv; in vmw_resource_release_id() 108 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id() 111 if (res->id != -1) in vmw_resource_release_id() [all …]
|
D | vmwgfx_context.c | 35 struct vmw_resource res; member 43 static void vmw_user_context_free(struct vmw_resource *res); 47 static int vmw_gb_context_create(struct vmw_resource *res); 48 static int vmw_gb_context_bind(struct vmw_resource *res, 50 static int vmw_gb_context_unbind(struct vmw_resource *res, 53 static int vmw_gb_context_destroy(struct vmw_resource *res); 54 static int vmw_dx_context_create(struct vmw_resource *res); 55 static int vmw_dx_context_bind(struct vmw_resource *res, 57 static int vmw_dx_context_unbind(struct vmw_resource *res, 60 static int vmw_dx_context_destroy(struct vmw_resource *res); [all …]
|
D | vmwgfx_cotable.c | 50 struct vmw_resource res; member 106 static int vmw_cotable_bind(struct vmw_resource *res, 108 static int vmw_cotable_unbind(struct vmw_resource *res, 111 static int vmw_cotable_create(struct vmw_resource *res); 112 static int vmw_cotable_destroy(struct vmw_resource *res); 132 static struct vmw_cotable *vmw_cotable(struct vmw_resource *res) in vmw_cotable() argument 134 return container_of(res, struct vmw_cotable, res); in vmw_cotable() 145 static int vmw_cotable_destroy(struct vmw_resource *res) in vmw_cotable_destroy() argument 147 res->id = -1; in vmw_cotable_destroy() 160 static int vmw_cotable_unscrub(struct vmw_resource *res) in vmw_cotable_unscrub() argument [all …]
|
D | vmwgfx_shader.c | 34 struct vmw_resource res; member 47 struct vmw_resource res; member 59 static void vmw_user_shader_free(struct vmw_resource *res); 63 static int vmw_gb_shader_create(struct vmw_resource *res); 64 static int vmw_gb_shader_bind(struct vmw_resource *res, 66 static int vmw_gb_shader_unbind(struct vmw_resource *res, 69 static int vmw_gb_shader_destroy(struct vmw_resource *res); 71 static int vmw_dx_shader_create(struct vmw_resource *res); 72 static int vmw_dx_shader_bind(struct vmw_resource *res, 74 static int vmw_dx_shader_unbind(struct vmw_resource *res, [all …]
|
D | vmwgfx_so.c | 62 struct vmw_resource res; member 75 static int vmw_view_create(struct vmw_resource *res); 76 static int vmw_view_destroy(struct vmw_resource *res); 77 static void vmw_hw_view_destroy(struct vmw_resource *res); 78 static void vmw_view_commit_notify(struct vmw_resource *res, 112 static struct vmw_view *vmw_view(struct vmw_resource *res) in vmw_view() argument 114 return container_of(res, struct vmw_view, res); in vmw_view() 125 static void vmw_view_commit_notify(struct vmw_resource *res, in vmw_view_commit_notify() argument 128 struct vmw_view *view = vmw_view(res); in vmw_view_commit_notify() 129 struct vmw_private *dev_priv = res->dev_priv; in vmw_view_commit_notify() [all …]
|
D | vmwgfx_surface.c | 66 static void vmw_user_surface_free(struct vmw_resource *res); 69 static int vmw_legacy_srf_bind(struct vmw_resource *res, 71 static int vmw_legacy_srf_unbind(struct vmw_resource *res, 74 static int vmw_legacy_srf_create(struct vmw_resource *res); 75 static int vmw_legacy_srf_destroy(struct vmw_resource *res); 76 static int vmw_gb_surface_create(struct vmw_resource *res); 77 static int vmw_gb_surface_bind(struct vmw_resource *res, 79 static int vmw_gb_surface_unbind(struct vmw_resource *res, 82 static int vmw_gb_surface_destroy(struct vmw_resource *res); 225 cmd->body.sid = srf->res.id; in vmw_surface_define_encode() [all …]
|
D | vmwgfx_resource_priv.h | 47 void (*res_free) (struct vmw_resource *res); 75 int (*create) (struct vmw_resource *res); 76 int (*destroy) (struct vmw_resource *res); 77 int (*bind) (struct vmw_resource *res, 79 int (*unbind) (struct vmw_resource *res, 82 void (*commit_notify)(struct vmw_resource *res, 86 int vmw_resource_alloc_id(struct vmw_resource *res); 87 void vmw_resource_release_id(struct vmw_resource *res); 88 int vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res, 90 void (*res_free) (struct vmw_resource *res), [all …]
|
/linux-4.4.14/drivers/ps3/ |
D | ps3av_cmd.c | 157 int res; in ps3av_cmd_init() local 165 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), in ps3av_cmd_init() 167 if (res < 0) in ps3av_cmd_init() 168 return res; in ps3av_cmd_init() 170 res = get_status(&video_init); in ps3av_cmd_init() 171 if (res) { in ps3av_cmd_init() 172 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); in ps3av_cmd_init() 173 return res; in ps3av_cmd_init() 179 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), in ps3av_cmd_init() 181 if (res < 0) in ps3av_cmd_init() [all …]
|
D | ps3av.c | 223 int res; in ps3av_send_cmd_pkt() local 231 res = ps3av_vuart_write(ps3av->dev, send_buf, write_len); in ps3av_send_cmd_pkt() 232 if (res < 0) { in ps3av_send_cmd_pkt() 235 __func__, res); in ps3av_send_cmd_pkt() 236 return res; in ps3av_send_cmd_pkt() 243 res = ps3av_vuart_read(ps3av->dev, recv_buf, PS3AV_HDR_SIZE, in ps3av_send_cmd_pkt() 245 if (res != PS3AV_HDR_SIZE) { in ps3av_send_cmd_pkt() 248 __func__, res); in ps3av_send_cmd_pkt() 249 return res; in ps3av_send_cmd_pkt() 253 res = ps3av_vuart_read(ps3av->dev, &recv_buf->cid, in ps3av_send_cmd_pkt() [all …]
|
/linux-4.4.14/arch/mips/ath79/ |
D | pci.c | 138 struct resource res[4]; in ath79_register_pci_ar71xx() local 140 memset(res, 0, sizeof(res)); in ath79_register_pci_ar71xx() 142 res[0].name = "cfg_base"; in ath79_register_pci_ar71xx() 143 res[0].flags = IORESOURCE_MEM; in ath79_register_pci_ar71xx() 144 res[0].start = AR71XX_PCI_CFG_BASE; in ath79_register_pci_ar71xx() 145 res[0].end = AR71XX_PCI_CFG_BASE + AR71XX_PCI_CFG_SIZE - 1; in ath79_register_pci_ar71xx() 147 res[1].flags = IORESOURCE_IRQ; in ath79_register_pci_ar71xx() 148 res[1].start = ATH79_CPU_IRQ(2); in ath79_register_pci_ar71xx() 149 res[1].end = ATH79_CPU_IRQ(2); in ath79_register_pci_ar71xx() 151 res[2].name = "io_base"; in ath79_register_pci_ar71xx() [all …]
|
/linux-4.4.14/drivers/thunderbolt/ |
D | eeprom.c | 41 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() local 42 if (res) in tb_eeprom_active() 43 return res; in tb_eeprom_active() 46 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 47 if (res) in tb_eeprom_active() 48 return res; in tb_eeprom_active() 53 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 54 if (res) in tb_eeprom_active() 55 return res; in tb_eeprom_active() 70 int res; in tb_eeprom_transfer() local [all …]
|
D | ctl.c | 204 struct tb_cfg_result res = { 0 }; in decode_error() local 205 res.response_route = get_route(pkg->header); in decode_error() 206 res.response_port = 0; in decode_error() 207 res.err = check_header(response, sizeof(*pkg), TB_CFG_PKG_ERROR, in decode_error() 209 if (res.err) in decode_error() 210 return res; in decode_error() 215 res.err = 1; in decode_error() 216 res.tb_error = pkg->error; in decode_error() 217 res.response_port = pkg->port; in decode_error() 218 return res; in decode_error() [all …]
|
D | switch.c | 66 int res; in tb_port_state() local 71 res = tb_port_read(port, &phy, TB_CFG_PORT, port->cap_phy, 2); in tb_port_state() 72 if (res) in tb_port_state() 73 return res; in tb_port_state() 186 int res; in tb_init_port() local 189 res = tb_port_read(port, &port->config, TB_CFG_PORT, 0, 8); in tb_init_port() 190 if (res) in tb_init_port() 191 return res; in tb_init_port() 237 struct tb_cfg_result res; in tb_switch_reset() local 244 res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route, in tb_switch_reset() [all …]
|
/linux-4.4.14/drivers/pci/ |
D | setup-res.c | 37 struct resource *res = dev->resource + resno; in pci_update_resource() local 48 if (!res->flags) in pci_update_resource() 51 if (res->flags & IORESOURCE_UNSET) in pci_update_resource() 59 if (res->flags & IORESOURCE_PCI_FIXED) in pci_update_resource() 62 pcibios_resource_to_bus(dev->bus, ®ion, res); in pci_update_resource() 64 new = region.start | (res->flags & PCI_REGION_FLAG_MASK); in pci_update_resource() 65 if (res->flags & IORESOURCE_IO) in pci_update_resource() 74 if (!(res->flags & IORESOURCE_ROM_ENABLE)) in pci_update_resource() 84 disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on; in pci_update_resource() 99 if (res->flags & IORESOURCE_MEM_64) { in pci_update_resource() [all …]
|
D | bus.c | 20 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() argument 25 entry = resource_list_create_entry(res, 0); in pci_add_resource_offset() 27 printk(KERN_ERR "PCI: can't add host bridge window %pR\n", res); in pci_add_resource_offset() 36 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() argument 38 pci_add_resource_offset(resources, res, 0); in pci_add_resource() 48 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource() argument 55 dev_err(&bus->dev, "can't add %pR resource\n", res); in pci_bus_add_resource() 59 bus_res->res = res; in pci_bus_add_resource() 74 return bus_res->res; in pci_bus_resource_n() 109 struct resource *res, in pci_clip_resource_to_region() argument [all …]
|
D | setup-bus.c | 35 struct resource *res; member 64 struct pci_dev *dev, struct resource *res, in add_to_list() argument 75 tmp->res = res; in add_to_list() 77 tmp->start = res->start; in add_to_list() 78 tmp->end = res->end; in add_to_list() 79 tmp->flags = res->flags; in add_to_list() 89 struct resource *res) in remove_from_list() argument 94 if (dev_res->res == res) { in remove_from_list() 103 struct resource *res) in res_to_dev_res() argument 108 if (dev_res->res == res) { in res_to_dev_res() [all …]
|
D | rom.c | 27 struct resource *res = pdev->resource + PCI_ROM_RESOURCE; in pci_enable_rom() local 31 if (!res->flags) in pci_enable_rom() 34 pcibios_resource_to_bus(pdev->bus, ®ion, res); in pci_enable_rom() 119 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_map_rom() local 128 if (res->flags & IORESOURCE_ROM_SHADOW) { in pci_map_rom() 133 if (res->flags & in pci_map_rom() 140 if (res->parent == NULL && in pci_map_rom() 157 if (!(res->flags & (IORESOURCE_ROM_ENABLE | in pci_map_rom() 183 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_unmap_rom() local 185 if (res->flags & (IORESOURCE_ROM_COPY | IORESOURCE_ROM_BIOS_COPY)) in pci_unmap_rom() [all …]
|
D | host-bridge.c | 49 struct resource *res) in pcibios_resource_to_bus() argument 56 if (resource_contains(window->res, res)) { in pcibios_resource_to_bus() 62 region->start = res->start - offset; in pcibios_resource_to_bus() 63 region->end = res->end - offset; in pcibios_resource_to_bus() 73 void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res, in pcibios_bus_to_resource() argument 83 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource() 86 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource() 87 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource() 95 res->start = region->start + offset; in pcibios_bus_to_resource() 96 res->end = region->end + offset; in pcibios_bus_to_resource()
|
D | probe.c | 39 struct resource res; member 49 return &r->res; in get_pci_domain_busn_res() 56 r->res.start = 0; in get_pci_domain_busn_res() 57 r->res.end = 0xff; in get_pci_domain_busn_res() 58 r->res.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED; in get_pci_domain_busn_res() 62 return &r->res; in get_pci_domain_busn_res() 175 struct resource *res, unsigned int pos) in __pci_read_base() argument 193 res->name = pci_name(dev); in __pci_read_base() 217 res->flags = decode_bar(dev, l); in __pci_read_base() 218 res->flags |= IORESOURCE_SIZEALIGN; in __pci_read_base() [all …]
|
/linux-4.4.14/drivers/pcmcia/ |
D | rsrc_iodyn.c | 30 const struct resource *res, in pcmcia_align() argument 36 start = (res->start & ~data->mask) + data->offset; in pcmcia_align() 37 if (start < res->start) in pcmcia_align() 41 if (res->flags & IORESOURCE_IO) { in pcmcia_align() 48 if (res->flags & IORESOURCE_IO) { in pcmcia_align() 49 if ((res->start + size - 1) >= 1024) in pcmcia_align() 50 start = res->end; in pcmcia_align() 62 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, in __iodyn_find_io_region() local 73 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, in __iodyn_find_io_region() 77 ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, in __iodyn_find_io_region() [all …]
|
D | pcmcia_resource.c | 64 static void release_io_space(struct pcmcia_socket *s, struct resource *res) in release_io_space() argument 66 resource_size_t num = resource_size(res); in release_io_space() 69 dev_dbg(&s->dev, "release_io_space for %pR\n", res); in release_io_space() 72 if (!s->io[i].res) in release_io_space() 74 if ((s->io[i].res->start <= res->start) && in release_io_space() 75 (s->io[i].res->end >= res->end)) { in release_io_space() 77 if (res->parent) in release_io_space() 78 release_resource(res); in release_io_space() 79 res->start = res->end = 0; in release_io_space() 80 res->flags = IORESOURCE_IO; in release_io_space() [all …]
|
D | rsrc_nonstatic.c | 79 struct resource *res, *parent; in claim_region() local 82 res = pcmcia_make_resource(base, size, type | IORESOURCE_BUSY, name); in claim_region() 84 if (res) { in claim_region() 87 parent = pci_find_parent_resource(s->cb_dev, res); in claim_region() 89 if (!parent || request_resource(parent, res)) { in claim_region() 90 kfree(res); in claim_region() 91 res = NULL; in claim_region() 94 return res; in claim_region() 97 static void free_region(struct resource *res) in free_region() argument 99 if (res) { in free_region() [all …]
|
D | rsrc_mgr.c | 37 struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); in pcmcia_make_resource() local 39 if (res) { in pcmcia_make_resource() 40 res->name = name; in pcmcia_make_resource() 41 res->start = start; in pcmcia_make_resource() 42 res->end = start + end - 1; in pcmcia_make_resource() 43 res->flags = flags; in pcmcia_make_resource() 45 return res; in pcmcia_make_resource()
|
/linux-4.4.14/arch/mips/kernel/ |
D | unaligned.c | 111 #define _LoadHW(addr, value, res, type) \ argument 129 : "=&r" (value), "=r" (res) \ 134 #define _LoadW(addr, value, res, type) \ argument 150 : "=&r" (value), "=r" (res) \ 156 #define _LoadW(addr, value, res, type) \ argument 185 : "=&r" (value), "=r" (res) \ 191 #define _LoadHWU(addr, value, res, type) \ argument 211 : "=&r" (value), "=r" (res) \ 216 #define _LoadWU(addr, value, res, type) \ argument 234 : "=&r" (value), "=r" (res) \ [all …]
|
/linux-4.4.14/kernel/ |
D | resource.c | 131 int res = seq_open(file, &resource_op); in ioports_open() local 132 if (!res) { in ioports_open() 136 return res; in ioports_open() 141 int res = seq_open(file, &resource_op); in iomem_open() local 142 if (!res) { in iomem_open() 146 return res; in iomem_open() 173 static void free_resource(struct resource *res) in free_resource() argument 175 if (!res) in free_resource() 178 if (!PageSlab(virt_to_head_page(res))) { in free_resource() 180 res->sibling = bootmem_resource_free; in free_resource() [all …]
|
D | memremap.c | 112 static void devm_memremap_release(struct device *dev, void *res) in devm_memremap_release() argument 114 memunmap(*(void **)res); in devm_memremap_release() 117 static int devm_memremap_match(struct device *dev, void *res, void *match_data) in devm_memremap_match() argument 119 return *(void **)res == match_data; in devm_memremap_match() 154 struct resource res; member 157 static void devm_memremap_pages_release(struct device *dev, void *res) in devm_memremap_pages_release() argument 159 struct page_map *page_map = res; in devm_memremap_pages_release() 162 arch_remove_memory(page_map->res.start, resource_size(&page_map->res)); in devm_memremap_pages_release() 165 void *devm_memremap_pages(struct device *dev, struct resource *res) in devm_memremap_pages() argument 167 int is_ram = region_intersects(res->start, resource_size(res), in devm_memremap_pages() [all …]
|
/linux-4.4.14/drivers/media/platform/s5p-tv/ |
D | mixer_drv.c | 73 struct mxr_resources *res = &mdev->res; in mxr_streamer_get() local 77 clk_set_parent(res->sclk_mixer, res->sclk_dac); in mxr_streamer_get() 79 clk_set_parent(res->sclk_mixer, res->sclk_hdmi); in mxr_streamer_get() 164 struct resource *res; in mxr_acquire_plat_resources() local 167 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mxr"); in mxr_acquire_plat_resources() 168 if (res == NULL) { in mxr_acquire_plat_resources() 174 mdev->res.mxr_regs = ioremap(res->start, resource_size(res)); in mxr_acquire_plat_resources() 175 if (mdev->res.mxr_regs == NULL) { in mxr_acquire_plat_resources() 181 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vp"); in mxr_acquire_plat_resources() 182 if (res == NULL) { in mxr_acquire_plat_resources() [all …]
|
D | hdmi_drv.c | 96 struct hdmi_resources res; member 499 struct hdmi_resources *res = &hdev->res; in hdmi_streamon() local 536 clk_disable(res->sclk_hdmi); in hdmi_streamon() 537 clk_set_parent(res->sclk_hdmi, res->sclk_hdmiphy); in hdmi_streamon() 538 clk_enable(res->sclk_hdmi); in hdmi_streamon() 550 struct hdmi_resources *res = &hdev->res; in hdmi_streamoff() local 558 clk_disable(res->sclk_hdmi); in hdmi_streamoff() 559 clk_set_parent(res->sclk_hdmi, res->sclk_pixel); in hdmi_streamoff() 560 clk_enable(res->sclk_hdmi); in hdmi_streamoff() 580 static int hdmi_resource_poweron(struct hdmi_resources *res) in hdmi_resource_poweron() argument [all …]
|
/linux-4.4.14/drivers/acpi/ |
D | resource.c | 29 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid() argument 32 return res->end < 0x10003; in acpi_iospace_resource_valid() 42 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid() argument 65 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags() argument 68 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags() 70 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags() 71 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET; in acpi_dev_memresource_flags() 74 res->flags |= IORESOURCE_MEM_WRITEABLE; in acpi_dev_memresource_flags() 77 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource() argument 80 res->start = start; in acpi_dev_get_memresource() [all …]
|
D | ioapic.c | 35 struct resource res; member 45 struct resource *res = data; in setup_res() local 48 res->flags = 0; in setup_res() 52 if (!acpi_dev_resource_memory(acpi_res, res)) { in setup_res() 55 *res = win.res; in setup_res() 57 if ((res->flags & IORESOURCE_PREFETCH) || in setup_res() 58 (res->flags & IORESOURCE_DISABLED)) in setup_res() 59 res->flags = 0; in setup_res() 100 struct resource *res = NULL; in handle_ioapic_add() local 140 res = &dev->resource[0]; in handle_ioapic_add() [all …]
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_mixer.c | 143 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) in vp_reg_read() argument 145 return readl(res->vp_regs + reg_id); in vp_reg_read() 148 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, in vp_reg_write() argument 151 writel(val, res->vp_regs + reg_id); in vp_reg_write() 154 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, in vp_reg_writemask() argument 157 u32 old = vp_reg_read(res, reg_id); in vp_reg_writemask() 160 writel(val, res->vp_regs + reg_id); in vp_reg_writemask() 163 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) in mixer_reg_read() argument 165 return readl(res->mixer_regs + reg_id); in mixer_reg_read() 168 static inline void mixer_reg_write(struct mixer_resources *res, u32 reg_id, in mixer_reg_write() argument [all …]
|
/linux-4.4.14/samples/hidraw/ |
D | hid-example.c | 45 int i, res, desc_size = 0; in main() local 68 res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size); in main() 69 if (res < 0) in main() 76 res = ioctl(fd, HIDIOCGRDESC, &rpt_desc); in main() 77 if (res < 0) { in main() 87 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); in main() 88 if (res < 0) in main() 94 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); in main() 95 if (res < 0) in main() 101 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main() [all …]
|
/linux-4.4.14/arch/x86/pci/ |
D | broadcom_bus.c | 26 struct resource res; in cnb20le_res() local 53 res.start = (word1 << 16) | 0x0000; in cnb20le_res() 54 res.end = (word2 << 16) | 0xffff; in cnb20le_res() 55 res.flags = IORESOURCE_MEM; in cnb20le_res() 56 update_res(info, res.start, res.end, res.flags, 0); in cnb20le_res() 63 res.start = ((resource_size_t) word1 << 16) | 0x0000; in cnb20le_res() 64 res.end = ((resource_size_t) word2 << 16) | 0xffff; in cnb20le_res() 65 res.flags = IORESOURCE_MEM | IORESOURCE_PREFETCH; in cnb20le_res() 66 update_res(info, res.start, res.end, res.flags, 0); in cnb20le_res() 73 res.start = word1; in cnb20le_res() [all …]
|
D | bus_numa.c | 45 if (window->res->flags & IORESOURCE_BUS) { in x86_pci_root_bus_resources() 54 pci_add_resource(resources, &root_res->res); in x86_pci_root_bus_resources() 97 struct resource *res; in update_res() local 114 res = &root_res->res; in update_res() 115 if (res->flags != flags) in update_res() 118 common_start = max(res->start, start); in update_res() 119 common_end = min(res->end, end); in update_res() 123 final_start = min(res->start, start); in update_res() 124 final_end = max(res->end, end); in update_res() 126 res->start = final_start; in update_res() [all …]
|
D | mmconfig-shared.c | 36 if (cfg->res.parent) in pci_mmconfig_remove() 37 release_resource(&cfg->res); in pci_mmconfig_remove() 71 struct resource *res; in pci_mmconfig_alloc() local 85 res = &new->res; in pci_mmconfig_alloc() 86 res->start = addr + PCI_MMCFG_BUS_OFFSET(start); in pci_mmconfig_alloc() 87 res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1; in pci_mmconfig_alloc() 88 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; in pci_mmconfig_alloc() 91 res->name = new->name; in pci_mmconfig_alloc() 110 segment, start, end, &new->res, (unsigned long)addr); in pci_mmconfig_add() 376 static acpi_status check_mcfg_resource(struct acpi_resource *res, void *data) in check_mcfg_resource() argument [all …]
|
/linux-4.4.14/drivers/ssb/ |
D | embedded.c | 72 u32 res = 0; in ssb_gpio_in() local 76 res = ssb_chipco_gpio_in(&bus->chipco, mask); in ssb_gpio_in() 78 res = ssb_extif_gpio_in(&bus->extif, mask); in ssb_gpio_in() 83 return res; in ssb_gpio_in() 90 u32 res = 0; in ssb_gpio_out() local 94 res = ssb_chipco_gpio_out(&bus->chipco, mask, value); in ssb_gpio_out() 96 res = ssb_extif_gpio_out(&bus->extif, mask, value); in ssb_gpio_out() 101 return res; in ssb_gpio_out() 108 u32 res = 0; in ssb_gpio_outen() local 112 res = ssb_chipco_gpio_outen(&bus->chipco, mask, value); in ssb_gpio_outen() [all …]
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_tmf.c | 40 int res; in asd_enqueue_internal() local 51 res = asd_post_ascb_list(ascb->ha, ascb, 1); in asd_enqueue_internal() 52 if (unlikely(res)) in asd_enqueue_internal() 54 return res; in asd_enqueue_internal() 103 int res; \ 108 res = 1; \ 109 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \ 120 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \ 122 if (res) \ 126 res = tcs.dl_opcode; \ [all …]
|
/linux-4.4.14/net/mac802154/ |
D | mib.c | 33 int res; in mac802154_dev_set_page_channel() local 39 res = drv_set_channel(local, page, chan); in mac802154_dev_set_page_channel() 40 if (res) { in mac802154_dev_set_page_channel() 52 int res; in mac802154_get_params() local 57 res = mac802154_llsec_get_params(&sdata->sec, params); in mac802154_get_params() 60 return res; in mac802154_get_params() 68 int res; in mac802154_set_params() local 73 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in mac802154_set_params() 76 return res; in mac802154_set_params() 84 int res; in mac802154_add_key() local [all …]
|
D | cfg.c | 309 int res; in ieee802154_set_llsec_params() local 312 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in ieee802154_set_llsec_params() 315 return res; in ieee802154_set_llsec_params() 325 int res; in ieee802154_get_llsec_params() local 328 res = mac802154_llsec_get_params(&sdata->sec, params); in ieee802154_get_llsec_params() 331 return res; in ieee802154_get_llsec_params() 341 int res; in ieee802154_add_llsec_key() local 344 res = mac802154_llsec_key_add(&sdata->sec, id, key); in ieee802154_add_llsec_key() 347 return res; in ieee802154_add_llsec_key() 356 int res; in ieee802154_del_llsec_key() local [all …]
|
/linux-4.4.14/include/net/ |
D | dn_fib.h | 45 #define DN_FIB_RES_RESET(res) ((res).nh_sel = 0) argument 46 #define DN_FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) argument 48 #define DN_FIB_RES_PREFSRC(res) ((res).fi->fib_prefsrc ? : __dn_fib_res_prefsrc(&res)) argument 49 #define DN_FIB_RES_GW(res) (DN_FIB_RES_NH(res).nh_gw) argument 50 #define DN_FIB_RES_DEV(res) (DN_FIB_RES_NH(res).nh_dev) argument 51 #define DN_FIB_RES_OIF(res) (DN_FIB_RES_NH(res).nh_oif) argument 87 struct dn_fib_res *res); 106 const struct flowidn *fld, struct dn_fib_res *res); 109 void dn_fib_select_multipath(const struct flowidn *fld, struct dn_fib_res *res); 125 int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res); [all …]
|
D | ip_fib.h | 162 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) argument 164 #define FIB_RES_NH(res) ((res).fi->fib_nh[0]) argument 175 #define FIB_RES_SADDR(net, res) \ argument 176 ((FIB_RES_NH(res).nh_saddr_genid == \ 178 FIB_RES_NH(res).nh_saddr : \ 179 fib_info_update_nh_saddr((net), &FIB_RES_NH(res))) 180 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw) argument 181 #define FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev) argument 182 #define FIB_RES_OIF(res) (FIB_RES_NH(res).nh_oif) argument 184 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument [all …]
|
/linux-4.4.14/fs/hfsplus/ |
D | extents.c | 90 int res; in __hfsplus_ext_write_extent() local 98 res = hfs_brec_find(fd, hfs_find_rec_by_key); in __hfsplus_ext_write_extent() 100 if (res != -ENOENT) in __hfsplus_ext_write_extent() 101 return res; in __hfsplus_ext_write_extent() 106 if (res) in __hfsplus_ext_write_extent() 107 return res; in __hfsplus_ext_write_extent() 126 int res = 0; in hfsplus_ext_write_extent_locked() local 131 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->ext_tree, &fd); in hfsplus_ext_write_extent_locked() 132 if (res) in hfsplus_ext_write_extent_locked() 133 return res; in hfsplus_ext_write_extent_locked() [all …]
|
D | dir.c | 304 int res; in hfsplus_link() local 318 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 321 if (!res) in hfsplus_link() 323 if (res != -EEXIST) in hfsplus_link() 329 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 331 if (res) in hfsplus_link() 337 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 338 if (res) in hfsplus_link() 350 return res; in hfsplus_link() 360 int res; in hfsplus_unlink() local [all …]
|
D | xattr.c | 432 int res; in hfsplus_setxattr() local 443 res = __hfsplus_setxattr(d_inode(dentry), xattr_name, value, size, in hfsplus_setxattr() 446 return res; in hfsplus_setxattr() 452 ssize_t res = 0; in hfsplus_getxattr_finder_info() local 462 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd); in hfsplus_getxattr_finder_info() 463 if (res) { in hfsplus_getxattr_finder_info() 465 return res; in hfsplus_getxattr_finder_info() 467 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_getxattr_finder_info() 468 if (res) in hfsplus_getxattr_finder_info() 478 res = folder_rec_len; in hfsplus_getxattr_finder_info() [all …]
|
D | bfind.c | 119 int res; in __hfs_brec_find() local 124 res = -ENOENT; in __hfs_brec_find() 130 res = -EINVAL; in __hfs_brec_find() 135 res = 0; in __hfs_brec_find() 144 res = -EINVAL; in __hfs_brec_find() 158 return res; in __hfs_brec_find() 169 int height, res; in hfs_brec_find() local 179 res = 0; in hfs_brec_find() 184 res = PTR_ERR(bnode); in hfs_brec_find() 194 res = __hfs_brec_find(bnode, fd, do_key_compare); in hfs_brec_find() [all …]
|
D | part_tbl.c | 97 int res; in hfs_parse_new_pmap() local 113 res = hfsplus_submit_bio(sb, in hfs_parse_new_pmap() 116 if (res) in hfs_parse_new_pmap() 117 return res; in hfs_parse_new_pmap() 132 int res; in hfs_part_find() local 138 res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK, in hfs_part_find() 140 if (res) in hfs_part_find() 145 res = hfs_parse_old_pmap(sb, data, part_start, part_size); in hfs_part_find() 148 res = hfs_parse_new_pmap(sb, buf, data, part_start, part_size); in hfs_part_find() 151 res = -ENOENT; in hfs_part_find() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_resource.c | 160 __u64 res = 0; in resource_count_show() local 166 res += cfs_hash_bd_count_get(&bd); in resource_count_show() 167 return sprintf(buf, "%lld\n", res); in resource_count_show() 433 static struct ldlm_resource *ldlm_resource_getref(struct ldlm_resource *res) in ldlm_resource_getref() argument 435 LASSERT(res); in ldlm_resource_getref() 436 LASSERT(res != LP_POISON); in ldlm_resource_getref() 437 atomic_inc(&res->lr_refcount); in ldlm_resource_getref() 438 CDEBUG(D_INFO, "getref res: %p count: %d\n", res, in ldlm_resource_getref() 439 atomic_read(&res->lr_refcount)); in ldlm_resource_getref() 440 return res; in ldlm_resource_getref() [all …]
|
/linux-4.4.14/fs/hfs/ |
D | attr.c | 23 int res; in hfs_setxattr() local 28 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in hfs_setxattr() 29 if (res) in hfs_setxattr() 30 return res; in hfs_setxattr() 32 res = hfs_brec_find(&fd); in hfs_setxattr() 33 if (res) in hfs_setxattr() 43 res = -ERANGE; in hfs_setxattr() 48 res = -ERANGE; in hfs_setxattr() 50 res = -EOPNOTSUPP; in hfs_setxattr() 51 if (!res) in hfs_setxattr() [all …]
|
D | extent.c | 112 int res; in __hfs_ext_write_extent() local 116 res = hfs_brec_find(fd); in __hfs_ext_write_extent() 118 if (res != -ENOENT) in __hfs_ext_write_extent() 119 return res; in __hfs_ext_write_extent() 123 if (res) in __hfs_ext_write_extent() 124 return res; in __hfs_ext_write_extent() 134 int res = 0; in hfs_ext_write_extent() local 137 res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_write_extent() 138 if (res) in hfs_ext_write_extent() 139 return res; in hfs_ext_write_extent() [all …]
|
D | dir.c | 26 int res; in hfs_lookup() local 28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup() 29 if (res) in hfs_lookup() 30 return ERR_PTR(res); in hfs_lookup() 32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup() 33 if (res) { in hfs_lookup() 35 if (res == -ENOENT) { in hfs_lookup() 40 return ERR_PTR(res); in hfs_lookup() 196 int res; in hfs_create() local 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() [all …]
|
D | bfind.c | 48 int res; in __hfs_brec_find() local 52 res = -ENOENT; in __hfs_brec_find() 58 res = -EINVAL; in __hfs_brec_find() 65 res = 0; in __hfs_brec_find() 77 res = -EINVAL; in __hfs_brec_find() 89 return res; in __hfs_brec_find() 100 int height, res; in hfs_brec_find() local 110 res = 0; in hfs_brec_find() 115 res = PTR_ERR(bnode); in hfs_brec_find() 125 res = __hfs_brec_find(bnode, fd); in hfs_brec_find() [all …]
|
/linux-4.4.14/fs/f2fs/ |
D | crypto_key.c | 30 ecr->res = rc; in derive_crypt_complete() 46 int res = 0; in f2fs_derive_key_aes() local 54 res = PTR_ERR(tfm); in f2fs_derive_key_aes() 61 res = -ENOMEM; in f2fs_derive_key_aes() 67 res = crypto_ablkcipher_setkey(tfm, deriving_key, in f2fs_derive_key_aes() 69 if (res < 0) in f2fs_derive_key_aes() 76 res = crypto_ablkcipher_encrypt(req); in f2fs_derive_key_aes() 77 if (res == -EINPROGRESS || res == -EBUSY) { in f2fs_derive_key_aes() 80 res = ecr.res; in f2fs_derive_key_aes() 87 return res; in f2fs_derive_key_aes() [all …]
|
D | crypto_policy.c | 23 int res = f2fs_getxattr(inode, F2FS_XATTR_INDEX_ENCRYPTION, in f2fs_inode_has_encryption_context() local 25 return (res > 0); in f2fs_inode_has_encryption_context() 36 int res = f2fs_getxattr(inode, F2FS_XATTR_INDEX_ENCRYPTION, in f2fs_is_encryption_context_consistent_with_policy() local 40 if (res != sizeof(ctx)) in f2fs_is_encryption_context_consistent_with_policy() 116 int res; in f2fs_get_policy() local 121 res = f2fs_getxattr(inode, F2FS_XATTR_INDEX_ENCRYPTION, in f2fs_get_policy() 124 if (res != sizeof(ctx)) in f2fs_get_policy() 142 int res; in f2fs_is_child_context_consistent_with_parent() local 155 res = f2fs_get_encryption_info(parent); in f2fs_is_child_context_consistent_with_parent() 156 if (res) in f2fs_is_child_context_consistent_with_parent() [all …]
|
D | crypto_fname.c | 41 static void f2fs_dir_crypt_complete(struct crypto_async_request *req, int res) in f2fs_dir_crypt_complete() argument 45 if (res == -EINPROGRESS) in f2fs_dir_crypt_complete() 47 ecr->res = res; in f2fs_dir_crypt_complete() 77 int res = 0; in f2fs_fname_encrypt() local 125 res = crypto_ablkcipher_encrypt(req); in f2fs_fname_encrypt() 126 if (res == -EINPROGRESS || res == -EBUSY) { in f2fs_fname_encrypt() 129 res = ecr.res; in f2fs_fname_encrypt() 133 if (res < 0) { in f2fs_fname_encrypt() 135 "%s: Error (error code %d)\n", __func__, res); in f2fs_fname_encrypt() 138 return res; in f2fs_fname_encrypt() [all …]
|
/linux-4.4.14/fs/ext4/ |
D | crypto_policy.c | 21 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inode_has_encryption_context() local 23 return (res > 0); in ext4_inode_has_encryption_context() 34 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_is_encryption_context_consistent_with_policy() local 37 if (res != sizeof(ctx)) in ext4_is_encryption_context_consistent_with_policy() 54 int res, res2; in ext4_create_encryption_context_from_policy() local 56 res = ext4_convert_inline_data(inode); in ext4_create_encryption_context_from_policy() 57 if (res) in ext4_create_encryption_context_from_policy() 58 return res; in ext4_create_encryption_context_from_policy() 87 res = ext4_xattr_set(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_create_encryption_context_from_policy() 90 if (!res) { in ext4_create_encryption_context_from_policy() [all …]
|
D | crypto_key.c | 27 ecr->res = rc; in derive_crypt_complete() 43 int res = 0; in ext4_derive_key_aes() local 51 res = PTR_ERR(tfm); in ext4_derive_key_aes() 58 res = -ENOMEM; in ext4_derive_key_aes() 64 res = crypto_ablkcipher_setkey(tfm, deriving_key, in ext4_derive_key_aes() 66 if (res < 0) in ext4_derive_key_aes() 72 res = crypto_ablkcipher_encrypt(req); in ext4_derive_key_aes() 73 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_derive_key_aes() 75 res = ecr.res; in ext4_derive_key_aes() 83 return res; in ext4_derive_key_aes() [all …]
|
D | crypto.c | 99 int res = 0; in ext4_get_crypto_ctx() local 125 res = -ENOMEM; in ext4_get_crypto_ctx() 135 if (res) { in ext4_get_crypto_ctx() 138 ctx = ERR_PTR(res); in ext4_get_crypto_ctx() 180 int i, res = -ENOMEM; in ext4_init_crypto() local 204 res = -ENOMEM; in ext4_init_crypto() 213 res = -ENOMEM; in ext4_init_crypto() 222 return res; in ext4_init_crypto() 241 static void ext4_crypt_complete(struct crypto_async_request *req, int res) in ext4_crypt_complete() argument 245 if (res == -EINPROGRESS) in ext4_crypt_complete() [all …]
|
D | symlink.c | 34 int res; in ext4_encrypted_follow_link() local 37 res = ext4_get_encryption_info(inode); in ext4_encrypted_follow_link() 38 if (res) in ext4_encrypted_follow_link() 39 return ERR_PTR(res); in ext4_encrypted_follow_link() 60 res = -EFSCORRUPTED; in ext4_encrypted_follow_link() 67 res = -ENOMEM; in ext4_encrypted_follow_link() 72 res = _ext4_fname_disk_to_usr(inode, NULL, &cstr, &pstr); in ext4_encrypted_follow_link() 73 if (res < 0) in ext4_encrypted_follow_link() 76 if (res <= plen) in ext4_encrypted_follow_link() 77 paddr[res] = '\0'; in ext4_encrypted_follow_link() [all …]
|
D | crypto_fname.c | 35 static void ext4_dir_crypt_complete(struct crypto_async_request *req, int res) in ext4_dir_crypt_complete() argument 39 if (res == -EINPROGRESS) in ext4_dir_crypt_complete() 41 ecr->res = res; in ext4_dir_crypt_complete() 72 int res = 0; in ext4_fname_encrypt() local 121 res = crypto_ablkcipher_encrypt(req); in ext4_fname_encrypt() 122 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_fname_encrypt() 124 res = ecr.res; in ext4_fname_encrypt() 128 if (res < 0) { in ext4_fname_encrypt() 130 KERN_ERR "%s: Error (error code %d)\n", __func__, res); in ext4_fname_encrypt() 133 return res; in ext4_fname_encrypt() [all …]
|
/linux-4.4.14/arch/mips/pci/ |
D | pci-bcm47xx.c | 39 int res; in bcm47xx_pcibios_plat_dev_init_ssb() local 42 res = ssb_pcibios_plat_dev_init(dev); in bcm47xx_pcibios_plat_dev_init_ssb() 43 if (res < 0) { in bcm47xx_pcibios_plat_dev_init_ssb() 46 return res; in bcm47xx_pcibios_plat_dev_init_ssb() 51 res = ssb_pcibios_map_irq(dev, slot, pin); in bcm47xx_pcibios_plat_dev_init_ssb() 54 if (res < 2) { in bcm47xx_pcibios_plat_dev_init_ssb() 57 return res; in bcm47xx_pcibios_plat_dev_init_ssb() 60 dev->irq = res; in bcm47xx_pcibios_plat_dev_init_ssb() 68 int res; in bcm47xx_pcibios_plat_dev_init_bcma() local 70 res = bcma_core_pci_plat_dev_init(dev); in bcm47xx_pcibios_plat_dev_init_bcma() [all …]
|
D | ops-sni.c | 43 int res; in pcimt_read() local 45 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_read() 46 return res; in pcimt_read() 66 int res; in pcimt_write() local 68 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_write() 69 return res; in pcimt_write() 103 int res; in pcit_read() local 113 if ((res = pcit_set_config_address(0, devfn, 0))) in pcit_read() 114 return res; in pcit_read() 120 if ((res = pcit_set_config_address(bus->number, devfn, reg))) in pcit_read() [all …]
|
D | ops-bridge.c | 52 int res; in pci_conf0_read_config() local 68 res = get_dbe(*value, (u8 *) addr); in pci_conf0_read_config() 70 res = get_dbe(*value, (u16 *) addr); in pci_conf0_read_config() 72 res = get_dbe(*value, (u32 *) addr); in pci_conf0_read_config() 74 return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; in pci_conf0_read_config() 113 int res; in pci_conf1_read_config() local 131 res = get_dbe(*value, (u8 *) addr); in pci_conf1_read_config() 133 res = get_dbe(*value, (u16 *) addr); in pci_conf1_read_config() 135 res = get_dbe(*value, (u32 *) addr); in pci_conf1_read_config() 137 return res ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; in pci_conf1_read_config() [all …]
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-ds1343.c | 376 int res; in ds1343_read_time() local 378 res = regmap_bulk_read(priv->map, DS1343_SECONDS_REG, buf, 7); in ds1343_read_time() 379 if (res) in ds1343_read_time() 380 return res; in ds1343_read_time() 396 int res; in ds1343_set_time() local 398 res = regmap_write(priv->map, DS1343_SECONDS_REG, in ds1343_set_time() 400 if (res) in ds1343_set_time() 401 return res; in ds1343_set_time() 403 res = regmap_write(priv->map, DS1343_MINUTES_REG, in ds1343_set_time() 405 if (res) in ds1343_set_time() [all …]
|
/linux-4.4.14/net/hsr/ |
D | hsr_netlink.c | 72 int res; in hsr_fill_info() local 76 res = 0; in hsr_fill_info() 81 res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex); in hsr_fill_info() 83 if (res) in hsr_fill_info() 89 res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex); in hsr_fill_info() 91 if (res) in hsr_fill_info() 153 int res; in hsr_nl_ringerror() local 163 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 164 if (res < 0) in hsr_nl_ringerror() 167 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() [all …]
|
D | hsr_slave.c | 103 int res; in hsr_portdev_setup() local 106 res = dev_set_promiscuity(dev, 1); in hsr_portdev_setup() 107 if (res) in hsr_portdev_setup() 115 res = netdev_rx_handler_register(dev, hsr_handle_frame, port); in hsr_portdev_setup() 116 if (res) in hsr_portdev_setup() 127 return res; in hsr_portdev_setup() 134 int res; in hsr_add_port() local 137 res = hsr_check_dev_ok(dev); in hsr_add_port() 138 if (res) in hsr_add_port() 139 return res; in hsr_add_port() [all …]
|
/linux-4.4.14/drivers/scsi/libsas/ |
D | sas_expander.c | 70 int res, retry; in smp_execute_task() local 78 res = -ECOMM; in smp_execute_task() 84 res = -ENOMEM; in smp_execute_task() 99 res = i->dft->lldd_execute_task(task, GFP_KERNEL); in smp_execute_task() 101 if (res) { in smp_execute_task() 103 SAS_DPRINTK("executing SMP task failed:%d\n", res); in smp_execute_task() 108 res = -ECOMM; in smp_execute_task() 119 res = 0; in smp_execute_task() 126 res = task->task_status.residual; in smp_execute_task() 131 res = -EMSGSIZE; in smp_execute_task() [all …]
|
D | sas_scsi_host.c | 185 int res = 0; in sas_queuecommand() local 195 res = ata_sas_queuecmd(cmd, dev->sata_dev.ap); in sas_queuecommand() 197 return res; in sas_queuecommand() 204 res = i->dft->lldd_execute_task(task, GFP_ATOMIC); in sas_queuecommand() 205 if (res) in sas_queuecommand() 210 SAS_DPRINTK("lldd_execute_task returned: %d\n", res); in sas_queuecommand() 213 if (res == -SAS_QUEUE_FULL) in sas_queuecommand() 305 int i, res; in sas_scsi_find_task() local 311 res = si->dft->lldd_abort_task(task); in sas_scsi_find_task() 322 if (res == TMF_RESP_FUNC_COMPLETE) { in sas_scsi_find_task() [all …]
|
/linux-4.4.14/arch/microblaze/pci/ |
D | pci-common.c | 558 struct resource *res; in pci_process_bridge_OF_ranges() local 586 res = NULL; in pci_process_bridge_OF_ranges() 617 res = &hose->io_resource; in pci_process_bridge_OF_ranges() 660 res = &hose->mem_resources[memno++]; in pci_process_bridge_OF_ranges() 663 if (res != NULL) { in pci_process_bridge_OF_ranges() 664 res->name = dev->full_name; in pci_process_bridge_OF_ranges() 665 res->flags = range.flags; in pci_process_bridge_OF_ranges() 666 res->start = range.cpu_addr; in pci_process_bridge_OF_ranges() 667 res->end = range.cpu_addr + range.size - 1; in pci_process_bridge_OF_ranges() 668 res->parent = res->child = res->sibling = NULL; in pci_process_bridge_OF_ranges() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | ioport.c | 66 static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz); 69 static void _sparc_free_io(struct resource *res); 139 struct resource *res; in iounmap() local 145 if ((res = lookup_resource(&sparc_iomap, vaddr)) == NULL) { in iounmap() 149 _sparc_free_io(res); in iounmap() 151 if ((char *)res >= (char*)xresv && (char *)res < (char *)&xresv[XNRES]) { in iounmap() 152 xres_free((struct xresource *)res); in iounmap() 154 kfree(res); in iounmap() 159 void __iomem *of_ioremap(struct resource *res, unsigned long offset, in of_ioremap() argument 162 return _sparc_alloc_io(res->flags & 0xF, in of_ioremap() [all …]
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | uaccess_mm.h | 60 #define __put_user_asm(res, x, ptr, bwl, reg, err) \ argument 75 : "+d" (res), "=m" (*(ptr)) \ 131 #define __get_user_asm(res, x, ptr, type, bwl, reg, err) ({ \ argument 147 : "+d" (res), "=&" #reg (__gu_val) \ 205 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\ argument 235 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 241 unsigned long res = 0, tmp; in __constant_copy_from_user() local 245 __get_user_asm(res, *(u8 *)to, (u8 __user *)from, u8, b, d, 1); in __constant_copy_from_user() 248 __get_user_asm(res, *(u16 *)to, (u16 __user *)from, u16, w, r, 2); in __constant_copy_from_user() 251 __constant_copy_from_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_from_user() [all …]
|
D | bitops.h | 322 int res = 32; in find_first_zero_bit() local 336 : "=d" (res) : "d" (num & -num)); in find_first_zero_bit() 337 res ^= 31; in find_first_zero_bit() 339 res += ((long)p - (long)vaddr - 4) * 8; in find_first_zero_bit() 340 return res < size ? res : size; in find_first_zero_bit() 348 int bit = offset & 31UL, res; in find_next_zero_bit() local 359 : "=d" (res) : "d" (num & -num)); in find_next_zero_bit() 360 if (res < 32) { in find_next_zero_bit() 361 offset += res ^ 31; in find_next_zero_bit() 377 int res = 32; in find_first_bit() local [all …]
|
/linux-4.4.14/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 241 struct resource *res; in mpc52xx_pci_setup() local 258 res = &hose->mem_resources[0]; in mpc52xx_pci_setup() 259 if (res->flags) { in mpc52xx_pci_setup() 262 (unsigned long long)res->start, in mpc52xx_pci_setup() 263 (unsigned long long)res->end, in mpc52xx_pci_setup() 264 (unsigned long long)res->flags); in mpc52xx_pci_setup() 266 MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, in mpc52xx_pci_setup() 267 resource_size(res))); in mpc52xx_pci_setup() 269 if (res->flags & IORESOURCE_PREFETCH) in mpc52xx_pci_setup() 275 res = &hose->mem_resources[1]; in mpc52xx_pci_setup() [all …]
|
/linux-4.4.14/arch/m68k/amiga/ |
D | chipram.c | 46 struct resource *res; in amiga_chip_alloc() local 49 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in amiga_chip_alloc() 50 if (!res) in amiga_chip_alloc() 53 res->name = name; in amiga_chip_alloc() 54 p = amiga_chip_alloc_res(size, res); in amiga_chip_alloc() 56 kfree(res); in amiga_chip_alloc() 72 void *amiga_chip_alloc_res(unsigned long size, struct resource *res) in amiga_chip_alloc_res() argument 80 error = allocate_resource(&chipram_res, res, size, 0, UINT_MAX, in amiga_chip_alloc_res() 89 pr_debug("amiga_chip_alloc_res: returning %pR\n", res); in amiga_chip_alloc_res() 90 return ZTWO_VADDR(res->start); in amiga_chip_alloc_res() [all …]
|
/linux-4.4.14/drivers/acpi/apei/ |
D | apei-base.c | 306 struct apei_res *res, *resn, *res_ins = NULL; in apei_res_add() local 312 list_for_each_entry_safe(res, resn, res_list, list) { in apei_res_add() 313 if (res->start > end || res->end < start) in apei_res_add() 315 else if (end <= res->end && start >= res->start) { in apei_res_add() 319 list_del(&res->list); in apei_res_add() 320 res->start = start = min(res->start, start); in apei_res_add() 321 res->end = end = max(res->end, end); in apei_res_add() 323 res_ins = res; in apei_res_add() 330 res_ins = kmalloc(sizeof(*res), GFP_KERNEL); in apei_res_add() 344 struct apei_res *res1, *resn1, *res2, *res; in apei_res_sub() local [all …]
|
/linux-4.4.14/arch/x86/lib/ |
D | string_32.c | 97 int res; in strcmp() local 108 : "=a" (res), "=&S" (d0), "=&D" (d1) in strcmp() 111 return res; in strcmp() 119 int res; in strncmp() local 133 : "=a" (res), "=&S" (d0), "=&D" (d1), "=&c" (d2) in strncmp() 136 return res; in strncmp() 145 char *res; in strchr() local 155 : "=a" (res), "=&S" (d0) in strchr() 158 return res; in strchr() 167 size_t res; in strlen() local [all …]
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_pmc_ipc.c | 484 struct resource *res; in ipc_create_punit_device() local 495 res = punit_res; in ipc_create_punit_device() 496 res->start = ipcdev.punit_base; in ipc_create_punit_device() 497 res->end = res->start + ipcdev.punit_size - 1; in ipc_create_punit_device() 499 res = punit_res + PUNIT_RESOURCE_INTER; in ipc_create_punit_device() 500 res->start = ipcdev.punit_base2; in ipc_create_punit_device() 501 res->end = res->start + ipcdev.punit_size2 - 1; in ipc_create_punit_device() 526 struct resource *res; in ipc_create_tco_device() local 537 res = tco_res + TCO_RESOURCE_ACPI_IO; in ipc_create_tco_device() 538 res->start = ipcdev.acpi_io_base + TCO_BASE_OFFSET; in ipc_create_tco_device() [all …]
|
/linux-4.4.14/arch/x86/platform/olpc/ |
D | olpc_dt.c | 30 void *res[] = { &node }; in olpc_dt_getsibling() local 35 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling() 44 void *res[] = { &node }; in olpc_dt_getchild() local 49 if (olpc_ofw("child", args, res) || (s32)node == -1) { in olpc_dt_getchild() 61 void *res[] = { &len }; in olpc_dt_getproplen() local 66 if (olpc_ofw("getproplen", args, res)) { in olpc_dt_getproplen() 84 void *res[] = { &plen }; in olpc_dt_getproperty() local 86 if (olpc_ofw("getprop", args, res)) { in olpc_dt_getproperty() 99 void *res[] = { &success }; in olpc_dt_nextprop() local 106 if (olpc_ofw("nextprop", args, res) || success != 1) in olpc_dt_nextprop() [all …]
|
/linux-4.4.14/scripts/ |
D | setlocalversion | 120 local file res 129 res="$res$(cat "$file")" 132 echo "$res" 137 res=$(scm_version) 138 echo "$res" >.scmversion 151 res="$(collect_files localversion*)" 153 res="$res$(collect_files "$srctree"/localversion*)" 157 res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" 162 res="$res$(scm_version)" 170 res="$res${scm:++}" [all …]
|
/linux-4.4.14/drivers/nvme/host/ |
D | scsi.c | 344 int res; in nvme_trans_status_code() local 517 res = nvme_trans_completion(hdr, status, sense_key, asc, ascq); in nvme_trans_status_code() 518 return res ? res : nvme_sc; in nvme_trans_status_code() 529 int res; in nvme_trans_standard_inquiry_page() local 539 res = nvme_trans_status_code(hdr, nvme_sc); in nvme_trans_standard_inquiry_page() 540 if (res) in nvme_trans_standard_inquiry_page() 541 return res; in nvme_trans_standard_inquiry_page() 607 int res; in nvme_trans_device_id_page() local 620 res = nvme_trans_status_code(hdr, nvme_sc); in nvme_trans_device_id_page() 621 if (res) in nvme_trans_device_id_page() [all …]
|
/linux-4.4.14/arch/avr32/kernel/ |
D | setup.c | 80 struct resource *mem, *res; in resource_init() local 95 for (res = reserved; res; res = res->sibling) { in resource_init() 97 memcpy(new, res, sizeof(struct resource)); in resource_init() 103 res->name, res->start, res->end); in resource_init() 178 struct resource *res; in find_free_region() local 182 for (res = reserved; res; res = res->sibling) { in find_free_region() 183 if ((target + size) <= res->start) in find_free_region() 185 if (target <= res->end) in find_free_region() 186 target = ALIGN(res->end + 1, align); in find_free_region() 476 struct resource *res; in setup_bootmem() local [all …]
|
/linux-4.4.14/include/linux/ |
D | pnp.h | 36 static inline int pnp_resource_valid(struct resource *res) in pnp_resource_valid() argument 38 if (res) in pnp_resource_valid() 43 static inline int pnp_resource_enabled(struct resource *res) in pnp_resource_enabled() argument 45 if (res && !(res->flags & IORESOURCE_DISABLED)) in pnp_resource_enabled() 50 static inline resource_size_t pnp_resource_len(struct resource *res) in pnp_resource_len() argument 52 if (res->start == 0 && res->end == 0) in pnp_resource_len() 54 return resource_size(res); in pnp_resource_len() 61 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start() local 63 if (pnp_resource_valid(res)) in pnp_port_start() 64 return res->start; in pnp_port_start() [all …]
|
D | kernel.h | 268 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); 269 int __must_check _kstrtol(const char *s, unsigned int base, long *res); 271 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res); 272 int __must_check kstrtoll(const char *s, unsigned int base, long long *res); 290 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument 298 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul() 300 return _kstrtoul(s, base, res); in kstrtoul() 319 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument 327 return kstrtoll(s, base, (long long *)res); in kstrtol() 329 return _kstrtol(s, base, res); in kstrtol() [all …]
|
/linux-4.4.14/fs/nfs/ |
D | callback_proc.c | 23 struct cb_getattrres *res, in nfs4_callback_getattr() argument 30 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr() 34 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr() 35 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 43 -ntohl(res->status)); in nfs4_callback_getattr() 51 res->size = i_size_read(inode); in nfs4_callback_getattr() 52 res->change_attr = delegation->change_attr; in nfs4_callback_getattr() 54 res->change_attr++; in nfs4_callback_getattr() 55 res->ctime = inode->i_ctime; in nfs4_callback_getattr() 56 res->mtime = inode->i_mtime; in nfs4_callback_getattr() [all …]
|
D | nfs3acl.c | 23 struct nfs3_getaclres res = { in nfs3_get_acl() local 28 .rpc_resp = &res, in nfs3_get_acl() 54 res.fattr = nfs_alloc_fattr(); in nfs3_get_acl() 55 if (res.fattr == NULL) in nfs3_get_acl() 67 status = nfs_refresh_inode(inode, res.fattr); in nfs3_get_acl() 78 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl() 83 if (res.acl_access != NULL) { in nfs3_get_acl() 84 if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) || in nfs3_get_acl() 85 res.acl_access->a_count == 0) { in nfs3_get_acl() 86 posix_acl_release(res.acl_access); in nfs3_get_acl() [all …]
|
D | nfs4xdr.c | 3272 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument 3276 *res = 0; in decode_attr_link_support() 3283 *res = be32_to_cpup(p); in decode_attr_link_support() 3286 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support() 3293 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument 3297 *res = 0; in decode_attr_symlink_support() 3304 *res = be32_to_cpup(p); in decode_attr_symlink_support() 3307 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support() 3341 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument 3345 *res = 60; in decode_attr_lease_time() [all …]
|
D | nfs3proc.c | 33 int res; in nfs3_rpc_wrapper() local 35 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper() 36 if (res != -EJUKEBOX) in nfs3_rpc_wrapper() 39 res = -ERESTARTSYS; in nfs3_rpc_wrapper() 41 return res; in nfs3_rpc_wrapper() 156 struct nfs3_diropres res = { in nfs3_proc_lookup() local 163 .rpc_resp = &res, in nfs3_proc_lookup() 168 res.dir_attr = nfs_alloc_fattr(); in nfs3_proc_lookup() 169 if (res.dir_attr == NULL) in nfs3_proc_lookup() 174 nfs_refresh_inode(dir, res.dir_attr); in nfs3_proc_lookup() [all …]
|
D | nfs42xdr.c | 264 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument 269 static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_deallocate() argument 274 static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) in decode_seek() argument 287 res->sr_eof = be32_to_cpup(p++); in decode_seek() 288 p = xdr_decode_hyper(p, &res->sr_offset); in decode_seek() 311 struct nfs42_falloc_res *res) in nfs4_xdr_dec_allocate() argument 319 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate() 325 status = decode_allocate(xdr, res); in nfs4_xdr_dec_allocate() 328 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate() 338 struct nfs42_falloc_res *res) in nfs4_xdr_dec_deallocate() argument [all …]
|
D | nfs42proc.c | 51 struct nfs42_falloc_res res = { in _nfs42_proc_fallocate() local 57 msg->rpc_resp = &res; in _nfs42_proc_fallocate() 63 res.falloc_fattr = nfs_alloc_fattr(); in _nfs42_proc_fallocate() 64 if (!res.falloc_fattr) in _nfs42_proc_fallocate() 68 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_fallocate() 70 status = nfs_post_op_update_inode(inode, res.falloc_fattr); in _nfs42_proc_fallocate() 72 kfree(res.falloc_fattr); in _nfs42_proc_fallocate() 147 struct nfs42_seek_res res; in _nfs42_proc_llseek() local 151 .rpc_resp = &res, in _nfs42_proc_llseek() 165 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_llseek() [all …]
|
D | nfs4proc.c | 333 int res = 0; in nfs4_delay() local 340 res = -ERESTARTSYS; in nfs4_delay() 341 return res; in nfs4_delay() 556 struct nfs4_sequence_res *res, int cache_reply) in nfs4_init_sequence() argument 562 res->sr_slot = NULL; in nfs4_init_sequence() 572 struct nfs4_sequence_res *res, in nfs40_setup_sequence() argument 578 if (res->sr_slot != NULL) in nfs40_setup_sequence() 594 res->sr_slot = slot; in nfs40_setup_sequence() 612 struct nfs4_sequence_res *res) in nfs40_sequence_done() argument 614 struct nfs4_slot *slot = res->sr_slot; in nfs40_sequence_done() [all …]
|
/linux-4.4.14/arch/mips/ar7/ |
D | platform.c | 568 int res; in ar7_register_uarts() local 586 res = early_serial_setup(&uart_port); in ar7_register_uarts() 587 if (res) in ar7_register_uarts() 588 return res; in ar7_register_uarts() 597 res = early_serial_setup(&uart_port); in ar7_register_uarts() 598 if (res) in ar7_register_uarts() 599 return res; in ar7_register_uarts() 655 int res; in ar7_register_devices() local 657 res = ar7_register_uarts(); in ar7_register_devices() 658 if (res) in ar7_register_devices() [all …]
|
/linux-4.4.14/drivers/usb/host/ |
D | ehci-pmcmsp.c | 101 struct resource *res; in usb_hcd_msp_map_regs() local 107 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in usb_hcd_msp_map_regs() 108 if (res == NULL) in usb_hcd_msp_map_regs() 110 res_len = resource_size(res); in usb_hcd_msp_map_regs() 111 if (!request_mem_region(res->start, res_len, "mab regs")) in usb_hcd_msp_map_regs() 114 dev->mab_regs = ioremap_nocache(res->start, res_len); in usb_hcd_msp_map_regs() 121 res = platform_get_resource(pdev, IORESOURCE_MEM, 2); in usb_hcd_msp_map_regs() 122 if (res == NULL) { in usb_hcd_msp_map_regs() 126 res_len = resource_size(res); in usb_hcd_msp_map_regs() 127 if (!request_mem_region(res->start, res_len, "usbid regs")) { in usb_hcd_msp_map_regs() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | pci-common.c | 676 struct resource *res; in pci_process_bridge_OF_ranges() local 698 res = NULL; in pci_process_bridge_OF_ranges() 733 res = &hose->io_resource; in pci_process_bridge_OF_ranges() 761 res = &hose->mem_resources[memno++]; in pci_process_bridge_OF_ranges() 764 if (res != NULL) { in pci_process_bridge_OF_ranges() 765 res->name = dev->full_name; in pci_process_bridge_OF_ranges() 766 res->flags = range.flags; in pci_process_bridge_OF_ranges() 767 res->start = range.cpu_addr; in pci_process_bridge_OF_ranges() 768 res->end = range.cpu_addr + range.size - 1; in pci_process_bridge_OF_ranges() 769 res->parent = res->child = res->sibling = NULL; in pci_process_bridge_OF_ranges() [all …]
|
/linux-4.4.14/drivers/infiniband/hw/usnic/ |
D | usnic_vnic.c | 97 struct usnic_vnic_res *res; in usnic_vnic_dump() local 121 res = chunk->res[j]; in usnic_vnic_dump() 124 usnic_vnic_res_type_to_str(res->type), in usnic_vnic_dump() 125 res->vnic_idx, res->ctrl, !!res->owner); in usnic_vnic_dump() 127 offset += printrow(res->owner, buf + offset, in usnic_vnic_dump() 237 struct usnic_vnic_res *res; in usnic_vnic_get_resources() local 250 ret->res = kzalloc(sizeof(*(ret->res))*cnt, GFP_ATOMIC); in usnic_vnic_get_resources() 251 if (!ret->res) { in usnic_vnic_get_resources() 261 res = src->res[i]; in usnic_vnic_get_resources() 262 if (!res->owner) { in usnic_vnic_get_resources() [all …]
|
/linux-4.4.14/arch/arc/include/asm/ |
D | uaccess.h | 168 long res = 0; in __arc_copy_from_user() local 215 res = orig_n; in __arc_copy_from_user() 244 : "+r" (res), "+r"(to), "+r"(from), in __arc_copy_from_user() 268 : "+r" (res), "+r"(to), "+r"(from), in __arc_copy_from_user() 289 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 309 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 327 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 383 : "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val), in __arc_copy_from_user() 389 return res; in __arc_copy_from_user() 398 long res = 0; in __arc_copy_to_user() local [all …]
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
D | rtw_cmd.c | 118 int res = _FAIL; in rtw_enqueue_cmd() local 127 res = rtw_cmd_filter(pcmdpriv, cmd_obj); in rtw_enqueue_cmd() 128 if (res == _FAIL) { in rtw_enqueue_cmd() 133 res = _rtw_enqueue_cmd(&pcmdpriv->cmd_queue, cmd_obj); in rtw_enqueue_cmd() 135 if (res == _SUCCESS) in rtw_enqueue_cmd() 141 return res; in rtw_enqueue_cmd() 203 pcmd->res = H2C_DROPPED; in rtw_cmd_thread() 212 pcmd->res = ret; in rtw_cmd_thread() 215 pcmd->res = H2C_PARAMETERS_ERROR; in rtw_cmd_thread() 269 u8 res = _FAIL; in rtw_sitesurvey_cmd() local [all …]
|
/linux-4.4.14/arch/m32r/lib/ |
D | usercopy.c | 41 #define __do_strncpy_from_user(dst,src,count,res) \ argument 66 : "=&r"(res), "=&r"(count), "=&r" (__d0), "=&r" (__d1), \ 75 #define __do_strncpy_from_user(dst,src,count,res) \ argument 103 : "=&r"(res), "=&r"(count), "=&r" (__d0), "=&r" (__d1), \ 115 long res; in __strncpy_from_user() local 116 __do_strncpy_from_user(dst, src, count, res); in __strncpy_from_user() 117 return res; in __strncpy_from_user() 123 long res = -EFAULT; in strncpy_from_user() local 125 __do_strncpy_from_user(dst, src, count, res); in strncpy_from_user() 126 return res; in strncpy_from_user() [all …]
|
/linux-4.4.14/arch/mips/include/asm/ |
D | bitops.h | 232 unsigned long res; in test_and_set_bit() local 248 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res) in test_and_set_bit() 262 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res) in test_and_set_bit() 265 } while (unlikely(!res)); in test_and_set_bit() 267 res = temp & (1UL << bit); in test_and_set_bit() 269 res = __mips_test_and_set_bit(nr, addr); in test_and_set_bit() 273 return res != 0; in test_and_set_bit() 288 unsigned long res; in test_and_set_bit_lock() local 302 : "=&r" (temp), "+m" (*m), "=&r" (res) in test_and_set_bit_lock() 316 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m), "=&r" (res) in test_and_set_bit_lock() [all …]
|
/linux-4.4.14/scripts/coccinelle/api/ |
D | resource_size.cocci | 26 struct resource *res; 29 * (res->end - res->start) + 1 36 struct resource *res; 39 - (res->end - res->start) + 1 40 + resource_size(res) 48 struct resource *res; 52 (res->end@p - res->start) + 1 55 struct resource *res; 59 res->end@p - res->start 63 x << r_org.res; [all …]
|
/linux-4.4.14/tools/testing/nvdimm/test/ |
D | iomap.c | 64 - nfit_res->res->start; in __nfit_test_ioremap() 78 - nfit_res->res->start; in __wrap_devm_ioremap_nocache() 92 return nfit_res->buf + offset - nfit_res->res->start; in __wrap_devm_memremap() 106 return nfit_res->buf + offset - nfit_res->res->start; in __wrap_memremap() 173 struct resource *res = nfit_res->res + 1; in nfit_test_request_region() local 175 if (start + n > nfit_res->res->start in nfit_test_request_region() 176 + resource_size(nfit_res->res)) { in nfit_test_request_region() 179 nfit_res->res); in nfit_test_request_region() 183 res->start = start; in nfit_test_request_region() 184 res->end = start + n - 1; in nfit_test_request_region() [all …]
|
/linux-4.4.14/arch/m68k/atari/ |
D | stram.c | 152 struct resource *res; in atari_stram_alloc() local 160 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in atari_stram_alloc() 161 if (!res) in atari_stram_alloc() 164 res->name = owner; in atari_stram_alloc() 165 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc() 170 kfree(res); in atari_stram_alloc() 174 pr_debug("atari_stram_alloc: returning %pR\n", res); in atari_stram_alloc() 175 return atari_stram_to_virt(res->start); in atari_stram_alloc() 183 struct resource *res; in atari_stram_free() local 186 res = lookup_resource(&stram_pool, start); in atari_stram_free() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | i5k_amb.c | 267 int res = 0; in i5k_amb_hwmon_init() local 302 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 304 if (res) in i5k_amb_hwmon_init() 317 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 319 if (res) in i5k_amb_hwmon_init() 333 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 335 if (res) in i5k_amb_hwmon_init() 349 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 351 if (res) in i5k_amb_hwmon_init() 365 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() [all …]
|
D | acpi_power_meter.c | 160 int res; in set_avg_interval() local 165 res = kstrtoul(buf, 10, &temp); in set_avg_interval() 166 if (res) in set_avg_interval() 167 return res; in set_avg_interval() 231 int res; in set_cap() local 236 res = kstrtoul(buf, 10, &temp); in set_cap() 237 if (res) in set_cap() 238 return res; in set_cap() 303 int res; in set_trip() local 306 res = kstrtoul(buf, 10, &temp); in set_trip() [all …]
|
D | ds620.c | 118 int res; in ds620_update_client() local 123 res = i2c_smbus_read_word_swapped(client, in ds620_update_client() 125 if (res < 0) { in ds620_update_client() 126 ret = ERR_PTR(res); in ds620_update_client() 130 data->temp[i] = res; in ds620_update_client() 157 int res; in set_temp() local 164 res = kstrtol(buf, 10, &val); in set_temp() 166 if (res) in set_temp() 167 return res; in set_temp() 186 int res; in show_alarm() local [all …]
|
D | ads1015.c | 82 int res; in ads1015_read_adc() local 87 res = i2c_smbus_read_word_swapped(client, ADS1015_CONFIG); in ads1015_read_adc() 88 if (res < 0) in ads1015_read_adc() 90 config = res; in ads1015_read_adc() 100 res = i2c_smbus_write_word_swapped(client, ADS1015_CONFIG, config); in ads1015_read_adc() 101 if (res < 0) in ads1015_read_adc() 106 res = i2c_smbus_read_word_swapped(client, ADS1015_CONFIG); in ads1015_read_adc() 107 if (res < 0) in ads1015_read_adc() 109 config = res; in ads1015_read_adc() 112 res = -EIO; in ads1015_read_adc() [all …]
|
/linux-4.4.14/drivers/pci/host/ |
D | pci-versatile.c | 72 struct list_head *res) in versatile_pci_parse_request_of_pci_ranges() argument 79 err = of_pci_get_host_bridge_resources(np, 0, 0xff, res, &iobase); in versatile_pci_parse_request_of_pci_ranges() 83 resource_list_for_each_entry(win, res) { in versatile_pci_parse_request_of_pci_ranges() 84 struct resource *parent, *res = win->res; in versatile_pci_parse_request_of_pci_ranges() local 86 switch (resource_type(res)) { in versatile_pci_parse_request_of_pci_ranges() 89 err = pci_remap_iospace(res, iobase); in versatile_pci_parse_request_of_pci_ranges() 92 err, res); in versatile_pci_parse_request_of_pci_ranges() 98 res_valid |= !(res->flags & IORESOURCE_PREFETCH); in versatile_pci_parse_request_of_pci_ranges() 100 writel(res->start >> 28, PCI_IMAP(mem)); in versatile_pci_parse_request_of_pci_ranges() 110 err = devm_request_resource(dev, parent, res); in versatile_pci_parse_request_of_pci_ranges() [all …]
|
D | pci-xgene.c | 246 struct resource *res; in xgene_pcie_map_reg() local 248 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr"); in xgene_pcie_map_reg() 249 port->csr_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg() 253 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg"); in xgene_pcie_map_reg() 254 port->cfg_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg() 257 port->cfg_addr = res->start; in xgene_pcie_map_reg() 263 struct resource *res, u32 offset, in xgene_pcie_setup_ob_reg() argument 267 resource_size_t size = resource_size(res); in xgene_pcie_setup_ob_reg() 268 u64 restype = resource_type(res); in xgene_pcie_setup_ob_reg() 302 struct list_head *res, in xgene_pcie_map_ranges() argument [all …]
|
/linux-4.4.14/arch/arm/kernel/ |
D | swp_emulate.c | 37 #define __user_swpX_asm(data, addr, res, temp, B) \ argument 55 : "=&r" (res), "+r" (data), "=&r" (temp) \ 59 #define __user_swp_asm(data, addr, res, temp) \ argument 60 __user_swpX_asm(data, addr, res, temp, "") 61 #define __user_swpb_asm(data, addr, res, temp) \ argument 62 __user_swpX_asm(data, addr, res, temp, "b") 134 unsigned int res = 0; in emulate_swpX() local 148 __user_swpb_asm(*data, address, res, temp); in emulate_swpX() 150 __user_swp_asm(*data, address, res, temp); in emulate_swpX() 153 if (likely(res != -EAGAIN) || signal_pending(current)) in emulate_swpX() [all …]
|
/linux-4.4.14/drivers/nvdimm/ |
D | namespace_devs.c | 46 kfree(nsblk->res); in namespace_blk_release() 271 struct resource *res; in nd_namespace_blk_size() local 276 for_each_dpa_resource(ndd, res) in nd_namespace_blk_size() 277 if (strcmp(res->name, label_id.id) == 0) in nd_namespace_blk_size() 278 size += resource_size(res); in nd_namespace_blk_size() 288 struct resource *res; in __nd_namespace_blk_validate() local 296 for_each_dpa_resource(ndd, res) { in __nd_namespace_blk_validate() 297 if (strcmp(res->name, label_id.id) != 0) in __nd_namespace_blk_validate() 303 if (res->flags & DPA_RESOURCE_ADJUSTED) in __nd_namespace_blk_validate() 315 for_each_dpa_resource(ndd, res) in __nd_namespace_blk_validate() [all …]
|
D | dimm_devs.c | 235 struct resource *res, *_r; in nvdimm_drvdata_release() local 240 for_each_dpa_resource_safe(ndd, res, _r) in nvdimm_drvdata_release() 241 nvdimm_free_dpa(ndd, res); in nvdimm_drvdata_release() 382 struct resource *res; in nd_blk_available_dpa() local 388 for_each_dpa_resource(ndd, res) in nd_blk_available_dpa() 389 if (res->start >= nd_mapping->start && res->start < map_end) { in nd_blk_available_dpa() 390 resource_size_t end = min(map_end, res->end); in nd_blk_available_dpa() 392 busy += end - res->start + 1; in nd_blk_available_dpa() 393 } else if (res->end >= nd_mapping->start in nd_blk_available_dpa() 394 && res->end <= map_end) { in nd_blk_available_dpa() [all …]
|
D | nd.h | 77 #define nd_dbg_dpa(r, d, res, fmt, arg...) \ argument 79 (r) ? dev_name((d)->dev) : "", res ? res->name : "null", \ 80 (unsigned long long) (res ? resource_size(res) : 0), \ 81 (unsigned long long) (res ? res->start : 0), ##arg) 86 #define for_each_dpa_resource(ndd, res) \ argument 87 for (res = (ndd)->dpa.child; res; res = res->sibling) 89 #define for_each_dpa_resource_safe(ndd, res, next) \ argument 90 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \ 91 res; res = next, next = next ? next->sibling : NULL) 255 void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
|
/linux-4.4.14/drivers/staging/rtl8723au/core/ |
D | rtw_cmd.c | 173 int res = _SUCCESS; in rtw_init_cmd_priv23a() local 181 res = _FAIL; in rtw_init_cmd_priv23a() 183 return res; in rtw_init_cmd_priv23a() 221 int res = _FAIL; in rtw_enqueue_cmd23a() local 228 res = rtw_cmd_filter(pcmdpriv, cmd_obj); in rtw_enqueue_cmd23a() 229 if (res == _FAIL) { in rtw_enqueue_cmd23a() 236 res = queue_work(pcmdpriv->wq, &cmd_obj->work); in rtw_enqueue_cmd23a() 238 if (!res) { in rtw_enqueue_cmd23a() 241 res = _FAIL; in rtw_enqueue_cmd23a() 243 res = _SUCCESS; in rtw_enqueue_cmd23a() [all …]
|
/linux-4.4.14/security/apparmor/ |
D | path.c | 59 char *res; in d_namespace_path() local 65 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path() 66 *name = res; in d_namespace_path() 67 if (IS_ERR(res)) { in d_namespace_path() 69 return PTR_ERR(res); in d_namespace_path() 85 res = __d_path(path, &root, buf, buflen); in d_namespace_path() 88 res = d_absolute_path(path, buf, buflen); in d_namespace_path() 96 if (!res || IS_ERR(res)) { in d_namespace_path() 97 if (PTR_ERR(res) == -ENAMETOOLONG) in d_namespace_path() 100 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path() [all …]
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
D | enic_clsf.c | 22 int res; in enic_addfltr_5t() local 43 res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data); in enic_addfltr_5t() 45 res = (res == 0) ? rq : res; in enic_addfltr_5t() 47 return res; in enic_addfltr_5t() 128 bool res; in enic_flow_may_expire() local 139 res = rps_may_expire_flow(enic->netdev, n->rq_id, in enic_flow_may_expire() 141 if (res) { in enic_flow_may_expire() 142 res = enic_delfltr(enic, n->fltr_id); in enic_flow_may_expire() 143 if (unlikely(res)) in enic_flow_may_expire() 177 int res, i; in enic_rx_flow_steer() local [all …]
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
D | iss.h | 97 struct resource *res[OMAP4_ISS_MEM_LAST]; member 146 enum iss_subclk_resource res); 148 enum iss_subclk_resource res); 150 enum iss_isp_subclk_resource res); 152 enum iss_isp_subclk_resource res); 169 u32 iss_reg_read(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_read() argument 172 return readl(iss->regs[res] + offset); in iss_reg_read() 183 void iss_reg_write(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_write() argument 186 writel(value, iss->regs[res] + offset); in iss_reg_write() 197 void iss_reg_clr(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_clr() argument [all …]
|
/linux-4.4.14/arch/mips/sgi-ip22/ |
D | ip22-platform.c | 67 int res; in sgiwd93_devinit() local 72 res = platform_device_register(&sgiwd93_0_device); in sgiwd93_devinit() 73 if (res) in sgiwd93_devinit() 74 return res; in sgiwd93_devinit() 136 int res, i; in sgiseeq_devinit() local 148 res = platform_device_register(ð0_device); in sgiseeq_devinit() 149 if (res) in sgiseeq_devinit() 150 return res; in sgiseeq_devinit() 198 struct resource res; in sgi_ds1286_devinit() local 200 memset(&res, 0, sizeof(res)); in sgi_ds1286_devinit() [all …]
|
/linux-4.4.14/drivers/staging/nvec/ |
D | nvec_power.c | 93 struct bat_response *res = (struct bat_response *)data; in nvec_power_notifier() local 98 if (res->sub_type == 0) { in nvec_power_notifier() 99 if (power->on != res->plu) { in nvec_power_notifier() 100 power->on = res->plu; in nvec_power_notifier() 129 struct bat_response *res = (struct bat_response *)data; in nvec_power_bat_notifier() local 135 switch (res->sub_type) { in nvec_power_bat_notifier() 137 if (res->plc[0] & 1) { in nvec_power_bat_notifier() 145 switch ((res->plc[0] >> 1) & 3) { in nvec_power_bat_notifier() 168 power->bat_cap = res->plc[1]; in nvec_power_bat_notifier() 173 power->bat_voltage_now = res->plu * 1000; in nvec_power_bat_notifier() [all …]
|
/linux-4.4.14/drivers/char/ |
D | ps3flash.c | 49 u64 res = ps3stor_read_write_sectors(dev, dev->bounce_lpar, in ps3flash_read_write_sectors() local 52 if (res) { in ps3flash_read_write_sectors() 54 __LINE__, write ? "write" : "read", res); in ps3flash_read_write_sectors() 63 int res; in ps3flash_writeback() local 68 res = ps3flash_read_write_sectors(dev, priv->tag, 1); in ps3flash_writeback() 69 if (res) in ps3flash_writeback() 70 return res; in ps3flash_writeback() 79 int res; in ps3flash_fetch() local 84 res = ps3flash_writeback(dev); in ps3flash_fetch() 85 if (res) in ps3flash_fetch() [all …]
|
/linux-4.4.14/drivers/media/radio/ |
D | radio-tea5777.c | 190 int res; in radio_tea5777_set_freq() local 227 res = tea->ops->write_reg(tea, tea->write_reg); in radio_tea5777_set_freq() 228 if (res) in radio_tea5777_set_freq() 229 return res; in radio_tea5777_set_freq() 240 int res; in radio_tea5777_update_read_reg() local 246 res = radio_tea5777_set_freq(tea); in radio_tea5777_update_read_reg() 247 if (res) in radio_tea5777_update_read_reg() 248 return res; in radio_tea5777_update_read_reg() 256 res = tea->ops->read_reg(tea, &tea->read_reg); in radio_tea5777_update_read_reg() 257 if (res) in radio_tea5777_update_read_reg() [all …]
|
/linux-4.4.14/arch/m68k/lib/ |
D | uaccess.c | 13 unsigned long tmp, res; in __generic_copy_from_user() local 55 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp) in __generic_copy_from_user() 58 return res; in __generic_copy_from_user() 65 unsigned long tmp, res; in __generic_copy_to_user() local 99 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp) in __generic_copy_to_user() 102 return res; in __generic_copy_to_user() 112 unsigned long res; in __clear_user() local 143 : "=d" (res), "+a" (to) in __clear_user() 146 return res; in __clear_user()
|
/linux-4.4.14/drivers/usb/c67x00/ |
D | c67x00-drv.c | 123 struct resource *res, *res2; in c67x00_drv_probe() local 126 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in c67x00_drv_probe() 127 if (!res) in c67x00_drv_probe() 142 if (!request_mem_region(res->start, resource_size(res), in c67x00_drv_probe() 148 c67x00->hpi.base = ioremap(res->start, resource_size(res)); in c67x00_drv_probe() 187 release_mem_region(res->start, resource_size(res)); in c67x00_drv_probe() 197 struct resource *res; in c67x00_drv_remove() local 205 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in c67x00_drv_remove() 206 if (res) in c67x00_drv_remove() 207 free_irq(res->start, c67x00); in c67x00_drv_remove() [all …]
|
/linux-4.4.14/arch/mn10300/lib/ |
D | usercopy.c | 33 #define __do_strncpy_from_user(dst, src, count, res) \ argument 63 :"=&r"(res), "=r"(count), "=&r"(w) \ 71 long res; in __strncpy_from_user() local 72 __do_strncpy_from_user(dst, src, count, res); in __strncpy_from_user() 73 return res; in __strncpy_from_user() 79 long res = -EFAULT; in strncpy_from_user() local 81 __do_strncpy_from_user(dst, src, count, res); in strncpy_from_user() 82 return res; in strncpy_from_user() 137 unsigned long res, w; in strnlen_user() local 162 :"=d"(res), "=&r"(w) in strnlen_user() [all …]
|
/linux-4.4.14/arch/mips/alchemy/common/ |
D | platform.c | 219 struct resource *res; in alchemy_setup_usb() local 223 if (_new_usbres(&res, &pdev)) in alchemy_setup_usb() 226 res[0].start = alchemy_ohci_data[ctype][0]; in alchemy_setup_usb() 227 res[0].end = res[0].start + 0x100 - 1; in alchemy_setup_usb() 228 res[0].flags = IORESOURCE_MEM; in alchemy_setup_usb() 229 res[1].start = alchemy_ohci_data[ctype][1]; in alchemy_setup_usb() 230 res[1].end = res[1].start; in alchemy_setup_usb() 231 res[1].flags = IORESOURCE_IRQ; in alchemy_setup_usb() 243 if (_new_usbres(&res, &pdev)) in alchemy_setup_usb() 246 res[0].start = alchemy_ehci_data[ctype][0]; in alchemy_setup_usb() [all …]
|
/linux-4.4.14/tools/include/linux/ |
D | compiler.h | 62 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument 65 case 1: *(__u8_alias_t *) res = *(volatile __u8_alias_t *) p; break; in __read_once_size() 66 case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break; in __read_once_size() 67 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break; in __read_once_size() 68 case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break; in __read_once_size() 71 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size() 76 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument 79 case 1: *(volatile __u8_alias_t *) p = *(__u8_alias_t *) res; break; in __write_once_size() 80 case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break; in __write_once_size() 81 case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; break; in __write_once_size() [all …]
|
/linux-4.4.14/drivers/mfd/ |
D | janz-cmodio.c | 71 struct resource *res; in cmodio_setup_subdevice() local 76 res = &priv->resources[devno * 3]; in cmodio_setup_subdevice() 80 cell->resources = res; in cmodio_setup_subdevice() 92 res->flags = IORESOURCE_MEM; in cmodio_setup_subdevice() 93 res->parent = &pci->resource[3]; in cmodio_setup_subdevice() 94 res->start = pci->resource[3].start + (CMODIO_MODULBUS_SIZE * modno); in cmodio_setup_subdevice() 95 res->end = res->start + CMODIO_MODULBUS_SIZE - 1; in cmodio_setup_subdevice() 96 res++; in cmodio_setup_subdevice() 99 res->flags = IORESOURCE_MEM; in cmodio_setup_subdevice() 100 res->parent = &pci->resource[4]; in cmodio_setup_subdevice() [all …]
|
D | lpc_sch.c | 95 struct resource *res, int size) in lpc_sch_get_io() argument 116 res->start = base_addr; in lpc_sch_get_io() 117 res->end = base_addr + size - 1; in lpc_sch_get_io() 118 res->flags = IORESOURCE_IO; in lpc_sch_get_io() 127 struct resource *res; in lpc_sch_populate_cell() local 130 res = devm_kcalloc(&pdev->dev, 2, sizeof(*res), GFP_KERNEL); in lpc_sch_populate_cell() 131 if (!res) in lpc_sch_populate_cell() 134 ret = lpc_sch_get_io(pdev, where, name, res, size); in lpc_sch_populate_cell() 141 cell->resources = res; in lpc_sch_populate_cell() 150 res++; in lpc_sch_populate_cell() [all …]
|
D | mfd-core.c | 144 struct resource *res; in mfd_add_device() local 160 res = kzalloc(sizeof(*res) * cell->num_resources, GFP_KERNEL); in mfd_add_device() 161 if (!res) in mfd_add_device() 200 res[r].name = cell->resources[r].name; in mfd_add_device() 201 res[r].flags = cell->resources[r].flags; in mfd_add_device() 205 res[r].parent = mem_base; in mfd_add_device() 206 res[r].start = mem_base->start + in mfd_add_device() 208 res[r].end = mem_base->start + in mfd_add_device() 215 res[r].start = res[r].end = irq_create_mapping( in mfd_add_device() 218 res[r].start = irq_base + in mfd_add_device() [all …]
|
/linux-4.4.14/drivers/rapidio/ |
D | rio-access.c | 46 int res; \ 51 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \ 54 return res; \ 70 int res; \ 74 res = mport->ops->lcwrite(mport, mport->id, offset, len, value);\ 76 return res; \ 106 int res; \ 111 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \ 114 return res; \ 130 int res; \ [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | rtc_cmos_setup.c | 24 struct resource res[2]; in add_rtc() local 28 memset(&res, 0, sizeof(res)); in add_rtc() 34 ret = of_address_to_resource(np, 0, &res[0]); in add_rtc() 43 if (res[0].start != RTC_PORT(0)) in add_rtc() 56 res[1].start = 8; in add_rtc() 57 res[1].end = 8; in add_rtc() 58 res[1].flags = IORESOURCE_IRQ; in add_rtc() 63 &res[0], num_res); in add_rtc()
|
D | of_rtc.c | 36 struct resource *res; in of_instantiate_rtc() local 38 res = kmalloc(sizeof(*res), GFP_KERNEL); in of_instantiate_rtc() 39 if (!res) { in of_instantiate_rtc() 46 err = of_address_to_resource(node, 0, res); in of_instantiate_rtc() 56 (unsigned long long)res->start, in of_instantiate_rtc() 57 (unsigned long long)res->end); in of_instantiate_rtc() 58 platform_device_register_simple(plat_name, -1, res, 1); in of_instantiate_rtc()
|
/linux-4.4.14/arch/arm/plat-pxa/ |
D | ssp.c | 117 struct resource *res; in pxa_ssp_probe() local 163 res = platform_get_resource(pdev, IORESOURCE_DMA, 0); in pxa_ssp_probe() 164 if (res == NULL) { in pxa_ssp_probe() 168 ssp->drcmr_rx = res->start; in pxa_ssp_probe() 170 res = platform_get_resource(pdev, IORESOURCE_DMA, 1); in pxa_ssp_probe() 171 if (res == NULL) { in pxa_ssp_probe() 175 ssp->drcmr_tx = res->start; in pxa_ssp_probe() 178 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pxa_ssp_probe() 179 if (res == NULL) { in pxa_ssp_probe() 184 res = devm_request_mem_region(dev, res->start, resource_size(res), in pxa_ssp_probe() [all …]
|
/linux-4.4.14/arch/m32r/kernel/ |
D | align.c | 354 int res = -1; in emu_m32r2() local 361 res = emu_addi(insn, regs); in emu_m32r2() 364 res = emu_ldi(insn, regs); in emu_m32r2() 370 if (!res) in emu_m32r2() 375 res = emu_add(insn, regs); in emu_m32r2() 378 res = emu_addx(insn, regs); in emu_m32r2() 381 res = emu_and(insn, regs); in emu_m32r2() 384 res = emu_cmp(insn, regs); in emu_m32r2() 387 res = emu_cmpeq(insn, regs); in emu_m32r2() 390 res = emu_cmpu(insn, regs); in emu_m32r2() [all …]
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | pci.c | 78 struct resource res[2]; in dwc2_pci_probe() local 99 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); in dwc2_pci_probe() 101 res[0].start = pci_resource_start(pci, 0); in dwc2_pci_probe() 102 res[0].end = pci_resource_end(pci, 0); in dwc2_pci_probe() 103 res[0].name = "dwc2"; in dwc2_pci_probe() 104 res[0].flags = IORESOURCE_MEM; in dwc2_pci_probe() 106 res[1].start = pci->irq; in dwc2_pci_probe() 107 res[1].name = "dwc2"; in dwc2_pci_probe() 108 res[1].flags = IORESOURCE_IRQ; in dwc2_pci_probe() 110 ret = platform_device_add_resources(dwc2, res, ARRAY_SIZE(res)); in dwc2_pci_probe()
|
/linux-4.4.14/scripts/kconfig/ |
D | nconf.gui.c | 205 int res = 0; in get_line_length() local 208 res++; in get_line_length() 210 return res; in get_line_length() 256 int res = -1; in btn_dialog() local 320 while ((res = wgetch(win))) { in btn_dialog() 321 switch (res) { in btn_dialog() 338 if (res == 10 || res == ' ') { in btn_dialog() 339 res = item_index(current_item(menu)); in btn_dialog() 341 } else if (res == 27 || res == KEY_F(F_BACK) || in btn_dialog() 342 res == KEY_F(F_EXIT)) { in btn_dialog() [all …]
|
D | nconf.c | 412 int res = btn_dialog(main_window, in handle_f4() local 417 if (res == 0) in handle_f4() 419 else if (res == 1) in handle_f4() 648 int res; in do_exit() local 653 res = btn_dialog(main_window, in do_exit() 659 if (res == KEY_EXIT) { in do_exit() 665 switch (res) { in do_exit() 667 res = conf_write(filename); in do_exit() 668 if (res) in do_exit() 692 struct gstr res; in search_conf() local [all …]
|
D | mconf.c | 394 struct gstr res; in search_conf() local 444 res = get_relations_str(sym_arr, &head); in search_conf() 447 str_get(&res), 0, 0, keys, &vscroll, in search_conf() 456 str_free(&res); in search_conf() 651 int res; in conf() local 668 res = dialog_menu(prompt ? _(prompt) : _("Main Menu"), in conf() 671 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf() 686 switch (res) { in conf() 808 int res; in conf_choice() local 829 res = dialog_checklist(prompt ? _(prompt) : _("Main Menu"), in conf_choice() [all …]
|
/linux-4.4.14/arch/x86/kernel/ |
D | resource.c | 4 static void resource_clip(struct resource *res, resource_size_t start, in resource_clip() argument 9 if (res->end < start || res->start > end) in resource_clip() 12 if (res->start < start) in resource_clip() 13 low = start - res->start; in resource_clip() 15 if (res->end > end) in resource_clip() 16 high = res->end - end; in resource_clip() 20 res->end = start - 1; in resource_clip() 22 res->start = end + 1; in resource_clip()
|
D | sysfb_simplefb.c | 68 struct resource res; in create_simplefb() local 81 memset(&res, 0, sizeof(res)); in create_simplefb() 82 res.flags = IORESOURCE_MEM | IORESOURCE_BUSY; in create_simplefb() 83 res.name = simplefb_resname; in create_simplefb() 84 res.start = si->lfb_base; in create_simplefb() 85 res.end = si->lfb_base + len - 1; in create_simplefb() 86 if (res.end <= res.start) in create_simplefb() 90 &res, 1, mode, sizeof(*mode)); in create_simplefb()
|
/linux-4.4.14/arch/mips/lib/ |
D | bitops.c | 93 int res; in __mips_test_and_set_bit() local 98 res = (mask & *a) != 0; in __mips_test_and_set_bit() 101 return res; in __mips_test_and_set_bit() 119 int res; in __mips_test_and_set_bit_lock() local 124 res = (mask & *a) != 0; in __mips_test_and_set_bit_lock() 127 return res; in __mips_test_and_set_bit_lock() 144 int res; in __mips_test_and_clear_bit() local 149 res = (mask & *a) != 0; in __mips_test_and_clear_bit() 152 return res; in __mips_test_and_clear_bit() 169 int res; in __mips_test_and_change_bit() local [all …]
|
/linux-4.4.14/drivers/usb/gadget/udc/bdc/ |
D | bdc_pci.c | 48 struct resource res[2]; in bdc_pci_probe() local 69 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); in bdc_pci_probe() 72 res[0].start = pci_resource_start(pci, 0); in bdc_pci_probe() 73 res[0].end = pci_resource_end(pci, 0); in bdc_pci_probe() 74 res[0].name = BRCM_BDC_NAME; in bdc_pci_probe() 75 res[0].flags = IORESOURCE_MEM; in bdc_pci_probe() 77 res[1].start = pci->irq; in bdc_pci_probe() 78 res[1].name = BRCM_BDC_NAME; in bdc_pci_probe() 79 res[1].flags = IORESOURCE_IRQ; in bdc_pci_probe() 81 ret = platform_device_add_resources(bdc, res, ARRAY_SIZE(res)); in bdc_pci_probe()
|
/linux-4.4.14/drivers/media/pci/zoran/ |
D | zoran_driver.c | 491 int res = 0; in zoran_v4l_queue_frame() local 498 res = -ENOMEM; in zoran_v4l_queue_frame() 507 res = -EINVAL; in zoran_v4l_queue_frame() 521 res = -EBUSY; in zoran_v4l_queue_frame() 526 if (!res) { in zoran_v4l_queue_frame() 534 res = -EBUSY; /* what are you doing? */ in zoran_v4l_queue_frame() 556 if (!res && zr->v4l_buffers.active == ZORAN_FREE) in zoran_v4l_queue_frame() 559 return res; in zoran_v4l_queue_frame() 641 int res = 0; in zoran_jpg_queue_frame() local 682 res = -EBUSY; in zoran_jpg_queue_frame() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-pxa-pci.c | 24 struct resource res[2]; in add_i2c_device() local 30 memset(&res, 0, sizeof(res)); in add_i2c_device() 32 res[0].flags = IORESOURCE_MEM; in add_i2c_device() 33 res[0].start = pci_resource_start(dev, bar); in add_i2c_device() 34 res[0].end = pci_resource_end(dev, bar); in add_i2c_device() 36 res[1].flags = IORESOURCE_IRQ; in add_i2c_device() 37 res[1].start = dev->irq; in add_i2c_device() 38 res[1].end = dev->irq; in add_i2c_device() 48 if (r.start != res[0].start) in add_i2c_device() 50 if (r.end != res[0].end) in add_i2c_device() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_fid.h | 398 fid_build_reg_res_name(const struct lu_fid *fid, struct ldlm_res_id *res) in fid_build_reg_res_name() argument 400 memset(res, 0, sizeof(*res)); in fid_build_reg_res_name() 401 res->name[LUSTRE_RES_ID_SEQ_OFF] = fid_seq(fid); in fid_build_reg_res_name() 402 res->name[LUSTRE_RES_ID_VER_OID_OFF] = fid_ver_oid(fid); in fid_build_reg_res_name() 404 return res; in fid_build_reg_res_name() 411 const struct ldlm_res_id *res) in fid_res_name_eq() argument 413 return res->name[LUSTRE_RES_ID_SEQ_OFF] == fid_seq(fid) && in fid_res_name_eq() 414 res->name[LUSTRE_RES_ID_VER_OID_OFF] == fid_ver_oid(fid); in fid_res_name_eq() 421 fid_extract_from_res_name(struct lu_fid *fid, const struct ldlm_res_id *res) in fid_extract_from_res_name() argument 423 fid->f_seq = res->name[LUSTRE_RES_ID_SEQ_OFF]; in fid_extract_from_res_name() [all …]
|
/linux-4.4.14/arch/arm/mach-omap1/ |
D | i2c.c | 54 struct resource *res; in omap_i2c_add_bus() local 65 res = i2c_resources; in omap_i2c_add_bus() 66 res[0].start = OMAP1_I2C_BASE; in omap_i2c_add_bus() 67 res[0].end = res[0].start + OMAP_I2C_SIZE; in omap_i2c_add_bus() 68 res[0].flags = IORESOURCE_MEM; in omap_i2c_add_bus() 69 res[1].start = INT_I2C; in omap_i2c_add_bus() 70 res[1].flags = IORESOURCE_IRQ; in omap_i2c_add_bus() 71 pdev->resource = res; in omap_i2c_add_bus()
|
D | timer.c | 69 struct resource res[2]; in omap1_dm_timer_init() local 120 memset(res, 0, 2 * sizeof(struct resource)); in omap1_dm_timer_init() 121 res[0].start = base; in omap1_dm_timer_init() 122 res[0].end = base + 0x46; in omap1_dm_timer_init() 123 res[0].flags = IORESOURCE_MEM; in omap1_dm_timer_init() 124 res[1].start = irq; in omap1_dm_timer_init() 125 res[1].end = irq; in omap1_dm_timer_init() 126 res[1].flags = IORESOURCE_IRQ; in omap1_dm_timer_init() 127 ret = platform_device_add_resources(pdev, res, in omap1_dm_timer_init() 128 ARRAY_SIZE(res)); in omap1_dm_timer_init()
|
/linux-4.4.14/drivers/scsi/ |
D | a4000t.c | 36 struct resource *res; in amiga_a4000t_scsi_probe() local 41 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in amiga_a4000t_scsi_probe() 42 if (!res) in amiga_a4000t_scsi_probe() 45 if (!request_mem_region(res->start, resource_size(res), in amiga_a4000t_scsi_probe() 56 scsi_addr = res->start + A4000T_SCSI_OFFSET; in amiga_a4000t_scsi_probe() 93 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_probe() 101 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in amiga_a4000t_scsi_remove() local 107 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_remove()
|
D | ps3rom.c | 101 int res; in ps3rom_atapi_request() local 138 res = lv1_storage_send_device_command(dev->sbd.dev_id, in ps3rom_atapi_request() 143 if (res == LV1_DENIED_BY_POLICY) { in ps3rom_atapi_request() 150 if (res) { in ps3rom_atapi_request() 153 __LINE__, opcode, res); in ps3rom_atapi_request() 175 int res; in ps3rom_read_request() local 180 res = lv1_storage_read(dev->sbd.dev_id, in ps3rom_read_request() 183 if (res) { in ps3rom_read_request() 185 __LINE__, res); in ps3rom_read_request() 196 int res; in ps3rom_write_request() local [all …]
|
/linux-4.4.14/sound/hda/ |
D | hdac_bus.c | 69 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb() argument 74 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb() 89 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb_unlocked() argument 97 if (res) in snd_hdac_bus_exec_verb_unlocked() 98 *res = -1; in snd_hdac_bus_exec_verb_unlocked() 100 res = &tmp; in snd_hdac_bus_exec_verb_unlocked() 111 if (!err && res) { in snd_hdac_bus_exec_verb_unlocked() 112 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked() 113 trace_hda_get_response(bus, addr, *res); in snd_hdac_bus_exec_verb_unlocked() 129 void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex) in snd_hdac_bus_queue_event() argument [all …]
|
/linux-4.4.14/arch/unicore32/kernel/ |
D | setup.c | 198 struct resource *res; in request_standard_resources() local 210 res = alloc_bootmem_low(sizeof(*res)); in request_standard_resources() 211 res->name = "System RAM"; in request_standard_resources() 212 res->start = mi->bank[i].start; in request_standard_resources() 213 res->end = mi->bank[i].start + mi->bank[i].size - 1; in request_standard_resources() 214 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; in request_standard_resources() 216 request_resource(&iomem_resource, res); in request_standard_resources() 218 if (kernel_code.start >= res->start && in request_standard_resources() 219 kernel_code.end <= res->end) in request_standard_resources() 220 request_resource(res, &kernel_code); in request_standard_resources() [all …]
|
/linux-4.4.14/arch/ia64/sn/kernel/ |
D | io_init.c | 128 sn_legacy_pci_window_fixup(struct resource *res, in sn_legacy_pci_window_fixup() argument 131 res[0].name = "legacy_io"; in sn_legacy_pci_window_fixup() 132 res[0].flags = IORESOURCE_IO; in sn_legacy_pci_window_fixup() 133 res[0].start = legacy_io; in sn_legacy_pci_window_fixup() 134 res[0].end = res[0].start + 0xffff; in sn_legacy_pci_window_fixup() 135 res[0].parent = &ioport_resource; in sn_legacy_pci_window_fixup() 136 res[1].name = "legacy_mem"; in sn_legacy_pci_window_fixup() 137 res[1].flags = IORESOURCE_MEM; in sn_legacy_pci_window_fixup() 138 res[1].start = legacy_mem; in sn_legacy_pci_window_fixup() 139 res[1].end = res[1].start + (1024 * 1024) - 1; in sn_legacy_pci_window_fixup() [all …]
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
D | hostap_cs.c | 224 int res; in sandisk_set_iobase() local 227 res = pcmcia_write_config_byte(hw_priv->link, 0x10, in sandisk_set_iobase() 229 if (res != 0) { in sandisk_set_iobase() 231 " res=%d\n", res); in sandisk_set_iobase() 235 res = pcmcia_write_config_byte(hw_priv->link, 0x12, in sandisk_set_iobase() 237 if (res != 0) { in sandisk_set_iobase() 239 " res=%d\n", res); in sandisk_set_iobase() 261 int res, ret = 0; in sandisk_enable_wireless() local 288 res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, in sandisk_enable_wireless() 290 if (res != 0) { in sandisk_enable_wireless() [all …]
|
/linux-4.4.14/arch/arm/mach-mvebu/ |
D | cpu-reset.c | 44 struct resource res; in mvebu_cpu_reset_map() local 46 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map() 51 if (!request_mem_region(res.start, resource_size(&res), in mvebu_cpu_reset_map() 57 cpu_reset_base = ioremap(res.start, resource_size(&res)); in mvebu_cpu_reset_map() 60 release_mem_region(res.start, resource_size(&res)); in mvebu_cpu_reset_map() 64 cpu_reset_size = resource_size(&res); in mvebu_cpu_reset_map()
|
/linux-4.4.14/drivers/parisc/ |
D | eisa_enumerator.c | 87 struct resource *res; in configure_memory() local 94 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_memory() 97 res->name = name; in configure_memory() 98 res->start = mem_parent->start + get_24(buf+len+2); in configure_memory() 99 res->end = res->start + get_16(buf+len+5)*1024; in configure_memory() 100 res->flags = IORESOURCE_MEM; in configure_memory() 101 printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); in configure_memory() 102 result = request_resource(mem_parent, res); in configure_memory() 178 struct resource *res; in configure_port() local 186 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_port() [all …]
|
/linux-4.4.14/fs/jffs2/ |
D | writev.c | 21 int res; in jffs2_flash_direct_writev() local 22 res = jffs2_sum_add_kvec(c, vecs, count, (uint32_t) to); in jffs2_flash_direct_writev() 23 if (res) { in jffs2_flash_direct_writev() 24 return res; in jffs2_flash_direct_writev() 40 int res; in jffs2_flash_direct_write() local 45 res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs); in jffs2_flash_direct_write() 46 if (res) { in jffs2_flash_direct_write() 47 return res; in jffs2_flash_direct_write()
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | pci.c | 72 pcibios_align_resource(void *data, const struct resource *res, in pcibios_align_resource() argument 76 resource_size_t start = res->start; in pcibios_align_resource() 78 if (res->flags & IORESOURCE_IO) { in pcibios_align_resource() 81 pci_name(dev), dev->resource - res, in pcibios_align_resource() 139 struct resource *res; in pci_controller_apertures() local 144 res = &pci_ctrl->io_resource; in pci_controller_apertures() 145 if (!res->flags) { in pci_controller_apertures() 149 res->start = 0; in pci_controller_apertures() 150 res->end = IO_SPACE_LIMIT; in pci_controller_apertures() 151 res->flags = IORESOURCE_IO; in pci_controller_apertures() [all …]
|
/linux-4.4.14/drivers/power/ |
D | da9150-fg.c | 97 u32 res = 0; in da9150_fg_read_attr() local 105 res |= (buf[i] << (i * DA9150_QIF_BYTE_SIZE)); in da9150_fg_read_attr() 107 return res; in da9150_fg_read_attr() 132 u32 res = 0; in da9150_fg_read_sync_start() local 137 res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC, in da9150_fg_read_sync_start() 139 if (res > 0) in da9150_fg_read_sync_start() 144 res = 0; in da9150_fg_read_sync_start() 145 while ((res == 0) && (i++ < DA9150_QIF_SYNC_RETRIES)) { in da9150_fg_read_sync_start() 148 res = da9150_fg_read_attr(fg, DA9150_QIF_SYNC, in da9150_fg_read_sync_start() 153 if (res == 0) in da9150_fg_read_sync_start() [all …]
|
/linux-4.4.14/block/partitions/ |
D | check.c | 145 int i, res, err; in check_partition() local 163 i = res = err = 0; in check_partition() 164 while (!res && check_part[i]) { in check_partition() 166 res = check_part[i++](state); in check_partition() 167 if (res < 0) { in check_partition() 171 err = res; in check_partition() 172 res = 0; in check_partition() 176 if (res > 0) { in check_partition() 186 res = err; in check_partition() 187 if (res) { in check_partition() [all …]
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | pci-bridge.h | 66 static inline void pcibios_init_resource(struct resource *res, in pcibios_init_resource() argument 69 res->start = start; in pcibios_init_resource() 70 res->end = end; in pcibios_init_resource() 71 res->flags = flags; in pcibios_init_resource() 72 res->name = name; in pcibios_init_resource() 73 res->parent = NULL; in pcibios_init_resource() 74 res->sibling = NULL; in pcibios_init_resource() 75 res->child = NULL; in pcibios_init_resource()
|
/linux-4.4.14/drivers/md/ |
D | md-cluster.c | 94 struct dlm_lock_resource *res; in sync_ast() local 96 res = arg; in sync_ast() 97 complete(&res->completion); in sync_ast() 100 static int dlm_lock_sync(struct dlm_lock_resource *res, int mode) in dlm_lock_sync() argument 104 ret = dlm_lock(res->ls, mode, &res->lksb, in dlm_lock_sync() 105 res->flags, res->name, strlen(res->name), in dlm_lock_sync() 106 0, sync_ast, res, res->bast); in dlm_lock_sync() 109 wait_for_completion(&res->completion); in dlm_lock_sync() 110 if (res->lksb.sb_status == 0) in dlm_lock_sync() 111 res->mode = mode; in dlm_lock_sync() [all …]
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_sysfs.c | 57 int res = 0; in bonding_show_bonds() local 63 if (res > (PAGE_SIZE - IFNAMSIZ)) { in bonding_show_bonds() 65 if ((PAGE_SIZE - res) > 10) in bonding_show_bonds() 66 res = PAGE_SIZE - 10; in bonding_show_bonds() 67 res += sprintf(buf + res, "++more++ "); in bonding_show_bonds() 70 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds() 72 if (res) in bonding_show_bonds() 73 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_bonds() 76 return res; in bonding_show_bonds() 103 int rv, res = count; in bonding_store_bonds() local [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | spectral.c | 185 int res; in ath10k_spectral_scan_trigger() local 198 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_trigger() 201 if (res < 0) in ath10k_spectral_scan_trigger() 202 return res; in ath10k_spectral_scan_trigger() 204 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_trigger() 207 if (res < 0) in ath10k_spectral_scan_trigger() 208 return res; in ath10k_spectral_scan_trigger() 218 int vdev_id, count, res = 0; in ath10k_spectral_scan_config() local 231 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_config() 234 if (res < 0) { in ath10k_spectral_scan_config() [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_afmt.c | 90 struct amdgpu_afmt_acr res; in amdgpu_afmt_acr() local 100 amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000); in amdgpu_afmt_acr() 101 amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100); in amdgpu_afmt_acr() 102 amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000); in amdgpu_afmt_acr() 104 return res; in amdgpu_afmt_acr()
|
/linux-4.4.14/drivers/mtd/nand/ |
D | nand_bbt.c | 174 int res, ret = 0, i, j, act = 0; in read_bbt() local 198 res = mtd_read(mtd, from, len, &retlen, buf); in read_bbt() 199 if (res < 0) { in read_bbt() 200 if (mtd_is_eccerr(res)) { in read_bbt() 203 return res; in read_bbt() 204 } else if (mtd_is_bitflip(res)) { in read_bbt() 207 ret = res; in read_bbt() 210 return res; in read_bbt() 267 int res = 0, i; in read_abs_bbt() local 273 res = read_bbt(mtd, buf, td->pages[i], in read_abs_bbt() [all …]
|
/linux-4.4.14/arch/arm/plat-samsung/ |
D | pm-check.c | 73 static u32 *s3c_pm_countram(struct resource *res, u32 *val) in s3c_pm_countram() argument 75 u32 size = (u32)resource_size(res); in s3c_pm_countram() 81 (unsigned long)res->start, (unsigned long)res->end, size); in s3c_pm_countram() 108 static u32 *s3c_pm_makecheck(struct resource *res, u32 *val) in s3c_pm_makecheck() argument 112 for (addr = res->start; addr < res->end; in s3c_pm_makecheck() 114 left = res->end - addr; in s3c_pm_makecheck() 165 static u32 *s3c_pm_runcheck(struct resource *res, u32 *val) in s3c_pm_runcheck() argument 175 for (addr = res->start; addr < res->end; in s3c_pm_runcheck() 177 left = res->end - addr; in s3c_pm_runcheck()
|
/linux-4.4.14/drivers/of/ |
D | of_pci.c | 78 int of_pci_parse_bus_range(struct device_node *node, struct resource *res) in of_pci_parse_bus_range() argument 87 res->name = node->name; in of_pci_parse_bus_range() 88 res->start = be32_to_cpup(values++); in of_pci_parse_bus_range() 89 res->end = be32_to_cpup(values); in of_pci_parse_bus_range() 90 res->flags = IORESOURCE_BUS; in of_pci_parse_bus_range() 171 struct resource *res; in of_pci_get_host_bridge_resources() local 225 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in of_pci_get_host_bridge_resources() 226 if (!res) { in of_pci_get_host_bridge_resources() 231 err = of_pci_range_to_resource(&range, dev, res); in of_pci_get_host_bridge_resources() 233 kfree(res); in of_pci_get_host_bridge_resources() [all …]
|
/linux-4.4.14/drivers/edac/ |
D | mv64x60_edac.c | 108 int res = 0; in mv64x60_pci_err_probe() local 137 res = -ENOENT; in mv64x60_pci_err_probe() 147 res = -EBUSY; in mv64x60_pci_err_probe() 156 res = -ENOMEM; in mv64x60_pci_err_probe() 160 res = mv64x60_pci_fixup(pdev); in mv64x60_pci_err_probe() 161 if (res < 0) { in mv64x60_pci_err_probe() 178 res = devm_request_irq(&pdev->dev, in mv64x60_pci_err_probe() 184 if (res < 0) { in mv64x60_pci_err_probe() 187 res = -ENODEV; in mv64x60_pci_err_probe() 206 return res; in mv64x60_pci_err_probe() [all …]
|
/linux-4.4.14/arch/sh/kernel/ |
D | io_trapped.c | 46 struct resource *res; in register_trapped_io() local 59 res = tiop->resource + k; in register_trapped_io() 60 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io() 61 flags |= res->flags; in register_trapped_io() 82 res = tiop->resource + k; in register_trapped_io() 85 res->flags & IORESOURCE_IO ? "io" : "mmio", in register_trapped_io() 86 (unsigned long)res->start); in register_trapped_io() 87 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io() 116 struct resource *res; in match_trapped_io_handler() local 124 res = tiop->resource + k; in match_trapped_io_handler() [all …]
|
/linux-4.4.14/arch/cris/include/arch-v10/arch/ |
D | bitops.h | 22 unsigned long res; in cris_swapnwbrlz() local 25 : "=r" (res) : "0" (w)); in cris_swapnwbrlz() 26 return res; in cris_swapnwbrlz() 31 unsigned res; in cris_swapwbrlz() local 34 : "=r" (res) in cris_swapwbrlz() 36 return res; in cris_swapwbrlz()
|
/linux-4.4.14/arch/mips/mm/ |
D | cerr-sb1.c | 180 uint32_t errctl, cerr_i, cerr_d, dpalo, dpahi, eepc, res; in sb1_cache_error() local 220 res = extract_ic(cerr_i & SB1_CACHE_INDEX_MASK, in sb1_cache_error() 222 if (!(res & cerr_i)) in sb1_cache_error() 233 res = extract_dc(cerr_dpa & SB1_CACHE_INDEX_MASK, in sb1_cache_error() 235 if (!(res & cerr_d)) in sb1_cache_error() 241 res = extract_dc(cerr_d & SB1_CACHE_INDEX_MASK, in sb1_cache_error() 243 if (!(res & cerr_d)) in sb1_cache_error() 340 int res = 0; in extract_ic() local 378 res |= CP0_CERRI_TAG_PARITY; in extract_ic() 382 res |= CP0_CERRI_TAG_PARITY; in extract_ic() [all …]
|
/linux-4.4.14/drivers/bcma/ |
D | driver_chipcommon.c | 223 u32 res; in bcma_chipco_gpio_out() local 226 res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUT, mask, value); in bcma_chipco_gpio_out() 229 return res; in bcma_chipco_gpio_out() 236 u32 res; in bcma_chipco_gpio_outen() local 239 res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOOUTEN, mask, value); in bcma_chipco_gpio_outen() 242 return res; in bcma_chipco_gpio_outen() 253 u32 res; in bcma_chipco_gpio_control() local 256 res = bcma_cc_write32_masked(cc, BCMA_CC_GPIOCTL, mask, value); in bcma_chipco_gpio_control() 259 return res; in bcma_chipco_gpio_control() 266 u32 res; in bcma_chipco_gpio_intmask() local [all …]
|
/linux-4.4.14/sound/pci/lola/ |
D | lola.h | 339 unsigned int res, res_ex; /* last read values */ member 460 #define LOLA_AFG_MIXER_WIDGET_PRESENT(res) ((res & (1 << 21)) != 0) argument 461 #define LOLA_AFG_CLOCK_WIDGET_PRESENT(res) ((res & (1 << 20)) != 0) argument 462 #define LOLA_AFG_INPUT_PIN_COUNT(res) ((res >> 10) & 0x2ff) argument 463 #define LOLA_AFG_OUTPUT_PIN_COUNT(res) ((res) & 0x2ff) argument 466 #define LOLA_AMP_MUTE_CAPABLE(res) ((res & (1 << 31)) != 0) argument 467 #define LOLA_AMP_STEP_SIZE(res) ((res >> 24) & 0x7f) argument 468 #define LOLA_AMP_NUM_STEPS(res) ((res >> 12) & 0x3ff) argument 469 #define LOLA_AMP_OFFSET(res) ((res) & 0x3ff) argument 482 #define LOLA_MIXER_SRC_INPUT_PLAY_SEPARATION(res) ((res >> 2) & 0x1f) argument [all …]
|
/linux-4.4.14/arch/cris/include/arch-v32/arch/ |
D | bitops.h | 14 unsigned long res; in cris_swapnwbrlz() local 18 : "=r" (res) : "0" (w)); in cris_swapnwbrlz() 20 return res; in cris_swapnwbrlz() 26 unsigned long res; in cris_swapwbrlz() local 30 : "=r" (res) : "0" (w)); in cris_swapwbrlz() 32 return res; in cris_swapwbrlz()
|
/linux-4.4.14/arch/xtensa/include/uapi/asm/ |
D | swab.h | 21 __u32 res; in __arch_swab32() local 28 : "=&a" (res) in __arch_swab32() 31 return res; in __arch_swab32() 56 __u32 res; in __arch_swab16() local 62 : "=&a" (res), "=&a" (tmp) in __arch_swab16() 66 return res; in __arch_swab16()
|
/linux-4.4.14/arch/sh/drivers/pci/ |
D | fixups-dreamcast.c | 34 struct resource res; in gapspci_fixup_resources() local 62 res.start = GAPSPCI_DMA_BASE; in gapspci_fixup_resources() 63 res.end = GAPSPCI_DMA_BASE + GAPSPCI_DMA_SIZE - 1; in gapspci_fixup_resources() 64 res.flags = IORESOURCE_MEM; in gapspci_fixup_resources() 65 pcibios_resource_to_bus(dev->bus, ®ion, &res); in gapspci_fixup_resources() 67 res.start, in gapspci_fixup_resources() 69 resource_size(&res), in gapspci_fixup_resources()
|
/linux-4.4.14/fs/ |
D | eventfd.c | 188 ssize_t res; in eventfd_ctx_read() local 193 res = -EAGAIN; in eventfd_ctx_read() 195 res = 0; in eventfd_ctx_read() 201 res = 0; in eventfd_ctx_read() 205 res = -ERESTARTSYS; in eventfd_ctx_read() 215 if (likely(res == 0)) { in eventfd_ctx_read() 222 return res; in eventfd_ctx_read() 230 ssize_t res; in eventfd_read() local 235 res = eventfd_ctx_read(ctx, file->f_flags & O_NONBLOCK, &cnt); in eventfd_read() 236 if (res < 0) in eventfd_read() [all …]
|
/linux-4.4.14/kernel/power/ |
D | user.c | 139 ssize_t res; in snapshot_read() local 146 res = -ENODATA; in snapshot_read() 150 res = snapshot_read_next(&data->handle); in snapshot_read() 151 if (res <= 0) in snapshot_read() 154 res = PAGE_SIZE - pg_offp; in snapshot_read() 157 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read() 158 data_of(data->handle), res); in snapshot_read() 159 if (res > 0) in snapshot_read() 160 *offp += res; in snapshot_read() 165 return res; in snapshot_read() [all …]
|
/linux-4.4.14/arch/metag/kernel/ |
D | tcm.c | 124 pool->start = reg->res.start; in tcm_add_region() 125 pool->end = reg->res.end; in tcm_add_region() 139 if (gen_pool_add(pool->pool, reg->res.start, in tcm_add_region() 140 reg->res.end - reg->res.start + 1, -1)) { in tcm_add_region() 145 reg->res.name, reg->res.end - reg->res.start + 1, in tcm_add_region() 146 reg->res.start); in tcm_add_region()
|
/linux-4.4.14/arch/mips/vr41xx/common/ |
D | siu.c | 79 struct resource *res; in vr41xx_siu_add() local 91 res = siu_type1_resource; in vr41xx_siu_add() 98 res = siu_type2_resource; in vr41xx_siu_add() 106 retval = platform_device_add_resources(pdev, res, num); in vr41xx_siu_add() 126 struct resource *res; in vr41xx_siu_setup() local 134 res = siu_type1_resource; in vr41xx_siu_setup() 140 res = siu_type2_resource; in vr41xx_siu_setup() 151 port.mapbase = res[i].start; in vr41xx_siu_setup() 152 port.membase = (unsigned char __iomem *)KSEG1ADDR(res[i].start); in vr41xx_siu_setup()
|
/linux-4.4.14/tools/testing/selftests/futex/functional/ |
D | futex_requeue_pi_signal_restart.c | 98 int res; in waiterfn() local 105 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn() 109 res, strerror(errno)); in waiterfn() 111 if (!res) in waiterfn() 126 int c, res, ret = RET_PASS; in main() local 159 res = create_rt_thread(&waiter, waiterfn, NULL, SCHED_FIFO, 1); in main() 160 if (res) { in main() 161 error("Creating waiting thread failed", res); in main() 183 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in main() 191 if (res > 0) { in main() [all …]
|