Home
last modified time | relevance | path

Searched refs:dr (Results 1 – 25 of 31) sorted by relevance

12

/linux-4.19.296/drivers/gpio/
Ddevres.c106 struct gpio_desc **dr; in devm_gpiod_get_index() local
109 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_index()
111 if (!dr) in devm_gpiod_get_index()
116 devres_free(dr); in devm_gpiod_get_index()
120 *dr = desc; in devm_gpiod_get_index()
121 devres_add(dev, dr); in devm_gpiod_get_index()
148 struct gpio_desc **dr; in devm_gpiod_get_from_of_node() local
151 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in devm_gpiod_get_from_of_node()
153 if (!dr) in devm_gpiod_get_from_of_node()
158 devres_free(dr); in devm_gpiod_get_from_of_node()
[all …]
Dgpio-mxc.c55 u32 dr; member
541 port->gpio_saved_reg.dr = readl(port->base + GPIO_DR); in mxc_gpio_save_regs()
554 writel(port->gpio_saved_reg.dr, port->base + GPIO_DR); in mxc_gpio_restore_regs()
/linux-4.19.296/drivers/base/
Ddevres.c94 struct devres *dr; in alloc_dr() local
101 dr = kmalloc_node_track_caller(tot_size, gfp, nid); in alloc_dr()
102 if (unlikely(!dr)) in alloc_dr()
105 memset(dr, 0, offsetof(struct devres, data)); in alloc_dr()
107 INIT_LIST_HEAD(&dr->node.entry); in alloc_dr()
108 dr->node.release = release; in alloc_dr()
109 return dr; in alloc_dr()
123 struct devres *dr; in __devres_alloc_node() local
125 dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); in __devres_alloc_node()
126 if (unlikely(!dr)) in __devres_alloc_node()
[all …]
/linux-4.19.296/fs/adfs/
Dsuper.c40 static int adfs_checkdiscrecord(struct adfs_discrecord *dr) in adfs_checkdiscrecord() argument
45 if (dr->log2secsize != 8 && in adfs_checkdiscrecord()
46 dr->log2secsize != 9 && in adfs_checkdiscrecord()
47 dr->log2secsize != 10) in adfs_checkdiscrecord()
51 if (dr->idlen < dr->log2secsize + 3) in adfs_checkdiscrecord()
58 if (le32_to_cpu(dr->disc_size_high) >> dr->log2secsize) in adfs_checkdiscrecord()
62 if (dr->idlen > 19) in adfs_checkdiscrecord()
66 for (i = 0; i < sizeof(dr->unused52); i++) in adfs_checkdiscrecord()
67 if (dr->unused52[i] != 0) in adfs_checkdiscrecord()
302 static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr) in adfs_read_map() argument
[all …]
/linux-4.19.296/block/partitions/
Dacorn.c34 struct adfs_discrecord *dr; in adfs_partition() local
40 dr = (struct adfs_discrecord *)(data + 0x1c0); in adfs_partition()
42 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition()
45 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition()
46 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition()
54 return dr; in adfs_partition()
189 struct adfs_discrecord *dr; in adfspart_check_CUMANA() local
199 dr = adfs_partition(state, name, data, first_sector, slot++); in adfspart_check_CUMANA()
200 if (!dr) in adfspart_check_CUMANA()
206 (dr->heads + (dr->lowsector & 0x40 ? 1 : 0)) * in adfspart_check_CUMANA()
[all …]
/linux-4.19.296/drivers/parisc/
Dpower.c66 #define MTCPU(dr, gr) MFCPU_X(dr, gr, 0, 0x12) /* move value of gr to dr[dr] */ argument
67 #define MFCPU_C(dr, gr) MFCPU_X(dr, gr, 0, 0x30) /* for dr0 and dr8 only ! */ argument
68 #define MFCPU_T(dr, gr) MFCPU_X(dr, 0, gr, 0xa0) /* all dr except dr0 and dr8 */ argument
70 #define __getDIAG(dr) ( { \ argument
73 ".word %1" : "=&r" (__res) : "i" (MFCPU_T(dr,28) ) \
/linux-4.19.296/drivers/extcon/
Dextcon-usbc-cros-ec.c27 unsigned int dr; /* data role */ member
251 unsigned int dr = DR_NONE; in extcon_cros_ec_detect_cable() local
275 dr = (role & PD_CTRL_RESP_ROLE_DATA) ? DR_HOST : DR_DEVICE; in extcon_cros_ec_detect_cable()
287 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable()
294 if (dr == DR_DEVICE && in extcon_cros_ec_detect_cable()
296 dr = DR_NONE; in extcon_cros_ec_detect_cable()
298 if (force || info->dr != dr || info->pr != pr || info->dp != dp || in extcon_cros_ec_detect_cable()
304 cros_ec_usb_role_string(dr)); in extcon_cros_ec_detect_cable()
305 info->dr = dr; in extcon_cros_ec_detect_cable()
311 if (dr == DR_DEVICE) in extcon_cros_ec_detect_cable()
[all …]
/linux-4.19.296/drivers/bluetooth/
Dbpa10x.c283 struct usb_ctrlrequest *dr; in bpa10x_send_frame() local
301 dr = kmalloc(sizeof(*dr), GFP_KERNEL); in bpa10x_send_frame()
302 if (!dr) { in bpa10x_send_frame()
307 dr->bRequestType = USB_TYPE_VENDOR; in bpa10x_send_frame()
308 dr->bRequest = 0; in bpa10x_send_frame()
309 dr->wIndex = 0; in bpa10x_send_frame()
310 dr->wValue = 0; in bpa10x_send_frame()
311 dr->wLength = __cpu_to_le16(skb->len); in bpa10x_send_frame()
315 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame()
Dbtusb.c1231 struct usb_ctrlrequest *dr; in alloc_ctrl_urb() local
1239 dr = kmalloc(sizeof(*dr), GFP_KERNEL); in alloc_ctrl_urb()
1240 if (!dr) { in alloc_ctrl_urb()
1245 dr->bRequestType = data->cmdreq_type; in alloc_ctrl_urb()
1246 dr->bRequest = data->cmdreq; in alloc_ctrl_urb()
1247 dr->wIndex = 0; in alloc_ctrl_urb()
1248 dr->wValue = 0; in alloc_ctrl_urb()
1249 dr->wLength = __cpu_to_le16(skb->len); in alloc_ctrl_urb()
1253 usb_fill_control_urb(urb, data->udev, pipe, (void *)dr, in alloc_ctrl_urb()
/linux-4.19.296/drivers/rtc/
Drtc-stm32.c96 u16 dr; member
274 unsigned int tr, dr; in stm32_rtc_read_time() local
278 dr = readl_relaxed(rtc->base + regs->dr); in stm32_rtc_read_time()
284 tm->tm_mday = (dr & STM32_RTC_DR_DATE) >> STM32_RTC_DR_DATE_SHIFT; in stm32_rtc_read_time()
285 tm->tm_mon = (dr & STM32_RTC_DR_MONTH) >> STM32_RTC_DR_MONTH_SHIFT; in stm32_rtc_read_time()
286 tm->tm_year = (dr & STM32_RTC_DR_YEAR) >> STM32_RTC_DR_YEAR_SHIFT; in stm32_rtc_read_time()
287 tm->tm_wday = (dr & STM32_RTC_DR_WDAY) >> STM32_RTC_DR_WDAY_SHIFT; in stm32_rtc_read_time()
300 unsigned int tr, dr; in stm32_rtc_set_time() local
311 dr = ((tm->tm_mday << STM32_RTC_DR_DATE_SHIFT) & STM32_RTC_DR_DATE) | in stm32_rtc_set_time()
325 writel_relaxed(dr, rtc->base + regs->dr); in stm32_rtc_set_time()
[all …]
/linux-4.19.296/include/rdma/
Dopa_smi.h73 } dr; member
130 return smp->route.dr.data; in opa_get_smp_data()
138 return sizeof(smp->route.dr.data); in opa_get_smp_data_size()
146 return sizeof(*smp) - sizeof(smp->route.dr.data); in opa_get_smp_header_size()
/linux-4.19.296/fs/ubifs/
Dlog.c555 struct done_ref *dr; in done_already() local
559 dr = rb_entry(parent, struct done_ref, rb); in done_already()
560 if (lnum < dr->lnum) in done_already()
562 else if (lnum > dr->lnum) in done_already()
568 dr = kzalloc(sizeof(struct done_ref), GFP_NOFS); in done_already()
569 if (!dr) in done_already()
572 dr->lnum = lnum; in done_already()
574 rb_link_node(&dr->rb, parent, p); in done_already()
575 rb_insert_color(&dr->rb, done_tree); in done_already()
586 struct done_ref *dr, *n; in destroy_done_tree() local
[all …]
/linux-4.19.296/drivers/isdn/hisax/
Dst5481_usb.c46 ((struct ctrl_msg *)urb->setup_packet)->dr.bRequest, in usb_next_ctrl_msg()
47 ((struct ctrl_msg *)urb->setup_packet)->dr.wValue, in usb_next_ctrl_msg()
48 ((struct ctrl_msg *)urb->setup_packet)->dr.wIndex); in usb_next_ctrl_msg()
74 ctrl_msg->dr.bRequestType = requesttype; in usb_ctrl_msg()
75 ctrl_msg->dr.bRequest = request; in usb_ctrl_msg()
76 ctrl_msg->dr.wValue = cpu_to_le16p(&value); in usb_ctrl_msg()
77 ctrl_msg->dr.wIndex = cpu_to_le16p(&index); in usb_ctrl_msg()
78 ctrl_msg->dr.wLength = 0; in usb_ctrl_msg()
149 if (ctrl_msg->dr.bRequest == USB_REQ_CLEAR_FEATURE) { in usb_ctrl_complete()
151 le16_to_cpus(&ctrl_msg->dr.wIndex); in usb_ctrl_complete()
[all …]
/linux-4.19.296/lib/
Ddevres.c318 struct pcim_iomap_devres *dr, *new_dr; in pcim_iomap_table() local
320 dr = devres_find(&pdev->dev, pcim_iomap_release, NULL, NULL); in pcim_iomap_table()
321 if (dr) in pcim_iomap_table()
322 return dr->table; in pcim_iomap_table()
327 dr = devres_get(&pdev->dev, new_dr, NULL, NULL); in pcim_iomap_table()
328 return dr->table; in pcim_iomap_table()
/linux-4.19.296/drivers/pci/
Dpci.c1704 struct pci_devres *dr, *new_dr; in get_pci_dr() local
1706 dr = devres_find(&pdev->dev, pcim_release, NULL, NULL); in get_pci_dr()
1707 if (dr) in get_pci_dr()
1708 return dr; in get_pci_dr()
1731 struct pci_devres *dr; in pcim_enable_device() local
1734 dr = get_pci_dr(pdev); in pcim_enable_device()
1735 if (unlikely(!dr)) in pcim_enable_device()
1737 if (dr->enabled) in pcim_enable_device()
1743 dr->enabled = 1; in pcim_enable_device()
1759 struct pci_devres *dr; in pcim_pin_device() local
[all …]
/linux-4.19.296/include/trace/events/
Dsunrpc.h819 TP_PROTO(struct svc_deferred_req *dr),
821 TP_ARGS(dr),
825 __string(addr, dr->xprt->xpt_remotebuf)
829 __entry->xid = be32_to_cpu(*(__be32 *)(dr->args +
830 (dr->xprt_hlen>>2)));
831 __assign_str(addr, dr->xprt->xpt_remotebuf);
838 TP_PROTO(struct svc_deferred_req *dr),
839 TP_ARGS(dr));
841 TP_PROTO(struct svc_deferred_req *dr),
842 TP_ARGS(dr));
/linux-4.19.296/drivers/iio/adc/
Dti-ads1015.c345 int ret, pga, dr, dr_old, conv_time; in ads1015_get_adc_result() local
356 dr = data->channel_data[chan].data_rate; in ads1015_get_adc_result()
360 dr << ADS1015_CFG_DR_SHIFT; in ads1015_get_adc_result()
380 conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); in ads1015_get_adc_result()
552 int dr; in ads1015_read_event() local
564 dr = data->channel_data[chan->address].data_rate; in ads1015_read_event()
567 USEC_PER_SEC / data->data_rate[dr]; in ads1015_read_event()
593 int dr; in ads1015_write_event() local
609 dr = data->channel_data[chan->address].data_rate; in ads1015_write_event()
614 USEC_PER_SEC / data->data_rate[dr]) in ads1015_write_event()
/linux-4.19.296/drivers/media/rc/
Drc-main.c1717 struct rc_dev **dr, *rc; in devm_rc_allocate_device() local
1719 dr = devres_alloc(devm_rc_alloc_release, sizeof(*dr), GFP_KERNEL); in devm_rc_allocate_device()
1720 if (!dr) in devm_rc_allocate_device()
1725 devres_free(dr); in devm_rc_allocate_device()
1731 *dr = rc; in devm_rc_allocate_device()
1732 devres_add(dev, dr); in devm_rc_allocate_device()
1942 struct rc_dev **dr; in devm_rc_register_device() local
1945 dr = devres_alloc(devm_rc_release, sizeof(*dr), GFP_KERNEL); in devm_rc_register_device()
1946 if (!dr) in devm_rc_register_device()
1951 devres_free(dr); in devm_rc_register_device()
[all …]
/linux-4.19.296/drivers/pci/controller/
Dpci-hyperv.c1767 struct hv_dr_state *dr = NULL; in pci_devices_present_work() local
1779 dr = list_first_entry(&hbus->dr_list, struct hv_dr_state, in pci_devices_present_work()
1781 list_del(&dr->list_entry); in pci_devices_present_work()
1785 kfree(dr); in pci_devices_present_work()
1791 if (!dr) { in pci_devices_present_work()
1804 for (child_no = 0; child_no < dr->device_count; child_no++) { in pci_devices_present_work()
1806 new_desc = &dr->func[child_no]; in pci_devices_present_work()
1877 kfree(dr); in pci_devices_present_work()
1891 struct hv_dr_state *dr; in hv_pci_devices_present() local
1900 dr = kzalloc(offsetof(struct hv_dr_state, func) + in hv_pci_devices_present()
[all …]
/linux-4.19.296/drivers/misc/mic/bus/
Dvop_bus.c76 static int vop_dev_match(struct device *dv, struct device_driver *dr) in vop_dev_match() argument
82 ids = drv_to_vop(dr)->id_table; in vop_dev_match()
Dmic_bus.c74 static int mbus_dev_match(struct device *dv, struct device_driver *dr) in mbus_dev_match() argument
80 ids = drv_to_mbus(dr)->id_table; in mbus_dev_match()
Dscif_bus.c73 static int scif_dev_match(struct device *dv, struct device_driver *dr) in scif_dev_match() argument
79 ids = drv_to_scif(dr)->id_table; in scif_dev_match()
/linux-4.19.296/drivers/media/dvb-frontends/
Dcxd2099.c47 int dr; member
507 ci->dr = 1; in campoll()
562 if (!ci->dr) in read_data()
576 ci->dr = 0; in read_data()
/linux-4.19.296/include/net/
Dinet_timewait_sock.h94 struct inet_timewait_death_row *dr,
/linux-4.19.296/include/linux/
Dintel-iommu.h274 #define QI_IOTLB_DR(dr) (((u64)dr) << 7) argument

12