Home
last modified time | relevance | path

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

/fs/nfs/
Dpnfs_dev.c102 struct pnfs_device *pdev = NULL; in nfs4_get_device_info() local
120 pdev = kzalloc(sizeof(*pdev), gfp_flags); in nfs4_get_device_info()
121 if (!pdev) in nfs4_get_device_info()
134 memcpy(&pdev->dev_id, dev_id, sizeof(*dev_id)); in nfs4_get_device_info()
135 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info()
136 pdev->pages = pages; in nfs4_get_device_info()
137 pdev->pgbase = 0; in nfs4_get_device_info()
138 pdev->pglen = max_resp_sz; in nfs4_get_device_info()
139 pdev->mincount = 0; in nfs4_get_device_info()
140 pdev->maxcount = max_resp_sz - nfs41_maxgetdevinfo_overhead; in nfs4_get_device_info()
[all …]
Dnfs4xdr.c1984 p = xdr_encode_opaque_fixed(p, args->pdev->dev_id.data, in encode_getdeviceinfo()
1986 *p++ = cpu_to_be32(args->pdev->layout_type); in encode_getdeviceinfo()
1987 *p++ = cpu_to_be32(args->pdev->maxcount); /* gdia_maxcount */ in encode_getdeviceinfo()
3051 rpc_prepare_reply_pages(req, args->pdev->pages, args->pdev->pgbase, in nfs4_xdr_enc_getdeviceinfo()
3052 args->pdev->pglen, replen); in nfs4_xdr_enc_getdeviceinfo()
5916 struct pnfs_device *pdev = res->pdev; in decode_getdeviceinfo() local
5927 pdev->mincount = be32_to_cpup(p); in decode_getdeviceinfo()
5929 __func__, pdev->mincount); in decode_getdeviceinfo()
5938 if (type != pdev->layout_type) { in decode_getdeviceinfo()
5940 __func__, pdev->layout_type, type); in decode_getdeviceinfo()
[all …]
Dpnfs.h164 (struct nfs_server *server, struct pnfs_device *pdev,
Dnfs4proc.c9917 struct pnfs_device *pdev, in _nfs4_proc_getdeviceinfo() argument
9921 .pdev = pdev, in _nfs4_proc_getdeviceinfo()
9926 .pdev = pdev, in _nfs4_proc_getdeviceinfo()
9940 pdev->nocache = 1; in _nfs4_proc_getdeviceinfo()
9942 trace_nfs4_getdeviceinfo(server, &pdev->dev_id, status); in _nfs4_proc_getdeviceinfo()
9950 struct pnfs_device *pdev, in nfs4_proc_getdeviceinfo() argument
9958 _nfs4_proc_getdeviceinfo(server, pdev, cred), in nfs4_proc_getdeviceinfo()
/fs/pstore/
Dram.c606 static int ramoops_parse_dt_u32(struct platform_device *pdev, in ramoops_parse_dt_u32() argument
613 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_u32()
618 dev_err(&pdev->dev, "failed to parse property %s: %d\n", in ramoops_parse_dt_u32()
625 dev_err(&pdev->dev, "%s %u > INT_MAX\n", propname, val32); in ramoops_parse_dt_u32()
633 static int ramoops_parse_dt(struct platform_device *pdev, in ramoops_parse_dt() argument
636 struct device_node *of_node = pdev->dev.of_node; in ramoops_parse_dt()
643 dev_dbg(&pdev->dev, "using Device Tree\n"); in ramoops_parse_dt()
645 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ramoops_parse_dt()
652 dev_err(&pdev->dev, in ramoops_parse_dt()
676 ret = ramoops_parse_dt_u32(pdev, name, default_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()
147 nfs4_init_deviceid_node(&dsaddr->id_node, server, &pdev->dev_id); in nfs4_fl_alloc_deviceid_node()
Dfilelayout.h114 struct pnfs_device *pdev, gfp_t gfp_flags);
Dfilelayout.c1037 struct pnfs_device *pdev, gfp_t gfp_flags) in filelayout_alloc_deviceid_node() argument
1041 dsaddr = nfs4_fl_alloc_deviceid_node(server, pdev, gfp_flags); in filelayout_alloc_deviceid_node()
/fs/smb/client/
Dsmb1ops.c1072 struct win_dev *pdev; in cifs_make_node() local
1144 pdev = (struct win_dev *)&buf.fi; in cifs_make_node()
1152 memcpy(pdev->type, "IntxCHR", 8); in cifs_make_node()
1153 pdev->major = cpu_to_le64(MAJOR(dev)); in cifs_make_node()
1154 pdev->minor = cpu_to_le64(MINOR(dev)); in cifs_make_node()
1158 memcpy(pdev->type, "IntxBLK", 8); in cifs_make_node()
1159 pdev->major = cpu_to_le64(MAJOR(dev)); in cifs_make_node()
1160 pdev->minor = cpu_to_le64(MINOR(dev)); in cifs_make_node()
Dsmb2ops.c5244 struct win_dev *pdev; in smb2_make_node() local
5291 pdev = (struct win_dev *)&buf.fi; in smb2_make_node()
5299 memcpy(pdev->type, "IntxCHR", 8); in smb2_make_node()
5300 pdev->major = cpu_to_le64(MAJOR(dev)); in smb2_make_node()
5301 pdev->minor = cpu_to_le64(MINOR(dev)); in smb2_make_node()
5305 memcpy(pdev->type, "IntxBLK", 8); in smb2_make_node()
5306 pdev->major = cpu_to_le64(MAJOR(dev)); in smb2_make_node()
5307 pdev->minor = cpu_to_le64(MINOR(dev)); in smb2_make_node()
5311 memcpy(pdev->type, "LnxFIFO", 8); in smb2_make_node()
5312 pdev->major = 0; in smb2_make_node()
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c42 nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in nfs4_ff_alloc_deviceid_node() argument
68 &pdev->dev_id); in nfs4_ff_alloc_deviceid_node()
71 xdr_init_decode_pages(&stream, &buf, pdev->pages, pdev->pglen); in nfs4_ff_alloc_deviceid_node()
Dflexfilelayout.h190 nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev,
Dflexfilelayout.c2165 struct pnfs_device *pdev, gfp_t gfp_flags) in ff_layout_alloc_deviceid_node() argument
2169 dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); in ff_layout_alloc_deviceid_node()
/fs/nfs/blocklayout/
Ddev.c476 bl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, in bl_alloc_deviceid_node() argument
492 xdr_init_decode_pages(&xdr, &buf, pdev->pages, pdev->pglen); in bl_alloc_deviceid_node()
518 nfs4_init_deviceid_node(node, server, &pdev->dev_id); in bl_alloc_deviceid_node()
Dblocklayout.h176 struct pnfs_device *pdev, gfp_t gfp_mask);