Home
last modified time | relevance | path

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

12345

/drivers/staging/media/cxd2099/
Dcxd2099.c117 static int read_block(struct cxd *ci, u8 adr, u8 *data, u8 n) in read_block() argument
121 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, adr); in read_block()
123 ci->lastaddress = adr; in read_block()
124 status = i2c_read(ci->i2c, ci->cfg.adr, 1, data, n); in read_block()
129 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() argument
131 return read_block(ci, reg, val, 1); in read_reg()
135 static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in read_pccard() argument
140 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); in read_pccard()
142 status = i2c_read(ci->i2c, ci->cfg.adr, 3, data, n); in read_pccard()
146 static int write_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in write_pccard() argument
[all …]
/drivers/usb/chipidea/
Dotg_fsm.c39 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_a_bus_req() local
43 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in get_a_bus_req()
54 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_bus_req() local
59 mutex_lock(&ci->fsm.lock); in set_a_bus_req()
61 ci->fsm.a_bus_req = 0; in set_a_bus_req()
64 if (ci->fsm.a_bus_drop) { in set_a_bus_req()
65 mutex_unlock(&ci->fsm.lock); in set_a_bus_req()
68 ci->fsm.a_bus_req = 1; in set_a_bus_req()
69 if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { in set_a_bus_req()
70 ci->gadget.host_request_flag = 1; in set_a_bus_req()
[all …]
Dcore.c125 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument
130 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
131 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
135 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap()
143 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() argument
145 int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); in ci_get_revision()
149 rev = hw_read_id_reg(ci, ID_ID, REVISION) in ci_get_revision()
166 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument
168 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
178 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument
[all …]
Dudc.c65 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument
67 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit()
69 if (n >= ci->hw_ep_max / 2) in ep_to_bit()
81 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() argument
84 hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); in hw_device_state()
86 hw_write(ci, OP_USBINTR, ~0, in hw_device_state()
89 hw_write(ci, OP_USBINTR, ~0, 0); in hw_device_state()
101 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument
107 hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); in hw_ep_flush()
108 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
[all …]
Dotg.c31 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument
34 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
40 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
58 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
84 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument
88 cable = &ci->platdata->vbus_extcon; in hw_write_otgsc()
102 cable = &ci->platdata->id_extcon; in hw_write_otgsc()
116 hw_write(ci, OP_OTGSC, mask | OTGSC_INT_STATUS_BITS, data); in hw_write_otgsc()
123 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role() argument
125 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role()
[all …]
Dhost.c47 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() local
69 if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { in ehci_ci_portpower()
74 hw_port_test_set(ci, 5); in ehci_ci_portpower()
75 hw_port_test_set(ci, 0); in ehci_ci_portpower()
83 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() local
93 ci_platform_configure(ci); in ehci_ci_reset()
104 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument
106 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
109 static int host_start(struct ci_hdrc *ci) in host_start() argument
119 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); 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.h99 struct ci_hdrc *ci; member
253 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
255 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
256 return ci->roles[ci->role]; in ci_role()
259 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
266 if (!ci->roles[role]) in ci_role_start()
269 ret = ci->roles[role]->start(ci); in ci_role_start()
271 ci->role = role; in ci_role_start()
275 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument
277 enum ci_role role = ci->role; in ci_role_stop()
[all …]
Dci_hdrc_pci.c25 struct platform_device *ci; member
61 struct ci_hdrc_pci *ci; in ci_hdrc_pci_probe() local
70 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe()
71 if (!ci) in ci_hdrc_pci_probe()
87 ci->phy = usb_phy_generic_register(); in ci_hdrc_pci_probe()
88 if (IS_ERR(ci->phy)) in ci_hdrc_pci_probe()
89 return PTR_ERR(ci->phy); in ci_hdrc_pci_probe()
98 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
99 if (IS_ERR(ci->ci)) { in ci_hdrc_pci_probe()
101 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_probe()
[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.h69 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
70 int ci_otg_fsm_work(struct ci_hdrc *ci);
71 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
72 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
73 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
77 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init() argument
82 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work() argument
87 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq() argument
92 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start() argument
97 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove() argument
Dhost.h6 int ci_hdrc_host_init(struct ci_hdrc *ci);
7 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
12 static inline int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init() argument
17 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->usb_phy); in ci_hdrc_msm_notify_event()
37 usb_phy_notify_disconnect(ci->usb_phy, USB_SPEED_UNKNOWN); in ci_hdrc_msm_notify_event()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dchip.c248 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument
253 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
259 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local
263 ci = core->chip; in brcmf_chip_sb_iscoreup()
265 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
273 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local
277 ci = core->chip; in brcmf_chip_ai_iscoreup()
278 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
281 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
290 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/net/arcnet/
Dcom20020-pci.c71 struct com20020_pci_card_info *ci; in led_tx_set() local
76 ci = priv->ci; in led_tx_set()
78 outb(!!value, priv->misc + ci->leds[card->index].green); in led_tx_set()
86 struct com20020_pci_card_info *ci; in led_recon_set() local
91 ci = priv->ci; in led_recon_set()
93 outb(!!value, priv->misc + ci->leds[card->index].red); in led_recon_set()
101 struct com20020_pci_card_info *ci; in com20020pci_probe() local
117 ci = (struct com20020_pci_card_info *)id->driver_data; in com20020pci_probe()
118 priv->ci = ci; in com20020pci_probe()
119 mm = &ci->misc_map; in com20020pci_probe()
[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/md/
Ddm.c1109 static struct dm_target_io *alloc_tio(struct clone_info *ci, in alloc_tio() argument
1116 clone = bio_alloc_bioset(GFP_NOIO, 0, ci->md->bs); in alloc_tio()
1119 tio->io = ci->io; in alloc_tio()
1126 static void __clone_and_map_simple_bio(struct clone_info *ci, in __clone_and_map_simple_bio() argument
1130 struct dm_target_io *tio = alloc_tio(ci, ti, target_bio_nr); in __clone_and_map_simple_bio()
1135 __bio_clone_fast(clone, ci->bio); in __clone_and_map_simple_bio()
1137 bio_setup_sector(clone, ci->sector, *len); in __clone_and_map_simple_bio()
1142 static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, in __send_duplicate_bios() argument
1148 __clone_and_map_simple_bio(ci, ti, target_bio_nr, len); in __send_duplicate_bios()
1151 static int __send_empty_flush(struct clone_info *ci) in __send_empty_flush() argument
[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/scsi/bfa/
Dbfa_hw_cb.c54 bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack_msix() argument
59 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack_msix()
62 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack_msix()
63 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack_msix()
68 bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack() argument
70 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack()
73 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack()
74 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c38 u32 ci = mlx5_cqwq_get_ci(wq); in mlx5e_get_cqe() local
39 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); in mlx5e_get_cqe()
74 u16 ci = be16_to_cpu(cqe->wqe_counter) & wq->sz_m1; in mlx5e_poll_ico_cq() local
75 struct mlx5e_sq_wqe_info *icowi = &sq->db.ico_wqe[ci]; in mlx5e_poll_ico_cq()
140 u16 ci; in mlx5e_poll_xdp_tx_cq() local
144 ci = sqcc & sq->wq.sz_m1; in mlx5e_poll_xdp_tx_cq()
145 di = &sq->db.xdp.di[ci]; in mlx5e_poll_xdp_tx_cq()
146 wi = &sq->db.xdp.wqe_info[ci]; in mlx5e_poll_xdp_tx_cq()
/drivers/net/can/sja1000/
Dplx_pci.c577 struct plx_pci_card_info *ci; in plx_pci_add_card() local
582 ci = (struct plx_pci_card_info *)ent->driver_data; in plx_pci_add_card()
590 ci->name, PCI_SLOT(pdev->devfn)); in plx_pci_add_card()
604 addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size); in plx_pci_add_card()
608 "(BAR%d)\n", ci->conf_map.bar); in plx_pci_add_card()
611 card->conf_addr = addr + ci->conf_map.offset; in plx_pci_add_card()
613 ci->reset_func(pdev); in plx_pci_add_card()
614 card->reset_func = ci->reset_func; in plx_pci_add_card()
617 for (i = 0; i < ci->channel_count; i++) { in plx_pci_add_card()
618 struct plx_pci_channel_map *cm = &ci->chan_map_tbl[i]; in plx_pci_add_card()
[all …]
/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/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()

12345