Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 25 of 88) sorted by relevance

1234

/drivers/staging/media/cxd2099/
Dcxd2099.c118 static int read_block(struct cxd *ci, u8 adr, u8 *data, u8 n) in read_block() argument
122 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, adr); in read_block()
124 ci->lastaddress = adr; in read_block()
125 status = i2c_read(ci->i2c, ci->cfg.adr, 1, data, n); in read_block()
130 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() argument
132 return read_block(ci, reg, val, 1); in read_reg()
136 static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in read_pccard() argument
141 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); in read_pccard()
143 status = i2c_read(ci->i2c, ci->cfg.adr, 3, data, n); in read_pccard()
147 static int write_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in write_pccard() argument
[all …]
/drivers/usb/chipidea/
Dotg_fsm.c34 (struct ci_hdrc *ci, void (*function)(void *, unsigned long), in otg_timer_initializer() argument
39 timer = devm_kzalloc(ci->dev, sizeof(struct ci_otg_fsm_timer), in otg_timer_initializer()
55 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_a_bus_req() local
59 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in get_a_bus_req()
70 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_bus_req() local
75 mutex_lock(&ci->fsm.lock); in set_a_bus_req()
77 ci->fsm.a_bus_req = 0; in set_a_bus_req()
80 if (ci->fsm.a_bus_drop) { in set_a_bus_req()
81 mutex_unlock(&ci->fsm.lock); in set_a_bus_req()
84 ci->fsm.a_bus_req = 1; in set_a_bus_req()
[all …]
Dcore.c120 static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument
125 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
126 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
130 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap()
146 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument
148 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
158 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument
160 return hw_read(ci, OP_USBSTS, ~0); in hw_read_intr_status()
169 int hw_port_test_set(struct ci_hdrc *ci, u8 mode) in hw_port_test_set() argument
176 hw_write(ci, OP_PORTSC, PORTSC_PTC, mode << __ffs(PORTSC_PTC)); in hw_port_test_set()
[all …]
Dudc.c66 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument
68 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit()
70 if (n >= ci->hw_ep_max / 2) in ep_to_bit()
82 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() argument
85 hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); in hw_device_state()
87 hw_write(ci, OP_USBINTR, ~0, in hw_device_state()
89 hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS); in hw_device_state()
91 hw_write(ci, OP_USBINTR, ~0, 0); in hw_device_state()
92 hw_write(ci, OP_USBCMD, USBCMD_RS, 0); in hw_device_state()
104 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument
[all …]
Dotg.c31 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument
33 return hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
41 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument
43 hw_write(ci, OP_OTGSC, mask | OTGSC_INT_STATUS_BITS, data); in hw_write_otgsc()
50 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role() argument
52 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role()
59 void ci_handle_vbus_change(struct ci_hdrc *ci) in ci_handle_vbus_change() argument
61 if (!ci->is_otg) in ci_handle_vbus_change()
64 if (hw_read_otgsc(ci, OTGSC_BSV)) in ci_handle_vbus_change()
65 usb_gadget_vbus_connect(&ci->gadget); in ci_handle_vbus_change()
[all …]
Dhost.c37 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument
39 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
42 static int host_start(struct ci_hdrc *ci) in host_start() argument
51 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); in host_start()
55 dev_set_drvdata(ci->dev, ci); in host_start()
56 hcd->rsrc_start = ci->hw_bank.phys; in host_start()
57 hcd->rsrc_len = ci->hw_bank.size; in host_start()
58 hcd->regs = ci->hw_bank.abs; in host_start()
61 hcd->power_budget = ci->platdata->power_budget; in host_start()
62 hcd->usb_phy = ci->transceiver; in host_start()
[all …]
Ddebug.c25 struct ci_hdrc *ci = s->private; in ci_device_show() local
26 struct usb_gadget *gadget = &ci->gadget; in ci_device_show()
38 if (!ci->driver) in ci_device_show()
42 (ci->driver->function ? ci->driver->function : "")); in ci_device_show()
43 seq_printf(s, "gadget max speed = %d\n", ci->driver->max_speed); in ci_device_show()
65 struct ci_hdrc *ci = s->private; in ci_port_test_show() local
69 pm_runtime_get_sync(ci->dev); in ci_port_test_show()
70 spin_lock_irqsave(&ci->lock, flags); in ci_port_test_show()
71 mode = hw_port_test_get(ci); in ci_port_test_show()
72 spin_unlock_irqrestore(&ci->lock, flags); in ci_port_test_show()
[all …]
Dci.h88 struct ci_hdrc *ci; member
212 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
214 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
215 return ci->roles[ci->role]; in ci_role()
218 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
225 if (!ci->roles[role]) in ci_role_start()
228 ret = ci->roles[role]->start(ci); in ci_role_start()
230 ci->role = role; in ci_role_start()
234 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument
236 enum ci_role role = ci->role; in ci_role_stop()
[all …]
Dotg.h14 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
15 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
16 int ci_hdrc_otg_init(struct ci_hdrc *ci);
17 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
18 enum ci_role ci_otg_role(struct ci_hdrc *ci);
19 void ci_handle_vbus_change(struct ci_hdrc *ci);
20 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work() argument
22 disable_irq_nosync(ci->irq); in ci_otg_queue_work()
23 queue_work(ci->wq, &ci->work); in ci_otg_queue_work()
Dotg_fsm.h94 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
95 int ci_otg_fsm_work(struct ci_hdrc *ci);
96 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
97 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
98 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
102 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init() argument
107 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work() argument
112 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq() argument
117 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start() argument
122 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove() argument
Ddebug.h17 int dbg_create_files(struct ci_hdrc *ci);
18 void dbg_remove_files(struct ci_hdrc *ci);
20 static inline int dbg_create_files(struct ci_hdrc *ci) in dbg_create_files() argument
25 static inline void dbg_remove_files(struct ci_hdrc *ci) in dbg_remove_files() argument
Dhost.h6 int ci_hdrc_host_init(struct ci_hdrc *ci);
7 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
11 static inline int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init() argument
16 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy() argument
Dci_hdrc_msm.c18 #define MSM_USB_BASE (ci->hw_bank.abs)
20 static void ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event() argument
22 struct device *dev = ci->gadget.dev.parent; in ci_hdrc_msm_notify_event()
29 usb_phy_init(ci->transceiver); in ci_hdrc_msm_notify_event()
37 usb_phy_notify_disconnect(ci->transceiver, USB_SPEED_UNKNOWN); in ci_hdrc_msm_notify_event()
/drivers/net/wireless/brcm80211/brcmfmac/
Dchip.c189 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument
194 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
200 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local
204 ci = core->chip; in brcmf_chip_sb_iscoreup()
206 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
214 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local
218 ci = core->chip; in brcmf_chip_ai_iscoreup()
219 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
222 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
231 struct brcmf_chip_priv *ci; in brcmf_chip_sb_coredisable() local
[all …]
/drivers/video/fbdev/matrox/
Dg450_pll.c300 static void g450_addcache(struct matrox_pll_cache* ci, unsigned int mnp_key, unsigned int mnp_value… in g450_addcache() argument
301 if (++ci->valid > ARRAY_SIZE(ci->data)) { in g450_addcache()
302 ci->valid = ARRAY_SIZE(ci->data); in g450_addcache()
304 memmove(ci->data + 1, ci->data, (ci->valid - 1) * sizeof(*ci->data)); in g450_addcache()
305 ci->data[0].mnp_key = mnp_key & G450_MNP_FREQBITS; in g450_addcache()
306 ci->data[0].mnp_value = mnp_value; in g450_addcache()
310 struct matrox_pll_cache *ci, unsigned int mnp_key) in g450_checkcache() argument
315 for (i = 0; i < ci->valid; i++) { in g450_checkcache()
316 if (ci->data[i].mnp_key == mnp_key) { in g450_checkcache()
319 mnp = ci->data[i].mnp_value; in g450_checkcache()
[all …]
/drivers/uwb/
Dallocator.c28 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_fill_column_alloc() local
31 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
33 safe_mas = ci->csi.safe_mas_per_col; in uwb_rsv_fill_column_alloc()
34 unsafe_mas = ci->csi.unsafe_mas_per_col; in uwb_rsv_fill_column_alloc()
140 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_find_best_column_set() local
141 struct uwb_rsv_col_set_info *csi = &ci->csi; in uwb_rsv_find_best_column_set()
162 if (ci[col].max_avail_safe >= num_safe_mas && in uwb_rsv_find_best_column_set()
163 ci[col].max_avail_unsafe >= n_mas) { in uwb_rsv_find_best_column_set()
164 if (ci[col].highest_mas[n_mas] > max_mas_in_set) in uwb_rsv_find_best_column_set()
165 max_mas_in_set = ci[col].highest_mas[n_mas]; in uwb_rsv_find_best_column_set()
[all …]
/drivers/net/ethernet/broadcom/
Dbgmac.c711 struct bcma_chipinfo *ci = &bgmac->core->bus->chipinfo; in bgmac_phy_init() local
715 if (ci->id == BCMA_CHIP_ID_BCM5356) { in bgmac_phy_init()
724 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg != 10) || in bgmac_phy_init()
725 (ci->id == BCMA_CHIP_ID_BCM4749 && ci->pkg != 10) || in bgmac_phy_init()
726 (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg != 9)) { in bgmac_phy_init()
867 struct bcma_chipinfo *ci = &core->bus->chipinfo; in bgmac_miiconfig() local
870 if (ci->id == BCMA_CHIP_ID_BCM4707 || in bgmac_miiconfig()
871 ci->id == BCMA_CHIP_ID_BCM53018) { in bgmac_miiconfig()
894 struct bcma_chipinfo *ci = &bus->chipinfo; in bgmac_chip_reset() local
918 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM47186) || in bgmac_chip_reset()
[all …]
/drivers/net/can/sja1000/
Dplx_pci.c512 struct plx_pci_card_info *ci; in plx_pci_add_card() local
517 ci = (struct plx_pci_card_info *)ent->driver_data; in plx_pci_add_card()
525 ci->name, PCI_SLOT(pdev->devfn)); in plx_pci_add_card()
539 addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size); in plx_pci_add_card()
543 "(BAR%d)\n", ci->conf_map.bar); in plx_pci_add_card()
546 card->conf_addr = addr + ci->conf_map.offset; in plx_pci_add_card()
548 ci->reset_func(pdev); in plx_pci_add_card()
549 card->reset_func = ci->reset_func; in plx_pci_add_card()
552 for (i = 0; i < ci->channel_count; i++) { in plx_pci_add_card()
553 struct plx_pci_channel_map *cm = &ci->chan_map_tbl[i]; in plx_pci_add_card()
[all …]
/drivers/firewire/
Dcore-device.c47 void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p) in fw_csr_iterator_init() argument
49 ci->p = p + 1; in fw_csr_iterator_init()
50 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init()
54 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) in fw_csr_iterator_next() argument
56 *key = *ci->p >> 24; in fw_csr_iterator_next()
57 *value = *ci->p & 0xffffff; in fw_csr_iterator_next()
59 return ci->p++ < ci->end; in fw_csr_iterator_next()
65 struct fw_csr_iterator ci; in search_leaf() local
68 fw_csr_iterator_init(&ci, directory); in search_leaf()
69 while (fw_csr_iterator_next(&ci, &key, &value)) { in search_leaf()
[all …]
/drivers/media/usb/dvb-usb-v2/
Danysee.c1168 static int anysee_ci_read_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_attribute_mem() argument
1171 struct dvb_usb_device *d = ci->data; in anysee_ci_read_attribute_mem()
1183 static int anysee_ci_write_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_attribute_mem() argument
1186 struct dvb_usb_device *d = ci->data; in anysee_ci_write_attribute_mem()
1197 static int anysee_ci_read_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_cam_control() argument
1200 struct dvb_usb_device *d = ci->data; in anysee_ci_read_cam_control()
1212 static int anysee_ci_write_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_cam_control() argument
1215 struct dvb_usb_device *d = ci->data; in anysee_ci_write_cam_control()
1226 static int anysee_ci_slot_reset(struct dvb_ca_en50221 *ci, int slot) in anysee_ci_slot_reset() argument
1228 struct dvb_usb_device *d = ci->data; in anysee_ci_slot_reset()
[all …]
/drivers/md/
Ddm.c1429 static struct dm_target_io *alloc_tio(struct clone_info *ci, in alloc_tio() argument
1436 clone = bio_alloc_bioset(GFP_NOIO, 0, ci->md->bs); in alloc_tio()
1439 tio->io = ci->io; in alloc_tio()
1446 static void __clone_and_map_simple_bio(struct clone_info *ci, in __clone_and_map_simple_bio() argument
1450 struct dm_target_io *tio = alloc_tio(ci, ti, target_bio_nr); in __clone_and_map_simple_bio()
1455 __bio_clone_fast(clone, ci->bio); in __clone_and_map_simple_bio()
1457 bio_setup_sector(clone, ci->sector, *len); in __clone_and_map_simple_bio()
1462 static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, in __send_duplicate_bios() argument
1468 __clone_and_map_simple_bio(ci, ti, target_bio_nr, len); in __send_duplicate_bios()
1471 static int __send_empty_flush(struct clone_info *ci) in __send_empty_flush() argument
[all …]
/drivers/scsi/bfa/
Dbfa_hw_cb.c53 bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack_msix() argument
58 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack_msix()
61 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack_msix()
62 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack_msix()
67 bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack() argument
69 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack()
72 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack()
73 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack()
/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c110 const struct inf_cinfo *ci; member
407 switch (hw->ci->typ) { in enable_hwirq()
451 switch (hw->ci->typ) { in disable_hwirq()
504 switch (hw->ci->typ) { in reset_inf()
612 if (!hw->ci->irqfunc) in init_irq()
614 ret = request_irq(hw->irq, hw->ci->irqfunc, IRQF_SHARED, hw->name, hw); in init_irq()
670 if (hw->ci->cfg_mode) { in setup_io()
671 hw->cfg.start = pci_resource_start(hw->pdev, hw->ci->cfg_bar); in setup_io()
672 hw->cfg.size = pci_resource_len(hw->pdev, hw->ci->cfg_bar); in setup_io()
673 if (hw->ci->cfg_mode == AM_MEMIO) { in setup_io()
[all …]
/drivers/net/arcnet/
Dcom20020-pci.c69 struct com20020_pci_card_info *ci; in com20020pci_probe() local
81 ci = (struct com20020_pci_card_info *)id->driver_data; in com20020pci_probe()
82 priv->ci = ci; in com20020pci_probe()
87 for (i = 0; i < ci->devcount; i++) { in com20020pci_probe()
88 struct com20020_pci_channel_map *cm = &ci->chan_map_tbl[i]; in com20020pci_probe()
101 BUGMSG(D_NORMAL, "%s Controls\n", ci->name); in com20020pci_probe()
124 lp->card_flags = ci->flags; in com20020pci_probe()
/drivers/atm/
Datmtcp.c158 struct atm_cirange ci; in atmtcp_v_ioctl() local
164 if (copy_from_user(&ci, arg,sizeof(ci))) return -EFAULT; in atmtcp_v_ioctl()
165 if (ci.vpi_bits == ATM_CI_MAX) ci.vpi_bits = MAX_VPI_BITS; in atmtcp_v_ioctl()
166 if (ci.vci_bits == ATM_CI_MAX) ci.vci_bits = MAX_VCI_BITS; in atmtcp_v_ioctl()
167 if (ci.vpi_bits > MAX_VPI_BITS || ci.vpi_bits < 0 || in atmtcp_v_ioctl()
168 ci.vci_bits > MAX_VCI_BITS || ci.vci_bits < 0) return -EINVAL; in atmtcp_v_ioctl()
177 if ((vcc->vpi >> ci.vpi_bits) || in atmtcp_v_ioctl()
178 (vcc->vci >> ci.vci_bits)) { in atmtcp_v_ioctl()
185 dev->ci_range = ci; in atmtcp_v_ioctl()

1234