Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 25 of 503) sorted by relevance

12345678910>>...21

/drivers/s390/cio/
Ddevice_fsm.c37 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log() argument
45 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
56 dev_name(&cdev->dev)); in ccw_timeout_log()
73 cdev->private->dma_area->iccws) in ccw_timeout_log()
84 cdev->private->state); in ccw_timeout_log()
91 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log()
101 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local
103 spin_lock_irq(cdev->ccwlock); in ccw_device_timeout()
105 ccw_timeout_log(cdev); in ccw_device_timeout()
106 dev_fsm_event(cdev, DEV_EVENT_TIMEOUT); in ccw_device_timeout()
[all …]
Ddevice.c63 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match() local
70 found = ccw_device_id_match(ids, &cdev->id); in ccw_bus_match()
74 cdev->id.driver_info = found->driver_info; in ccw_bus_match()
106 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent() local
107 struct ccw_device_id *id = &(cdev->id); in ccw_uevent()
200 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show() local
201 struct ccw_device_id *id = &(cdev->id); in devtype_show()
213 struct ccw_device *cdev = to_ccwdev(dev); in cutype_show() local
214 struct ccw_device_id *id = &(cdev->id); in cutype_show()
223 struct ccw_device *cdev = to_ccwdev(dev); in modalias_show() local
[all …]
Ddevice_pgid.c28 static void verify_start(struct ccw_device *cdev);
33 static void verify_done(struct ccw_device *cdev, int rc) in verify_done() argument
35 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done()
36 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done()
37 int mpath = cdev->private->flags.mpath; in verify_done()
38 int pgroup = cdev->private->flags.pgroup; in verify_done()
51 ccw_device_verify_done(cdev, rc); in verify_done()
57 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp() argument
59 struct ccw_request *req = &cdev->private->req; in nop_build_cp()
60 struct ccw1 *cp = cdev->private->dma_area->iccws; in nop_build_cp()
[all …]
Ddevice_ops.c39 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask() argument
47 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask()
48 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask()
49 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask()
50 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask()
51 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask()
64 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options() argument
72 cdev->private->options.repall) || in ccw_device_set_options()
74 cdev->private->options.fast)) in ccw_device_set_options()
76 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options()
[all …]
Dcmf.c176 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib() argument
179 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib()
212 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait() argument
218 spin_lock_irq(cdev->ccwlock); in set_schib_wait()
219 if (!cdev->private->cmb) in set_schib_wait()
222 ret = set_schib(cdev, mme, mbfc, address); in set_schib_wait()
227 if (cdev->private->state != DEV_STATE_ONLINE) in set_schib_wait()
236 cdev->private->state = DEV_STATE_CMFCHANGE; in set_schib_wait()
237 cdev->private->cmb_wait = &set_data; in set_schib_wait()
238 spin_unlock_irq(cdev->ccwlock); in set_schib_wait()
[all …]
Dccwreq.c41 static u16 ccwreq_next_path(struct ccw_device *cdev) in ccwreq_next_path() argument
43 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path()
58 static void ccwreq_stop(struct ccw_device *cdev, int rc) in ccwreq_stop() argument
60 struct ccw_request *req = &cdev->private->req; in ccwreq_stop()
65 ccw_device_set_timeout(cdev, 0); in ccwreq_stop()
66 memset(&cdev->private->dma_area->irb, 0, sizeof(struct irb)); in ccwreq_stop()
69 req->callback(cdev, req->data, rc); in ccwreq_stop()
75 static void ccwreq_do(struct ccw_device *cdev) in ccwreq_do() argument
77 struct ccw_request *req = &cdev->private->req; in ccwreq_do()
78 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccwreq_do()
[all …]
Ddevice_id.c99 static int diag210_get_dev_info(struct ccw_device *cdev) in diag210_get_dev_info() argument
101 struct ccw_dev_id *dev_id = &cdev->private->dev_id; in diag210_get_dev_info()
102 struct senseid *senseid = &cdev->private->dma_area->senseid; in diag210_get_dev_info()
134 static void snsid_init(struct ccw_device *cdev) in snsid_init() argument
136 cdev->private->flags.esid = 0; in snsid_init()
138 memset(&cdev->private->dma_area->senseid, 0, in snsid_init()
139 sizeof(cdev->private->dma_area->senseid)); in snsid_init()
140 cdev->private->dma_area->senseid.cu_type = 0xffff; in snsid_init()
146 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check() argument
148 struct cmd_scsw *scsw = &cdev->private->dma_area->irb.scsw.cmd; in snsid_check()
[all …]
/drivers/net/can/m_can/
Dm_can.c319 static inline u32 m_can_read(struct m_can_classdev *cdev, enum m_can_reg reg) in m_can_read() argument
321 return cdev->ops->read_reg(cdev, reg); in m_can_read()
324 static inline void m_can_write(struct m_can_classdev *cdev, enum m_can_reg reg, in m_can_write() argument
327 cdev->ops->write_reg(cdev, reg, val); in m_can_write()
331 m_can_fifo_read(struct m_can_classdev *cdev, in m_can_fifo_read() argument
334 u32 addr_offset = cdev->mcfg[MRAM_RXF0].off + fgi * RXF0_ELEMENT_SIZE + in m_can_fifo_read()
340 return cdev->ops->read_fifo(cdev, addr_offset, val, val_count); in m_can_fifo_read()
344 m_can_fifo_write(struct m_can_classdev *cdev, in m_can_fifo_write() argument
347 u32 addr_offset = cdev->mcfg[MRAM_TXB].off + fpi * TXB_ELEMENT_SIZE + in m_can_fifo_write()
353 return cdev->ops->write_fifo(cdev, addr_offset, val, val_count); in m_can_fifo_write()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_main.c258 static void qed_free_pci(struct qed_dev *cdev) in qed_free_pci() argument
260 struct pci_dev *pdev = cdev->pdev; in qed_free_pci()
264 if (cdev->doorbells && cdev->db_size) in qed_free_pci()
265 iounmap(cdev->doorbells); in qed_free_pci()
266 if (cdev->regview) in qed_free_pci()
267 iounmap(cdev->regview); in qed_free_pci()
279 static int qed_init_pci(struct qed_dev *cdev, struct pci_dev *pdev) in qed_init_pci() argument
284 cdev->pdev = pdev; in qed_init_pci()
288 DP_NOTICE(cdev, "Cannot enable PCI device\n"); in qed_init_pci()
293 DP_NOTICE(cdev, "No memory region found in bar #0\n"); in qed_init_pci()
[all …]
Dqed_debug.h26 int qed_dbg_grc(struct qed_dev *cdev, void *buffer, u32 *num_dumped_bytes);
27 int qed_dbg_grc_size(struct qed_dev *cdev);
28 int qed_dbg_idle_chk(struct qed_dev *cdev, void *buffer,
30 int qed_dbg_idle_chk_size(struct qed_dev *cdev);
31 int qed_dbg_reg_fifo(struct qed_dev *cdev, void *buffer,
33 int qed_dbg_reg_fifo_size(struct qed_dev *cdev);
34 int qed_dbg_igu_fifo(struct qed_dev *cdev, void *buffer,
36 int qed_dbg_igu_fifo_size(struct qed_dev *cdev);
37 int qed_dbg_protection_override(struct qed_dev *cdev, void *buffer,
39 int qed_dbg_protection_override_size(struct qed_dev *cdev);
[all …]
Dqed_dev.c80 static bool qed_db_rec_sanity(struct qed_dev *cdev, in qed_db_rec_sanity() argument
88 if (db_addr < cdev->doorbells || in qed_db_rec_sanity()
90 (u8 __iomem *)cdev->doorbells + cdev->db_size) { in qed_db_rec_sanity()
94 cdev->doorbells, in qed_db_rec_sanity()
95 (u8 __iomem *)cdev->doorbells + cdev->db_size); in qed_db_rec_sanity()
109 static struct qed_hwfn *qed_db_rec_find_hwfn(struct qed_dev *cdev, in qed_db_rec_find_hwfn() argument
115 if (cdev->num_hwfns > 1) in qed_db_rec_find_hwfn()
116 p_hwfn = db_addr < cdev->hwfns[1].doorbells ? in qed_db_rec_find_hwfn()
117 &cdev->hwfns[0] : &cdev->hwfns[1]; in qed_db_rec_find_hwfn()
119 p_hwfn = QED_LEADING_HWFN(cdev); in qed_db_rec_find_hwfn()
[all …]
Dqed_devlink.c43 struct qed_dev *cdev = qdl->cdev; in qed_fw_fatal_reporter_dump() local
52 cdev->print_dbg_data = fw_fatal_ctx ? true : false; in qed_fw_fatal_reporter_dump()
54 dbg_data_buf_size = qed_dbg_all_data_size(cdev); in qed_fw_fatal_reporter_dump()
57 DP_NOTICE(cdev, in qed_fw_fatal_reporter_dump()
62 err = qed_dbg_all_data(cdev, p_dbg_data_buf); in qed_fw_fatal_reporter_dump()
64 DP_NOTICE(cdev, "Failed to obtain debug data\n"); in qed_fw_fatal_reporter_dump()
83 struct qed_dev *cdev = qdl->cdev; in qed_fw_fatal_reporter_recover() local
85 qed_recovery_process(cdev); in qed_fw_fatal_reporter_recover()
105 DP_NOTICE(dl->cdev, "Failed to create fw reporter, err = %ld\n", in qed_fw_reporters_create()
126 struct qed_dev *cdev; in qed_dl_param_get() local
[all …]
Dqed_dev_api.h26 void qed_init_dp(struct qed_dev *cdev,
38 void qed_init_struct(struct qed_dev *cdev);
47 void qed_resc_free(struct qed_dev *cdev);
56 int qed_resc_alloc(struct qed_dev *cdev);
65 void qed_resc_setup(struct qed_dev *cdev);
123 int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params);
132 void qed_hw_timers_stop_all(struct qed_dev *cdev);
141 int qed_hw_stop(struct qed_dev *cdev);
152 int qed_hw_stop_fastpath(struct qed_dev *cdev);
172 int qed_hw_prepare(struct qed_dev *cdev,
[all …]
/drivers/usb/gadget/
Dcomposite.c162 struct usb_composite_dev *cdev; in config_ep_by_speed_and_alt() local
203 cdev = get_gadget_data(g); in config_ep_by_speed_and_alt()
205 WARNING(cdev, in config_ep_by_speed_and_alt()
265 ERROR(cdev, "ep0 bMaxBurst must be 0\n"); in config_ep_by_speed_and_alt()
319 DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n", in usb_add_function()
361 DBG(config->cdev, "adding '%s'/%p --> %d\n", in usb_add_function()
403 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local
407 spin_lock_irqsave(&cdev->lock, flags); in usb_function_deactivate()
409 if (cdev->deactivations == 0) { in usb_function_deactivate()
410 spin_unlock_irqrestore(&cdev->lock, flags); in usb_function_deactivate()
[all …]
/drivers/misc/
Denclosure.c173 device_unregister(&edev->component[i].cdev); in enclosure_unregister()
184 static void enclosure_link_name(struct enclosure_component *cdev, char *name) in enclosure_link_name() argument
187 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name()
190 static void enclosure_remove_links(struct enclosure_component *cdev) in enclosure_remove_links() argument
194 enclosure_link_name(cdev, name); in enclosure_remove_links()
200 if (cdev->dev->kobj.sd) in enclosure_remove_links()
201 sysfs_remove_link(&cdev->dev->kobj, name); in enclosure_remove_links()
203 if (cdev->cdev.kobj.sd) in enclosure_remove_links()
204 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links()
207 static int enclosure_add_links(struct enclosure_component *cdev) in enclosure_add_links() argument
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_main.c63 ret = chtls_listen_start(clisten->cdev, clisten->sk); in listen_notify_handler()
67 chtls_listen_stop(clisten->cdev, clisten->sk); in listen_notify_handler()
86 static int chtls_start_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_start_listen() argument
101 clisten->cdev = cdev; in chtls_start_listen()
110 static void chtls_stop_listen(struct chtls_dev *cdev, struct sock *sk) in chtls_stop_listen() argument
120 clisten->cdev = cdev; in chtls_stop_listen()
131 struct chtls_dev *cdev; in chtls_inline_feature() local
134 cdev = to_chtls_dev(dev); in chtls_inline_feature()
136 for (i = 0; i < cdev->lldi->nports; i++) { in chtls_inline_feature()
137 netdev = cdev->ports[i]; in chtls_inline_feature()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_client.c86 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() local
88 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg()
90 if (!cdev->client->ops || !cdev->client->ops->virtchnl_receive) { in i40e_notify_client_of_vf_msg()
95 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { in i40e_notify_client_of_vf_msg()
99 cdev->client->ops->virtchnl_receive(&cdev->lan_info, cdev->client, in i40e_notify_client_of_vf_msg()
112 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() local
115 if (!cdev || !cdev->client) in i40e_notify_client_of_l2_param_changes()
117 if (!cdev->client->ops || !cdev->client->ops->l2_param_change) { in i40e_notify_client_of_l2_param_changes()
122 if (!test_bit(__I40E_CLIENT_INSTANCE_OPENED, &cdev->state)) { in i40e_notify_client_of_l2_param_changes()
128 memcpy(&cdev->lan_info.params, &params, sizeof(struct i40e_params)); in i40e_notify_client_of_l2_param_changes()
[all …]
/drivers/platform/surface/
Dsurface_aggregator_cdev.c57 struct ssam_cdev *cdev; member
76 static struct ssam_cdev *ssam_cdev_get(struct ssam_cdev *cdev) in ssam_cdev_get() argument
78 if (cdev) in ssam_cdev_get()
79 kref_get(&cdev->kref); in ssam_cdev_get()
81 return cdev; in ssam_cdev_get()
84 static void ssam_cdev_put(struct ssam_cdev *cdev) in ssam_cdev_put() argument
86 if (cdev) in ssam_cdev_put()
87 kref_put(&cdev->kref, __ssam_cdev_release); in ssam_cdev_put()
111 dev_warn(client->cdev->dev, in ssam_cdev_notifier()
142 lockdep_assert_held_read(&client->cdev->lock); in ssam_cdev_notifier_register()
[all …]
/drivers/s390/block/
Ddasd_3990_erp.c80 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
82 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
152 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
153 opm = ccw_device_get_path_mask(device->cdev); in dasd_3990_erp_alternate_path()
154 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
171 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path()
208 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL()
412 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data()
416 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data()
[all …]
/drivers/isdn/capi/
Dcapi.c111 struct capidev *cdev; member
298 static void capincci_alloc_minor(struct capidev *cdev, struct capincci *np) in capincci_alloc_minor() argument
300 if (cdev->userflags & CAPIFLAG_HIGHJACKING) in capincci_alloc_minor()
301 np->minorp = capiminor_alloc(&cdev->ap, np->ncci); in capincci_alloc_minor()
339 capincci_alloc_minor(struct capidev *cdev, struct capincci *np) { } in capincci_alloc_minor() argument
344 static struct capincci *capincci_alloc(struct capidev *cdev, u32 ncci) in capincci_alloc() argument
352 np->cdev = cdev; in capincci_alloc()
354 capincci_alloc_minor(cdev, np); in capincci_alloc()
356 list_add_tail(&np->list, &cdev->nccis); in capincci_alloc()
361 static void capincci_free(struct capidev *cdev, u32 ncci) in capincci_free() argument
[all …]
/drivers/leds/
Dleds-mt6323.c85 struct led_classdev cdev; member
107 static int mt6323_led_hw_brightness(struct led_classdev *cdev, in mt6323_led_hw_brightness() argument
110 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_brightness()
132 static int mt6323_led_hw_off(struct led_classdev *cdev) in mt6323_led_hw_off() argument
134 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_off()
157 mt6323_get_led_hw_brightness(struct led_classdev *cdev) in mt6323_get_led_hw_brightness() argument
159 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_get_led_hw_brightness()
187 static int mt6323_led_hw_on(struct led_classdev *cdev, in mt6323_led_hw_on() argument
190 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_on()
221 ret = mt6323_led_hw_brightness(cdev, brightness); in mt6323_led_hw_on()
[all …]
/drivers/s390/scsi/
Dzfcp_ccw.c21 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev() argument
27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev()
49 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument
51 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate()
98 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument
112 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument
120 ccw_device_set_offline(cdev); in zfcp_ccw_remove()
122 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove()
158 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument
160 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online()
[all …]
/drivers/thermal/
Dthermal_core.c521 struct thermal_cooling_device *cdev; in for_each_thermal_cooling_device() local
525 list_for_each_entry(cdev, &thermal_cdev_list, node) { in for_each_thermal_cooling_device()
526 ret = cb(cdev, data); in for_each_thermal_cooling_device()
602 struct thermal_cooling_device *cdev, in thermal_zone_bind_cooling_device() argument
620 if (pos2 == cdev) in thermal_zone_bind_cooling_device()
624 if (tz != pos1 || cdev != pos2) in thermal_zone_bind_cooling_device()
629 upper = upper == THERMAL_NO_LIMIT ? cdev->max_state : upper; in thermal_zone_bind_cooling_device()
631 if (lower > upper || upper > cdev->max_state) in thermal_zone_bind_cooling_device()
638 dev->cdev = cdev; in thermal_zone_bind_cooling_device()
652 sysfs_create_link(&tz->device.kobj, &cdev->device.kobj, dev->name); in thermal_zone_bind_cooling_device()
[all …]
/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c49 cxgbit_wait_for_reply(struct cxgbit_device *cdev, in cxgbit_wait_for_reply() argument
55 if (!test_bit(CDEV_STATE_UP, &cdev->flags)) { in cxgbit_wait_for_reply()
63 func, pci_name(cdev->lldi.pdev), tid); in cxgbit_wait_for_reply()
69 pci_name(cdev->lldi.pdev), wr_waitp->ret, tid); in cxgbit_wait_for_reply()
79 cxgbit_np_hash_add(struct cxgbit_device *cdev, struct cxgbit_np *cnp, in cxgbit_np_hash_add() argument
89 spin_lock(&cdev->np_lock); in cxgbit_np_hash_add()
90 p->next = cdev->np_hash_tab[bucket]; in cxgbit_np_hash_add()
91 cdev->np_hash_tab[bucket] = p; in cxgbit_np_hash_add()
92 spin_unlock(&cdev->np_lock); in cxgbit_np_hash_add()
99 cxgbit_np_hash_find(struct cxgbit_device *cdev, struct cxgbit_np *cnp) in cxgbit_np_hash_find() argument
[all …]
/drivers/char/agp/
Disoch.c84 unsigned int cdev = 0; in agp_3_5_isochronous_node_enable() local
142 master[cdev].maxbw = (mnistat >> 16) & 0xff; in agp_3_5_isochronous_node_enable()
143 master[cdev].n = (mnistat >> 8) & 0xff; in agp_3_5_isochronous_node_enable()
144 master[cdev].y = (mnistat >> 6) & 0x3; in agp_3_5_isochronous_node_enable()
145 master[cdev].dev = cur; in agp_3_5_isochronous_node_enable()
147 tot_bw += master[cdev].maxbw; in agp_3_5_isochronous_node_enable()
148 y_max = max(y_max, master[cdev].y); in agp_3_5_isochronous_node_enable()
150 cdev++; in agp_3_5_isochronous_node_enable()
180 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
181 master[cdev].y = target.y; in agp_3_5_isochronous_node_enable()
[all …]

12345678910>>...21