Home
last modified time | relevance | path

Searched refs:umc (Results 1 – 15 of 15) sorted by relevance

/drivers/uwb/
Dumc-dev.c15 struct umc_dev *umc = to_umc_dev(dev); in umc_device_release() local
17 kfree(umc); in umc_device_release()
30 struct umc_dev *umc; in umc_device_create() local
32 umc = kzalloc(sizeof(struct umc_dev), GFP_KERNEL); in umc_device_create()
33 if (umc) { in umc_device_create()
34 dev_set_name(&umc->dev, "%s-%d", dev_name(parent), n); in umc_device_create()
35 umc->dev.parent = parent; in umc_device_create()
36 umc->dev.bus = &umc_bus_type; in umc_device_create()
37 umc->dev.release = umc_device_release; in umc_device_create()
39 umc->dev.dma_mask = parent->dma_mask; in umc_device_create()
[all …]
Dumc-bus.c20 struct umc_dev *umc = to_umc_dev(dev); in umc_bus_pre_reset_helper() local
24 ret = umc_drv->pre_reset(umc); in umc_bus_pre_reset_helper()
36 struct umc_dev *umc = to_umc_dev(dev); in umc_bus_post_reset_helper() local
40 ret = umc_drv->post_reset(umc); in umc_bus_post_reset_helper()
61 int umc_controller_reset(struct umc_dev *umc) in umc_controller_reset() argument
63 struct device *parent = umc->dev.parent; in umc_controller_reset()
83 int umc_match_pci_id(struct umc_driver *umc_drv, struct umc_dev *umc) in umc_match_pci_id() argument
88 if (!dev_is_pci(umc->dev.parent)) in umc_match_pci_id()
91 pci = to_pci_dev(umc->dev.parent); in umc_match_pci_id()
122 struct umc_dev *umc = to_umc_dev(dev); in umc_bus_match() local
[all …]
Dwhci.c94 struct umc_dev *umc; in whci_add_cap() local
98 umc = umc_device_create(&card->pci->dev, n); in whci_add_cap()
99 if (umc == NULL) in whci_add_cap()
109 umc->version = UWBCAPDATA_TO_VERSION(capdata); in whci_add_cap()
110 umc->cap_id = n == 0 ? 0 : UWBCAPDATA_TO_CAP_ID(capdata); in whci_add_cap()
111 umc->bar = bar; in whci_add_cap()
112 umc->resource.start = pci_resource_start(card->pci, bar) in whci_add_cap()
114 umc->resource.end = umc->resource.start in whci_add_cap()
116 umc->resource.name = dev_name(&umc->dev); in whci_add_cap()
117 umc->resource.flags = card->pci->resource[bar].flags; in whci_add_cap()
[all …]
DMakefile2 obj-$(CONFIG_UWB_WHCI) += umc.o whci.o whc-rc.o
28 umc-objs := \
29 umc-bus.o \
30 umc-dev.o \
31 umc-drv.o
Dwhc-rc.c434 static int whcrc_pre_reset(struct umc_dev *umc) in whcrc_pre_reset() argument
436 struct whcrc *whcrc = umc_get_drvdata(umc); in whcrc_pre_reset()
443 static int whcrc_post_reset(struct umc_dev *umc) in whcrc_post_reset() argument
445 struct whcrc *whcrc = umc_get_drvdata(umc); in whcrc_post_reset()
/drivers/usb/host/whci/
Dinit.c33 whci_wait_for(&whc->umc->dev, whc->base + WUSBCMD, WUSBCMD_WHCRESET, 0, in whc_hw_reset()
68 whc->workqueue = create_singlethread_workqueue(dev_name(&whc->umc->dev)); in whc_init()
85 start = whc->umc->resource.start; in whc_init()
86 len = whc->umc->resource.end - start + 1; in whc_init()
88 dev_err(&whc->umc->dev, "can't request HC region\n"); in whc_init()
95 dev_err(&whc->umc->dev, "ioremap\n"); in whc_init()
108 dev_dbg(&whc->umc->dev, "N_DEVICES = %d, N_KEYS = %d, N_MMC_IES = %d\n", in whc_init()
111 whc->qset_pool = dma_pool_create("qset", &whc->umc->dev, in whc_init()
129 whc->gen_cmd_buf = dma_alloc_coherent(&whc->umc->dev, WHC_GEN_CMD_DATA_LEN, in whc_init()
136 whc->dn_buf = dma_alloc_coherent(&whc->umc->dev, in whc_init()
[all …]
Dhcd.c98 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in whc_stop()
129 dev_err(&whc->umc->dev, "isochronous transfers unsupported\n"); in whc_urb_enqueue()
237 static int whc_probe(struct umc_dev *umc) in whc_probe() argument
243 struct device *dev = &umc->dev; in whc_probe()
256 whc->umc = umc; in whc_probe()
263 wusbhc->uwb_rc = uwb_rc_get_by_grandpa(umc->dev.parent); in whc_probe()
291 ret = usb_add_hcd(usb_hcd, whc->umc->irq, IRQF_SHARED); in whc_probe()
321 static void whc_remove(struct umc_dev *umc) in whc_remove() argument
323 struct usb_hcd *usb_hcd = dev_get_drvdata(&umc->dev); in whc_remove()
Dpzl.c163 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in pzl_start()
175 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in pzl_stop()
392 whc->pz_list = dma_alloc_coherent(&whc->umc->dev, sizeof(u64) * 16, in pzl_init()
415 dma_free_coherent(&whc->umc->dev, sizeof(u64) * 16, whc->pz_list, in pzl_clean_up()
Dhw.c62 dev_err(&whc->umc->dev, "generic command timeout (%04x/%04x)\n", in whc_do_gencmd()
102 dev_err(&whc->umc->dev, "hardware error: %s\n", reason); in whc_hw_error()
Dwusb.c32 return whci_wait_for(&whc->umc->dev, in whc_update_di()
159 ret = whci_wait_for(&whc->umc->dev, whc->base + WUSBSETSECKEYCMD, in whc_set_key()
Dasl.c154 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in asl_start()
162 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in asl_stop()
Dint.c46 dev_err(&whc->umc->dev, "FIXME: host system error\n"); in whc_int_handler()
Dwhcd.h36 struct umc_dev *umc; member
Dqset.c620 std->dma_addr = dma_map_single(&whc->umc->dev, std->bounce_buf, std->len, in qset_add_urb_sg_linearize()
/drivers/scsi/
Dmegaraid.c3555 megacmd_t __user *umc; in mega_n_to_m() local
3575 umc = MBOX_P(uiocp); in mega_n_to_m()
3577 if (get_user(upthru, (mega_passthru __user * __user *)&umc->xferaddr)) in mega_n_to_m()
3592 umc = (megacmd_t __user *)uioc_mimd->mbox; in mega_n_to_m()
3594 if (get_user(upthru, (mega_passthru __user * __user *)&umc->xferaddr)) in mega_n_to_m()