Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 25 of 129) 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/
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 …]
Dcore.c124 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument
129 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
130 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
134 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap()
142 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() argument
144 int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); in ci_get_revision()
148 rev = hw_read_id_reg(ci, ID_ID, REVISION) in ci_get_revision()
165 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument
167 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
177 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument
[all …]
Dotg.c28 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument
31 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
37 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
38 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
55 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
56 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
81 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument
85 cable = &ci->platdata->vbus_extcon; in hw_write_otgsc()
86 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
99 cable = &ci->platdata->id_extcon; in hw_write_otgsc()
[all …]
Dudc.c63 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument
65 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit()
67 if (n >= ci->hw_ep_max / 2) in ep_to_bit()
79 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() argument
82 hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); in hw_device_state()
84 hw_write(ci, OP_USBINTR, ~0, in hw_device_state()
87 hw_write(ci, OP_USBINTR, ~0, 0); in hw_device_state()
99 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument
105 hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); in hw_ep_flush()
106 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
[all …]
Dhost.c37 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() local
60 if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { in ehci_ci_portpower()
65 hw_port_test_set(ci, 5); in ehci_ci_portpower()
66 hw_port_test_set(ci, 0); in ehci_ci_portpower()
74 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() local
84 if (ci->platdata->notify_event) { in ehci_ci_reset()
85 ret = ci->platdata->notify_event(ci, in ehci_ci_reset()
91 ci_platform_configure(ci); in ehci_ci_reset()
102 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument
104 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.h100 struct ci_hdrc *ci; member
261 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
263 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
264 return ci->roles[ci->role]; in ci_role()
267 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
274 if (!ci->roles[role]) in ci_role_start()
277 ret = ci->roles[role]->start(ci); in ci_role_start()
279 ci->role = role; in ci_role_start()
283 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument
285 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.c238 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument
243 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
249 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local
253 ci = core->chip; in brcmf_chip_sb_iscoreup()
255 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
263 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local
267 ci = core->chip; in brcmf_chip_ai_iscoreup()
268 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
271 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
280 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/misc/habanalabs/
Dirq.c95 bool entry_ready = ((le32_to_cpu(cq_base[cq->ci].data) & in hl_irq_handler_cq()
102 cq_entry = (struct hl_cq_entry *) &cq_base[cq->ci]; in hl_irq_handler_cq()
129 queue->ci = hl_queue_inc_ptr(queue->ci); in hl_irq_handler_cq()
135 cq->ci = hl_cq_inc_ptr(cq->ci); in hl_irq_handler_cq()
163 ((le32_to_cpu(eq_base[eq->ci].hdr.ctl) & in hl_irq_handler_eq()
169 eq_entry = &eq_base[eq->ci]; in hl_irq_handler_eq()
200 eq->ci = hl_eq_inc_ptr(eq->ci); in hl_irq_handler_eq()
202 hdev->asic_funcs->update_eq_ci(hdev, eq->ci); in hl_irq_handler_eq()
232 q->ci = 0; in hl_cq_init()
256 q->ci = 0; in hl_cq_reset()
[all …]
/drivers/s390/crypto/
Dzcrypt_cex4.c80 struct cca_info ci; in serialnr_show() local
84 memset(&ci, 0, sizeof(ci)); in serialnr_show()
87 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in serialnr_show()
89 return snprintf(buf, PAGE_SIZE, "%s\n", ci.serial); in serialnr_show()
110 struct cca_info ci; in mkvps_show() local
115 memset(&ci, 0, sizeof(ci)); in mkvps_show()
119 &ci, zq->online); in mkvps_show()
121 if (ci.new_mk_state >= '1' && ci.new_mk_state <= '3') in mkvps_show()
123 new_state[ci.new_mk_state - '1'], ci.new_mkvp); in mkvps_show()
127 if (ci.cur_mk_state >= '1' && ci.cur_mk_state <= '2') in mkvps_show()
[all …]
Dzcrypt_ccamisc.c1413 static int cca_info_cache_fetch(u16 cardnr, u16 domain, struct cca_info *ci) in cca_info_cache_fetch() argument
1421 memcpy(ci, &ptr->info, sizeof(*ci)); in cca_info_cache_fetch()
1432 const struct cca_info *ci) in cca_info_cache_update() argument
1441 memcpy(&ptr->info, ci, sizeof(*ci)); in cca_info_cache_update()
1454 memcpy(&ptr->info, ci, sizeof(*ci)); in cca_info_cache_update()
1491 static int fetch_cca_info(u16 cardnr, u16 domain, struct cca_info *ci) in fetch_cca_info() argument
1498 memset(ci, 0, sizeof(*ci)); in fetch_cca_info()
1504 ci->hwtype = devstat.hwtype; in fetch_cca_info()
1518 memcpy(ci->serial, rarray, 8); in fetch_cca_info()
1519 ci->new_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
138 ci = (struct com20020_pci_card_info *)id->driver_data; in com20020pci_probe()
139 priv->ci = ci; in com20020pci_probe()
140 mm = &ci->misc_map; in com20020pci_probe()
[all …]
/drivers/staging/uwb/
Dallocator.c17 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_fill_column_alloc() local
20 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
22 safe_mas = ci->csi.safe_mas_per_col; in uwb_rsv_fill_column_alloc()
23 unsafe_mas = ci->csi.unsafe_mas_per_col; in uwb_rsv_fill_column_alloc()
129 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_find_best_column_set() local
130 struct uwb_rsv_col_set_info *csi = &ci->csi; in uwb_rsv_find_best_column_set()
151 if (ci[col].max_avail_safe >= num_safe_mas && in uwb_rsv_find_best_column_set()
152 ci[col].max_avail_unsafe >= n_mas) { in uwb_rsv_find_best_column_set()
153 if (ci[col].highest_mas[n_mas] > max_mas_in_set) in uwb_rsv_find_best_column_set()
154 max_mas_in_set = ci[col].highest_mas[n_mas]; in uwb_rsv_find_best_column_set()
[all …]
/drivers/md/
Ddm.c625 static struct dm_target_io *alloc_tio(struct clone_info *ci, struct dm_target *ti, in alloc_tio() argument
630 if (!ci->io->tio.io) { in alloc_tio()
632 tio = &ci->io->tio; in alloc_tio()
634 struct bio *clone = bio_alloc_bioset(gfp_mask, 0, &ci->io->md->bs); in alloc_tio()
643 tio->io = ci->io; in alloc_tio()
1334 static void alloc_multiple_bios(struct bio_list *blist, struct clone_info *ci, in alloc_multiple_bios() argument
1344 tio = alloc_tio(ci, ti, 0, GFP_NOIO); in alloc_multiple_bios()
1354 mutex_lock(&ci->io->md->table_devices_lock); in alloc_multiple_bios()
1356 tio = alloc_tio(ci, ti, bio_nr, try ? GFP_NOIO : GFP_NOWAIT); in alloc_multiple_bios()
1363 mutex_unlock(&ci->io->md->table_devices_lock); in alloc_multiple_bios()
[all …]
/drivers/firmware/arm_scmi/
Dclock.c75 struct clock_info *ci) in scmi_clock_protocol_attributes_get() argument
90 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get()
91 ci->max_async_req = attr->max_async_req; in scmi_clock_protocol_attributes_get()
224 struct clock_info *ci = handle->clk_priv; in scmi_clock_rate_set() local
231 if (ci->max_async_req && in scmi_clock_rate_set()
232 atomic_inc_return(&ci->cur_async_req) < ci->max_async_req) in scmi_clock_rate_set()
246 if (ci->max_async_req) in scmi_clock_rate_set()
247 atomic_dec(&ci->cur_async_req); in scmi_clock_rate_set()
287 struct clock_info *ci = handle->clk_priv; in scmi_clock_count_get() local
289 return ci->num_clocks; in scmi_clock_count_get()
[all …]
/drivers/firewire/
Dcore-device.c34 void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p) in fw_csr_iterator_init() argument
36 ci->p = p + 1; in fw_csr_iterator_init()
37 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init()
41 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) in fw_csr_iterator_next() argument
43 *key = *ci->p >> 24; in fw_csr_iterator_next()
44 *value = *ci->p & 0xffffff; in fw_csr_iterator_next()
46 return ci->p++ < ci->end; in fw_csr_iterator_next()
52 struct fw_csr_iterator ci; in search_leaf() local
55 fw_csr_iterator_init(&ci, directory); in search_leaf()
56 while (fw_csr_iterator_next(&ci, &key, &value)) { in search_leaf()
[all …]
/drivers/media/usb/dvb-usb-v2/
Danysee.c1155 static int anysee_ci_read_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_attribute_mem() argument
1158 struct dvb_usb_device *d = ci->data; in anysee_ci_read_attribute_mem()
1170 static int anysee_ci_write_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_attribute_mem() argument
1173 struct dvb_usb_device *d = ci->data; in anysee_ci_write_attribute_mem()
1184 static int anysee_ci_read_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_cam_control() argument
1187 struct dvb_usb_device *d = ci->data; in anysee_ci_read_cam_control()
1199 static int anysee_ci_write_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_cam_control() argument
1202 struct dvb_usb_device *d = ci->data; in anysee_ci_write_cam_control()
1213 static int anysee_ci_slot_reset(struct dvb_ca_en50221 *ci, int slot) in anysee_ci_slot_reset() argument
1215 struct dvb_usb_device *d = ci->data; in anysee_ci_slot_reset()
[all …]

123456