Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 15 of 15) sorted by relevance

/fs/nfs/
Dpnfs_dev.c101 struct pnfs_device *pdev = NULL; in nfs4_get_device_info() local
119 pdev = kzalloc(sizeof(*pdev), gfp_flags); in nfs4_get_device_info()
120 if (!pdev) in nfs4_get_device_info()
133 memcpy(&pdev->dev_id, dev_id, sizeof(*dev_id)); in nfs4_get_device_info()
134 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info()
135 pdev->pages = pages; in nfs4_get_device_info()
136 pdev->pgbase = 0; in nfs4_get_device_info()
137 pdev->pglen = max_resp_sz; in nfs4_get_device_info()
138 pdev->mincount = 0; in nfs4_get_device_info()
139 pdev->maxcount = max_resp_sz - nfs41_maxgetdevinfo_overhead; in nfs4_get_device_info()
[all …]
Dnfs4xdr.c1933 p = xdr_encode_opaque_fixed(p, args->pdev->dev_id.data, in encode_getdeviceinfo()
1935 *p++ = cpu_to_be32(args->pdev->layout_type); in encode_getdeviceinfo()
1936 *p++ = cpu_to_be32(args->pdev->maxcount); /* gdia_maxcount */ in encode_getdeviceinfo()
2900 args->pdev->pages, args->pdev->pgbase, in nfs4_xdr_enc_getdeviceinfo()
2901 args->pdev->pglen); in nfs4_xdr_enc_getdeviceinfo()
5875 struct pnfs_device *pdev = res->pdev; in decode_getdeviceinfo() local
5886 pdev->mincount = be32_to_cpup(p); in decode_getdeviceinfo()
5888 __func__, pdev->mincount); in decode_getdeviceinfo()
5897 if (type != pdev->layout_type) { in decode_getdeviceinfo()
5899 __func__, pdev->layout_type, type); in decode_getdeviceinfo()
[all …]
Dpnfs.h172 (struct nfs_server *server, struct pnfs_device *pdev,
Dnfs4proc.c8630 struct pnfs_device *pdev, in _nfs4_proc_getdeviceinfo() argument
8634 .pdev = pdev, in _nfs4_proc_getdeviceinfo()
8639 .pdev = pdev, in _nfs4_proc_getdeviceinfo()
8654 pdev->nocache = 1; in _nfs4_proc_getdeviceinfo()
8662 struct pnfs_device *pdev, in nfs4_proc_getdeviceinfo() argument
8670 _nfs4_proc_getdeviceinfo(server, pdev, cred), in nfs4_proc_getdeviceinfo()
/fs/pstore/
Dram.c491 static int ramoops_parse_dt_size(struct platform_device *pdev, in ramoops_parse_dt_size() argument
497 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_size()
499 dev_err(&pdev->dev, "failed to parse property %s: %d\n", in ramoops_parse_dt_size()
505 dev_err(&pdev->dev, "%s %u > INT_MAX\n", propname, val32); in ramoops_parse_dt_size()
513 static int ramoops_parse_dt(struct platform_device *pdev, in ramoops_parse_dt() argument
516 struct device_node *of_node = pdev->dev.of_node; in ramoops_parse_dt()
521 dev_dbg(&pdev->dev, "using Device Tree\n"); in ramoops_parse_dt()
523 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ramoops_parse_dt()
525 dev_err(&pdev->dev, in ramoops_parse_dt()
536 ret = ramoops_parse_dt_size(pdev, name, &value); \ in ramoops_parse_dt()
[all …]
/fs/nfs/filelayout/
Dfilelayoutdev.c63 nfs4_fl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in nfs4_fl_alloc_deviceid_node() argument
84 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_fl_alloc_deviceid_node()
149 nfs4_init_deviceid_node(&dsaddr->id_node, server, &pdev->dev_id); in nfs4_fl_alloc_deviceid_node()
Dfilelayout.h113 struct pnfs_device *pdev, gfp_t gfp_flags);
Dfilelayout.c1097 struct pnfs_device *pdev, gfp_t gfp_flags) in filelayout_alloc_deviceid_node() argument
1101 dsaddr = nfs4_fl_alloc_deviceid_node(server, pdev, gfp_flags); in filelayout_alloc_deviceid_node()
/fs/cifs/
Ddir.c626 struct win_dev *pdev; in cifs_mknod() local
716 pdev = (struct win_dev *)buf; in cifs_mknod()
724 memcpy(pdev->type, "IntxCHR", 8); in cifs_mknod()
725 pdev->major = cpu_to_le64(MAJOR(device_number)); in cifs_mknod()
726 pdev->minor = cpu_to_le64(MINOR(device_number)); in cifs_mknod()
730 memcpy(pdev->type, "IntxBLK", 8); in cifs_mknod()
731 pdev->major = cpu_to_le64(MAJOR(device_number)); in cifs_mknod()
732 pdev->minor = cpu_to_le64(MINOR(device_number)); in cifs_mknod()
/fs/nfs/objlayout/
Dobjio_osd.c88 objio_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in objio_alloc_deviceid_node() argument
103 p = page_address(pdev->pages[0]); in objio_alloc_deviceid_node()
141 _DEVID_LO(&pdev->dev_id), _DEVID_HI(&pdev->dev_id)); in objio_alloc_deviceid_node()
149 nfs4_init_deviceid_node(&ode->id_node, server, &pdev->dev_id); in objio_alloc_deviceid_node()
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c39 nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in nfs4_ff_alloc_deviceid_node() argument
65 &pdev->dev_id); in nfs4_ff_alloc_deviceid_node()
68 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_ff_alloc_deviceid_node()
Dflexfilelayout.h175 nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev,
Dflexfilelayout.c2006 struct pnfs_device *pdev, gfp_t gfp_flags) in ff_layout_alloc_deviceid_node() argument
2010 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
/fs/nfs/blocklayout/
Ddev.c495 bl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in bl_alloc_deviceid_node() argument
511 xdr_init_decode_pages(&xdr, &buf, pdev->pages, pdev->pglen); in bl_alloc_deviceid_node()
542 nfs4_init_deviceid_node(node, server, &pdev->dev_id); in bl_alloc_deviceid_node()
Dblocklayout.h177 struct pnfs_device *pdev, gfp_t gfp_mask);