/linux-4.1.27/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() 135 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res) in devm_ioremap_resource() argument 143 if (!res || resource_type(res) != IORESOURCE_MEM) { in devm_ioremap_resource() 148 size = resource_size(res); in devm_ioremap_resource() 149 name = res->name ?: dev_name(dev); in devm_ioremap_resource() 151 if (!devm_request_mem_region(dev, res->start, size, name)) { in devm_ioremap_resource() 152 dev_err(dev, "can't request region for resource %pR\n", res); in devm_ioremap_resource() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 48 struct vmw_resource res; member 85 struct vmw_resource *vmw_resource_reference(struct vmw_resource *res) in vmw_resource_reference() argument 87 kref_get(&res->kref); in vmw_resource_reference() 88 return res; in vmw_resource_reference() 92 vmw_resource_reference_unless_doomed(struct vmw_resource *res) in vmw_resource_reference_unless_doomed() argument 94 return kref_get_unless_zero(&res->kref) ? res : NULL; in vmw_resource_reference_unless_doomed() 104 void vmw_resource_release_id(struct vmw_resource *res) in vmw_resource_release_id() argument 106 struct vmw_private *dev_priv = res->dev_priv; in vmw_resource_release_id() 107 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id() 110 if (res->id != -1) in vmw_resource_release_id() [all …]
|
D | vmwgfx_shader.c | 33 struct vmw_resource res; member 46 static void vmw_user_shader_free(struct vmw_resource *res); 50 static int vmw_gb_shader_create(struct vmw_resource *res); 51 static int vmw_gb_shader_bind(struct vmw_resource *res, 53 static int vmw_gb_shader_unbind(struct vmw_resource *res, 56 static int vmw_gb_shader_destroy(struct vmw_resource *res); 85 vmw_res_to_shader(struct vmw_resource *res) in vmw_res_to_shader() argument 87 return container_of(res, struct vmw_shader, res); in vmw_res_to_shader() 90 static void vmw_hw_shader_destroy(struct vmw_resource *res) in vmw_hw_shader_destroy() argument 92 (void) vmw_gb_shader_destroy(res); in vmw_hw_shader_destroy() [all …]
|
D | vmwgfx_context.c | 34 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); 105 static void vmw_hw_context_destroy(struct vmw_resource *res) in vmw_hw_context_destroy() argument 108 container_of(res, struct vmw_user_context, res); in vmw_hw_context_destroy() 109 struct vmw_private *dev_priv = res->dev_priv; in vmw_hw_context_destroy() 116 if (res->func->destroy == vmw_gb_context_destroy) { in vmw_hw_context_destroy() [all …]
|
D | vmwgfx_surface.c | 63 static void vmw_user_surface_free(struct vmw_resource *res); 66 static int vmw_legacy_srf_bind(struct vmw_resource *res, 68 static int vmw_legacy_srf_unbind(struct vmw_resource *res, 71 static int vmw_legacy_srf_create(struct vmw_resource *res); 72 static int vmw_legacy_srf_destroy(struct vmw_resource *res); 73 static int vmw_gb_surface_create(struct vmw_resource *res); 74 static int vmw_gb_surface_bind(struct vmw_resource *res, 76 static int vmw_gb_surface_unbind(struct vmw_resource *res, 79 static int vmw_gb_surface_destroy(struct vmw_resource *res); 222 cmd->body.sid = srf->res.id; in vmw_surface_define_encode() [all …]
|
D | vmwgfx_resource_priv.h | 41 void (*res_free) (struct vmw_resource *res); 67 int (*create) (struct vmw_resource *res); 68 int (*destroy) (struct vmw_resource *res); 69 int (*bind) (struct vmw_resource *res, 71 int (*unbind) (struct vmw_resource *res, 76 int vmw_resource_alloc_id(struct vmw_resource *res); 77 void vmw_resource_release_id(struct vmw_resource *res); 78 int vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res, 80 void (*res_free) (struct vmw_resource *res), 82 void vmw_resource_activate(struct vmw_resource *res,
|
/linux-4.1.27/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.1.27/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 …]
|
D | dev-common.c | 99 struct resource res; in ath79_register_wdt() local 101 memset(&res, 0, sizeof(res)); in ath79_register_wdt() 103 res.flags = IORESOURCE_MEM; in ath79_register_wdt() 104 res.start = AR71XX_RESET_BASE + AR71XX_RESET_REG_WDOG_CTRL; in ath79_register_wdt() 105 res.end = res.start + 0x8 - 1; in ath79_register_wdt() 107 platform_device_register_simple("ath79-wdt", -1, &res, 1); in ath79_register_wdt()
|
D | dev-usb.c | 47 struct resource res[2]; in ath79_usb_register() local 50 memset(res, 0, sizeof(res)); in ath79_usb_register() 52 res[0].flags = IORESOURCE_MEM; in ath79_usb_register() 53 res[0].start = base; in ath79_usb_register() 54 res[0].end = base + size - 1; in ath79_usb_register() 56 res[1].flags = IORESOURCE_IRQ; in ath79_usb_register() 57 res[1].start = irq; in ath79_usb_register() 58 res[1].end = irq; in ath79_usb_register() 61 res, ARRAY_SIZE(res), in ath79_usb_register()
|
/linux-4.1.27/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 …]
|
D | path.c | 65 int i, res; in __tb_path_deallocate_nfc() local 67 res = tb_port_add_nfc_credits(path->hops[i].in_port, in __tb_path_deallocate_nfc() 69 if (res) in __tb_path_deallocate_nfc() 78 int i, res; in __tb_path_deactivate_hops() local 81 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in __tb_path_deactivate_hops() 83 if (res) in __tb_path_deactivate_hops() 117 int i, res; in tb_path_activate() local 135 res = tb_port_clear_counter(path->hops[i].in_port, in tb_path_activate() 137 if (res) in tb_path_activate() 143 res = tb_port_add_nfc_credits(path->hops[i].in_port, in tb_path_activate() [all …]
|
D | tunnel_pci.c | 163 int res; in tb_pci_restart() local 169 res = tb_path_activate(tunnel->path_to_up); in tb_pci_restart() 170 if (res) in tb_pci_restart() 172 res = tb_path_activate(tunnel->path_to_down); in tb_pci_restart() 173 if (res) in tb_pci_restart() 176 res = tb_pci_port_active(tunnel->down_port, true); in tb_pci_restart() 177 if (res) in tb_pci_restart() 180 res = tb_pci_port_active(tunnel->up_port, true); in tb_pci_restart() 181 if (res) in tb_pci_restart() 187 return res; in tb_pci_restart() [all …]
|
/linux-4.1.27/drivers/pci/ |
D | setup-res.c | 37 struct resource *res = dev->resource + resno; in pci_update_resource() local 43 if (!res->flags) in pci_update_resource() 46 if (res->flags & IORESOURCE_UNSET) in pci_update_resource() 54 if (res->flags & IORESOURCE_PCI_FIXED) in pci_update_resource() 57 pcibios_resource_to_bus(dev->bus, ®ion, res); in pci_update_resource() 59 new = region.start | (res->flags & PCI_REGION_FLAG_MASK); in pci_update_resource() 60 if (res->flags & IORESOURCE_IO) in pci_update_resource() 69 if (!(res->flags & IORESOURCE_ROM_ENABLE)) in pci_update_resource() 79 disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on; in pci_update_resource() 94 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 | 36 struct resource res; member 46 return &r->res; in get_pci_domain_busn_res() 53 r->res.start = 0; in get_pci_domain_busn_res() 54 r->res.end = 0xff; in get_pci_domain_busn_res() 55 r->res.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED; in get_pci_domain_busn_res() 59 return &r->res; in get_pci_domain_busn_res() 172 struct resource *res, unsigned int pos) in __pci_read_base() argument 190 res->name = pci_name(dev); in __pci_read_base() 214 res->flags = decode_bar(dev, l); in __pci_read_base() 215 res->flags |= IORESOURCE_SIZEALIGN; in __pci_read_base() [all …]
|
/linux-4.1.27/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.1.27/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 …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | unaligned.c | 110 #define _LoadHW(addr, value, res, type) \ argument 128 : "=&r" (value), "=r" (res) \ 133 #define _LoadW(addr, value, res, type) \ argument 149 : "=&r" (value), "=r" (res) \ 155 #define _LoadW(addr, value, res, type) \ argument 184 : "=&r" (value), "=r" (res) \ 190 #define _LoadHWU(addr, value, res, type) \ argument 210 : "=&r" (value), "=r" (res) \ 215 #define _LoadWU(addr, value, res, type) \ argument 233 : "=&r" (value), "=r" (res) \ [all …]
|
D | mips-r2-to-r6-emul.c | 402 s64 res; in mult_func() local 407 res = (s64)rt * (s64)rs; in mult_func() 409 rs = res; in mult_func() 411 rt = res >> 32; in mult_func() 412 res = (s64)rt; in mult_func() 413 regs->hi = res; in mult_func() 429 u64 res; in multu_func() local 434 res = (u64)rt * (u64)rs; in multu_func() 435 rt = res; in multu_func() 437 regs->hi = (s64)(res >> 32); in multu_func() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
D | mixer_drv.c | 66 struct mxr_resources *res = &mdev->res; in mxr_streamer_get() local 70 clk_set_parent(res->sclk_mixer, res->sclk_dac); in mxr_streamer_get() 72 clk_set_parent(res->sclk_mixer, res->sclk_hdmi); in mxr_streamer_get() 157 struct resource *res; in mxr_acquire_plat_resources() local 160 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mxr"); in mxr_acquire_plat_resources() 161 if (res == NULL) { in mxr_acquire_plat_resources() 167 mdev->res.mxr_regs = ioremap(res->start, resource_size(res)); in mxr_acquire_plat_resources() 168 if (mdev->res.mxr_regs == NULL) { in mxr_acquire_plat_resources() 174 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "vp"); in mxr_acquire_plat_resources() 175 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.1.27/drivers/acpi/ |
D | resource.c | 57 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags() argument 60 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags() 62 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags() 63 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET; in acpi_dev_memresource_flags() 66 res->flags |= IORESOURCE_MEM_WRITEABLE; in acpi_dev_memresource_flags() 69 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource() argument 72 res->start = start; in acpi_dev_get_memresource() 73 res->end = start + len - 1; in acpi_dev_get_memresource() 74 acpi_dev_memresource_flags(res, len, write_protect); in acpi_dev_get_memresource() 91 bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) in acpi_dev_resource_memory() argument [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.1.27/drivers/gpu/drm/exynos/ |
D | exynos_mixer.c | 127 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) in vp_reg_read() argument 129 return readl(res->vp_regs + reg_id); in vp_reg_read() 132 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, in vp_reg_write() argument 135 writel(val, res->vp_regs + reg_id); in vp_reg_write() 138 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, in vp_reg_writemask() argument 141 u32 old = vp_reg_read(res, reg_id); in vp_reg_writemask() 144 writel(val, res->vp_regs + reg_id); in vp_reg_writemask() 147 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) in mixer_reg_read() argument 149 return readl(res->mixer_regs + reg_id); in mixer_reg_read() 152 static inline void mixer_reg_write(struct mixer_resources *res, u32 reg_id, in mixer_reg_write() argument [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_resource.c | 160 __u64 res = 0; in lprocfs_ns_resources_seq_show() local 166 res += cfs_hash_bd_count_get(&bd); in lprocfs_ns_resources_seq_show() 167 return lprocfs_rd_u64(m, &res); in lprocfs_ns_resources_seq_show() 438 struct ldlm_resource *res; in ldlm_res_hop_key() local 440 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); in ldlm_res_hop_key() 441 return &res->lr_name; in ldlm_res_hop_key() 446 struct ldlm_resource *res; in ldlm_res_hop_keycmp() local 448 res = hlist_entry(hnode, struct ldlm_resource, lr_hash); in ldlm_res_hop_keycmp() 450 (const struct ldlm_res_id *)&res->lr_name); in ldlm_res_hop_keycmp() 461 struct ldlm_resource *res; in ldlm_res_hop_get_locked() local [all …]
|
/linux-4.1.27/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.1.27/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 struct resource *res; in x86_pci_root_bus_resources() local 57 res = &root_res->res; in x86_pci_root_bus_resources() 58 pci_add_resource(resources, res); in x86_pci_root_bus_resources() 59 if (res->flags & IORESOURCE_IO) in x86_pci_root_bus_resources() 63 insert_resource(root, res); in x86_pci_root_bus_resources() 106 struct resource *res; in update_res() local 123 res = &root_res->res; in update_res() 124 if (res->flags != flags) in update_res() 127 common_start = max(res->start, 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 …]
|
D | acpi.c | 246 res1 = entry->res; in validate_resources() 265 res2 = entry2->res; in validate_resources() 298 struct resource *res, *conflict, *root = NULL; in add_resources() local 304 res = entry->res; in add_resources() 305 if (res->flags & IORESOURCE_MEM) in add_resources() 307 else if (res->flags & IORESOURCE_IO) in add_resources() 310 BUG_ON(res); in add_resources() 312 conflict = insert_resource_conflict(root, res); in add_resources() 316 res, conflict->name, conflict); in add_resources() 326 struct resource *res; in release_pci_root_info() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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 | 159 #define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) argument 161 #define FIB_RES_NH(res) ((res).fi->fib_nh[0]) argument 172 #define FIB_RES_SADDR(net, res) \ argument 173 ((FIB_RES_NH(res).nh_saddr_genid == \ 175 FIB_RES_NH(res).nh_saddr : \ 176 fib_info_update_nh_saddr((net), &FIB_RES_NH(res))) 177 #define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw) argument 178 #define FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev) argument 179 #define FIB_RES_OIF(res) (FIB_RES_NH(res).nh_oif) argument 181 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument [all …]
|
/linux-4.1.27/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.1.27/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.1.27/drivers/block/ |
D | nvme-scsi.c | 372 int res = SNTI_TRANSLATION_SUCCESS; in nvme_trans_copy_to_user() local 392 res = -EFAULT; in nvme_trans_copy_to_user() 400 return res; in nvme_trans_copy_to_user() 404 res = -EFAULT; in nvme_trans_copy_to_user() 405 return res; in nvme_trans_copy_to_user() 413 int res = SNTI_TRANSLATION_SUCCESS; in nvme_trans_copy_from_user() local 433 res = -EFAULT; in nvme_trans_copy_from_user() 441 return res; in nvme_trans_copy_from_user() 446 res = -EFAULT; in nvme_trans_copy_from_user() 447 return res; in nvme_trans_copy_from_user() [all …]
|
/linux-4.1.27/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.1.27/drivers/rtc/ |
D | rtc-ds1343.c | 387 int res; in ds1343_read_time() local 389 res = regmap_bulk_read(priv->map, DS1343_SECONDS_REG, buf, 7); in ds1343_read_time() 390 if (res) in ds1343_read_time() 391 return res; in ds1343_read_time() 407 int res; in ds1343_set_time() local 409 res = regmap_write(priv->map, DS1343_SECONDS_REG, in ds1343_set_time() 411 if (res) in ds1343_set_time() 412 return res; in ds1343_set_time() 414 res = regmap_write(priv->map, DS1343_MINUTES_REG, in ds1343_set_time() 416 if (res) in ds1343_set_time() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/net/mac802154/ |
D | mib.c | 92 int res; in mac802154_dev_set_page_channel() local 96 res = drv_set_channel(local, page, chan); in mac802154_dev_set_page_channel() 97 if (res) { in mac802154_dev_set_page_channel() 111 int res; in mac802154_get_params() local 116 res = mac802154_llsec_get_params(&sdata->sec, params); in mac802154_get_params() 119 return res; in mac802154_get_params() 127 int res; in mac802154_set_params() local 132 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in mac802154_set_params() 135 return res; in mac802154_set_params() 143 int res; in mac802154_add_key() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/acpi/apei/ |
D | apei-base.c | 310 struct apei_res *res, *resn, *res_ins = NULL; in apei_res_add() local 316 list_for_each_entry_safe(res, resn, res_list, list) { in apei_res_add() 317 if (res->start > end || res->end < start) in apei_res_add() 319 else if (end <= res->end && start >= res->start) { in apei_res_add() 323 list_del(&res->list); in apei_res_add() 324 res->start = start = min(res->start, start); in apei_res_add() 325 res->end = end = max(res->end, end); in apei_res_add() 327 res_ins = res; in apei_res_add() 334 res_ins = kmalloc(sizeof(*res), GFP_KERNEL); in apei_res_add() 348 struct apei_res *res1, *resn1, *res2, *res; in apei_res_sub() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/arch/powerpc/kernel/ |
D | pci-common.c | 674 struct resource *res; in pci_process_bridge_OF_ranges() local 696 res = NULL; in pci_process_bridge_OF_ranges() 731 res = &hose->io_resource; in pci_process_bridge_OF_ranges() 759 res = &hose->mem_resources[memno++]; in pci_process_bridge_OF_ranges() 762 if (res != NULL) { in pci_process_bridge_OF_ranges() 763 res->name = dev->full_name; in pci_process_bridge_OF_ranges() 764 res->flags = range.flags; in pci_process_bridge_OF_ranges() 765 res->start = range.cpu_addr; in pci_process_bridge_OF_ranges() 766 res->end = range.cpu_addr + range.size - 1; in pci_process_bridge_OF_ranges() 767 res->parent = res->child = res->sibling = NULL; in pci_process_bridge_OF_ranges() [all …]
|
/linux-4.1.27/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.1.27/fs/ext4/ |
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() 76 res = ecr.res; in ext4_derive_key_aes() 84 return res; in ext4_derive_key_aes() [all …]
|
D | crypto_policy.c | 20 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inode_has_encryption_context() local 22 return (res > 0); in ext4_inode_has_encryption_context() 33 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_is_encryption_context_consistent_with_policy() local 36 if (res != sizeof(ctx)) in ext4_is_encryption_context_consistent_with_policy() 52 int res = 0; in ext4_create_encryption_context_from_policy() local 77 res = ext4_xattr_set(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_create_encryption_context_from_policy() 80 if (!res) in ext4_create_encryption_context_from_policy() 82 return res; in ext4_create_encryption_context_from_policy() 110 int res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_get_policy() local 113 if (res != sizeof(ctx)) in ext4_get_policy() [all …]
|
D | crypto_fname.c | 36 static void ext4_dir_crypt_complete(struct crypto_async_request *req, int res) in ext4_dir_crypt_complete() argument 40 if (res == -EINPROGRESS) in ext4_dir_crypt_complete() 42 ecr->res = res; in ext4_dir_crypt_complete() 66 int res = 0; in ext4_fname_encrypt() local 107 res = crypto_ablkcipher_encrypt(req); in ext4_fname_encrypt() 108 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_fname_encrypt() 111 res = ecr.res; in ext4_fname_encrypt() 113 if (res >= 0) { in ext4_fname_encrypt() 116 res = ciphertext_len; in ext4_fname_encrypt() 120 if (res < 0) { in ext4_fname_encrypt() [all …]
|
D | crypto.c | 119 int res = 0; in ext4_get_crypto_ctx() local 145 res = PTR_ERR(ctx); in ext4_get_crypto_ctx() 176 res = PTR_ERR(ctx->tfm); in ext4_get_crypto_ctx() 189 if (res) { in ext4_get_crypto_ctx() 192 ctx = ERR_PTR(res); in ext4_get_crypto_ctx() 240 int i, res; in ext4_init_crypto() local 247 res = -ENOMEM; in ext4_init_crypto() 256 res = PTR_ERR(ctx); in ext4_init_crypto() 265 res = -ENOMEM; in ext4_init_crypto() 274 return res; in ext4_init_crypto() [all …]
|
/linux-4.1.27/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.1.27/fs/nfs/ |
D | callback_proc.c | 25 struct cb_getattrres *res, in nfs4_callback_getattr() argument 32 res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION); in nfs4_callback_getattr() 36 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr() 37 res->status = htonl(NFS4ERR_BADHANDLE); in nfs4_callback_getattr() 50 res->size = i_size_read(inode); in nfs4_callback_getattr() 51 res->change_attr = delegation->change_attr; in nfs4_callback_getattr() 53 res->change_attr++; in nfs4_callback_getattr() 54 res->ctime = inode->i_ctime; in nfs4_callback_getattr() 55 res->mtime = inode->i_mtime; in nfs4_callback_getattr() 56 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & 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 | 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 | nfs4xdr.c | 3258 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument 3262 *res = 0; in decode_attr_link_support() 3269 *res = be32_to_cpup(p); in decode_attr_link_support() 3272 dprintk("%s: link support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_link_support() 3279 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument 3283 *res = 0; in decode_attr_symlink_support() 3290 *res = be32_to_cpup(p); in decode_attr_symlink_support() 3293 dprintk("%s: symlink support=%s\n", __func__, *res == 0 ? "false" : "true"); in decode_attr_symlink_support() 3327 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument 3331 *res = 60; in decode_attr_lease_time() [all …]
|
D | nfs42xdr.c | 140 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument 145 static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_deallocate() argument 150 static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) in decode_seek() argument 163 res->sr_eof = be32_to_cpup(p++); in decode_seek() 164 p = xdr_decode_hyper(p, &res->sr_offset); in decode_seek() 177 struct nfs42_falloc_res *res) in nfs4_xdr_dec_allocate() argument 185 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate() 191 status = decode_allocate(xdr, res); in nfs4_xdr_dec_allocate() 194 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate() 204 struct nfs42_falloc_res *res) in nfs4_xdr_dec_deallocate() argument [all …]
|
D | nfs4proc.c | 333 int res = 0; in nfs4_delay() local 340 res = -ERESTARTSYS; in nfs4_delay() 341 return res; in nfs4_delay() 486 struct nfs4_sequence_res *res, int cache_reply) in nfs4_init_sequence() argument 492 res->sr_slot = NULL; in nfs4_init_sequence() 502 struct nfs4_sequence_res *res, in nfs40_setup_sequence() argument 508 if (res->sr_slot != NULL) in nfs40_setup_sequence() 524 res->sr_slot = slot; in nfs40_setup_sequence() 542 struct nfs4_sequence_res *res) in nfs40_sequence_done() argument 544 struct nfs4_slot *slot = res->sr_slot; in nfs40_sequence_done() [all …]
|
D | mount_clnt.c | 323 static int decode_status(struct xdr_stream *xdr, struct mountres *res) in decode_status() argument 336 res->errno = mnt_errtbl[i].errno; in decode_status() 342 res->errno = -EACCES; in decode_status() 346 static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle() argument 348 struct nfs_fh *fh = res->fh; in decode_fhandle() 362 struct mountres *res) in mnt_xdr_dec_mountres() argument 366 status = decode_status(xdr, res); in mnt_xdr_dec_mountres() 367 if (unlikely(status != 0 || res->errno != 0)) in mnt_xdr_dec_mountres() 369 return decode_fhandle(xdr, res); in mnt_xdr_dec_mountres() 372 static int decode_fhs_status(struct xdr_stream *xdr, struct mountres *res) in decode_fhs_status() argument [all …]
|
/linux-4.1.27/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 | 267 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); 268 int __must_check _kstrtol(const char *s, unsigned int base, long *res); 270 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res); 271 int __must_check kstrtoll(const char *s, unsigned int base, long long *res); 289 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument 297 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul() 299 return _kstrtoul(s, base, res); in kstrtoul() 318 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument 326 return kstrtoll(s, base, (long long *)res); in kstrtol() 328 return _kstrtol(s, base, res); in kstrtol() [all …]
|
/linux-4.1.27/arch/mips/ar7/ |
D | platform.c | 569 int res; in ar7_register_uarts() local 587 res = early_serial_setup(&uart_port); in ar7_register_uarts() 588 if (res) in ar7_register_uarts() 589 return res; in ar7_register_uarts() 598 res = early_serial_setup(&uart_port); in ar7_register_uarts() 599 if (res) in ar7_register_uarts() 600 return res; in ar7_register_uarts() 656 int res; in ar7_register_devices() local 658 res = ar7_register_uarts(); in ar7_register_devices() 659 if (res) in ar7_register_devices() [all …]
|
/linux-4.1.27/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.1.27/drivers/infiniband/hw/usnic/ |
D | usnic_vnic.c | 82 struct usnic_vnic_res *res; in usnic_vnic_dump() local 106 res = chunk->res[j]; in usnic_vnic_dump() 109 usnic_vnic_res_type_to_str(res->type), in usnic_vnic_dump() 110 res->vnic_idx, res->ctrl, !!res->owner); in usnic_vnic_dump() 112 offset += printrow(res->owner, buf + offset, in usnic_vnic_dump() 222 struct usnic_vnic_res *res; in usnic_vnic_get_resources() local 235 ret->res = kzalloc(sizeof(*(ret->res))*cnt, GFP_ATOMIC); in usnic_vnic_get_resources() 236 if (!ret->res) { in usnic_vnic_get_resources() 246 res = src->res[i]; in usnic_vnic_get_resources() 247 if (!res->owner) { in usnic_vnic_get_resources() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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 (_FAIL == res) { 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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 | 213 struct resource *res; in xgene_pcie_map_reg() local 215 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "csr"); in xgene_pcie_map_reg() 216 port->csr_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg() 220 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg"); in xgene_pcie_map_reg() 221 port->cfg_base = devm_ioremap_resource(port->dev, res); in xgene_pcie_map_reg() 224 port->cfg_addr = res->start; in xgene_pcie_map_reg() 230 struct resource *res, u32 offset, in xgene_pcie_setup_ob_reg() argument 234 resource_size_t size = resource_size(res); in xgene_pcie_setup_ob_reg() 235 u64 restype = resource_type(res); in xgene_pcie_setup_ob_reg() 269 struct list_head *res, in xgene_pcie_map_ranges() argument [all …]
|
/linux-4.1.27/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 146 __user_swpb_asm(*data, address, res, temp); in emulate_swpX() 148 __user_swp_asm(*data, address, res, temp); in emulate_swpX() 150 if (likely(res != -EAGAIN) || signal_pending(current)) in emulate_swpX() [all …]
|
/linux-4.1.27/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 …]
|
D | ibmaem.c | 365 int rs_size, res; in aem_read_sensor() local 399 res = wait_for_completion_timeout(&ipmi->read_complete, IPMI_TIMEOUT); in aem_read_sensor() 400 if (!res) { in aem_read_sensor() 401 res = -ETIMEDOUT; in aem_read_sensor() 407 res = -ENOENT; in aem_read_sensor() 433 res = 0; in aem_read_sensor() 436 return res; in aem_read_sensor() 507 int res; in aem_find_aem1_count() local 524 res = wait_for_completion_timeout(&data->read_complete, IPMI_TIMEOUT); in aem_find_aem1_count() 525 if (!res) in aem_find_aem1_count() [all …]
|
/linux-4.1.27/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() 240 res = _FAIL; in rtw_enqueue_cmd23a() 242 res = _SUCCESS; in rtw_enqueue_cmd23a() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 …]
|
D | radio-miropcm20.c | 229 int res; in vidioc_g_tuner() local 238 res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTATION, -1, -1); in vidioc_g_tuner() 239 v->signal = (res & 0x80) ? 0 : 0xffff; in vidioc_g_tuner() 242 res = snd_aci_cmd(dev->aci, ACI_READ_TUNERSTEREO, -1, -1); in vidioc_g_tuner() 243 v->rxsubchans = (res & 0x40) ? V4L2_TUNER_SUB_MONO : in vidioc_g_tuner() 248 res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1); in vidioc_g_tuner() 249 if (res >= 0 && buf) in vidioc_g_tuner() 319 int res; in pcm20_thread() local 326 res = rds_cmd(dev->aci, RDS_RXVALUE, &buf, 1); in pcm20_thread() 327 if (res) in pcm20_thread() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 | 124 struct resource *res; in mfd_add_device() local 140 res = kzalloc(sizeof(*res) * cell->num_resources, GFP_KERNEL); in mfd_add_device() 141 if (!res) in mfd_add_device() 180 res[r].name = cell->resources[r].name; in mfd_add_device() 181 res[r].flags = cell->resources[r].flags; in mfd_add_device() 185 res[r].parent = mem_base; in mfd_add_device() 186 res[r].start = mem_base->start + in mfd_add_device() 188 res[r].end = mem_base->start + in mfd_add_device() 195 res[r].start = res[r].end = irq_create_mapping( in mfd_add_device() 198 res[r].start = irq_base + in mfd_add_device() [all …]
|
D | cs5535-mfd.c | 44 struct resource *res; in cs5535_mfd_res_enable() local 46 res = platform_get_resource(pdev, IORESOURCE_IO, 0); in cs5535_mfd_res_enable() 47 if (!res) { in cs5535_mfd_res_enable() 52 if (!request_region(res->start, resource_size(res), DRV_NAME)) { in cs5535_mfd_res_enable() 62 struct resource *res; in cs5535_mfd_res_disable() local 63 res = platform_get_resource(pdev, IORESOURCE_IO, 0); in cs5535_mfd_res_disable() 64 if (!res) { in cs5535_mfd_res_disable() 69 release_region(res->start, resource_size(res)); in cs5535_mfd_res_disable()
|
/linux-4.1.27/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.1.27/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.1.27/arch/arm/plat-pxa/ |
D | ssp.c | 118 struct resource *res; in pxa_ssp_probe() local 164 res = platform_get_resource(pdev, IORESOURCE_DMA, 0); in pxa_ssp_probe() 165 if (res == NULL) { in pxa_ssp_probe() 169 ssp->drcmr_rx = res->start; in pxa_ssp_probe() 171 res = platform_get_resource(pdev, IORESOURCE_DMA, 1); in pxa_ssp_probe() 172 if (res == NULL) { in pxa_ssp_probe() 176 ssp->drcmr_tx = res->start; in pxa_ssp_probe() 179 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in pxa_ssp_probe() 180 if (res == NULL) { in pxa_ssp_probe() 185 res = devm_request_mem_region(dev, res->start, resource_size(res), in pxa_ssp_probe() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/sound/hda/ |
D | hdac_bus.c | 53 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb() argument 58 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb() 73 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb_unlocked() argument 81 if (res) in snd_hdac_bus_exec_verb_unlocked() 82 *res = -1; in snd_hdac_bus_exec_verb_unlocked() 84 res = &tmp; in snd_hdac_bus_exec_verb_unlocked() 95 if (!err && res) { in snd_hdac_bus_exec_verb_unlocked() 96 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked() 97 trace_hda_get_response(bus, addr, *res); in snd_hdac_bus_exec_verb_unlocked() 113 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.1.27/arch/arm/mach-omap1/ |
D | i2c.c | 55 struct resource *res; in omap_i2c_add_bus() local 66 res = i2c_resources; in omap_i2c_add_bus() 67 res[0].start = OMAP1_I2C_BASE; in omap_i2c_add_bus() 68 res[0].end = res[0].start + OMAP_I2C_SIZE; in omap_i2c_add_bus() 69 res[0].flags = IORESOURCE_MEM; in omap_i2c_add_bus() 70 res[1].start = OMAP1_INT_I2C; in omap_i2c_add_bus() 71 res[1].flags = IORESOURCE_IRQ; in omap_i2c_add_bus() 72 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()
|
D | devices.c | 160 struct resource res[OMAP_MMC_NR_RES]; in omap_mmc_add() local 167 memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource)); in omap_mmc_add() 168 res[0].start = base; in omap_mmc_add() 169 res[0].end = base + size - 1; in omap_mmc_add() 170 res[0].flags = IORESOURCE_MEM; in omap_mmc_add() 171 res[1].start = res[1].end = irq; in omap_mmc_add() 172 res[1].flags = IORESOURCE_IRQ; in omap_mmc_add() 173 res[2].start = rx_req; in omap_mmc_add() 174 res[2].name = "rx"; in omap_mmc_add() 175 res[2].flags = IORESOURCE_DMA; in omap_mmc_add() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/usb/dwc3/ |
D | dwc3-pci.c | 91 struct resource res[2]; in dwc3_pci_probe() local 110 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); in dwc3_pci_probe() 112 res[0].start = pci_resource_start(pci, 0); in dwc3_pci_probe() 113 res[0].end = pci_resource_end(pci, 0); in dwc3_pci_probe() 114 res[0].name = "dwc_usb3"; in dwc3_pci_probe() 115 res[0].flags = IORESOURCE_MEM; in dwc3_pci_probe() 117 res[1].start = pci->irq; in dwc3_pci_probe() 118 res[1].name = "dwc_usb3"; in dwc3_pci_probe() 119 res[1].flags = IORESOURCE_IRQ; in dwc3_pci_probe() 121 ret = platform_device_add_resources(dwc3, res, ARRAY_SIZE(res)); in dwc3_pci_probe()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/net/wireless/ath/ath10k/ |
D | spectral.c | 177 int res; in ath10k_spectral_scan_trigger() local 190 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_trigger() 193 if (res < 0) in ath10k_spectral_scan_trigger() 194 return res; in ath10k_spectral_scan_trigger() 196 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_trigger() 199 if (res < 0) in ath10k_spectral_scan_trigger() 200 return res; in ath10k_spectral_scan_trigger() 210 int vdev_id, count, res = 0; in ath10k_spectral_scan_config() local 223 res = ath10k_wmi_vdev_spectral_enable(ar, vdev_id, in ath10k_spectral_scan_config() 226 if (res < 0) { in ath10k_spectral_scan_config() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | lustre_fid.h | 495 fid_build_reg_res_name(const struct lu_fid *fid, struct ldlm_res_id *res) in fid_build_reg_res_name() argument 497 memset(res, 0, sizeof(*res)); in fid_build_reg_res_name() 498 res->name[LUSTRE_RES_ID_SEQ_OFF] = fid_seq(fid); in fid_build_reg_res_name() 499 res->name[LUSTRE_RES_ID_VER_OID_OFF] = fid_ver_oid(fid); in fid_build_reg_res_name() 501 return res; in fid_build_reg_res_name() 508 const struct ldlm_res_id *res) in fid_res_name_eq() argument 510 return res->name[LUSTRE_RES_ID_SEQ_OFF] == fid_seq(fid) && in fid_res_name_eq() 511 res->name[LUSTRE_RES_ID_VER_OID_OFF] == fid_ver_oid(fid); in fid_res_name_eq() 518 fid_extract_from_res_name(struct lu_fid *fid, const struct ldlm_res_id *res) in fid_extract_from_res_name() argument 520 fid->f_seq = res->name[LUSTRE_RES_ID_SEQ_OFF]; in fid_extract_from_res_name() [all …]
|
/linux-4.1.27/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.1.27/drivers/md/ |
D | md-cluster.c | 91 struct dlm_lock_resource *res; in sync_ast() local 93 res = (struct dlm_lock_resource *) arg; in sync_ast() 94 complete(&res->completion); in sync_ast() 97 static int dlm_lock_sync(struct dlm_lock_resource *res, int mode) in dlm_lock_sync() argument 101 init_completion(&res->completion); in dlm_lock_sync() 102 ret = dlm_lock(res->ls, mode, &res->lksb, in dlm_lock_sync() 103 res->flags, res->name, strlen(res->name), in dlm_lock_sync() 104 0, sync_ast, res, res->bast); in dlm_lock_sync() 107 wait_for_completion(&res->completion); in dlm_lock_sync() 108 return res->lksb.sb_status; in dlm_lock_sync() [all …]
|
/linux-4.1.27/drivers/mtd/nand/ |
D | nand_bbt.c | 177 int res, ret = 0, i, j, act = 0; in read_bbt() local 201 res = mtd_read(mtd, from, len, &retlen, buf); in read_bbt() 202 if (res < 0) { in read_bbt() 203 if (mtd_is_eccerr(res)) { in read_bbt() 206 return res; in read_bbt() 207 } else if (mtd_is_bitflip(res)) { in read_bbt() 210 ret = res; in read_bbt() 213 return res; in read_bbt() 270 int res = 0, i; in read_abs_bbt() local 276 res = read_bbt(mtd, buf, td->pages[i], in read_abs_bbt() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/of/ |
D | of_pci.c | 77 int of_pci_parse_bus_range(struct device_node *node, struct resource *res) in of_pci_parse_bus_range() argument 86 res->name = node->name; in of_pci_parse_bus_range() 87 res->start = be32_to_cpup(values++); in of_pci_parse_bus_range() 88 res->end = be32_to_cpup(values); in of_pci_parse_bus_range() 89 res->flags = IORESOURCE_BUS; in of_pci_parse_bus_range() 165 struct resource *res; in of_pci_get_host_bridge_resources() local 219 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in of_pci_get_host_bridge_resources() 220 if (!res) { in of_pci_get_host_bridge_resources() 225 err = of_pci_range_to_resource(&range, dev, res); in of_pci_get_host_bridge_resources() 229 if (resource_type(res) == IORESOURCE_IO) { in of_pci_get_host_bridge_resources() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/lib/mpi/ |
D | mpi-pow.c | 36 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument 58 rp = res->d; in mpi_powm() 68 res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; in mpi_powm() 69 res->sign = 0; in mpi_powm() 106 res->nlimbs = 0; in mpi_powm() 107 res->sign = 0; in mpi_powm() 111 if (res->alloced < size) { in mpi_powm() 121 if (mpi_resize(res, size) < 0) in mpi_powm() 123 rp = res->d; in mpi_powm() 271 mpihelp_lshift(res->d, rp, rsize, mod_shift_cnt); in mpi_powm() [all …]
|
/linux-4.1.27/drivers/media/pci/zoran/ |
D | zoran_driver.c | 490 int res = 0; in zoran_v4l_queue_frame() local 497 res = -ENOMEM; in zoran_v4l_queue_frame() 506 res = -EINVAL; in zoran_v4l_queue_frame() 520 res = -EBUSY; in zoran_v4l_queue_frame() 525 if (!res) { in zoran_v4l_queue_frame() 533 res = -EBUSY; /* what are you doing? */ in zoran_v4l_queue_frame() 555 if (!res && zr->v4l_buffers.active == ZORAN_FREE) in zoran_v4l_queue_frame() 558 return res; in zoran_v4l_queue_frame() 636 int res = 0; in zoran_jpg_queue_frame() local 677 res = -EBUSY; in zoran_jpg_queue_frame() [all …]
|
/linux-4.1.27/drivers/macintosh/ |
D | macio_asic.c | 186 static int macio_resource_quirks(struct device_node *np, struct resource *res, in macio_resource_quirks() argument 190 if ((res->flags & IORESOURCE_MEM) == 0) in macio_resource_quirks() 195 res->end = res->start + 0x1ffff; in macio_resource_quirks() 203 if ((res->start & 0x0001f000) == 0x00008000) in macio_resource_quirks() 204 res->end = res->start + 0xff; in macio_resource_quirks() 226 if (index == 0 && (res->end - res->start) > 0xfff) in macio_resource_quirks() 227 res->end = res->start + 0xfff; in macio_resource_quirks() 228 if (index == 1 && (res->end - res->start) > 0xff) in macio_resource_quirks() 229 res->end = res->start + 0xff; in macio_resource_quirks() 297 struct resource *res; in macio_setup_interrupts() local [all …]
|
/linux-4.1.27/drivers/input/keyboard/ |
D | w90p910_keypad.c | 127 struct resource *res; in w90p910_keypad_probe() local 156 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in w90p910_keypad_probe() 157 if (res == NULL) { in w90p910_keypad_probe() 163 res = request_mem_region(res->start, resource_size(res), pdev->name); in w90p910_keypad_probe() 164 if (res == NULL) { in w90p910_keypad_probe() 170 keypad->mmio_base = ioremap(res->start, resource_size(res)); in w90p910_keypad_probe() 229 release_mem_region(res->start, resource_size(res)); in w90p910_keypad_probe() 239 struct resource *res; in w90p910_keypad_remove() local 248 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in w90p910_keypad_remove() 249 release_mem_region(res->start, resource_size(res)); in w90p910_keypad_remove()
|
/linux-4.1.27/drivers/usb/chipidea/ |
D | ci_hdrc_pci.c | 62 struct resource res[3]; in ci_hdrc_pci_probe() local 91 memset(res, 0, sizeof(res)); in ci_hdrc_pci_probe() 92 res[0].start = pci_resource_start(pdev, 0); in ci_hdrc_pci_probe() 93 res[0].end = pci_resource_end(pdev, 0); in ci_hdrc_pci_probe() 94 res[0].flags = IORESOURCE_MEM; in ci_hdrc_pci_probe() 95 res[1].start = pdev->irq; in ci_hdrc_pci_probe() 96 res[1].flags = IORESOURCE_IRQ; in ci_hdrc_pci_probe() 98 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
|
/linux-4.1.27/arch/mips/ralink/ |
D | of.c | 33 struct resource res; in plat_of_remap_node() local 40 if (of_address_to_resource(np, 0, &res)) in plat_of_remap_node() 43 if ((request_mem_region(res.start, in plat_of_remap_node() 44 resource_size(&res), in plat_of_remap_node() 45 res.name) < 0)) in plat_of_remap_node() 48 return ioremap_nocache(res.start, resource_size(&res)); in plat_of_remap_node()
|
/linux-4.1.27/arch/x86/include/asm/ |
D | arch_hweight.h | 26 unsigned int res = 0; in __arch_hweight32() local 29 : "="REG_OUT (res) in __arch_hweight32() 32 return res; in __arch_hweight32() 47 unsigned long res = 0; in __arch_hweight64() local 54 : "="REG_OUT (res) in __arch_hweight64() 58 return res; in __arch_hweight64()
|
/linux-4.1.27/init/ |
D | do_mounts.c | 118 dev_t res = 0; in devt_from_partuuid() local 154 res = dev->devt; in devt_from_partuuid() 160 res = 0; in devt_from_partuuid() 164 res = part_devt(part); in devt_from_partuuid() 178 return res; in devt_from_partuuid() 214 dev_t res = 0; in name_to_dev_t() local 220 res = devt_from_partuuid(name); in name_to_dev_t() 221 if (!res) in name_to_dev_t() 233 res = MKDEV(maj, min); in name_to_dev_t() 234 if (maj != MAJOR(res) || min != MINOR(res)) in name_to_dev_t() [all …]
|