/linux/drivers/target/iscsi/ |
A D | iscsi_target_datain_values.c | 25 if (!dr) { in iscsit_allocate_datain_req() 32 return dr; in iscsit_allocate_datain_req() 87 if (!dr) in iscsit_set_datain_values_yes_and_yes() 90 if (dr->recovery && dr->generate_recovery_values) { in iscsit_set_datain_values_yes_and_yes() 162 if ((dr->begrun + dr->runlength) == dr->data_sn) { in iscsit_set_datain_values_yes_and_yes() 186 if (!dr) in iscsit_set_datain_values_no_and_yes() 283 if ((dr->begrun + dr->runlength) == dr->data_sn) { in iscsit_set_datain_values_no_and_yes() 307 if (!dr) in iscsit_set_datain_values_yes_and_no() 382 if ((dr->begrun + dr->runlength) == dr->data_sn) { in iscsit_set_datain_values_yes_and_no() 407 if (!dr) in iscsit_set_datain_values_no_and_no() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_managed.c | 60 kfree(dr); in free_dr() 70 dr, dr->node.name, dr->node.size); in drm_managed_release() 73 dr->node.release(dev, dr->node.size ? *(void **)&dr->data : NULL); in drm_managed_release() 76 free_dr(dr); in drm_managed_release() 105 return dr; in alloc_dr() 113 dr, dr->node.name, (unsigned long) dr->node.size); in del_dr() 125 dr, dr->node.name, (unsigned long) dr->node.size); in add_dr() 146 if (!dr) { in __drmm_add_action() 158 add_dr(dev, dr); in __drmm_add_action() 193 if (!dr) { in drmm_kmalloc() [all …]
|
/linux/drivers/net/phy/ |
A D | mdio_devres.c | 16 mdiobus_free(dr->mii); in devm_mdiobus_free() 34 dr = devres_alloc(devm_mdiobus_free, sizeof(*dr), GFP_KERNEL); in devm_mdiobus_alloc_size() 35 if (!dr) in devm_mdiobus_alloc_size() 39 if (!dr->mii) { in devm_mdiobus_alloc_size() 40 devres_free(dr); in devm_mdiobus_alloc_size() 45 return dr->mii; in devm_mdiobus_alloc_size() 84 if (!dr) in __devm_mdiobus_register() 89 devres_free(dr); in __devm_mdiobus_register() 93 dr->mii = bus; in __devm_mdiobus_register() 117 if (!dr) in devm_of_mdiobus_register() [all …]
|
/linux/kernel/irq/ |
A D | devres.c | 61 if (!dr) in devm_request_threaded_irq() 74 dr->irq = irq; in devm_request_threaded_irq() 108 if (!dr) in devm_request_any_context_irq() 120 dr->irq = irq; in devm_request_any_context_irq() 186 if (!dr) in __devm_irq_alloc_descs() 196 dr->cnt = cnt; in __devm_irq_alloc_descs() 270 if (!dr) in devm_irq_setup_generic_chip() 275 dr->gc = gc; in devm_irq_setup_generic_chip() 276 dr->msk = msk; in devm_irq_setup_generic_chip() 277 dr->clr = clr; in devm_irq_setup_generic_chip() [all …]
|
/linux/drivers/gpio/ |
A D | gpiolib-devres.c | 120 if (!dr) { in devm_gpiod_get_index() 125 *dr = desc; in devm_gpiod_get_index() 175 if (!dr) { in devm_gpiod_get_from_of_node() 180 *dr = desc; in devm_gpiod_get_from_of_node() 213 if (!dr) in devm_fwnode_gpiod_get_index() 222 *dr = desc; in devm_fwnode_gpiod_get_index() 275 if (!dr) in devm_gpiod_get_array() 416 if (!dr) in devm_gpio_request() 425 *dr = gpio; in devm_gpio_request() 446 if (!dr) in devm_gpio_request_one() [all …]
|
/linux/net/ |
A D | devres.c | 24 struct net_device_devres *dr; in devm_alloc_etherdev_mqs() local 26 dr = devres_alloc(devm_free_netdev, sizeof(*dr), GFP_KERNEL); in devm_alloc_etherdev_mqs() 27 if (!dr) in devm_alloc_etherdev_mqs() 31 if (!dr->ndev) { in devm_alloc_etherdev_mqs() 32 devres_free(dr); in devm_alloc_etherdev_mqs() 36 devres_add(dev, dr); in devm_alloc_etherdev_mqs() 38 return dr->ndev; in devm_alloc_etherdev_mqs() 80 dr = devres_alloc(devm_unregister_netdev, sizeof(*dr), GFP_KERNEL); in devm_register_netdev() 81 if (!dr) in devm_register_netdev() 86 devres_free(dr); in devm_register_netdev() [all …]
|
/linux/drivers/base/ |
A D | devres.c | 124 return dr; in alloc_dr() 166 return dr->data; in __devres_alloc_node() 224 kfree(dr); in devres_free() 261 return dr; in find_dr() 291 if (dr) in devres_find() 320 if (!dr) { in devres_get() 322 dr = new_dr; in devres_get() 355 if (dr) { in devres_remove() 361 if (dr) in devres_remove() 500 dr->node.release(dev, dr->data); in release_nodes() [all …]
|
/linux/fs/adfs/ |
A D | super.c | 59 if (dr->log2secsize != 8 && in adfs_checkdiscrecord() 60 dr->log2secsize != 9 && in adfs_checkdiscrecord() 61 dr->log2secsize != 10) in adfs_checkdiscrecord() 65 if (dr->idlen < dr->log2secsize + 3) in adfs_checkdiscrecord() 72 if (le32_to_cpu(dr->disc_size_high) >> dr->log2secsize) in adfs_checkdiscrecord() 81 if (dr->idlen > max_idlen) in adfs_checkdiscrecord() 86 if (dr->unused52[i] != 0) in adfs_checkdiscrecord() 346 *drp = dr; in adfs_validate_bblk() 357 if (adfs_checkdiscrecord(dr) || dr->nzones_high || dr->nzones != 1) in adfs_validate_dr0() 360 *drp = dr; in adfs_validate_dr0() [all …]
|
A D | map.c | 199 struct adfs_discrecord *dr = adfs_map_discrecord(asb->s_map); in adfs_map_statfs() local 211 buf->f_blocks = adfs_disc_size(dr) >> sb->s_blocksize_bits; in adfs_map_statfs() 310 struct adfs_discrecord *dr) in adfs_map_layout() argument 315 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_map_layout() 329 size = adfs_disc_size(dr) >> dr->log2bpmb; in adfs_map_layout() 363 nzones = dr->nzones | dr->nzones_high << 8; in adfs_read_map() 364 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map() 366 asb->s_idlen = dr->idlen; in adfs_read_map() 368 asb->s_map2blk = dr->log2bpmb - dr->log2secsize; in adfs_read_map() 369 asb->s_log2sharesize = dr->log2sharesize; in adfs_read_map() [all …]
|
/linux/drivers/net/ethernet/sun/ |
A D | sunvnet_common.c | 527 dr->cookies, dr->ncookies); in get_rx_desc() 543 dr->cookies, dr->ncookies); in put_rx_desc() 710 dr->cons = vio_dring_next(dr, end); in vnet_ack() 711 desc = vio_dring_entry(dr, dr->cons); in vnet_ack() 728 vnet_tx_dring_avail(dr) >= VNET_TX_WAKEUP_THRESH(dr))) in vnet_ack() 1495 dr->prod = (dr->prod + 1) & (VNET_TX_RING_SIZE - 1); in sunvnet_start_xmit_common() 1499 if (vnet_tx_dring_avail(dr) > VNET_TX_WAKEUP_THRESH(dr)) in sunvnet_start_xmit_common() 1697 (dr->entry_size * dr->num_entries), in sunvnet_port_free_tx_bufs_common() 1698 dr->cookies, dr->ncookies); in sunvnet_port_free_tx_bufs_common() 1746 dr->prod = 0; in vnet_port_alloc_tx_ring() [all …]
|
/linux/drivers/block/ |
A D | sunvdc.c | 317 dr->cons = vio_dring_next(dr, index); in vdc_end_one() 445 dr->snd_nxt++; in __vdc_tx_trigger() 529 dr->prod = vio_dring_next(dr, dr->prod); in __send_request() 693 dr->prod = vio_dring_next(dr, dr->prod); in generic_request() 731 dr->base = dring; in vdc_alloc_tx_ring() 734 dr->prod = dr->cons = 0; in vdc_alloc_tx_ring() 745 if (dr->base) { in vdc_free_tx_ring() 747 (dr->entry_size * dr->num_entries), in vdc_free_tx_ring() 748 dr->cookies, dr->ncookies); in vdc_free_tx_ring() 1090 for (idx = dr->cons; idx != dr->prod; idx = vio_dring_next(dr, idx)) { in vdc_requeue_inflight() [all …]
|
/linux/drivers/ntb/ |
A D | msi.c | 221 WARN_ON(ntb_msi_set_desc(dr->ntb, entry, dr->msi_desc)); in ntb_msi_write_msg() 223 if (dr->ntb->msi->desc_changed) in ntb_msi_write_msg() 224 dr->ntb->msi->desc_changed(dr->ntb->ctx); in ntb_msi_write_msg() 238 struct ntb_msi_devres *dr; in ntbm_msi_setup_callback() local 242 if (!dr) in ntbm_msi_setup_callback() 245 dr->ntb = ntb; in ntbm_msi_setup_callback() 246 dr->entry = entry; in ntbm_msi_setup_callback() 247 dr->msi_desc = msi_desc; in ntbm_msi_setup_callback() 249 devres_add(&ntb->dev, dr); in ntbm_msi_setup_callback() 252 dr->entry->write_msi_msg_data = dr; in ntbm_msi_setup_callback() [all …]
|
/linux/block/partitions/ |
A D | acorn.c | 28 struct adfs_discrecord *dr; in adfs_partition() local 36 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition() 40 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition() 48 return dr; in adfs_partition() 183 struct adfs_discrecord *dr; in adfspart_check_CUMANA() local 194 if (!dr) in adfspart_check_CUMANA() 200 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA() 201 dr->secspertrack; in adfspart_check_CUMANA() 255 struct adfs_discrecord *dr; in adfspart_check_ADFS() local 264 if (!dr) { in adfspart_check_ADFS() [all …]
|
/linux/arch/sparc/kernel/ |
A D | viohs.c | 85 struct vio_dring_state *dr; in flush_rx_dring() local 91 ident = dr->ident; in flush_rx_dring() 97 memset(dr, 0, sizeof(*dr)); in flush_rx_dring() 98 dr->ident = ident; in flush_rx_dring() 137 struct vio_dring_state *dr; in handshake_failure() local 150 memset(dr, 0, sizeof(*dr)); in handshake_failure() 187 dr->ncookies); in send_dreg() 430 struct vio_dring_state *dr; in process_dreg_info() local 503 struct vio_dring_state *dr; in process_dreg_ack() local 516 dr->ident = pkt->dring_ident; in process_dreg_ack() [all …]
|
/linux/net/sunrpc/ |
A D | svc_xprt.c | 1058 kfree(dr); in svc_delete_xprt() 1171 kfree(dr); in svc_revisit() 1174 dr->xprt = NULL; in svc_revisit() 1199 dr = rqstp->rq_deferred; in svc_defer() 1207 if (dr == NULL) in svc_defer() 1229 return &dr->handle; in svc_defer() 1242 rqstp->rq_arg.head[0].iov_base = dr->args + (dr->xprt_hlen>>2); in svc_deferred_recv() 1244 rqstp->rq_arg.head[0].iov_len = (dr->argslen<<2) - dr->xprt_hlen; in svc_deferred_recv() 1249 memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); in svc_deferred_recv() 1256 return (dr->argslen<<2) - dr->xprt_hlen; in svc_deferred_recv() [all …]
|
/linux/drivers/infiniband/core/ |
A D | smi.c | 146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send() 147 smp->route.dr.return_path, in opa_smi_handle_dr_smp_send() 149 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_send() 151 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_send() 261 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_recv() 262 smp->route.dr.return_path, in opa_smi_handle_dr_smp_recv() 264 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_recv() 266 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_recv() 314 smp->route.dr.dr_dlid == in opa_smi_check_forward_dr_smp() 316 smp->route.dr.dr_slid == in opa_smi_check_forward_dr_smp() [all …]
|
/linux/drivers/parisc/ |
A D | power.c | 67 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */ argument 68 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */ argument 69 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */ argument 71 #define __getDIAG(dr) ( { \ argument 74 ".word %1" : "=&r" (__res) : "i" (MFCPU_T(dr,28) ) \
|
/linux/drivers/fpga/ |
A D | fpga-mgr.c | 674 fpga_mgr_free(dr->mgr); in devm_fpga_mgr_release() 700 dr = devres_alloc(devm_fpga_mgr_release, sizeof(*dr), GFP_KERNEL); in devm_fpga_mgr_create() 701 if (!dr) in devm_fpga_mgr_create() 705 if (!dr->mgr) { in devm_fpga_mgr_create() 706 devres_free(dr); in devm_fpga_mgr_create() 712 return dr->mgr; in devm_fpga_mgr_create() 804 dr = devres_alloc(devm_fpga_mgr_unregister, sizeof(*dr), GFP_KERNEL); in devm_fpga_mgr_register() 805 if (!dr) in devm_fpga_mgr_register() 810 devres_free(dr); in devm_fpga_mgr_register() 814 dr->mgr = mgr; in devm_fpga_mgr_register() [all …]
|
/linux/drivers/platform/x86/ |
A D | intel_scu_ipc.c | 164 struct intel_scu_ipc_devres *dr; in devm_intel_scu_ipc_dev_get() local 167 dr = devres_alloc(devm_intel_scu_ipc_dev_release, sizeof(*dr), GFP_KERNEL); in devm_intel_scu_ipc_dev_get() 168 if (!dr) in devm_intel_scu_ipc_dev_get() 173 devres_free(dr); in devm_intel_scu_ipc_dev_get() 177 dr->scu = scu; in devm_intel_scu_ipc_dev_get() 178 devres_add(dev, dr); in devm_intel_scu_ipc_dev_get() 685 dr = devres_alloc(devm_intel_scu_ipc_unregister, sizeof(*dr), GFP_KERNEL); in __devm_intel_scu_ipc_register() 686 if (!dr) in __devm_intel_scu_ipc_register() 691 devres_free(dr); in __devm_intel_scu_ipc_register() 695 dr->scu = scu; in __devm_intel_scu_ipc_register() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | vio.h | 295 static inline void *vio_dring_cur(struct vio_dring_state *dr) in vio_dring_cur() argument 297 return dr->base + (dr->entry_size * dr->prod); in vio_dring_cur() 300 static inline void *vio_dring_entry(struct vio_dring_state *dr, in vio_dring_entry() argument 303 return dr->base + (dr->entry_size * index); in vio_dring_entry() 306 static inline u32 vio_dring_avail(struct vio_dring_state *dr, in vio_dring_avail() argument 309 return (dr->pending - in vio_dring_avail() 310 ((dr->prod - dr->cons) & (ring_size - 1)) - 1); in vio_dring_avail() 313 static inline u32 vio_dring_next(struct vio_dring_state *dr, u32 index) in vio_dring_next() argument 315 if (++index == dr->num_entries) in vio_dring_next() 320 static inline u32 vio_dring_prev(struct vio_dring_state *dr, u32 index) in vio_dring_prev() argument [all …]
|
/linux/drivers/extcon/ |
A D | extcon-usbc-cros-ec.c | 28 unsigned int dr; /* data role */ member 252 unsigned int dr = DR_NONE; in extcon_cros_ec_detect_cable() local 288 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable() 295 if (dr == DR_DEVICE && in extcon_cros_ec_detect_cable() 297 dr = DR_NONE; in extcon_cros_ec_detect_cable() 299 if (force || info->dr != dr || info->pr != pr || info->dp != dp || in extcon_cros_ec_detect_cable() 305 cros_ec_usb_role_string(dr)); in extcon_cros_ec_detect_cable() 306 info->dr = dr; in extcon_cros_ec_detect_cable() 312 if (dr == DR_DEVICE) in extcon_cros_ec_detect_cable() 314 else if (dr == DR_HOST) in extcon_cros_ec_detect_cable() [all …]
|
/linux/lib/ |
A D | devres.c | 363 struct pcim_iomap_devres *dr, *new_dr; in pcim_iomap_table() local 366 if (dr) in pcim_iomap_table() 367 return dr->table; in pcim_iomap_table() 373 return dr->table; in pcim_iomap_table() 593 struct arch_io_reserve_memtype_wc_devres *dr; in devm_arch_io_reserve_memtype_wc() local 596 dr = devres_alloc(devm_arch_io_free_memtype_wc_release, sizeof(*dr), GFP_KERNEL); in devm_arch_io_reserve_memtype_wc() 597 if (!dr) in devm_arch_io_reserve_memtype_wc() 602 devres_free(dr); in devm_arch_io_reserve_memtype_wc() 606 dr->start = start; in devm_arch_io_reserve_memtype_wc() 607 dr->size = size; in devm_arch_io_reserve_memtype_wc() [all …]
|
/linux/drivers/power/reset/ |
A D | reboot-mode.c | 149 struct reboot_mode_driver **dr; in devm_reboot_mode_register() local 152 dr = devres_alloc(devm_reboot_mode_release, sizeof(*dr), GFP_KERNEL); in devm_reboot_mode_register() 153 if (!dr) in devm_reboot_mode_register() 158 devres_free(dr); in devm_reboot_mode_register() 162 *dr = reboot; in devm_reboot_mode_register() 163 devres_add(dev, dr); in devm_reboot_mode_register()
|
/linux/drivers/leds/ |
A D | led-class.c | 283 struct led_classdev **dr; in devm_of_led_get() local 292 dr = devres_alloc(devm_led_release, sizeof(struct led_classdev *), in devm_of_led_get() 294 if (!dr) { in devm_of_led_get() 299 *dr = led; in devm_of_led_get() 300 devres_add(dev, dr); in devm_of_led_get() 486 struct led_classdev **dr; in devm_led_classdev_register_ext() local 489 dr = devres_alloc(devm_led_classdev_release, sizeof(*dr), GFP_KERNEL); in devm_led_classdev_register_ext() 490 if (!dr) in devm_led_classdev_register_ext() 495 devres_free(dr); in devm_led_classdev_register_ext() 499 *dr = led_cdev; in devm_led_classdev_register_ext() [all …]
|
A D | led-class-multicolor.c | 159 struct led_classdev_mc **dr; in devm_led_classdev_multicolor_register_ext() local 162 dr = devres_alloc(devm_led_classdev_multicolor_release, in devm_led_classdev_multicolor_register_ext() 163 sizeof(*dr), GFP_KERNEL); in devm_led_classdev_multicolor_register_ext() 164 if (!dr) in devm_led_classdev_multicolor_register_ext() 170 devres_free(dr); in devm_led_classdev_multicolor_register_ext() 174 *dr = mcled_cdev; in devm_led_classdev_multicolor_register_ext() 175 devres_add(parent, dr); in devm_led_classdev_multicolor_register_ext()
|