Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 239) sorted by relevance

12345678910

/drivers/clk/
Dclk-fractional-divider.c50 static inline u32 clk_fd_readl(struct clk_fractional_divider *fd) in clk_fd_readl() argument
52 if (fd->flags & CLK_FRAC_DIVIDER_BIG_ENDIAN) in clk_fd_readl()
53 return ioread32be(fd->reg); in clk_fd_readl()
55 return readl(fd->reg); in clk_fd_readl()
58 static inline void clk_fd_writel(struct clk_fractional_divider *fd, u32 val) in clk_fd_writel() argument
60 if (fd->flags & CLK_FRAC_DIVIDER_BIG_ENDIAN) in clk_fd_writel()
61 iowrite32be(val, fd->reg); in clk_fd_writel()
63 writel(val, fd->reg); in clk_fd_writel()
69 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_recalc_rate() local
75 if (fd->lock) in clk_fd_recalc_rate()
[all …]
Dclk-xgene.c239 struct xgene_clk_pmd *fd = to_xgene_clk_pmd(hw); in xgene_clk_pmd_recalc_rate() local
244 if (fd->lock) in xgene_clk_pmd_recalc_rate()
245 spin_lock_irqsave(fd->lock, flags); in xgene_clk_pmd_recalc_rate()
247 __acquire(fd->lock); in xgene_clk_pmd_recalc_rate()
249 val = readl(fd->reg); in xgene_clk_pmd_recalc_rate()
251 if (fd->lock) in xgene_clk_pmd_recalc_rate()
252 spin_unlock_irqrestore(fd->lock, flags); in xgene_clk_pmd_recalc_rate()
254 __release(fd->lock); in xgene_clk_pmd_recalc_rate()
258 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate()
259 if (fd->flags & XGENE_CLK_PMD_SCALE_INVERTED) in xgene_clk_pmd_recalc_rate()
[all …]
/drivers/scsi/
Dfdomain.c118 static inline void fdomain_make_bus_idle(struct fdomain *fd) in fdomain_make_bus_idle() argument
120 outb(0, fd->base + REG_BCTL); in fdomain_make_bus_idle()
121 outb(0, fd->base + REG_MCTL); in fdomain_make_bus_idle()
122 if (fd->chip == tmc18c50 || fd->chip == tmc18c30) in fdomain_make_bus_idle()
125 fd->base + REG_ACTL); in fdomain_make_bus_idle()
127 outb(ACTL_RESET | PARITY_MASK, fd->base + REG_ACTL); in fdomain_make_bus_idle()
181 struct fdomain *fd = shost_priv(sh); in fdomain_select() local
183 outb(BCTL_BUSEN | BCTL_SEL, fd->base + REG_BCTL); in fdomain_select()
184 outb(BIT(sh->this_id) | BIT(target), fd->base + REG_SCSI_DATA_NOACK); in fdomain_select()
187 outb(PARITY_MASK, fd->base + REG_ACTL); in fdomain_select()
[all …]
/drivers/clk/ti/
Dfapll.c80 struct fapll_data *fd; member
88 static bool ti_fapll_clock_is_bypass(struct fapll_data *fd) in ti_fapll_clock_is_bypass() argument
90 u32 v = readl_relaxed(fd->base); in ti_fapll_clock_is_bypass()
92 if (fd->bypass_bit_inverted) in ti_fapll_clock_is_bypass()
98 static void ti_fapll_set_bypass(struct fapll_data *fd) in ti_fapll_set_bypass() argument
100 u32 v = readl_relaxed(fd->base); in ti_fapll_set_bypass()
102 if (fd->bypass_bit_inverted) in ti_fapll_set_bypass()
106 writel_relaxed(v, fd->base); in ti_fapll_set_bypass()
109 static void ti_fapll_clear_bypass(struct fapll_data *fd) in ti_fapll_clear_bypass() argument
111 u32 v = readl_relaxed(fd->base); in ti_fapll_clear_bypass()
[all …]
/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c15 struct hfi1_filedata *fd);
17 static int set_rcvarray_entry(struct hfi1_filedata *fd,
29 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *,
34 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo);
35 static void __clear_tid_node(struct hfi1_filedata *fd,
37 static void clear_tid_node(struct hfi1_filedata *fd, struct tid_rb_node *node);
51 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_init() argument
56 fd->entry_to_rb = kcalloc(uctxt->expected_count, in hfi1_user_exp_rcv_init()
59 if (!fd->entry_to_rb) in hfi1_user_exp_rcv_init()
63 fd->invalid_tid_idx = 0; in hfi1_user_exp_rcv_init()
[all …]
Dfile_ops.c41 static int assign_ctxt(struct hfi1_filedata *fd, unsigned long arg, u32 len);
44 static int init_user_ctxt(struct hfi1_filedata *fd,
47 static int get_ctxt_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
48 static int get_base_info(struct hfi1_filedata *fd, unsigned long arg, u32 len);
49 static int user_exp_rcv_setup(struct hfi1_filedata *fd, unsigned long arg,
51 static int user_exp_rcv_clear(struct hfi1_filedata *fd, unsigned long arg,
53 static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
55 static int setup_base_ctxt(struct hfi1_filedata *fd,
59 static int find_sub_ctxt(struct hfi1_filedata *fd,
61 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd,
[all …]
Duser_exp_rcv.h51 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd,
53 void hfi1_user_exp_rcv_free(struct hfi1_filedata *fd);
54 int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd,
56 int hfi1_user_exp_rcv_clear(struct hfi1_filedata *fd,
58 int hfi1_user_exp_rcv_invalid(struct hfi1_filedata *fd,
/drivers/media/platform/exynos4-is/
Dfimc-is-param.c139 __hw_param_copy(&par->fd.control, &cfg->fd.control); in __fimc_is_hw_update_param()
143 __hw_param_copy(&par->fd.otf_input, &cfg->fd.otf_input); in __fimc_is_hw_update_param()
147 __hw_param_copy(&par->fd.dma_input, &cfg->fd.dma_input); in __fimc_is_hw_update_param()
151 __hw_param_copy(&par->fd.config, &cfg->fd.config); in __fimc_is_hw_update_param()
221 struct fd_param *fd; in __is_set_frame_size() local
225 fd = &is->config[index].fd; in __is_set_frame_size()
238 fd->otf_input.width = mf->width; in __is_set_frame_size()
239 fd->otf_input.height = mf->height; in __is_set_frame_size()
472 struct fd_param *fd; in __is_set_fd_control() local
476 fd = &is->config[index].fd; in __is_set_fd_control()
[all …]
/drivers/clk/imx/
Dclk-composite-7ulp.c33 struct clk_fractional_divider *fd = NULL; in imx7ulp_clk_hw_composite() local
49 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in imx7ulp_clk_hw_composite()
50 if (!fd) { in imx7ulp_clk_hw_composite()
54 fd_hw = &fd->hw; in imx7ulp_clk_hw_composite()
55 fd->reg = reg; in imx7ulp_clk_hw_composite()
56 fd->mshift = PCG_FRAC_SHIFT; in imx7ulp_clk_hw_composite()
57 fd->mwidth = PCG_FRAC_WIDTH; in imx7ulp_clk_hw_composite()
58 fd->mmask = PCG_FRAC_MASK; in imx7ulp_clk_hw_composite()
59 fd->nshift = PCG_PCD_SHIFT; in imx7ulp_clk_hw_composite()
60 fd->nwidth = PCG_PCD_WIDTH; in imx7ulp_clk_hw_composite()
[all …]
/drivers/usb/gadget/
Dfunctions.c14 struct usb_function_driver *fd; in try_get_usb_function_instance() local
19 list_for_each_entry(fd, &func_list, list) { in try_get_usb_function_instance()
21 if (strcmp(name, fd->name)) in try_get_usb_function_instance()
24 if (!try_module_get(fd->mod)) { in try_get_usb_function_instance()
28 fi = fd->alloc_inst(); in try_get_usb_function_instance()
30 module_put(fd->mod); in try_get_usb_function_instance()
32 fi->fd = fd; in try_get_usb_function_instance()
61 f = fi->fd->alloc_func(fi); in usb_get_function()
76 mod = fi->fd->mod; in usb_put_function_instance()
93 struct usb_function_driver *fd; in usb_function_register() local
[all …]
/drivers/soc/fsl/qbman/
Dqman_test_api.c55 static struct qm_fd fd, fd_dq; variable
65 static void fd_init(struct qm_fd *fd) in fd_init() argument
67 qm_fd_addr_set64(fd, 0xabdeadbeefLLU); in fd_init()
68 qm_fd_set_contig_big(fd, 0x0000ffff); in fd_init()
69 fd->cmd = cpu_to_be32(0xfeedf00d); in fd_init()
72 static void fd_inc(struct qm_fd *fd) in fd_inc() argument
74 u64 t = qm_fd_addr_get64(fd); in fd_inc()
82 qm_fd_addr_set64(fd, t); in fd_inc()
84 fmt = qm_fd_get_format(fd); in fd_inc()
85 off = qm_fd_get_offset(fd); in fd_inc()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth_trace.h59 const struct qm_fd *fd),
62 TP_ARGS(netdev, fq, fd),
81 __entry->fd_addr = qm_fd_addr_get64(fd);
82 __entry->fd_format = qm_fd_get_format(fd);
83 __entry->fd_offset = qm_fd_get_offset(fd);
84 __entry->fd_length = qm_fd_get_length(fd);
85 __entry->fd_status = fd->status;
105 const struct qm_fd *fd),
107 TP_ARGS(netdev, fq, fd)
115 const struct qm_fd *fd),
[all …]
Ddpaa_eth.c1363 const struct qm_fd *fd) in dpaa_fd_release() argument
1372 bm_buffer_set64(&bmb, qm_fd_addr(fd)); in dpaa_fd_release()
1374 dpaa_bp = dpaa_bpid2pool(fd->bpid); in dpaa_fd_release()
1378 if (qm_fd_get_format(fd) == qm_fd_sg) { in dpaa_fd_release()
1379 vaddr = phys_to_virt(qm_fd_addr(fd)); in dpaa_fd_release()
1380 sgt = vaddr + qm_fd_get_offset(fd); in dpaa_fd_release()
1382 dma_unmap_page(dpaa_bp->priv->rx_dma_dev, qm_fd_addr(fd), in dpaa_fd_release()
1443 struct qm_fd *fd, in dpaa_enable_tx_csum() argument
1522 fd->cmd |= cpu_to_be32(FM_FD_CMD_RPD | FM_FD_CMD_DTC); in dpaa_enable_tx_csum()
1653 const struct qm_fd *fd, bool ts) in dpaa_cleanup_tx_fd() argument
[all …]
/drivers/staging/greybus/Documentation/firmware/
Dfirmware.c40 static int update_intf_firmware(int fd) in update_intf_firmware() argument
47 ret = ioctl(fd, FW_MGMT_IOC_GET_INTF_FW, &intf_fw_info); in update_intf_firmware()
69 ret = ioctl(fd, FW_MGMT_IOC_INTF_LOAD_AND_VALIDATE, &intf_load); in update_intf_firmware()
90 ret = ioctl(fd, FW_MGMT_IOC_MODE_SWITCH); in update_intf_firmware()
97 static int update_backend_firmware(int fd) in update_backend_firmware() argument
108 ret = ioctl(fd, FW_MGMT_IOC_GET_BACKEND_FW, &backend_fw_info); in update_backend_firmware()
138 ret = ioctl(fd, FW_MGMT_IOC_INTF_BACKEND_FW_UPDATE, &backend_update); in update_backend_firmware()
162 int fd, ret; in main() local
193 fd = open(fwdev, O_RDWR); in main()
194 if (fd < 0) { in main()
[all …]
Dauthenticate.c33 int fd, ret; in main() local
45 fd = open(capdev, O_RDWR); in main()
46 if (fd < 0) { in main()
54 ret = ioctl(fd, CAP_IOC_GET_ENDPOINT_UID, &uid); in main()
66 ret = ioctl(fd, CAP_IOC_GET_IMS_CERTIFICATE, &cert); in main()
80 ret = ioctl(fd, CAP_IOC_AUTHENTICATE, &authenticate); in main()
91 close(fd); in main()
/drivers/scsi/qla2xxx/
Dqla_nvme.c141 struct nvmefc_fcp_req *fd; in qla_nvme_release_fcp_cmd_kref() local
149 fd = nvme->u.nvme.desc; in qla_nvme_release_fcp_cmd_kref()
155 fd->rcv_rsplen = le16_to_cpu(nvme->u.nvme.rsp_pyld_len); in qla_nvme_release_fcp_cmd_kref()
156 fd->status = NVME_SC_SUCCESS; in qla_nvme_release_fcp_cmd_kref()
158 fd->rcv_rsplen = 0; in qla_nvme_release_fcp_cmd_kref()
159 fd->transferred_length = 0; in qla_nvme_release_fcp_cmd_kref()
160 fd->status = NVME_SC_INTERNAL; in qla_nvme_release_fcp_cmd_kref()
164 fd->done(fd); in qla_nvme_release_fcp_cmd_kref()
173 struct nvmefc_ls_req *fd; in qla_nvme_release_ls_cmd_kref() local
184 fd = priv->fd; in qla_nvme_release_ls_cmd_kref()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-trace.h27 const struct dpaa2_fd *fd),
30 TP_ARGS(netdev, fd),
48 __entry->fd_addr = dpaa2_fd_get_addr(fd);
49 __entry->fd_len = dpaa2_fd_get_len(fd);
50 __entry->fd_offset = dpaa2_fd_get_offset(fd);
71 const struct dpaa2_fd *fd),
73 TP_ARGS(netdev, fd)
79 const struct dpaa2_fd *fd),
81 TP_ARGS(netdev, fd)
87 const struct dpaa2_fd *fd),
[all …]
Ddpaa2-eth.c70 const struct dpaa2_fd *fd, in dpaa2_eth_free_rx_fd() argument
74 dma_addr_t addr = dpaa2_fd_get_addr(fd); in dpaa2_eth_free_rx_fd()
75 u8 fd_format = dpaa2_fd_get_format(fd); in dpaa2_eth_free_rx_fd()
90 sgt = vaddr + dpaa2_fd_get_offset(fd); in dpaa2_eth_free_rx_fd()
108 const struct dpaa2_fd *fd, in dpaa2_eth_build_linear_skb() argument
112 u16 fd_offset = dpaa2_fd_get_offset(fd); in dpaa2_eth_build_linear_skb()
113 u32 fd_length = dpaa2_fd_get_len(fd); in dpaa2_eth_build_linear_skb()
312 struct dpaa2_fd *fd, in dpaa2_eth_xdp_enqueue() argument
321 frc = dpaa2_fd_get_frc(fd); in dpaa2_eth_xdp_enqueue()
322 dpaa2_fd_set_frc(fd, frc | DPAA2_FD_FRC_FAEADV); in dpaa2_eth_xdp_enqueue()
[all …]
/drivers/staging/greybus/tools/
Dloopback_test.c247 int fd; in open_sysfs() local
251 fd = open(path, flags); in open_sysfs()
252 if (fd < 0) { in open_sysfs()
256 return fd; in open_sysfs()
259 int read_sysfs_int_fd(int fd, const char *sys_pfx, const char *node) in read_sysfs_int_fd() argument
263 if (read(fd, buf, sizeof(buf)) < 0) { in read_sysfs_int_fd()
266 close(fd); in read_sysfs_int_fd()
272 float read_sysfs_float_fd(int fd, const char *sys_pfx, const char *node) in read_sysfs_float_fd() argument
276 if (read(fd, buf, sizeof(buf)) < 0) { in read_sysfs_float_fd()
280 close(fd); in read_sysfs_float_fd()
[all …]
/drivers/xen/
Dgntdev-dmabuf.c38 int fd; member
152 dmabuf_exp_wait_obj_get_dmabuf(struct gntdev_dmabuf_priv *priv, int fd) in dmabuf_exp_wait_obj_get_dmabuf() argument
158 if (gntdev_dmabuf->fd == fd) { in dmabuf_exp_wait_obj_get_dmabuf()
168 static int dmabuf_exp_wait_released(struct gntdev_dmabuf_priv *priv, int fd, in dmabuf_exp_wait_released() argument
175 pr_debug("Will wait for dma-buf with fd %d\n", fd); in dmabuf_exp_wait_released()
181 gntdev_dmabuf = dmabuf_exp_wait_obj_get_dmabuf(priv, fd); in dmabuf_exp_wait_released()
360 u32 fd; member
402 gntdev_dmabuf->fd = ret; in dmabuf_exp_from_pages()
403 args->fd = ret; in dmabuf_exp_from_pages()
443 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument
[all …]
/drivers/net/ethernet/toshiba/
Dtc35815.c363 struct FDesc fd; member
369 struct FDesc fd; member
374 struct FDesc fd; member
916 lp->rfd_base[i].fd.FDCtl = cpu_to_le32(FD_CownsFD); in tc35815_init_queues()
924 lp->tfd_base[i].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[i+1])); in tc35815_init_queues()
925 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); in tc35815_init_queues()
926 lp->tfd_base[i].fd.FDCtl = cpu_to_le32(0); in tc35815_init_queues()
928 lp->tfd_base[TX_FD_NUM-1].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[0])); in tc35815_init_queues()
934 lp->fbl_ptr->fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, lp->fbl_ptr)); in tc35815_init_queues()
935 lp->fbl_ptr->fd.FDCtl = cpu_to_le32(RX_BUF_NUM | FD_CownsFD); in tc35815_init_queues()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sched.c64 int fd, in amdgpu_sched_process_priority_override() argument
67 struct fd f = fdget(fd); in amdgpu_sched_process_priority_override()
94 int fd, in amdgpu_sched_context_priority_override() argument
98 struct fd f = fdget(fd); in amdgpu_sched_context_priority_override()
152 args->in.fd, in amdgpu_sched_ioctl()
157 args->in.fd, in amdgpu_sched_ioctl()
/drivers/crypto/caam/
Dqi.c101 struct qm_fd fd; in caam_qi_enqueue() local
106 qm_fd_clear_fd(&fd); in caam_qi_enqueue()
107 qm_fd_set_compound(&fd, qm_sg_entry_get_len(&req->fd_sgt[1])); in caam_qi_enqueue()
115 qm_fd_addr_set64(&fd, addr); in caam_qi_enqueue()
118 ret = qman_enqueue(req->drv_ctx->req_fq, &fd); in caam_qi_enqueue()
138 const struct qm_fd *fd; in caam_fq_ern_cb() local
143 fd = &msg->ern.fd; in caam_fq_ern_cb()
145 drv_req = caam_iova_to_virt(priv->domain, qm_fd_addr_get64(fd)); in caam_fq_ern_cb()
154 if (qm_fd_get_format(fd) != qm_fd_compound) { in caam_fq_ern_cb()
159 dma_unmap_single(drv_req->drv_ctx->qidev, qm_fd_addr(fd), in caam_fq_ern_cb()
[all …]
/drivers/vfio/platform/
Dvfio_platform_irq.c53 int32_t fd = *(int32_t *)data; in vfio_platform_set_irq_mask() local
55 if (fd >= 0) in vfio_platform_set_irq_mask()
59 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask()
113 int32_t fd = *(int32_t *)data; in vfio_platform_set_irq_unmask() local
115 if (fd >= 0) in vfio_platform_set_irq_unmask()
120 fd); in vfio_platform_set_irq_unmask()
173 int fd, irq_handler_t handler) in vfio_set_trigger() argument
187 if (fd < 0) /* Disable only */ in vfio_set_trigger()
195 trigger = eventfd_ctx_fdget(fd); in vfio_set_trigger()
238 int32_t fd = *(int32_t *)data; in vfio_platform_set_irq_trigger() local
[all …]
/drivers/vfio/pci/
Dvfio_pci_intrs.c171 static int vfio_intx_set_signal(struct vfio_pci_core_device *vdev, int fd) in vfio_intx_set_signal() argument
186 if (fd < 0) /* Disable only */ in vfio_intx_set_signal()
194 trigger = eventfd_ctx_fdget(fd); in vfio_intx_set_signal()
289 int vector, int fd, bool msix) in vfio_msi_set_vector_signal() argument
313 if (fd < 0) in vfio_msi_set_vector_signal()
322 trigger = eventfd_ctx_fdget(fd); in vfio_msi_set_vector_signal()
376 int fd = fds ? fds[i] : -1; in vfio_msi_set_block() local
377 ret = vfio_msi_set_vector_signal(vdev, j, fd, msix); in vfio_msi_set_block()
434 int32_t fd = *(int32_t *)data; in vfio_pci_set_intx_unmask() local
435 if (fd >= 0) in vfio_pci_set_intx_unmask()
[all …]

12345678910