Home
last modified time | relevance | path

Searched +full:host +full:- +full:id (Results 1 – 25 of 1130) sorted by relevance

12345678910>>...46

/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
Dintr_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2010-2013, NVIDIA Corporation.
22 unsigned int id = syncpt->id; in host1x_intr_syncpt_handle() local
23 struct host1x *host = syncpt->host; in host1x_intr_syncpt_handle() local
25 host1x_sync_writel(host, BIT(id % 32), in host1x_intr_syncpt_handle()
26 HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(id / 32)); in host1x_intr_syncpt_handle()
27 host1x_sync_writel(host, BIT(id % 32), in host1x_intr_syncpt_handle()
28 HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(id / 32)); in host1x_intr_syncpt_handle()
30 schedule_work(&syncpt->intr.work); in host1x_intr_syncpt_handle()
35 struct host1x *host = dev_id; in syncpt_thresh_isr() local
[all …]
Dsyncpt_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
19 struct host1x *host = sp->host; in syncpt_restore() local
21 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore_wait_base() local
32 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base()
33 HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_restore_wait_base()
43 struct host1x *host = sp->host; in syncpt_read_wait_base() local
45 sp->base_val = in syncpt_read_wait_base()
46 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_read_wait_base()
[all …]
Ddebug_hw_1x01.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
14 static void host1x_debug_show_channel_cdma(struct host1x *host, in host1x_debug_show_channel_cdma() argument
18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma()
26 cbread = host1x_sync_readl(host, HOST1X_SYNC_CBREAD(ch->id)); in host1x_debug_show_channel_cdma()
27 cbstat = host1x_sync_readl(host, HOST1X_SYNC_CBSTAT(ch->id)); in host1x_debug_show_channel_cdma()
29 host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev)); in host1x_debug_show_channel_cdma()
32 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
48 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(base)); in host1x_debug_show_channel_cdma()
67 static void host1x_debug_show_channel_fifo(struct host1x *host, in host1x_debug_show_channel_fifo() argument
[all …]
/kernel/linux/linux-6.6/drivers/gpu/host1x/hw/
Dintr_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2010-2013, NVIDIA Corporation.
18 struct host1x *host = dev_id; in syncpt_thresh_isr() local
20 unsigned int i, id; in syncpt_thresh_isr() local
22 for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { in syncpt_thresh_isr()
23 reg = host1x_sync_readl(host, in syncpt_thresh_isr()
26 host1x_sync_writel(host, reg, in syncpt_thresh_isr()
28 host1x_sync_writel(host, reg, in syncpt_thresh_isr()
31 for_each_set_bit(id, &reg, 32) in syncpt_thresh_isr()
32 host1x_intr_handle_interrupt(host, i * 32 + id); in syncpt_thresh_isr()
[all …]
Dsyncpt_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
19 struct host1x *host = sp->host; in syncpt_restore() local
21 host1x_sync_writel(host, min, HOST1X_SYNC_SYNCPT(sp->id)); in syncpt_restore()
30 struct host1x *host = sp->host; in syncpt_restore_wait_base() local
32 host1x_sync_writel(host, sp->base_val, in syncpt_restore_wait_base()
33 HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_restore_wait_base()
43 struct host1x *host = sp->host; in syncpt_read_wait_base() local
45 sp->base_val = in syncpt_read_wait_base()
46 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); in syncpt_read_wait_base()
[all …]
Ddebug_hw_1x01.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
14 static void host1x_debug_show_channel_cdma(struct host1x *host, in host1x_debug_show_channel_cdma() argument
18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma()
29 cbread = host1x_sync_readl(host, HOST1X_SYNC_CBREAD(ch->id)); in host1x_debug_show_channel_cdma()
30 cbstat = host1x_sync_readl(host, HOST1X_SYNC_CBSTAT(ch->id)); in host1x_debug_show_channel_cdma()
32 host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev)); in host1x_debug_show_channel_cdma()
35 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
51 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(base)); in host1x_debug_show_channel_cdma()
71 static void host1x_debug_show_channel_fifo(struct host1x *host, in host1x_debug_show_channel_fifo() argument
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/dsi/
Ddsi_manager.c1 // SPDX-License-Identifier: GPL-2.0-only
35 #define IS_MASTER_DSI_LINK(id) (msm_dsim_glb.master_dsi_link_id == id) argument
37 static inline struct msm_dsi *dsi_mgr_get_dsi(int id) in dsi_mgr_get_dsi() argument
39 return msm_dsim_glb.dsi[id]; in dsi_mgr_get_dsi()
42 static inline struct msm_dsi *dsi_mgr_get_other_dsi(int id) in dsi_mgr_get_other_dsi() argument
44 return msm_dsim_glb.dsi[(id + 1) % DSI_MAX]; in dsi_mgr_get_other_dsi()
47 static int dsi_mgr_parse_of(struct device_node *np, int id) in dsi_mgr_parse_of() argument
52 * sync-mode, and only one node specifies master in case of bonded mode. in dsi_mgr_parse_of()
54 if (!msm_dsim->is_bonded_dsi) in dsi_mgr_parse_of()
55 msm_dsim->is_bonded_dsi = of_property_read_bool(np, "qcom,dual-dsi-mode"); in dsi_mgr_parse_of()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/
Ddsi_manager.c1 // SPDX-License-Identifier: GPL-2.0-only
33 #define IS_MASTER_DSI_LINK(id) (msm_dsim_glb.master_dsi_link_id == id) argument
35 static inline struct msm_dsi *dsi_mgr_get_dsi(int id) in dsi_mgr_get_dsi() argument
37 return msm_dsim_glb.dsi[id]; in dsi_mgr_get_dsi()
40 static inline struct msm_dsi *dsi_mgr_get_other_dsi(int id) in dsi_mgr_get_other_dsi() argument
42 return msm_dsim_glb.dsi[(id + 1) % DSI_MAX]; in dsi_mgr_get_other_dsi()
45 static int dsi_mgr_parse_dual_dsi(struct device_node *np, int id) in dsi_mgr_parse_dual_dsi() argument
49 /* We assume 2 dsi nodes have the same information of dual-dsi and in dsi_mgr_parse_dual_dsi()
50 * sync-mode, and only one node specifies master in case of dual mode. in dsi_mgr_parse_dual_dsi()
52 if (!msm_dsim->is_dual_dsi) in dsi_mgr_parse_dual_dsi()
[all …]
Ddsi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
68 struct mipi_dsi_host *host; member
84 int id; member
88 struct drm_bridge *msm_dsi_manager_bridge_init(u8 id);
90 struct drm_connector *msm_dsi_manager_connector_init(u8 id);
91 struct drm_connector *msm_dsi_manager_ext_bridge_init(u8 id);
92 int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg);
93 bool msm_dsi_manager_cmd_xfer_trigger(int id, u32 dma_base, u32 len);
94 void msm_dsi_manager_setup_encoder(int id);
97 bool msm_dsi_manager_validate_current_config(u8 id);
[all …]
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dintr.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
40 u32 thresh = waiter->thresh; in add_waiter_to_queue()
43 if ((s32)(pos->thresh - thresh) <= 0) { in add_waiter_to_queue()
44 list_add(&waiter->list, &pos->list); in add_waiter_to_queue()
48 list_add(&waiter->list, queue); in add_waiter_to_queue()
53 * run through a waiter queue for a single sync point ID
63 if ((s32)(waiter->thresh - sync) > 0) in remove_completed_waiters()
66 dest = completed + waiter->action; in remove_completed_waiters()
69 if (waiter->action == HOST1X_INTR_ACTION_SUBMIT_COMPLETE && in remove_completed_waiters()
[all …]
Ddev.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2012-2015, NVIDIA Corporation.
31 int (*init)(struct host1x_channel *channel, struct host1x *host,
32 unsigned int id);
54 void (*show_channel_cdma)(struct host1x *host,
57 void (*show_channel_fifo)(struct host1x *host,
60 void (*show_mlocks)(struct host1x *host, struct output *output);
72 void (*enable_protection)(struct host1x *host);
76 int (*init_host_sync)(struct host1x *host, u32 cpm,
79 struct host1x *host, unsigned int id, u32 thresh);
[all …]
Dsyncpt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2015, NVIDIA Corporation.
23 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request() argument
25 struct host1x_syncpt_base *bases = host->bases; in host1x_syncpt_base_request()
28 for (i = 0; i < host->info->nb_bases; i++) in host1x_syncpt_base_request()
32 if (i >= host->info->nb_bases) in host1x_syncpt_base_request()
42 base->requested = false; in host1x_syncpt_base_free()
45 static struct host1x_syncpt *host1x_syncpt_alloc(struct host1x *host, in host1x_syncpt_alloc() argument
49 struct host1x_syncpt *sp = host->syncpt; in host1x_syncpt_alloc()
53 mutex_lock(&host->syncpt_mutex); in host1x_syncpt_alloc()
[all …]
/kernel/linux/linux-5.10/drivers/memstick/core/
Dmemstick.c1 // SPDX-License-Identifier: GPL-2.0-only
29 struct memstick_device_id *id) in memstick_dev_match() argument
31 if (id->match_flags & MEMSTICK_MATCH_ALL) { in memstick_dev_match()
32 if ((id->type == card->id.type) in memstick_dev_match()
33 && (id->category == card->id.category) in memstick_dev_match()
34 && (id->class == card->id.class)) in memstick_dev_match()
48 struct memstick_device_id *ids = ms_drv->id_table; in memstick_bus_match()
51 while (ids->match_flags) { in memstick_bus_match()
65 if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) in memstick_uevent()
66 return -ENOMEM; in memstick_uevent()
[all …]
/kernel/linux/linux-6.6/drivers/memstick/core/
Dmemstick.c1 // SPDX-License-Identifier: GPL-2.0-only
29 struct memstick_device_id *id) in memstick_dev_match() argument
31 if (id->match_flags & MEMSTICK_MATCH_ALL) { in memstick_dev_match()
32 if ((id->type == card->id.type) in memstick_dev_match()
33 && (id->category == card->id.category) in memstick_dev_match()
34 && (id->class == card->id.class)) in memstick_dev_match()
48 struct memstick_device_id *ids = ms_drv->id_table; in memstick_bus_match()
51 while (ids->match_flags) { in memstick_bus_match()
65 if (add_uevent_var(env, "MEMSTICK_TYPE=%02X", card->id.type)) in memstick_uevent()
66 return -ENOMEM; in memstick_uevent()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/host1x/
Dsyncpt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2015, NVIDIA Corporation.
10 #include <linux/dma-fence.h>
24 host1x_syncpt_base_request(struct host1x *host) in host1x_syncpt_base_request() argument
26 struct host1x_syncpt_base *bases = host->bases; in host1x_syncpt_base_request()
29 for (i = 0; i < host->info->nb_bases; i++) in host1x_syncpt_base_request()
33 if (i >= host->info->nb_bases) in host1x_syncpt_base_request()
43 base->requested = false; in host1x_syncpt_base_free()
47 * host1x_syncpt_alloc() - allocate a syncpoint
48 * @host: host1x device data
[all …]
Dintr.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2021, NVIDIA Corporation.
19 list_for_each_entry_reverse(fence_in_list, &list->list, list) { in host1x_intr_add_fence_to_list()
20 if ((s32)(fence_in_list->threshold - fence->threshold) <= 0) { in host1x_intr_add_fence_to_list()
22 list_add(&fence->list, &fence_in_list->list); in host1x_intr_add_fence_to_list()
28 list_add(&fence->list, &list->list); in host1x_intr_add_fence_to_list()
31 static void host1x_intr_update_hw_state(struct host1x *host, struct host1x_syncpt *sp) in host1x_intr_update_hw_state() argument
35 if (!list_empty(&sp->fences.list)) { in host1x_intr_update_hw_state()
36 fence = list_first_entry(&sp->fences.list, struct host1x_syncpt_fence, list); in host1x_intr_update_hw_state()
38 host1x_hw_intr_set_syncpt_threshold(host, sp->id, fence->threshold); in host1x_intr_update_hw_state()
[all …]
Ddev.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2012-2015, NVIDIA Corporation.
32 int (*init)(struct host1x_channel *channel, struct host1x *host,
33 unsigned int id);
55 void (*show_channel_cdma)(struct host1x *host,
58 void (*show_channel_fifo)(struct host1x *host,
61 void (*show_mlocks)(struct host1x *host, struct output *output);
73 void (*enable_protection)(struct host1x *host);
77 int (*init_host_sync)(struct host1x *host, u32 cpm);
79 struct host1x *host, unsigned int id, u32 thresh);
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Dmvebu-gated-clock.txt5 should specify the desired clock by having the clock ID in its
6 "clocks" phandle cell. The clock ID is directly mapped to the
11 ID Clock Peripheral
12 -----------------------------------
20 15 sata0 SATA Host 0
21 17 sdio SDHCI Host
25 30 sata1 SATA Host 0
28 ID Clock Peripheral
29 -----------------------------------
39 16 usb3 USB3 Host
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/clock/
Dmvebu-gated-clock.txt5 should specify the desired clock by having the clock ID in its
6 "clocks" phandle cell. The clock ID is directly mapped to the
11 ID Clock Peripheral
12 -----------------------------------
20 15 sata0 SATA Host 0
21 17 sdio SDHCI Host
25 30 sata1 SATA Host 0
28 ID Clock Peripheral
29 -----------------------------------
39 16 usb3 USB3 Host
[all …]
/kernel/linux/linux-5.10/drivers/scsi/arm/
Dacornscsi.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * 26-Sep-1997 RMK Re-jigged to use the queue module.
15 * Re-coded state machine to be based on driver
19 * 05-Oct-1997 RMK Implemented writing to SCSI devices.
20 * 06-Oct-1997 RMK Corrected small (non-serious) bug with the connect/
22 * 12-Oct-1997 RMK Added catch for re-entering interrupt routine.
23 * 15-Oct-1997 RMK Improved handling of commands.
24 * 27-Jun-1998 RMK Changed asm/delay.h to linux/delay.h.
25 * 13-Dec-1998 RMK Better abort code and command handling. Extra state
45 * SCSI-II Tagged queue support.
[all …]
/kernel/linux/linux-6.6/drivers/scsi/arm/
Dacornscsi.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * 26-Sep-1997 RMK Re-jigged to use the queue module.
15 * Re-coded state machine to be based on driver
19 * 05-Oct-1997 RMK Implemented writing to SCSI devices.
20 * 06-Oct-1997 RMK Corrected small (non-serious) bug with the connect/
22 * 12-Oct-1997 RMK Added catch for re-entering interrupt routine.
23 * 15-Oct-1997 RMK Improved handling of commands.
24 * 27-Jun-1998 RMK Changed asm/delay.h to linux/delay.h.
25 * 13-Dec-1998 RMK Better abort code and command handling. Extra state
45 * SCSI-II Tagged queue support.
[all …]
/kernel/linux/linux-5.10/drivers/nvme/target/
Dpassthru.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2017-2018 Western Digital Corporation or its
7 * Copyright (c) 2019-2020, Eideticom Inc.
13 #include "../host/nvme.h"
25 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_passthru_override_id_ctrl()
26 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl()
28 struct nvme_id_ctrl *id; in nvmet_passthru_override_id_ctrl() local
32 id = kzalloc(sizeof(*id), GFP_KERNEL); in nvmet_passthru_override_id_ctrl()
33 if (!id) in nvmet_passthru_override_id_ctrl()
36 status = nvmet_copy_from_sgl(req, 0, id, sizeof(*id)); in nvmet_passthru_override_id_ctrl()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_proc.c1 // SPDX-License-Identifier: GPL-2.0
10 * (c) 1995 Michael Neuffer neuffer@goofy.zdv.uni-mainz.de
14 * Andreas Heilwagen <crashcar@informatik.uni-koblenz.de>
46 /* Protect sht->present and sht->proc_dir */
53 ssize_t ret = -ENOMEM; in proc_scsi_host_write()
57 return -EOVERFLOW; in proc_scsi_host_write()
59 if (!shost->hostt->write_info) in proc_scsi_host_write()
60 return -EINVAL; in proc_scsi_host_write()
64 ret = -EFAULT; in proc_scsi_host_write()
67 ret = shost->hostt->write_info(shost, page, count); in proc_scsi_host_write()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/
Dscsi_proc.c1 // SPDX-License-Identifier: GPL-2.0
10 * (c) 1995 Michael Neuffer neuffer@goofy.zdv.uni-mainz.de
14 * Andreas Heilwagen <crashcar@informatik.uni-koblenz.de>
51 * struct scsi_proc_entry - (host template, SCSI proc dir) association
53 * @sht: SCSI host template associated with the procfs directory.
54 * @proc_dir: procfs directory associated with the SCSI host template.
68 ssize_t ret = -ENOMEM; in proc_scsi_host_write()
72 return -EOVERFLOW; in proc_scsi_host_write()
74 if (!shost->hostt->write_info) in proc_scsi_host_write()
75 return -EINVAL; in proc_scsi_host_write()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/snic/
Dsnic_fwint.h1 /* SPDX-License-Identifier: GPL-2.0-only */
71 SNIC_STAT_ITMF_INCORRECT_LUN, /* itmf req has incorrect LUN id*/
81 * snic_io_hdr : host <--> firmware
100 snic_io_hdr_enc(struct snic_io_hdr *hdr, u8 typ, u8 status, u32 id, u32 hid, in snic_io_hdr_enc() argument
103 hdr->type = typ; in snic_io_hdr_enc()
104 hdr->status = status; in snic_io_hdr_enc()
105 hdr->protocol = 0; in snic_io_hdr_enc()
106 hdr->hid = cpu_to_le32(hid); in snic_io_hdr_enc()
107 hdr->cmnd_id = cpu_to_le32(id); in snic_io_hdr_enc()
108 hdr->sg_cnt = cpu_to_le16(sg_cnt); in snic_io_hdr_enc()
[all …]

12345678910>>...46