/openbmc/linux/drivers/pci/hotplug/ |
H A D | pciehp_ctrl.c | 31 static void set_slot_off(struct controller *ctrl) in set_slot_off() argument 37 if (POWER_CTRL(ctrl)) { in set_slot_off() 38 pciehp_power_off_slot(ctrl); in set_slot_off() 48 pciehp_set_indicators(ctrl, PCI_EXP_SLTCTL_PWR_IND_OFF, in set_slot_off() 54 * @ctrl: PCIe hotplug controller where board is added 59 static int board_added(struct controller *ctrl) in board_added() argument 62 struct pci_bus *parent = ctrl->pcie->port->subordinate; in board_added() 64 if (POWER_CTRL(ctrl)) { in board_added() 66 retval = pciehp_power_on_slot(ctrl); in board_added() 71 pciehp_set_indicators(ctrl, PCI_EXP_SLTCTL_PWR_IND_BLINK, in board_added() [all …]
|
H A D | pciehp_hpc.c | 48 static inline struct pci_dev *ctrl_dev(struct controller *ctrl) in ctrl_dev() argument 50 return ctrl->pcie->port; in ctrl_dev() 57 static inline int pciehp_request_irq(struct controller *ctrl) in pciehp_request_irq() argument 59 int retval, irq = ctrl->pcie->irq; in pciehp_request_irq() 62 ctrl->poll_thread = kthread_run(&pciehp_poll, ctrl, in pciehp_request_irq() 64 slot_name(ctrl)); in pciehp_request_irq() 65 return PTR_ERR_OR_ZERO(ctrl->poll_thread); in pciehp_request_irq() 70 IRQF_SHARED, "pciehp", ctrl); in pciehp_request_irq() 72 ctrl_err(ctrl, "Cannot get irq %d for the hotplug controller\n", in pciehp_request_irq() 77 static inline void pciehp_free_irq(struct controller *ctrl) in pciehp_free_irq() argument [all …]
|
H A D | shpchp_hpc.c | 169 static void start_int_poll_timer(struct controller *ctrl, int sec); 170 static int hpc_check_cmd_status(struct controller *ctrl); 172 static inline u8 shpc_readb(struct controller *ctrl, int reg) in shpc_readb() argument 174 return readb(ctrl->creg + reg); in shpc_readb() 177 static inline u16 shpc_readw(struct controller *ctrl, int reg) in shpc_readw() argument 179 return readw(ctrl->creg + reg); in shpc_readw() 182 static inline void shpc_writew(struct controller *ctrl, int reg, u16 val) in shpc_writew() argument 184 writew(val, ctrl->creg + reg); in shpc_writew() 187 static inline u32 shpc_readl(struct controller *ctrl, int reg) in shpc_readl() argument 189 return readl(ctrl->creg + reg); in shpc_readl() [all …]
|
H A D | pciehp_core.c | 50 static int init_slot(struct controller *ctrl) in init_slot() argument 66 if (MRL_SENS(ctrl)) in init_slot() 68 if (ATTN_LED(ctrl)) { in init_slot() 71 } else if (ctrl->pcie->port->hotplug_user_indicators) { in init_slot() 77 ctrl->hotplug_slot.ops = ops; in init_slot() 78 snprintf(name, SLOT_NAME_SIZE, "%u", PSN(ctrl)); in init_slot() 80 retval = pci_hp_initialize(&ctrl->hotplug_slot, in init_slot() 81 ctrl->pcie->port->subordinate, 0, name); in init_slot() 83 ctrl_err(ctrl, "pci_hp_initialize failed: error %d\n", retval); in init_slot() 89 static void cleanup_slot(struct controller *ctrl) in cleanup_slot() argument [all …]
|
H A D | cpqphp_core.c | 116 * @ctrl: controller to use 120 static int init_SERR(struct controller *ctrl) in init_SERR() argument 125 if (!ctrl) in init_SERR() 128 tempdword = ctrl->first_slot; in init_SERR() 130 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in init_SERR() 133 writeb(0, ctrl->hpc_reg + SLOT_SERR); in init_SERR() 266 static int ctrl_slot_cleanup(struct controller *ctrl) in ctrl_slot_cleanup() argument 270 old_slot = ctrl->slot; in ctrl_slot_cleanup() 271 ctrl->slot = NULL; in ctrl_slot_cleanup() 280 cpqhp_remove_debugfs_files(ctrl); in ctrl_slot_cleanup() [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | loop.c | 37 struct nvme_ctrl ctrl; member 42 static inline struct nvme_loop_ctrl *to_loop_ctrl(struct nvme_ctrl *ctrl) in to_loop_ctrl() argument 44 return container_of(ctrl, struct nvme_loop_ctrl, ctrl); in to_loop_ctrl() 54 struct nvme_loop_ctrl *ctrl; member 65 static void nvme_loop_delete_ctrl(struct nvmet_ctrl *ctrl); 71 return queue - queue->ctrl->queues; in nvme_loop_queue_idx() 87 return queue->ctrl->admin_tag_set.tags[queue_idx]; in nvme_loop_tagset() 88 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_loop_tagset() 105 nvme_complete_async_event(&queue->ctrl->ctrl, cqe->status, in nvme_loop_queue_response() 112 dev_err(queue->ctrl->ctrl.device, in nvme_loop_queue_response() [all …]
|
H A D | auth.c | 59 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, u8 dhgroup_id) in nvmet_setup_dhgroup() argument 64 pr_debug("%s: ctrl %d selecting dhgroup %d\n", in nvmet_setup_dhgroup() 65 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup() 67 if (ctrl->dh_tfm) { in nvmet_setup_dhgroup() 68 if (ctrl->dh_gid == dhgroup_id) { in nvmet_setup_dhgroup() 69 pr_debug("%s: ctrl %d reuse existing DH group %d\n", in nvmet_setup_dhgroup() 70 __func__, ctrl->cntlid, dhgroup_id); in nvmet_setup_dhgroup() 73 crypto_free_kpp(ctrl->dh_tfm); in nvmet_setup_dhgroup() 74 ctrl->dh_tfm = NULL; in nvmet_setup_dhgroup() 75 ctrl->dh_gid = 0; in nvmet_setup_dhgroup() [all …]
|
H A D | core.c | 140 static void nvmet_async_events_failall(struct nvmet_ctrl *ctrl) in nvmet_async_events_failall() argument 144 mutex_lock(&ctrl->lock); in nvmet_async_events_failall() 145 while (ctrl->nr_async_event_cmds) { in nvmet_async_events_failall() 146 req = ctrl->async_event_cmds[--ctrl->nr_async_event_cmds]; in nvmet_async_events_failall() 147 mutex_unlock(&ctrl->lock); in nvmet_async_events_failall() 149 mutex_lock(&ctrl->lock); in nvmet_async_events_failall() 151 mutex_unlock(&ctrl->lock); in nvmet_async_events_failall() 154 static void nvmet_async_events_process(struct nvmet_ctrl *ctrl) in nvmet_async_events_process() argument 159 mutex_lock(&ctrl->lock); in nvmet_async_events_process() 160 while (ctrl->nr_async_event_cmds && !list_empty(&ctrl->async_events)) { in nvmet_async_events_process() [all …]
|
/openbmc/linux/drivers/soundwire/ |
H A D | qcom.c | 208 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val); 209 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val); 280 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_ahb_reg_read() argument 283 struct regmap *wcd_regmap = ctrl->regmap; in qcom_swrm_ahb_reg_read() 300 static int qcom_swrm_ahb_reg_write(struct qcom_swrm_ctrl *ctrl, in qcom_swrm_ahb_reg_write() argument 303 struct regmap *wcd_regmap = ctrl->regmap; in qcom_swrm_ahb_reg_write() 320 static int qcom_swrm_cpu_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_cpu_reg_read() argument 323 *val = readl(ctrl->mmio + reg); in qcom_swrm_cpu_reg_read() 327 static int qcom_swrm_cpu_reg_write(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_cpu_reg_write() argument 330 writel(val, ctrl->mmio + reg); in qcom_swrm_cpu_reg_write() [all …]
|
/openbmc/linux/drivers/slimbus/ |
H A D | qcom-ctrl.c | 103 struct slim_controller ctrl; member 120 static void qcom_slim_queue_tx(struct qcom_slim_ctrl *ctrl, void *buf, in qcom_slim_queue_tx() argument 125 __iowrite32_copy(ctrl->base + tx_reg, buf, count); in qcom_slim_queue_tx() 131 static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) in slim_alloc_rxbuf() argument 136 spin_lock_irqsave(&ctrl->rx.lock, flags); in slim_alloc_rxbuf() 137 if ((ctrl->rx.tail + 1) % ctrl->rx.n == ctrl->rx.head) { in slim_alloc_rxbuf() 138 spin_unlock_irqrestore(&ctrl->rx.lock, flags); in slim_alloc_rxbuf() 139 dev_err(ctrl->dev, "RX QUEUE full!"); in slim_alloc_rxbuf() 142 idx = ctrl->rx.tail; in slim_alloc_rxbuf() 143 ctrl->rx.tail = (ctrl->rx.tail + 1) % ctrl->rx.n; in slim_alloc_rxbuf() [all …]
|
H A D | qcom-ngd-ctrl.c | 136 struct qcom_slim_ngd_ctrl *ctrl; member 151 struct slim_controller ctrl; member 348 static int qcom_slim_qmi_send_select_inst_req(struct qcom_slim_ngd_ctrl *ctrl, in qcom_slim_qmi_send_select_inst_req() argument 355 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req() 358 dev_err(ctrl->dev, "QMI TXN init fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 362 rc = qmi_send_request(ctrl->qmi.handle, NULL, &txn, in qcom_slim_qmi_send_select_inst_req() 367 dev_err(ctrl->dev, "QMI send req fail %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 374 dev_err(ctrl->dev, "QMI TXN wait fail: %d\n", rc); in qcom_slim_qmi_send_select_inst_req() 379 dev_err(ctrl->dev, "QMI request failed 0x%x\n", in qcom_slim_qmi_send_select_inst_req() 401 static int qcom_slim_qmi_send_power_request(struct qcom_slim_ngd_ctrl *ctrl, in qcom_slim_qmi_send_power_request() argument [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | rdma.c | 89 struct nvme_rdma_ctrl *ctrl; member 125 struct nvme_ctrl ctrl; member 130 static inline struct nvme_rdma_ctrl *to_rdma_ctrl(struct nvme_ctrl *ctrl) in to_rdma_ctrl() argument 132 return container_of(ctrl, struct nvme_rdma_ctrl, ctrl); in to_rdma_ctrl() 161 return queue - queue->ctrl->queues; in nvme_rdma_queue_idx() 167 queue->ctrl->io_queues[HCTX_TYPE_DEFAULT] + in nvme_rdma_poll_queue() 168 queue->ctrl->io_queues[HCTX_TYPE_READ]; in nvme_rdma_poll_queue() 297 struct nvme_rdma_ctrl *ctrl = to_rdma_ctrl(set->driver_data); in nvme_rdma_init_request() local 299 int queue_idx = (set == &ctrl->tag_set) ? hctx_idx + 1 : 0; in nvme_rdma_init_request() 300 struct nvme_rdma_queue *queue = &ctrl->queues[queue_idx]; in nvme_rdma_init_request() [all …]
|
H A D | core.c | 124 static void nvme_remove_invalid_namespaces(struct nvme_ctrl *ctrl, 126 static void nvme_update_keep_alive(struct nvme_ctrl *ctrl, 129 void nvme_queue_scan(struct nvme_ctrl *ctrl) in nvme_queue_scan() argument 134 if (nvme_ctrl_state(ctrl) == NVME_CTRL_LIVE && ctrl->tagset) in nvme_queue_scan() 135 queue_work(nvme_wq, &ctrl->scan_work); in nvme_queue_scan() 144 int nvme_try_sched_reset(struct nvme_ctrl *ctrl) in nvme_try_sched_reset() argument 146 if (nvme_ctrl_state(ctrl) != NVME_CTRL_RESETTING) in nvme_try_sched_reset() 148 if (!queue_work(nvme_reset_wq, &ctrl->reset_work)) in nvme_try_sched_reset() 156 struct nvme_ctrl *ctrl in nvme_failfast_work() local 167 nvme_start_failfast_work(struct nvme_ctrl * ctrl) nvme_start_failfast_work() argument 176 nvme_stop_failfast_work(struct nvme_ctrl * ctrl) nvme_stop_failfast_work() argument 186 nvme_reset_ctrl(struct nvme_ctrl * ctrl) nvme_reset_ctrl() argument 196 nvme_reset_ctrl_sync(struct nvme_ctrl * ctrl) nvme_reset_ctrl_sync() argument 210 nvme_do_delete_ctrl(struct nvme_ctrl * ctrl) nvme_do_delete_ctrl() argument 224 struct nvme_ctrl *ctrl = nvme_delete_ctrl_work() local 230 nvme_delete_ctrl(struct nvme_ctrl * ctrl) nvme_delete_ctrl() argument 240 nvme_delete_ctrl_sync(struct nvme_ctrl * ctrl) nvme_delete_ctrl_sync() argument 395 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; nvme_complete_rq() local 473 nvme_cancel_tagset(struct nvme_ctrl * ctrl) nvme_cancel_tagset() argument 483 nvme_cancel_admin_tagset(struct nvme_ctrl * ctrl) nvme_cancel_admin_tagset() argument 493 nvme_change_ctrl_state(struct nvme_ctrl * ctrl,enum nvme_ctrl_state new_state) nvme_change_ctrl_state() argument 594 nvme_wait_reset(struct nvme_ctrl * ctrl) nvme_wait_reset() argument 683 nvme_fail_nonready_command(struct nvme_ctrl * ctrl,struct request * rq) nvme_fail_nonready_command() argument 698 __nvme_check_ready(struct nvme_ctrl * ctrl,struct request * rq,bool queue_live) __nvme_check_ready() argument 935 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; nvme_cleanup_cmd() local 1064 nvme_command_effects(struct nvme_ctrl * ctrl,struct nvme_ns * ns,u8 opcode) nvme_command_effects() argument 1089 nvme_passthru_start(struct nvme_ctrl * ctrl,struct nvme_ns * ns,u8 opcode) nvme_passthru_start() argument 1109 nvme_passthru_end(struct nvme_ctrl * ctrl,struct nvme_ns * ns,u32 effects,struct nvme_command * cmd,int status) nvme_passthru_end() argument 1160 nvme_keep_alive_work_period(struct nvme_ctrl * ctrl) nvme_keep_alive_work_period() argument 1175 nvme_queue_keep_alive_work(struct nvme_ctrl * ctrl) nvme_queue_keep_alive_work() argument 1182 nvme_keep_alive_finish(struct request * rq,blk_status_t status,struct nvme_ctrl * ctrl) nvme_keep_alive_finish() argument 1221 struct nvme_ctrl *ctrl = container_of(to_delayed_work(work), nvme_keep_alive_work() local 1253 nvme_start_keep_alive(struct nvme_ctrl * ctrl) nvme_start_keep_alive() argument 1261 nvme_stop_keep_alive(struct nvme_ctrl * ctrl) nvme_stop_keep_alive() argument 1270 nvme_update_keep_alive(struct nvme_ctrl * ctrl,struct nvme_command * cmd) nvme_update_keep_alive() argument 1291 nvme_ctrl_limited_cns(struct nvme_ctrl * ctrl) nvme_ctrl_limited_cns() argument 1320 nvme_process_ns_desc(struct nvme_ctrl * ctrl,struct nvme_ns_ids * ids,struct nvme_ns_id_desc * cur,bool * csi_seen) nvme_process_ns_desc() argument 1372 nvme_identify_ns_descs(struct nvme_ctrl * ctrl,struct nvme_ns_info * info) nvme_identify_ns_descs() argument 1426 nvme_identify_ns(struct nvme_ctrl * ctrl,unsigned nsid,struct nvme_id_ns ** id) nvme_identify_ns() argument 1450 nvme_ns_info_from_identify(struct nvme_ctrl * ctrl,struct nvme_ns_info * info) nvme_ns_info_from_identify() argument 1489 nvme_ns_info_from_id_cs_indep(struct nvme_ctrl * ctrl,struct nvme_ns_info * info) nvme_ns_info_from_id_cs_indep() argument 1551 nvme_set_queue_count(struct nvme_ctrl * ctrl,int * count) nvme_set_queue_count() argument 1583 nvme_enable_aen(struct nvme_ctrl * ctrl) nvme_enable_aen() argument 1705 struct nvme_ctrl *ctrl = ns->ctrl; nvme_config_discard() local 1745 struct nvme_ctrl *ctrl = ns->ctrl; nvme_init_ms() local 1803 struct nvme_ctrl *ctrl = ns->ctrl; nvme_configure_metadata() local 1851 nvme_set_queue_limits(struct nvme_ctrl * ctrl,struct request_queue * q) nvme_set_queue_limits() argument 1953 struct nvme_ctrl *ctrl = ns->ctrl; nvme_set_chunk_sectors() local 2117 struct nvme_ctrl *ctrl = data; nvme_sec_submit() local 2132 nvme_configure_opal(struct nvme_ctrl * ctrl,bool was_suspended) nvme_configure_opal() argument 2145 nvme_configure_opal(struct nvme_ctrl * ctrl,bool was_suspended) nvme_configure_opal() argument 2172 nvme_wait_ready(struct nvme_ctrl * ctrl,u32 mask,u32 val,u32 timeout,const char * op) nvme_wait_ready() argument 2199 nvme_disable_ctrl(struct nvme_ctrl * ctrl,bool shutdown) nvme_disable_ctrl() argument 2225 nvme_enable_ctrl(struct nvme_ctrl * ctrl) nvme_enable_ctrl() argument 2309 nvme_configure_timestamp(struct nvme_ctrl * ctrl) nvme_configure_timestamp() argument 2326 nvme_configure_host_options(struct nvme_ctrl * ctrl) nvme_configure_host_options() argument 2407 nvme_configure_apst(struct nvme_ctrl * ctrl) nvme_configure_apst() argument 2514 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); nvme_set_latency_tolerance() local 2625 nvme_init_subnqn(struct nvme_subsystem * subsys,struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_init_subnqn() argument 2714 nvme_discovery_ctrl(struct nvme_ctrl * ctrl) nvme_discovery_ctrl() argument 2720 nvme_validate_cntlid(struct nvme_subsystem * subsys,struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_validate_cntlid() argument 2750 nvme_init_subsystem(struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_init_subsystem() argument 2837 nvme_get_log(struct nvme_ctrl * ctrl,u32 nsid,u8 log_page,u8 lsp,u8 csi,void * log,size_t size,u64 offset) nvme_get_log() argument 2856 nvme_get_effects_log(struct nvme_ctrl * ctrl,u8 csi,struct nvme_effects_log ** log) nvme_get_effects_log() argument 2882 nvme_mps_to_sectors(struct nvme_ctrl * ctrl,u32 units) nvme_mps_to_sectors() argument 2891 nvme_init_non_mdts_limits(struct nvme_ctrl * ctrl) nvme_init_non_mdts_limits() argument 2947 nvme_init_known_nvm_effects(struct nvme_ctrl * ctrl) nvme_init_known_nvm_effects() argument 2979 nvme_init_effects(struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_init_effects() argument 3003 nvme_init_identify(struct nvme_ctrl * ctrl) nvme_init_identify() argument 3160 nvme_init_ctrl_finish(struct nvme_ctrl * ctrl,bool was_suspended) nvme_init_ctrl_finish() argument 3212 struct nvme_ctrl *ctrl = nvme_dev_open() local 3234 struct nvme_ctrl *ctrl = nvme_dev_release() local 3251 nvme_find_ns_head(struct nvme_ctrl * ctrl,unsigned nsid) nvme_find_ns_head() argument 3364 nvme_alloc_ns_head(struct nvme_ctrl * ctrl,struct nvme_ns_info * info) nvme_alloc_ns_head() argument 3448 struct nvme_ctrl *ctrl = ns->ctrl; nvme_init_ns_head() local 3541 nvme_find_get_ns(struct nvme_ctrl * ctrl,unsigned nsid) nvme_find_get_ns() argument 3579 nvme_alloc_ns(struct nvme_ctrl * ctrl,struct nvme_ns_info * info) nvme_alloc_ns() argument 3728 nvme_ns_remove_by_nsid(struct nvme_ctrl * ctrl,u32 nsid) nvme_ns_remove_by_nsid() argument 3760 nvme_scan_ns(struct nvme_ctrl * ctrl,unsigned nsid) nvme_scan_ns() argument 3805 nvme_remove_invalid_namespaces(struct nvme_ctrl * ctrl,unsigned nsid) nvme_remove_invalid_namespaces() argument 3825 nvme_scan_ns_list(struct nvme_ctrl * ctrl) nvme_scan_ns_list() argument 3868 nvme_scan_ns_sequential(struct nvme_ctrl * ctrl) nvme_scan_ns_sequential() argument 3884 nvme_clear_changed_ns_log(struct nvme_ctrl * ctrl) nvme_clear_changed_ns_log() argument 3911 struct nvme_ctrl *ctrl = nvme_scan_work() local 3959 nvme_remove_namespaces(struct nvme_ctrl * ctrl) nvme_remove_namespaces() argument 4004 const struct nvme_ctrl *ctrl = nvme_class_uevent() local 4034 nvme_change_uevent(struct nvme_ctrl * ctrl,char * envdata) nvme_change_uevent() argument 4041 nvme_aen_uevent(struct nvme_ctrl * ctrl) nvme_aen_uevent() argument 4059 struct nvme_ctrl *ctrl = nvme_async_event_work() local 4073 nvme_ctrl_pp_status(struct nvme_ctrl * ctrl) nvme_ctrl_pp_status() argument 4087 nvme_get_fw_slot_info(struct nvme_ctrl * ctrl) nvme_get_fw_slot_info() argument 4103 struct nvme_ctrl *ctrl = container_of(work, nvme_fw_act_work() local 4147 nvme_handle_aen_notice(struct nvme_ctrl * ctrl,u32 result) nvme_handle_aen_notice() argument 4184 nvme_handle_aer_persistent_error(struct nvme_ctrl * ctrl) nvme_handle_aer_persistent_error() argument 4190 nvme_complete_async_event(struct nvme_ctrl * ctrl,__le16 status,volatile union nvme_result * res) nvme_complete_async_event() argument 4230 nvme_alloc_admin_tag_set(struct nvme_ctrl * ctrl,struct blk_mq_tag_set * set,const struct blk_mq_ops * ops,unsigned int cmd_size) nvme_alloc_admin_tag_set() argument 4281 nvme_remove_admin_tag_set(struct nvme_ctrl * ctrl) nvme_remove_admin_tag_set() argument 4293 nvme_alloc_io_tag_set(struct nvme_ctrl * ctrl,struct blk_mq_tag_set * set,const struct blk_mq_ops * ops,unsigned int nr_maps,unsigned int cmd_size) nvme_alloc_io_tag_set() argument 4344 nvme_remove_io_tag_set(struct nvme_ctrl * ctrl) nvme_remove_io_tag_set() argument 4354 nvme_stop_ctrl(struct nvme_ctrl * ctrl) nvme_stop_ctrl() argument 4367 nvme_start_ctrl(struct nvme_ctrl * ctrl) nvme_start_ctrl() argument 4394 nvme_uninit_ctrl(struct nvme_ctrl * ctrl) nvme_uninit_ctrl() argument 4404 nvme_free_cels(struct nvme_ctrl * ctrl) nvme_free_cels() argument 4419 struct nvme_ctrl *ctrl = nvme_free_ctrl() local 4452 nvme_init_ctrl(struct nvme_ctrl * ctrl,struct device * dev,const struct nvme_ctrl_ops * ops,unsigned long quirks) nvme_init_ctrl() argument 4553 nvme_mark_namespaces_dead(struct nvme_ctrl * ctrl) nvme_mark_namespaces_dead() argument 4566 nvme_unfreeze(struct nvme_ctrl * ctrl) nvme_unfreeze() argument 4580 nvme_wait_freeze_timeout(struct nvme_ctrl * ctrl,long timeout) nvme_wait_freeze_timeout() argument 4597 nvme_wait_freeze(struct nvme_ctrl * ctrl) nvme_wait_freeze() argument 4610 nvme_start_freeze(struct nvme_ctrl * ctrl) nvme_start_freeze() argument 4624 nvme_quiesce_io_queues(struct nvme_ctrl * ctrl) nvme_quiesce_io_queues() argument 4635 nvme_unquiesce_io_queues(struct nvme_ctrl * ctrl) nvme_unquiesce_io_queues() argument 4644 nvme_quiesce_admin_queue(struct nvme_ctrl * ctrl) nvme_quiesce_admin_queue() argument 4653 nvme_unquiesce_admin_queue(struct nvme_ctrl * ctrl) nvme_unquiesce_admin_queue() argument 4660 nvme_sync_io_queues(struct nvme_ctrl * ctrl) nvme_sync_io_queues() argument 4673 nvme_sync_queues(struct nvme_ctrl * ctrl) nvme_sync_queues() argument [all...] |
H A D | fc.c | 36 struct nvme_fc_ctrl *ctrl; member 100 struct nvme_fc_ctrl *ctrl; member 180 struct nvme_ctrl ctrl; member 184 to_fc_ctrl(struct nvme_ctrl *ctrl) in to_fc_ctrl() argument 186 return container_of(ctrl, struct nvme_fc_ctrl, ctrl); in to_fc_ctrl() 551 nvme_fc_resume_controller(struct nvme_fc_ctrl *ctrl) in nvme_fc_resume_controller() argument 553 switch (nvme_ctrl_state(&ctrl->ctrl)) { in nvme_fc_resume_controller() 560 dev_info(ctrl->ctrl.device, in nvme_fc_resume_controller() 562 "Attempting reconnect\n", ctrl->cnum); in nvme_fc_resume_controller() 564 queue_delayed_work(nvme_wq, &ctrl->connect_work, 0); in nvme_fc_resume_controller() [all …]
|
H A D | tcp.c | 139 struct nvme_tcp_ctrl *ctrl; member 167 struct nvme_ctrl ctrl; member 182 static inline struct nvme_tcp_ctrl *to_tcp_ctrl(struct nvme_ctrl *ctrl) in to_tcp_ctrl() argument 184 return container_of(ctrl, struct nvme_tcp_ctrl, ctrl); in to_tcp_ctrl() 189 return queue - queue->ctrl->queues; in nvme_tcp_queue_id() 197 return queue->ctrl->admin_tag_set.tags[queue_idx]; in nvme_tcp_tagset() 198 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_tcp_tagset() 232 return req == &req->queue->ctrl->async_req; in nvme_tcp_async_req() 427 dev_err(queue->ctrl->ctrl.device, in nvme_tcp_verify_hdgst() 437 dev_err(queue->ctrl->ctrl.device, in nvme_tcp_verify_hdgst() [all …]
|
H A D | auth.c | 23 struct nvme_ctrl *ctrl; member 52 #define nvme_auth_queue_from_qid(ctrl, qid) \ argument 53 (qid == 0) ? (ctrl)->fabrics_q : (ctrl)->connect_q 55 static inline int ctrl_max_dhchaps(struct nvme_ctrl *ctrl) in ctrl_max_dhchaps() argument 57 return ctrl->opts->nr_io_queues + ctrl->opts->nr_write_queues + in ctrl_max_dhchaps() 58 ctrl->opts->nr_poll_queues + 1; in ctrl_max_dhchaps() 61 static int nvme_auth_submit(struct nvme_ctrl *ctrl, int qid, in nvme_auth_submit() argument 66 struct request_queue *q = nvme_auth_queue_from_qid(ctrl, qid); in nvme_auth_submit() 85 dev_warn(ctrl->device, in nvme_auth_submit() 88 dev_err(ctrl->device, in nvme_auth_submit() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 317 struct brcmnand_controller *ctrl; member 628 static inline bool brcmnand_non_mmio_ops(struct brcmnand_controller *ctrl) in brcmnand_non_mmio_ops() argument 637 static inline u32 nand_readreg(struct brcmnand_controller *ctrl, u32 offs) in nand_readreg() argument 639 if (brcmnand_non_mmio_ops(ctrl)) in nand_readreg() 640 return brcmnand_soc_read(ctrl->soc, offs); in nand_readreg() 641 return brcmnand_readl(ctrl->nand_base + offs); in nand_readreg() 644 static inline void nand_writereg(struct brcmnand_controller *ctrl, u32 offs, in nand_writereg() argument 647 if (brcmnand_non_mmio_ops(ctrl)) in nand_writereg() 648 brcmnand_soc_write(ctrl->soc, val, offs); in nand_writereg() 650 brcmnand_writel(val, ctrl->nand_base + offs); in nand_writereg() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-qcom-qspi.c | 182 static u32 qspi_buswidth_to_iomode(struct qcom_qspi *ctrl, in qspi_buswidth_to_iomode() argument 193 dev_warn_once(ctrl->dev, in qspi_buswidth_to_iomode() 199 static void qcom_qspi_pio_xfer_cfg(struct qcom_qspi *ctrl) in qcom_qspi_pio_xfer_cfg() argument 205 xfer = &ctrl->xfer; in qcom_qspi_pio_xfer_cfg() 206 pio_xfer_cfg = readl(ctrl->base + PIO_XFER_CFG); in qcom_qspi_pio_xfer_cfg() 214 iomode = qspi_buswidth_to_iomode(ctrl, xfer->buswidth); in qcom_qspi_pio_xfer_cfg() 217 writel(pio_xfer_cfg, ctrl->base + PIO_XFER_CFG); in qcom_qspi_pio_xfer_cfg() 220 static void qcom_qspi_pio_xfer_ctrl(struct qcom_qspi *ctrl) in qcom_qspi_pio_xfer_ctrl() argument 224 pio_xfer_ctrl = readl(ctrl->base + PIO_XFER_CTRL); in qcom_qspi_pio_xfer_ctrl() 226 pio_xfer_ctrl |= ctrl->xfer.rem_bytes; in qcom_qspi_pio_xfer_ctrl() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-api.c | 41 struct v4l2_ctrl *ctrl, in ptr_to_user() argument 46 if (ctrl->is_ptr && !ctrl->is_string) in ptr_to_user() 50 switch (ctrl->type) { in ptr_to_user() 54 c->size = ctrl->elem_size; in ptr_to_user() 70 static int cur_to_user(struct v4l2_ext_control *c, struct v4l2_ctrl *ctrl) in cur_to_user() argument 72 return ptr_to_user(c, ctrl, ctrl->p_cur); in cur_to_user() 77 struct v4l2_ctrl *ctrl) in new_to_user() argument 79 return ptr_to_user(c, ctrl, ctrl->p_new); in new_to_user() 86 return ptr_to_user(c, ref->ctrl, ref->p_req); in req_to_user() 90 static int def_to_user(struct v4l2_ext_control *c, struct v4l2_ctrl *ctrl) in def_to_user() argument [all …]
|
H A D | v4l2-ctrls-core.c | 19 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, in fill_event() argument 24 ev->id = ctrl->id; in fill_event() 25 ev->u.ctrl.changes = changes; in fill_event() 26 ev->u.ctrl.type = ctrl->type; in fill_event() 27 ev->u.ctrl.flags = user_flags(ctrl); in fill_event() 28 if (ctrl->is_ptr) in fill_event() 29 ev->u.ctrl.value64 = 0; in fill_event() 31 ev->u.ctrl.value64 = *ctrl->p_cur.p_s64; in fill_event() 32 ev->u.ctrl.minimum = ctrl->minimum; in fill_event() 33 ev->u.ctrl.maximum = ctrl->maximum; in fill_event() [all …]
|
/openbmc/linux/drivers/tty/serdev/ |
H A D | core.c | 77 struct serdev_controller *ctrl = to_serdev_controller(dev); in serdev_ctrl_release() local 78 ida_simple_remove(&ctrl_ida, ctrl->nr); in serdev_ctrl_release() 79 kfree(ctrl); in serdev_ctrl_release() 104 struct serdev_controller *ctrl = serdev->ctrl; in serdev_device_add() local 111 if (ctrl->serdev) { in serdev_device_add() 115 ctrl->serdev = serdev; in serdev_device_add() 129 ctrl->serdev = NULL; in serdev_device_add() 140 struct serdev_controller *ctrl = serdev->ctrl; in serdev_device_remove() local 143 ctrl->serdev = NULL; in serdev_device_remove() 149 struct serdev_controller *ctrl = serdev->ctrl; in serdev_device_open() local [all …]
|
/openbmc/linux/drivers/net/mdio/ |
H A D | mdio-bitbang.c | 44 static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val) in mdiobb_send_bit() argument 46 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit() 48 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit() 50 ops->set_mdc(ctrl, 1); in mdiobb_send_bit() 52 ops->set_mdc(ctrl, 0); in mdiobb_send_bit() 56 static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl) in mdiobb_get_bit() argument 58 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_get_bit() 61 ops->set_mdc(ctrl, 1); in mdiobb_get_bit() 63 ops->set_mdc(ctrl, 0); in mdiobb_get_bit() 65 return ops->get_mdio_data(ctrl); in mdiobb_get_bit() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_ctrl.c | 109 struct dp_ctrl_private *ctrl; in dp_ctrl_push_idle() local 111 ctrl = container_of(dp_ctrl, struct dp_ctrl_private, dp_ctrl); in dp_ctrl_push_idle() 113 reinit_completion(&ctrl->idle_comp); in dp_ctrl_push_idle() 114 dp_catalog_ctrl_state_ctrl(ctrl->catalog, DP_STATE_CTRL_PUSH_IDLE); in dp_ctrl_push_idle() 116 if (!wait_for_completion_timeout(&ctrl->idle_comp, in dp_ctrl_push_idle() 120 drm_dbg_dp(ctrl->drm_dev, "mainlink off\n"); in dp_ctrl_push_idle() 123 static void dp_ctrl_config_ctrl(struct dp_ctrl_private *ctrl) in dp_ctrl_config_ctrl() argument 126 const u8 *dpcd = ctrl->panel->dpcd; in dp_ctrl_config_ctrl() 135 tbd = dp_link_get_test_bits_depth(ctrl->link, in dp_ctrl_config_ctrl() 136 ctrl->panel->dp_mode.bpp); in dp_ctrl_config_ctrl() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-ath79.c | 44 static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg) in ath79_gpio_read() argument 46 return readl(ctrl->base + reg); in ath79_gpio_read() 49 static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl, in ath79_gpio_write() argument 52 writel(val, ctrl->base + reg); in ath79_gpio_write() 56 struct ath79_gpio_ctrl *ctrl, unsigned reg, u32 mask, u32 bits) in ath79_gpio_update_bits() argument 60 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits() 64 ath79_gpio_write(ctrl, reg, new_val); in ath79_gpio_update_bits() 71 struct ath79_gpio_ctrl *ctrl = irq_data_to_ath79_gpio(data); in ath79_gpio_irq_unmask() local 75 gpiochip_enable_irq(&ctrl->gc, irqd_to_hwirq(data)); in ath79_gpio_irq_unmask() 76 raw_spin_lock_irqsave(&ctrl->lock, flags); in ath79_gpio_irq_unmask() [all …]
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-iproc-pll.c | 68 const struct iproc_pll_ctrl *ctrl; member 76 const struct iproc_clk_ctrl *ctrl; member 150 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in pll_wait_for_lock() local 153 u32 val = readl(pll->status_base + ctrl->status.offset); in pll_wait_for_lock() 155 if (val & (1 << ctrl->status.shift)) in pll_wait_for_lock() 166 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in iproc_pll_write() local 170 if (unlikely(ctrl->flags & IPROC_CLK_NEEDS_READ_BACK && in iproc_pll_write() 177 const struct iproc_pll_ctrl *ctrl = pll->ctrl; in __pll_disable() local 180 if (ctrl->flags & IPROC_CLK_PLL_ASIU) { in __pll_disable() 181 val = readl(pll->asiu_base + ctrl->asiu.offset); in __pll_disable() [all …]
|