Home
last modified time | relevance | path

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

123456

/drivers/media/dvb-frontends/
Dcxd2099.c62 static int read_block(struct cxd *ci, u8 adr, u8 *data, u16 n) in read_block() argument
66 if (ci->lastaddress != adr) in read_block()
67 status = regmap_write(ci->regmap, 0, adr); in read_block()
69 ci->lastaddress = adr; in read_block()
74 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block()
75 len = ci->cfg.max_i2c; in read_block()
76 status = regmap_raw_read(ci->regmap, 1, data, len); in read_block()
86 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() argument
88 return read_block(ci, reg, val, 1); in read_reg()
91 static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in read_pccard() argument
[all …]
/drivers/usb/chipidea/
Dcore.c98 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument
103 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
104 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
108 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap()
116 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() argument
118 int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); in ci_get_revision()
122 rev = hw_read_id_reg(ci, ID_ID, REVISION) in ci_get_revision()
139 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument
141 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
151 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument
[all …]
Dotg_fsm.c36 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_show() local
40 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in a_bus_req_show()
51 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_store() local
56 mutex_lock(&ci->fsm.lock); in a_bus_req_store()
58 ci->fsm.a_bus_req = 0; in a_bus_req_store()
61 if (ci->fsm.a_bus_drop) { in a_bus_req_store()
62 mutex_unlock(&ci->fsm.lock); in a_bus_req_store()
65 ci->fsm.a_bus_req = 1; in a_bus_req_store()
66 if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { in a_bus_req_store()
67 ci->gadget.host_request_flag = 1; in a_bus_req_store()
[all …]
Dotg.c29 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument
32 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
83 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument
87 cable = &ci->platdata->vbus_extcon; in hw_write_otgsc()
88 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
101 cable = &ci->platdata->id_extcon; in hw_write_otgsc()
[all …]
Dudc.c64 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument
66 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit()
68 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()
102 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument
108 hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); in hw_ep_flush()
109 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
[all …]
Dhost.c42 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() local
65 if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { in ehci_ci_portpower()
70 hw_port_test_set(ci, 5); in ehci_ci_portpower()
71 hw_port_test_set(ci, 0); in ehci_ci_portpower()
79 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() local
89 if (ci->platdata->notify_event) { in ehci_ci_reset()
90 ret = ci->platdata->notify_event(ci, in ehci_ci_reset()
96 ci_platform_configure(ci); in ehci_ci_reset()
107 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument
109 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
[all …]
Ddebug.c26 struct ci_hdrc *ci = s->private; in ci_device_show() local
27 struct usb_gadget *gadget = &ci->gadget; in ci_device_show()
39 if (!ci->driver) in ci_device_show()
43 (ci->driver->function ? ci->driver->function : "")); in ci_device_show()
44 seq_printf(s, "gadget max speed = %d\n", ci->driver->max_speed); in ci_device_show()
55 struct ci_hdrc *ci = s->private; in ci_port_test_show() local
59 pm_runtime_get_sync(ci->dev); in ci_port_test_show()
60 spin_lock_irqsave(&ci->lock, flags); in ci_port_test_show()
61 mode = hw_port_test_get(ci); in ci_port_test_show()
62 spin_unlock_irqrestore(&ci->lock, flags); in ci_port_test_show()
[all …]
Dci.h101 struct ci_hdrc *ci; member
262 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
264 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
265 return ci->roles[ci->role]; in ci_role()
268 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
275 if (!ci->roles[role]) in ci_role_start()
278 ret = ci->roles[role]->start(ci); in ci_role_start()
280 ci->role = role; in ci_role_start()
284 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument
286 enum ci_role role = ci->role; in ci_role_stop()
[all …]
Dci_hdrc_msm.c37 struct platform_device *ci; member
79 static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event() argument
81 struct device *dev = ci->dev->parent; in ci_hdrc_msm_notify_event()
89 hw_phymode_configure(ci); in ci_hdrc_msm_notify_event()
96 ret = phy_init(ci->phy); in ci_hdrc_msm_notify_event()
100 ret = phy_power_on(ci->phy); in ci_hdrc_msm_notify_event()
102 phy_exit(ci->phy); in ci_hdrc_msm_notify_event()
107 hw_write_id_reg(ci, HS_PHY_AHB_MODE, 0xffffffff, 0x8); in ci_hdrc_msm_notify_event()
110 hw_write_id_reg(ci, HS_PHY_GENCONFIG, in ci_hdrc_msm_notify_event()
114 hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, in ci_hdrc_msm_notify_event()
[all …]
Dulpi.c19 static int ci_ulpi_wait(struct ci_hdrc *ci, u32 mask) in ci_ulpi_wait() argument
24 if (!hw_read(ci, OP_ULPI_VIEWPORT, mask)) in ci_ulpi_wait()
35 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_read() local
38 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); in ci_ulpi_read()
39 ret = ci_ulpi_wait(ci, ULPI_WAKEUP); in ci_ulpi_read()
43 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_RUN | ULPI_ADDR(addr)); in ci_ulpi_read()
44 ret = ci_ulpi_wait(ci, ULPI_RUN); in ci_ulpi_read()
48 return hw_read(ci, OP_ULPI_VIEWPORT, GENMASK(15, 8)) >> 8; in ci_ulpi_read()
53 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_write() local
56 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); in ci_ulpi_write()
[all …]
Dci_hdrc_pci.c22 struct platform_device *ci; member
58 struct ci_hdrc_pci *ci; in ci_hdrc_pci_probe() local
67 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe()
68 if (!ci) in ci_hdrc_pci_probe()
84 ci->phy = usb_phy_generic_register(); in ci_hdrc_pci_probe()
85 if (IS_ERR(ci->phy)) in ci_hdrc_pci_probe()
86 return PTR_ERR(ci->phy); in ci_hdrc_pci_probe()
95 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
96 if (IS_ERR(ci->ci)) { in ci_hdrc_pci_probe()
98 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_probe()
[all …]
Dotg.h11 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
12 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
13 int ci_hdrc_otg_init(struct ci_hdrc *ci);
14 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
15 enum ci_role ci_otg_role(struct ci_hdrc *ci);
16 void ci_handle_vbus_change(struct ci_hdrc *ci);
17 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work() argument
19 disable_irq_nosync(ci->irq); in ci_otg_queue_work()
20 if (queue_work(ci->wq, &ci->work) == false) in ci_otg_queue_work()
21 enable_irq(ci->irq); in ci_otg_queue_work()
Dotg_fsm.h66 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
67 int ci_otg_fsm_work(struct ci_hdrc *ci);
68 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
69 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
70 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
74 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init() argument
79 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work() argument
84 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq() argument
89 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start() argument
94 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove() argument
/drivers/media/pci/ddbridge/
Dddbridge-ci.c29 static int wait_ci_ready(struct ddb_ci *ci) in wait_ci_ready() argument
35 if (ddbreadl(ci->port->dev, in wait_ci_ready()
36 CI_CONTROL(ci->nr)) & CI_READY) in wait_ci_ready()
48 struct ddb_ci *ci = ca->data; in read_attribute_mem() local
53 ddbwritel(ci->port->dev, CI_READ_CMD | (1 << 16) | address, in read_attribute_mem()
54 CI_DO_READ_ATTRIBUTES(ci->nr)); in read_attribute_mem()
55 wait_ci_ready(ci); in read_attribute_mem()
56 val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off); in read_attribute_mem()
63 struct ddb_ci *ci = ca->data; in write_attribute_mem() local
65 ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, in write_attribute_mem()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dchip.c240 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument
245 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
251 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local
255 ci = core->chip; in brcmf_chip_sb_iscoreup()
257 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
265 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local
269 ci = core->chip; in brcmf_chip_ai_iscoreup()
270 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
273 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
282 struct brcmf_chip_priv *ci; in brcmf_chip_sb_coredisable() local
[all …]
/drivers/s390/crypto/
Dzcrypt_cex4.c79 struct cca_info ci; in cca_serialnr_show() local
82 memset(&ci, 0, sizeof(ci)); in cca_serialnr_show()
85 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
87 return scnprintf(buf, PAGE_SIZE, "%s\n", ci.serial); in cca_serialnr_show()
111 struct cca_info ci; in cca_mkvps_show() local
115 memset(&ci, 0, sizeof(ci)); in cca_mkvps_show()
119 &ci, zq->online); in cca_mkvps_show()
121 if (ci.new_aes_mk_state >= '1' && ci.new_aes_mk_state <= '3') in cca_mkvps_show()
123 new_state[ci.new_aes_mk_state - '1'], in cca_mkvps_show()
124 ci.new_aes_mkvp); in cca_mkvps_show()
[all …]
Dzcrypt_cex2c.c70 struct cca_info ci; in cca_serialnr_show() local
73 memset(&ci, 0, sizeof(ci)); in cca_serialnr_show()
76 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
78 return scnprintf(buf, PAGE_SIZE, "%s\n", ci.serial); in cca_serialnr_show()
102 struct cca_info ci; in cca_mkvps_show() local
106 memset(&ci, 0, sizeof(ci)); in cca_mkvps_show()
110 &ci, zq->online); in cca_mkvps_show()
112 if (ci.new_aes_mk_state >= '1' && ci.new_aes_mk_state <= '3') in cca_mkvps_show()
114 new_state[ci.new_aes_mk_state - '1'], in cca_mkvps_show()
115 ci.new_aes_mkvp); in cca_mkvps_show()
[all …]
Dzcrypt_ccamisc.c1605 static int cca_info_cache_fetch(u16 cardnr, u16 domain, struct cca_info *ci) in cca_info_cache_fetch() argument
1613 memcpy(ci, &ptr->info, sizeof(*ci)); in cca_info_cache_fetch()
1624 const struct cca_info *ci) in cca_info_cache_update() argument
1633 memcpy(&ptr->info, ci, sizeof(*ci)); in cca_info_cache_update()
1646 memcpy(&ptr->info, ci, sizeof(*ci)); in cca_info_cache_update()
1683 static int fetch_cca_info(u16 cardnr, u16 domain, struct cca_info *ci) in fetch_cca_info() argument
1690 memset(ci, 0, sizeof(*ci)); in fetch_cca_info()
1696 ci->hwtype = devstat.hwtype; in fetch_cca_info()
1710 memcpy(ci->serial, rarray, 8); in fetch_cca_info()
1711 ci->new_aes_mk_state = (char) rarray[7*8]; in fetch_cca_info()
[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()
122 struct com20020_pci_card_info *ci; in com20020pci_probe() local
140 ci = (struct com20020_pci_card_info *)id->driver_data; in com20020pci_probe()
141 if (!ci) in com20020pci_probe()
144 priv->ci = ci; in com20020pci_probe()
[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/misc/habanalabs/common/
Dirq.c96 bool entry_ready = ((le32_to_cpu(cq_base[cq->ci].data) & in hl_irq_handler_cq()
103 cq_entry = (struct hl_cq_entry *) &cq_base[cq->ci]; in hl_irq_handler_cq()
125 atomic_inc(&queue->ci); in hl_irq_handler_cq()
131 cq->ci = hl_cq_inc_ptr(cq->ci); in hl_irq_handler_cq()
217 cur_eqe = le32_to_cpu(eq_base[eq->ci].hdr.ctl); in hl_irq_handler_eq()
229 eq_base[eq->ci].hdr.ctl, in hl_irq_handler_eq()
237 eq_entry = &eq_base[eq->ci]; in hl_irq_handler_eq()
268 eq->ci = hl_eq_inc_ptr(eq->ci); in hl_irq_handler_eq()
270 hdev->asic_funcs->update_eq_ci(hdev, eq->ci); in hl_irq_handler_eq()
298 q->ci = 0; in hl_cq_init()
[all …]
/drivers/firmware/arm_scmi/
Dclock.c80 struct clock_info *ci) in scmi_clock_protocol_attributes_get() argument
95 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get()
96 ci->max_async_req = attr->max_async_req; in scmi_clock_protocol_attributes_get()
247 struct clock_info *ci = ph->get_priv(ph); in scmi_clock_rate_set() local
253 if (ci->max_async_req && in scmi_clock_rate_set()
254 atomic_inc_return(&ci->cur_async_req) < ci->max_async_req) in scmi_clock_rate_set()
268 if (ci->max_async_req) in scmi_clock_rate_set()
269 atomic_dec(&ci->cur_async_req); in scmi_clock_rate_set()
310 struct clock_info *ci = ph->get_priv(ph); in scmi_clock_count_get() local
312 return ci->num_clocks; in scmi_clock_count_get()
[all …]
/drivers/net/ethernet/broadcom/
Dbgmac-bcma.c114 struct bcma_chipinfo *ci = &core->bus->chipinfo; in bgmac_probe() local
186 !(ci->id == BCMA_CHIP_ID_BCM53573 && core->core_unit == 1)) { in bgmac_probe()
197 if (ci->id == BCMA_CHIP_ID_BCM53573 && phydev && in bgmac_probe()
216 switch (ci->id) { in bgmac_probe()
231 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM47186) || in bgmac_probe()
232 (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg == BCMA_PKG_ID_BCM47188)) { in bgmac_probe()
236 if (ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM5358) in bgmac_probe()
242 if (ci->pkg == BCMA_PKG_ID_BCM47189) in bgmac_probe()
246 if (ci->pkg == BCMA_PKG_ID_BCM47189) in bgmac_probe()
259 if (ci->pkg == 10) { in bgmac_probe()
/drivers/md/
Ddm.c565 static struct dm_target_io *alloc_tio(struct clone_info *ci, struct dm_target *ti, in alloc_tio() argument
570 if (!ci->io->tio.io) { in alloc_tio()
572 tio = &ci->io->tio; in alloc_tio()
574 struct bio *clone = bio_alloc_bioset(gfp_mask, 0, &ci->io->md->bs); in alloc_tio()
583 tio->io = ci->io; in alloc_tio()
1322 static void alloc_multiple_bios(struct bio_list *blist, struct clone_info *ci, in alloc_multiple_bios() argument
1332 tio = alloc_tio(ci, ti, 0, GFP_NOIO); in alloc_multiple_bios()
1342 mutex_lock(&ci->io->md->table_devices_lock); in alloc_multiple_bios()
1344 tio = alloc_tio(ci, ti, bio_nr, try ? GFP_NOIO : GFP_NOWAIT); in alloc_multiple_bios()
1351 mutex_unlock(&ci->io->md->table_devices_lock); in alloc_multiple_bios()
[all …]
/drivers/regulator/
Dmp886x.c40 const struct mp886x_cfg_info *ci; member
49 const struct mp886x_cfg_info *ci = di->ci; in mp886x_set_switch_freq() local
52 for (i = 0; i < ARRAY_SIZE(ci->switch_freq); i++) { in mp886x_set_switch_freq()
53 if (freq == ci->switch_freq[i]) { in mp886x_set_switch_freq()
54 regmap_update_bits(regmap, ci->fs_reg, in mp886x_set_switch_freq()
55 0x3 << ci->fs_shift, i << ci->fs_shift); in mp886x_set_switch_freq()
262 rdesc->ops = di->ci->rops; in mp886x_regulator_register()
273 rdesc->ramp_delay_table = di->ci->slew_rates; in mp886x_regulator_register()
274 rdesc->n_ramp_values = ARRAY_SIZE(di->ci->slew_rates); in mp886x_regulator_register()
318 di->ci = of_device_get_match_data(dev); in mp886x_i2c_probe()

123456