| /drivers/s390/cio/ |
| A D | device_fsm.c | 103 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local 143 memset(&cdev->id, 0, sizeof(cdev->id)); in ccw_device_update_sense_data() 301 if (cdev->drv->notify(cdev, event)) in ccw_device_notify() 517 cdev->handler(cdev, cdev->private->intparm, in ccw_device_verify_done() 740 cdev->handler(cdev, cdev->private->intparm, in ccw_device_call_handler() 773 cdev->handler (cdev, 0, irb); in ccw_device_irq() 812 cdev->handler(cdev, cdev->private->intparm, in ccw_device_online_timeout() 837 cdev->handler (cdev, 0, irb); in ccw_device_w4sense() 878 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_irq() 895 cdev->handler(cdev, cdev->private->intparm, in ccw_device_killing_timeout() [all …]
|
| A D | device.c | 279 if (!cdev->online || !cdev->drv) in ccw_device_set_offline() 283 ret = cdev->drv->set_offline(cdev); in ccw_device_set_offline() 356 if (cdev->online || !cdev->drv) in ccw_device_set_online() 398 ret = cdev->drv->set_online(cdev); in ccw_device_set_online() 465 if (cdev->drv && cdev->drv->set_online) in online_store_recog_and_online() 739 priv->cdev = cdev; in io_subchannel_initialize_dev() 1195 if (cdev && cdev->drv && cdev->drv->path_event) in io_subchannel_chp_event() 1217 cdev->handler(cdev, cdev->private->intparm, ERR_PTR(-EIO)); in io_subchannel_quiesce() 1593 if (!cdev->drv || !cdev->handler) in ccw_device_enable_console() 1792 cdev->drv->shutdown(cdev); in ccw_device_shutdown() [all …]
|
| A D | device_pgid.c | 82 nop_build_cp(cdev); in nop_do() 125 nop_do(cdev); in nop_callback() 162 verify_start(cdev); in pgid_wipeout_callback() 257 spid_do(cdev); in spid_callback() 278 spid_do(cdev); in spid_start() 501 snid_do(cdev); in snid_callback() 537 snid_do(cdev); in verify_start() 543 nop_do(cdev); in verify_start() 565 cdev->private->flags.pgroup = cdev->private->options.pgroup; in ccw_device_verify_start() 566 cdev->private->flags.mpath = cdev->private->options.mpath; in ccw_device_verify_start() [all …]
|
| A D | device_ops.c | 74 cdev->private->options.fast)) in ccw_device_set_options() 120 return cdev->private->flags.mpath; in ccw_device_is_multipath() 142 if (!cdev || !cdev->dev.parent) in ccw_device_clear() 198 if (!cdev || !cdev->dev.parent) in ccw_device_start_timeout_key() 379 if (!cdev || !cdev->dev.parent) in ccw_device_halt() 413 if (!cdev || !cdev->dev.parent) in ccw_device_resume() 463 if (!cdev->dev.parent) in ccw_device_get_path_mask() 839 if (!get_device(&cdev->dev)) in ccw_device_dma_zalloc() 841 addr = __cio_gp_dma_zalloc(cdev->private->dma_pool, &cdev->dev, size, dma_handle); in ccw_device_dma_zalloc() 843 put_device(&cdev->dev); in ccw_device_dma_zalloc() [all …]
|
| A D | cmf.c | 220 if (!cdev->private->cmb) in set_schib_wait() 306 if (!cdev->private->cmb) in cmf_cmb_copy_wait() 542 priv = cdev->private; in free_cmb() 783 if (cdev->private->cmb) in alloc_cmbe() 1129 cmbops->reset(cdev); in enable_cmf() 1132 get_device(&cdev->dev); in enable_cmf() 1136 cmbops->reset(cdev); in enable_cmf() 1139 cmbops->free(cdev); in enable_cmf() 1145 cmbops->free(cdev); in enable_cmf() 1173 cmbops->free(cdev); in __disable_cmf() [all …]
|
| A D | ccwreq.c | 85 ccwreq_next_path(cdev); in ccwreq_do() 102 ccwreq_next_path(cdev); in ccwreq_do() 111 ccwreq_stop(cdev, rc); in ccwreq_do() 137 ccwreq_do(cdev); in ccw_request_start() 162 ccwreq_stop(cdev, rc); in ccw_request_cancel() 196 if (cdev->drv && cdev->drv->uc_handler) { in ccwreq_status() 197 todo = cdev->drv->uc_handler(cdev, lcirb); in ccwreq_status() 303 ccwreq_stop(cdev, 0); in ccw_request_handler() 314 ccwreq_do(cdev); in ccw_request_handler() 317 ccwreq_stop(cdev, rc); in ccw_request_handler() [all …]
|
| A D | device_id.c | 135 static void snsid_init(struct ccw_device *cdev) in snsid_init() argument 137 cdev->private->flags.esid = 0; in snsid_init() 139 memset(&cdev->private->dma_area->senseid, 0, in snsid_init() 162 cdev->private->flags.esid = 1; in snsid_check() 166 snsid_init(cdev); in snsid_check() 181 snsid_init(cdev); in snsid_callback() 182 if (diag210_get_dev_info(cdev) == 0) { in snsid_callback() 191 ccw_device_sense_id_done(cdev, rc); in snsid_callback() 209 CIO_HEX_EVENT(4, &cdev->private->dev_id, sizeof(cdev->private->dev_id)); in ccw_device_sense_id_start() 211 snsid_init(cdev); in ccw_device_sense_id_start() [all …]
|
| /drivers/net/can/m_can/ |
| A D | m_can.c | 332 return cdev->ops->read_reg(cdev, reg); in m_can_read() 338 cdev->ops->write_reg(cdev, reg, val); in m_can_write() 1250 cdev->ops->clear_interrupts(cdev); in m_can_interrupt_handler() 1591 cdev->ops->init(cdev); in m_can_chip_config() 1790 ret = cdev->ops->deinit(cdev); in m_can_stop() 1928 cdev->tx_fifo_putidx = (++cdev->tx_fifo_putidx >= cdev->can.echo_skb_max ? in m_can_tx_handler() 1954 struct m_can_classdev *cdev = op->cdev; in m_can_tx_work_queue() local 1968 queue_work(cdev->tx_wq, &cdev->tx_ops[cdev->next_tx_op].work); in m_can_tx_queue_skb() 2083 cdev->tx_ops[i].cdev = cdev; in m_can_open() 2491 ret = cdev->ops->deinit(cdev); in m_can_class_suspend() [all …]
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_main.c | 261 if (cdev->doorbells && cdev->db_size) in qed_free_pci() 348 cdev->db_size = pci_resource_len(cdev->pdev, 2); in qed_init_pci() 358 cdev->doorbells = ioremap_wc(cdev->db_phys_addr, cdev->db_size); in qed_init_pci() 464 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in qed_alloc_cdev() 744 struct qed_dev *cdev = hwfn->cdev; in qed_slowpath_irq_req() local 768 flags, cdev->name, cdev); in qed_slowpath_irq_req() 795 struct qed_dev *cdev = p_hwfn->cdev; in qed_slowpath_irq_sync() local 821 free_irq(cdev->pdev->irq, cdev); in qed_slowpath_irq_free() 1094 if (cdev->num_hwfns > 1 || IS_VF(cdev)) in qed_update_pf_params() 1381 if (IS_PF(cdev) && (cdev->num_hwfns == 1) && in qed_slowpath_start() [all …]
|
| A D | qed_debug.h | 27 int qed_dbg_grc_size(struct qed_dev *cdev); 30 int qed_dbg_idle_chk_size(struct qed_dev *cdev); 33 int qed_dbg_reg_fifo_size(struct qed_dev *cdev); 36 int qed_dbg_igu_fifo_size(struct qed_dev *cdev); 44 int qed_dbg_ilt_size(struct qed_dev *cdev); 47 int qed_dbg_mcp_trace_size(struct qed_dev *cdev); 48 int qed_dbg_phy_size(struct qed_dev *cdev); 50 int qed_dbg_all_data_size(struct qed_dev *cdev); 51 u8 qed_get_debug_engine(struct qed_dev *cdev); 57 void qed_dbg_pf_init(struct qed_dev *cdev); [all …]
|
| A D | qed_dev.c | 117 &cdev->hwfns[0] : &cdev->hwfns[1]; in qed_db_rec_find_hwfn() 624 struct qed_dev *cdev = p_hwfn->cdev; in qed_llh_set_engine_affin() local 679 struct qed_dev *cdev = p_hwfn->cdev; in qed_llh_hw_init_pf() local 1296 p_hwfn->cdev = cdev; in qed_init_struct() 1556 struct qed_dev *cdev = p_hwfn->cdev; in qed_init_qm_port_params() local 2639 struct qed_dev *cdev = p_hwfn->cdev; in qed_hw_init_common() local 3770 struct qed_dev *cdev = p_hwfn->cdev; in qed_hw_get_dflt_resc() local 3927 struct qed_dev *cdev = p_hwfn->cdev; in qed_hw_get_ppfid_bitmap() local 4396 struct qed_dev *cdev = p_hwfn->cdev; in qed_get_num_funcs() local 4456 struct qed_dev *cdev = p_hwfn->cdev; in qed_hw_info_port_num() local [all …]
|
| A D | qed_devlink.c | 43 struct qed_dev *cdev = qdl->cdev; in qed_fw_fatal_reporter_dump() local 57 DP_NOTICE(cdev, in qed_fw_fatal_reporter_dump() 83 struct qed_dev *cdev = qdl->cdev; in qed_fw_fatal_reporter_recover() local 126 struct qed_dev *cdev; in qed_dl_param_get() local 128 cdev = qed_dl->cdev; in qed_dl_param_get() 139 struct qed_dev *cdev; in qed_dl_param_set() local 141 cdev = qed_dl->cdev; in qed_dl_param_set() 159 struct qed_dev *cdev = qed_dl->cdev; in qed_devlink_info_get() local 207 &cdev->pdev->dev); in qed_devlink_register() 212 qdevlink->cdev = cdev; in qed_devlink_register() [all …]
|
| A D | qed_dev_api.h | 26 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); 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, 182 void qed_hw_remove(struct qed_dev *cdev); 508 int qed_db_recovery_add(struct qed_dev *cdev, [all …]
|
| /drivers/usb/gadget/ |
| A D | composite.c | 740 cdev->gadget->ops->get_config_params(cdev->gadget, in bos_desc() 1079 config->cdev = cdev; in usb_add_config_only() 2072 if (cdev->use_os_string && cdev->os_desc_config && in composite_setup() 2297 cdev->driver->disconnect(cdev); in __composite_disconnect() 2350 cdev->driver->unbind(cdev); in __composite_unbind() 2425 cdev->req->context = cdev; in composite_dev_prepare() 2475 cdev->os_desc_req->context = cdev; in composite_os_desc_req_prepare() 2501 usb_ep_dequeue(cdev->gadget->ep0, cdev->req); in composite_dev_cleanup() 2534 cdev = kzalloc(sizeof *cdev, GFP_KERNEL); in composite_bind() 2594 cdev->driver->suspend(cdev); in composite_suspend() [all …]
|
| /drivers/misc/ |
| A D | enclosure.c | 188 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name() 204 if (cdev->cdev.kobj.sd) in enclosure_remove_links() 205 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links() 213 error = sysfs_create_link(&cdev->cdev.kobj, &cdev->dev->kobj, "device"); in enclosure_add_links() 218 error = sysfs_create_link(&cdev->dev->kobj, &cdev->cdev.kobj, name); in enclosure_add_links() 220 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_add_links() 237 if (cdev->dev) { in enclosure_component_release() 302 cdev = &ecomp->cdev; in enclosure_component_alloc() 338 cdev = &ecomp->cdev; in enclosure_component_register() 342 put_device(cdev); in enclosure_component_register() [all …]
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_client.c | 87 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg() 98 cdev->client->ops->virtchnl_receive(&cdev->lan_info, cdev->client, in i40e_notify_client_of_vf_msg() 114 if (!cdev || !cdev->client) in i40e_notify_client_of_l2_param_changes() 129 cdev->client->ops->l2_param_change(&cdev->lan_info, cdev->client, in i40e_notify_client_of_l2_param_changes() 170 if (!cdev || !cdev->client) in i40e_notify_client_of_netdev_close() 181 cdev->client->ops->close(&cdev->lan_info, cdev->client, reset); in i40e_notify_client_of_netdev_close() 197 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_reset() 222 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_enable() 250 if (!cdev || !cdev->client) in i40e_vf_client_capable() 271 if (!cdev || !cdev->client) in i40e_client_update_msix_info() [all …]
|
| /drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| A D | chtls_main.c | 101 clisten->cdev = cdev; in chtls_start_listen() 120 clisten->cdev = cdev; in chtls_stop_listen() 172 kfree(cdev); in chtls_free_uld() 226 if (!cdev->askb) in chtls_get_skb() 231 memset(cdev->askb->data, 0, cdev->askb->len); in chtls_get_skb() 241 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in chtls_uld_add() 242 if (!cdev) in chtls_uld_add() 288 return cdev; in chtls_uld_add() 296 kfree(cdev); in chtls_uld_add() 309 kref_put(&cdev->tlsdev.kref, cdev->tlsdev.release); in chtls_free_all_uld() [all …]
|
| /drivers/platform/surface/ |
| A D | surface_aggregator_cdev.c | 78 if (cdev) in ssam_cdev_get() 81 return cdev; in ssam_cdev_get() 86 if (cdev) in ssam_cdev_put() 470 client->cdev = ssam_cdev_get(cdev); in ssam_cdev_device_open() 578 struct ssam_cdev *cdev = client->cdev; in ssam_cdev_read() local 688 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ssam_dbg_device_probe() 689 if (!cdev) in ssam_dbg_device_probe() 694 cdev->ctrl = ctrl; in ssam_dbg_device_probe() 708 kfree(cdev); in ssam_dbg_device_probe() 752 cdev->ctrl = NULL; in ssam_dbg_device_remove() [all …]
|
| /drivers/s390/block/ |
| A D | dasd_3990_erp.c | 115 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req() 167 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path() 204 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL() 1003 dev_err(&device->cdev->dev, in dasd_3990_handle_env_data() 1297 dev_err(&device->cdev->dev, in dasd_3990_erp_EOC() 1363 dev_err(&device->cdev->dev, in dasd_3990_erp_no_rec() 1389 dev_err(&device->cdev->dev, in dasd_3990_erp_file_prot() 1783 dev_err(&device->cdev->dev, in dasd_3990_update_1B() 1984 dev_err(&device->cdev->dev, in dasd_3990_erp_compound_config() 2184 dev_err(&device->cdev->dev, in dasd_3990_erp_disable_path() [all …]
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_idc.c | 25 adev = cdev->adev; in ice_get_auxiliary_drv() 46 cdev = pf->cdev_info; in ice_send_event_to_aux() 47 if (!cdev) in ice_send_event_to_aux() 51 if (!cdev->adev) in ice_send_event_to_aux() 167 if (WARN_ON(!cdev)) in ice_rdma_request_reset() 202 if (WARN_ON(!cdev)) in ice_rdma_update_vsi_filter() 308 if (!cdev) in ice_plug_aux_dev() 337 cdev->adev = adev; in ice_plug_aux_dev() 377 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ice_init_rdma() 378 if (!cdev) in ice_init_rdma() [all …]
|
| /drivers/isdn/capi/ |
| A D | capi.c | 113 struct capidev *cdev; member 348 np->cdev = cdev; in capincci_alloc() 726 cdev->errcode = capi20_put_message(&cdev->ap, skb); in capi_write() 772 cdev->ap.private = cdev; in capi_ioctl() 774 cdev->errcode = capi20_register(&cdev->ap); in capi_ioctl() 790 if (cdev->errcode) in capi_ioctl() 802 if (cdev->errcode) in capi_ioctl() 840 if (cdev->errcode) in capi_ioctl() 984 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in capi_open() 985 if (!cdev) in capi_open() [all …]
|
| /drivers/thermal/ |
| A D | thermal_helpers.c | 50 if (ti->cdev == cdev) in thermal_instance_present() 59 struct thermal_cooling_device *cdev) in thermal_trip_is_bound_to_cdev() argument 62 guard(cooling_dev)(cdev); in thermal_trip_is_bound_to_cdev() 155 ret = cdev->ops->set_cur_state(cdev, state); in thermal_cdev_set_cur_state() 181 trace_cdev_update(cdev, target); in __thermal_cdev_update() 193 guard(cooling_dev)(cdev); in thermal_cdev_update() 195 if (!cdev->updated) { in thermal_cdev_update() 196 __thermal_cdev_update(cdev); in thermal_cdev_update() 197 cdev->updated = true; in thermal_cdev_update() 207 guard(cooling_dev)(cdev); in thermal_cdev_update_nocheck() [all …]
|
| /drivers/leds/ |
| A D | leds-mt6323.c | 155 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_brightness() 180 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_off() 206 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_get_led_hw_brightness() 238 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_hw_on() 293 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_set_blink() 338 ret = mt6323_led_hw_on(cdev, cdev->max_brightness); in mt6323_led_set_blink() 362 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_led_set_brightness() 391 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mtk_wled_hw_on() 425 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mtk_wled_hw_off() 456 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev); in mt6323_get_wled_brightness() [all …]
|
| /drivers/target/iscsi/cxgbit/ |
| A D | cxgbit_cm.c | 240 return cdev; in cxgbit_find_device() 315 return cdev; in cxgbit_find_np_cdev() 382 if (!cdev) in cxgbit_setup_cdev_np() 391 cnp->com.cdev = cdev; in cxgbit_setup_cdev_np() 585 if (cdev == cnp->com.cdev) { in cxgbit_free_cdev_np() 606 if (cnp->com.cdev) in cxgbit_free_np() 815 cdev = csk->com.cdev; in _cxgbit_free_csk() 942 cdev->lldi.nchan; in cxgbit_offload_init() 1298 dst, cdev); in cxgbit_pass_accept_req() 1318 csk->com.cdev = cdev; in cxgbit_pass_accept_req() [all …]
|
| /drivers/s390/scsi/ |
| A D | zfcp_ccw.c | 27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev() 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 163 adapter = zfcp_adapter_enqueue(cdev); in zfcp_ccw_set_online() 166 dev_err(&cdev->dev, in zfcp_ccw_set_online() 178 zfcp_ccw_activate(cdev, 0, "ccsonl1"); in zfcp_ccw_set_online() 239 dev_warn(&cdev->dev, in zfcp_ccw_notify() [all …]
|