Home
last modified time | relevance | path

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

1234567891011

/drivers/clk/
A Dclk-fractional-divider.c77 if (fd->lock) in clk_fd_get_div()
84 if (fd->lock) in clk_fd_get_div()
89 mmask = GENMASK(fd->mwidth - 1, 0) << fd->mshift; in clk_fd_get_div()
90 nmask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in clk_fd_get_div()
198 mmask = GENMASK(fd->mwidth - 1, 0) << fd->mshift; in clk_fd_set_rate()
199 nmask = GENMASK(fd->nwidth - 1, 0) << fd->nshift; in clk_fd_set_rate()
208 val |= (m << fd->mshift) | (n << fd->nshift); in clk_fd_set_rate()
271 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in clk_hw_register_fractional_divider()
272 if (!fd) in clk_hw_register_fractional_divider()
293 kfree(fd); in clk_hw_register_fractional_divider()
[all …]
A Dclk-fractional-divider_test.c21 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_denominator()
24 fd->mwidth = 3; in clk_fd_test_approximation_max_denominator()
25 fd->nwidth = 3; in clk_fd_test_approximation_max_denominator()
50 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_numerator()
53 fd->mwidth = 3; in clk_fd_test_approximation_max_numerator()
55 fd->nwidth = 3; in clk_fd_test_approximation_max_numerator()
79 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_denominator_zero_based()
83 fd->mwidth = 3; in clk_fd_test_approximation_max_denominator_zero_based()
84 fd->nwidth = 3; in clk_fd_test_approximation_max_denominator_zero_based()
109 fd = kunit_kzalloc(test, sizeof(*fd), GFP_KERNEL); in clk_fd_test_approximation_max_numerator_zero_based()
[all …]
A Dclk-xgene.c245 if (fd->lock) in xgene_clk_pmd_recalc_rate()
252 if (fd->lock) in xgene_clk_pmd_recalc_rate()
259 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate()
316 if (fd->lock) in xgene_clk_pmd_set_rate()
322 val &= ~fd->mask; in xgene_clk_pmd_set_rate()
326 if (fd->lock) in xgene_clk_pmd_set_rate()
350 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in xgene_register_clk_pmd()
351 if (!fd) in xgene_register_clk_pmd()
360 fd->reg = reg; in xgene_register_clk_pmd()
365 fd->lock = lock; in xgene_register_clk_pmd()
[all …]
/drivers/scsi/
A Dfdomain.c127 if (fd->chip == tmc18c50 || fd->chip == tmc18c30) in fdomain_make_bus_idle()
214 scsi_done(fd->cur_cmd); in fdomain_finish_cmd()
215 fd->cur_cmd = NULL; in fdomain_finish_cmd()
420 fd->cur_cmd = cmd; in fdomain_queue()
444 if (!fd->cur_cmd) in fdomain_abort()
454 fdomain_finish_cmd(fd); in fdomain_abort()
518 struct fdomain *fd; in fdomain_create() local
550 fd = shost_priv(sh); in fdomain_create()
551 fd->base = base; in fdomain_create()
552 fd->chip = chip; in fdomain_create()
[all …]
/drivers/infiniband/hw/hfi1/
A Duser_exp_rcv.c71 fd->use_mn = true; in hfi1_user_exp_rcv_init()
94 fd->tid_limit++; in hfi1_user_exp_rcv_init()
278 if (fd->use_mn) { in hfi1_user_exp_rcv_setup()
299 if (fd->tid_used + tidbuf->n_psets > fd->tid_limit) in hfi1_user_exp_rcv_setup()
300 pageset_count = fd->tid_limit - fd->tid_used; in hfi1_user_exp_rcv_setup()
428 if (fd->use_mn) { in hfi1_user_exp_rcv_setup()
451 if (fd->use_mn) in hfi1_user_exp_rcv_setup()
471 if (fd->use_mn) in hfi1_user_exp_rcv_setup()
541 memset(fd->invalid_tids, 0, sizeof(*fd->invalid_tids) * in hfi1_user_exp_rcv_invalid()
752 node->fdata = fd; in set_rcvarray_entry()
[all …]
A Dfile_ops.c161 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in hfi1_file_open()
163 if (!fd || init_srcu_struct(&fd->pq_srcu)) in hfi1_file_open()
169 fd->dd = dd; in hfi1_file_open()
173 kfree(fd); in hfi1_file_open()
273 pq = srcu_dereference(fd->pq, &fd->pq_srcu); in hfi1_write_iter()
279 trace_hfi1_sdma_request(fd->dd, fd->uctxt->ctxt, fd->subctxt, dim); in hfi1_write_iter()
761 ret = init_user_ctxt(fd, fd->uctxt); in complete_subctxt()
766 __clear_bit(fd->subctxt, fd->uctxt->in_use_ctxts); in complete_subctxt()
782 if (fd->uctxt) in assign_ctxt()
814 ret = allocate_ctxt(fd, fd->dd, &uinfo, &uctxt); in assign_ctxt()
[all …]
A Duser_sdma.c107 struct hfi1_filedata *fd) in hfi1_user_sdma_alloc_queues() argument
115 if (!uctxt || !fd) in hfi1_user_sdma_alloc_queues()
128 pq->subctxt = fd->subctxt; in hfi1_user_sdma_alloc_queues()
149 fd->subctxt); in hfi1_user_sdma_alloc_queues()
177 fd->cq = cq; in hfi1_user_sdma_alloc_queues()
220 pq = srcu_dereference_check(fd->pq, &fd->pq_srcu, in hfi1_user_sdma_free_queues()
241 if (fd->cq) { in hfi1_user_sdma_free_queues()
242 vfree(fd->cq->comps); in hfi1_user_sdma_free_queues()
243 kfree(fd->cq); in hfi1_user_sdma_free_queues()
244 fd->cq = NULL; in hfi1_user_sdma_free_queues()
[all …]
/drivers/clk/ti/
A Dfapll.c71 struct fapll_data *fd; member
406 struct fapll_data *fd = synth->fd; in ti_fapll_synth_round_rate() local
440 struct fapll_data *fd = synth->fd; in ti_fapll_synth_set_rate() local
509 synth->fd = fd; in ti_fapll_synth_setup()
541 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in ti_fapll_setup()
542 if (!fd) in ti_fapll_setup()
581 if (!fd->base) { in ti_fapll_setup()
589 fd->name = name; in ti_fapll_setup()
655 iounmap(fd->base); in ti_fapll_setup()
659 if (fd->clk_ref) in ti_fapll_setup()
[all …]
/drivers/media/platform/samsung/exynos4-is/
A Dfimc-is-param.c216 fd = &is->config[index].fd; in __is_set_frame_size()
467 fd = &is->config[index].fd; in __is_set_fd_control()
482 fd = &is->config[index].fd; in __is_set_fd_config_maxface()
502 fd = &is->config[index].fd; in __is_set_fd_config_rollangle()
522 fd = &is->config[index].fd; in __is_set_fd_config_yawangle()
542 fd = &is->config[index].fd; in __is_set_fd_config_smilemode()
562 fd = &is->config[index].fd; in __is_set_fd_config_blinkmode()
582 fd = &is->config[index].fd; in __is_set_fd_config_eyedetect()
602 fd = &is->config[index].fd; in __is_set_fd_config_mouthdetect()
622 fd = &is->config[index].fd; in __is_set_fd_config_orientation()
[all …]
/drivers/usb/gadget/
A Dfunctions.c14 struct usb_function_driver *fd; in try_get_usb_function_instance() local
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
100 if (!strcmp(fd->name, newf->name)) in usb_function_register()
[all …]
/drivers/net/can/dev/
A Dnetlink.c182 priv->fd.tdc = tdc; in can_tdc_changelink()
234 memset(&priv->fd.tdc, 0, sizeof(priv->fd.tdc)); in can_changelink()
327 if (!priv->fd.data_bittiming_const && !priv->fd.do_set_data_bittiming && in can_changelink()
328 !priv->fd.data_bitrate_const) in can_changelink()
334 priv->fd.data_bittiming_const, in can_changelink()
335 priv->fd.data_bitrate_const, in can_changelink()
348 memset(&priv->fd.tdc, 0, sizeof(priv->fd.tdc)); in can_changelink()
361 can_calc_tdco(&priv->fd.tdc, priv->fd.tdc_const, &dbt, in can_changelink()
409 if (!priv->fd.tdc_const) in can_tdc_get_size()
426 priv->fd.do_get_auto_tdcv) in can_tdc_get_size()
[all …]
/drivers/soc/fsl/qbman/
A Dqman_test_api.c55 static struct qm_fd fd, fd_dq; variable
69 fd->cmd = cpu_to_be32(0xfeedf00d); in fd_init()
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()
86 len = qm_fd_get_length(fd); in fd_inc()
90 be32_add_cpu(&fd->cmd, 1); in fd_inc()
112 if (qman_enqueue(fq, &fd)) { in do_enqueues()
116 fd_inc(&fd); in do_enqueues()
[all …]
/drivers/net/ethernet/freescale/dpaa/
A Ddpaa_eth_trace.h33 const struct qm_fd *fd),
36 TP_ARGS(netdev, fq, fd),
55 __entry->fd_addr = qm_fd_addr_get64(fd);
56 __entry->fd_format = qm_fd_get_format(fd);
57 __entry->fd_offset = qm_fd_get_offset(fd);
79 const struct qm_fd *fd),
81 TP_ARGS(netdev, fq, fd)
89 const struct qm_fd *fd),
91 TP_ARGS(netdev, fq, fd)
99 const struct qm_fd *fd),
[all …]
A Ddpaa_eth.c1475 struct qm_fd *fd, in dpaa_enable_tx_csum() argument
1717 qm_fd_get_offset(fd) + qm_fd_get_length(fd), in dpaa_cleanup_tx_fd()
2107 struct qm_fd *fd) in dpaa_xmit() argument
2301 struct qm_fd fd; in dpaa_start_xmit() local
2310 qm_fd_clear_fd(&fd); in dpaa_start_xmit()
2454 const struct qm_fd *fd, in dpaa_tx_conf() argument
2527 struct qm_fd fd; in dpaa_xdp_xmit_frame() local
2557 qm_fd_clear_fd(&fd); in dpaa_xdp_xmit_frame()
2579 qm_fd_get_offset(&fd) + qm_fd_get_length(&fd), in dpaa_xdp_xmit_frame()
2690 const struct qm_fd *fd = &dq->fd; in rx_default_dqrr() local
[all …]
/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-eth-trace.h27 const struct dpaa2_fd *fd),
30 TP_ARGS(netdev, 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),
89 TP_ARGS(netdev, fd)
95 const struct dpaa2_fd *fd),
97 TP_ARGS(netdev, fd)
[all …]
A Ddpaa2-xsk.c35 struct dpaa2_fd *fd, void *vaddr) in dpaa2_xsk_run_xdp() argument
37 dma_addr_t addr = dpaa2_fd_get_addr(fd); in dpaa2_xsk_run_xdp()
105 const struct dpaa2_fd *fd, in dpaa2_xsk_rx() argument
108 dma_addr_t addr = dpaa2_fd_get_addr(fd); in dpaa2_xsk_rx()
109 u8 fd_format = dpaa2_fd_get_format(fd); in dpaa2_xsk_rx()
111 u32 fd_length = dpaa2_fd_get_len(fd); in dpaa2_xsk_rx()
334 struct dpaa2_fd *fd, in dpaa2_xsk_tx_build_fd() argument
377 dpaa2_fd_set_format(fd, dpaa2_fd_sg); in dpaa2_xsk_tx_build_fd()
378 dpaa2_fd_set_addr(fd, sgt_addr); in dpaa2_xsk_tx_build_fd()
379 dpaa2_fd_set_len(fd, xdp_desc->len); in dpaa2_xsk_tx_build_fd()
[all …]
A Ddpaa2-eth.c393 struct dpaa2_fd *fd, in dpaa2_eth_xdp_enqueue() argument
736 fd = dpaa2_dq_fd(dq); in dpaa2_eth_consume_frames()
900 struct dpaa2_fd *fd, in dpaa2_eth_build_sg_fd() argument
1365 fd++; in dpaa2_eth_build_gso_fd()
1406 struct dpaa2_fd *fd; in __dpaa2_eth_tx() local
1415 fd = (this_cpu_ptr(priv->fd))->array; in __dpaa2_eth_tx()
2834 memset(fd, 0, sizeof(*fd)); in dpaa2_eth_xdp_create_fd()
4955 priv->fd = alloc_percpu(*priv->fd); in dpaa2_eth_probe()
4956 if (!priv->fd) { in dpaa2_eth_probe()
5051 free_percpu(priv->fd); in dpaa2_eth_probe()
[all …]
/drivers/staging/greybus/Documentation/firmware/
A 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()
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
162 int fd, ret; in main() local
193 fd = open(fwdev, O_RDWR); in main()
194 if (fd < 0) { in main()
202 ret = ioctl(fd, FW_MGMT_IOC_SET_TIMEOUT_MS, &fw_timeout); in main()
210 ret = update_intf_firmware(fd); in main()
212 ret = update_backend_firmware(fd); in main()
[all …]
A 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/clk/imx/
A Dclk-composite-7ulp.c101 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in imx_ulp_clk_hw_composite()
102 if (!fd) { in imx_ulp_clk_hw_composite()
106 fd_hw = &fd->hw; in imx_ulp_clk_hw_composite()
107 fd->reg = reg; in imx_ulp_clk_hw_composite()
108 fd->mshift = PCG_FRAC_SHIFT; in imx_ulp_clk_hw_composite()
109 fd->mwidth = PCG_FRAC_WIDTH; in imx_ulp_clk_hw_composite()
110 fd->nshift = PCG_PCD_SHIFT; in imx_ulp_clk_hw_composite()
111 fd->nwidth = PCG_PCD_WIDTH; in imx_ulp_clk_hw_composite()
114 fd->lock = &imx_ccm_lock; in imx_ulp_clk_hw_composite()
121 kfree(fd); in imx_ulp_clk_hw_composite()
[all …]
/drivers/xen/
A Dgntdev-dmabuf.c32 int fd; member
152 if (gntdev_dmabuf->fd == fd) { in dmabuf_exp_wait_obj_get_dmabuf()
354 u32 fd; member
392 gntdev_dmabuf->fd = ret; in dmabuf_exp_from_pages()
393 args->fd = ret; in dmabuf_exp_from_pages()
469 *fd = args.fd; in dmabuf_exp_from_refs()
569 dma_buf = dma_buf_get(fd); in dmabuf_imp_to_refs()
580 gntdev_dmabuf->fd = fd; in dmabuf_imp_to_refs()
674 if (gntdev_dmabuf->fd == fd) { in dmabuf_imp_find_unlink()
752 op.domid, refs, &op.fd); in gntdev_ioctl_dmabuf_exp_from_refs()
[all …]
/drivers/net/ethernet/toshiba/
A Dtc35815.c1061 le32_to_cpu(fd->fd.FDNext), in dump_txfd()
1062 le32_to_cpu(fd->fd.FDSystem), in dump_txfd()
1063 le32_to_cpu(fd->fd.FDStat), in dump_txfd()
1064 le32_to_cpu(fd->fd.FDCtl)); in dump_txfd()
1079 le32_to_cpu(fd->fd.FDNext), in dump_rxfd()
1080 le32_to_cpu(fd->fd.FDSystem), in dump_rxfd()
1081 le32_to_cpu(fd->fd.FDStat), in dump_rxfd()
1082 le32_to_cpu(fd->fd.FDCtl)); in dump_rxfd()
1100 le32_to_cpu(fd->fd.FDNext), in dump_frfd()
1102 le32_to_cpu(fd->fd.FDStat), in dump_frfd()
[all …]
/drivers/scsi/qla2xxx/
A Dqla_nvme.c176 fd = nvme->u.nvme.desc; in qla_nvme_release_fcp_cmd_kref()
185 fd->rcv_rsplen = 0; in qla_nvme_release_fcp_cmd_kref()
191 fd->done(fd); in qla_nvme_release_fcp_cmd_kref()
200 struct nvmefc_ls_req *fd; in qla_nvme_release_ls_cmd_kref() local
211 fd = priv->fd; in qla_nvme_release_ls_cmd_kref()
213 fd->done(fd, priv->comp_status); in qla_nvme_release_ls_cmd_kref()
505 priv->fd = fd; in qla_nvme_ls_req()
506 nvme->u.nvme.desc = fd; in qla_nvme_ls_req()
577 tot_dsds = fd->sg_cnt; in qla2x00_start_nvme_mq()
696 sgl = fd->first_sgl; in qla2x00_start_nvme_mq()
[all …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_sched.c35 int fd, in amdgpu_sched_process_priority_override() argument
38 CLASS(fd, f)(fd); in amdgpu_sched_process_priority_override() local
62 int fd, in amdgpu_sched_context_priority_override() argument
66 CLASS(fd, f)(fd); in amdgpu_sched_context_priority_override() local
114 args->in.fd, in amdgpu_sched_ioctl()
119 args->in.fd, in amdgpu_sched_ioctl()
/drivers/dma-buf/
A Ddma-heap.c56 int fd; in dma_heap_buffer_alloc() local
70 fd = dma_buf_fd(dmabuf, fd_flags); in dma_heap_buffer_alloc()
71 if (fd < 0) { in dma_heap_buffer_alloc()
75 return fd; in dma_heap_buffer_alloc()
99 int fd; in dma_heap_ioctl_allocate() local
101 if (heap_allocation->fd) in dma_heap_ioctl_allocate()
110 fd = dma_heap_buffer_alloc(heap, heap_allocation->len, in dma_heap_ioctl_allocate()
113 if (fd < 0) in dma_heap_ioctl_allocate()
114 return fd; in dma_heap_ioctl_allocate()
116 heap_allocation->fd = fd; in dma_heap_ioctl_allocate()

Completed in 60 milliseconds

1234567891011