/drivers/staging/lustre/lustre/include/ |
H A D | lustre_cfg.h | 119 #define LUSTRE_CFG_BUFLEN(lcfg, idx) \ 120 ((lcfg)->lcfg_bufcount <= (idx) \ 122 : (lcfg)->lcfg_buflens[(idx)]) 155 static inline void *lustre_cfg_buf(struct lustre_cfg *lcfg, int index) argument 160 LASSERT (lcfg != NULL); 163 bufcount = lcfg->lcfg_bufcount; 167 offset = LCFG_HDR_SIZE(lcfg->lcfg_bufcount); 169 offset += cfs_size_round(lcfg->lcfg_buflens[i]); 170 return (char *)lcfg + offset; 174 struct lustre_cfg *lcfg) 173 lustre_cfg_bufs_init(struct lustre_cfg_bufs *bufs, struct lustre_cfg *lcfg) argument 184 lustre_cfg_string(struct lustre_cfg *lcfg, int index) argument 230 struct lustre_cfg *lcfg; local 251 lustre_cfg_free(struct lustre_cfg *lcfg) argument 263 struct lustre_cfg *lcfg = (struct lustre_cfg *)buf; local [all...] |
H A D | obd_class.h | 123 int class_process_config(struct lustre_cfg *lcfg); 125 struct lustre_cfg *lcfg, void *data); 126 int class_attach(struct lustre_cfg *lcfg); 127 int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 128 int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg); 129 int class_detach(struct obd_device *obd, struct lustre_cfg *lcfg); 138 int class_add_conn(struct obd_device *obd, struct lustre_cfg *lcfg);
|
H A D | lustre_lib.h | 88 int client_sanobd_setup(struct obd_device *obddev, struct lustre_cfg* lcfg);
|
H A D | lu_object.h | 354 struct lustre_cfg *lcfg);
|
H A D | lustre_sec.h | 344 int sptlrpc_process_config(struct lustre_cfg *lcfg);
|
H A D | lustre_net.h | 2865 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg);
|
/drivers/staging/lustre/lustre/obdclass/ |
H A D | obd_config.c | 334 int class_attach(struct lustre_cfg *lcfg) argument 340 if (!LUSTRE_CFG_BUFLEN(lcfg, 1)) { 344 typename = lustre_cfg_string(lcfg, 1); 346 if (!LUSTRE_CFG_BUFLEN(lcfg, 0)) { 350 name = lustre_cfg_string(lcfg, 0); 352 if (!LUSTRE_CFG_BUFLEN(lcfg, 2)) { 356 uuid = lustre_cfg_string(lcfg, 2); 422 rc = OBP(obd, attach)(obd, sizeof(*lcfg), lcfg); 451 int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 583 class_detach(struct obd_device *obd, struct lustre_cfg *lcfg) argument 611 class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 772 class_add_conn(struct obd_device *obd, struct lustre_cfg *lcfg) argument 807 class_del_conn(struct obd_device *obd, struct lustre_cfg *lcfg) argument 942 class_set_global(char *ptr, int val, struct lustre_cfg *lcfg) argument 970 lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg)) argument 1048 process_param2_config(struct lustre_cfg *lcfg) argument 1088 lustre_register_quota_process_config(int (*qpc)(struct lustre_cfg *lcfg)) argument 1098 class_process_config(struct lustre_cfg *lcfg) argument 1293 class_process_proc_param(char *prefix, struct lprocfs_vars *lvars, struct lustre_cfg *lcfg, void *data) argument 1399 struct lustre_cfg *lcfg, *lcfg_new; local 1628 struct lustre_cfg *lcfg = (struct lustre_cfg *)(rec + 1); local 1724 struct lustre_cfg *lcfg; local [all...] |
H A D | llog_swab.c | 307 static void print_lustre_cfg(struct lustre_cfg *lcfg) argument 313 CDEBUG(D_OTHER, "lustre_cfg: %p\n", lcfg); 314 CDEBUG(D_OTHER, "\tlcfg->lcfg_version: %#x\n", lcfg->lcfg_version); 316 CDEBUG(D_OTHER, "\tlcfg->lcfg_command: %#x\n", lcfg->lcfg_command); 317 CDEBUG(D_OTHER, "\tlcfg->lcfg_num: %#x\n", lcfg->lcfg_num); 318 CDEBUG(D_OTHER, "\tlcfg->lcfg_flags: %#x\n", lcfg->lcfg_flags); 319 CDEBUG(D_OTHER, "\tlcfg->lcfg_nid: %s\n", libcfs_nid2str(lcfg->lcfg_nid)); 321 CDEBUG(D_OTHER, "\tlcfg->lcfg_bufcount: %d\n", lcfg->lcfg_bufcount); 322 if (lcfg->lcfg_bufcount < LUSTRE_CFG_MAX_BUFCOUNT) 323 for (i = 0; i < lcfg 328 lustre_swab_lustre_cfg(struct lustre_cfg *lcfg) argument [all...] |
H A D | class_obd.c | 229 struct lustre_cfg *lcfg; local 236 OBD_ALLOC(lcfg, data->ioc_plen1); 237 if (lcfg == NULL) { 241 err = copy_from_user(lcfg, data->ioc_pbuf1, 244 err = lustre_cfg_sanity_check(lcfg, data->ioc_plen1); 246 err = class_process_config(lcfg); 248 OBD_FREE(lcfg, data->ioc_plen1);
|
H A D | obd_mount.c | 78 struct lustre_cfg *lcfg; local 96 lcfg = lustre_cfg_new(LCFG_LOG_START, bufs); 97 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); 98 lustre_cfg_free(lcfg); 127 struct lustre_cfg *lcfg; local 141 lcfg = lustre_cfg_new(LCFG_LOG_END, &bufs); 142 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); 143 lustre_cfg_free(lcfg); 157 struct lustre_cfg * lcfg = NULL; local [all...] |
/drivers/staging/lustre/lustre/mgc/ |
H A D | mgc_request.c | 250 struct config_llog_instance lcfg = *cfg; local 259 if (IS_MDT(lsi) && lcfg.cfg_instance) 267 LASSERT(lcfg.cfg_instance == NULL); 268 lcfg.cfg_instance = sb; 271 LASSERT(lcfg.cfg_instance != NULL); 275 cld = do_config_log_add(obd, logname, CONFIG_T_RECOVER, &lcfg, sb); 282 struct config_llog_instance lcfg = *cfg; local 285 lcfg.cfg_instance = sb; 288 &lcfg, sb); 710 static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 1109 struct lustre_cfg *lcfg; local 1611 struct lustre_cfg *lcfg = buf; local [all...] |
/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_lib.c | 256 * lcfg parameters: 261 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg) argument 289 if (strstr(lustre_cfg_buf(lcfg, 1), "OST") == NULL) { 318 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { 323 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > 37) { 328 if (LUSTRE_CFG_BUFLEN(lcfg, 2) < 1) { 333 if (LUSTRE_CFG_BUFLEN(lcfg, 2) > 37) { 341 memcpy(server_uuid.uuid, lustre_cfg_buf(lcfg, 2), 342 min_t(unsigned int, LUSTRE_CFG_BUFLEN(lcfg, 2), 426 memcpy(cli->cl_target_uuid.uuid, lustre_cfg_buf(lcfg, [all...] |
/drivers/staging/comedi/drivers/ |
H A D | rtd520.c | 377 void __iomem *lcfg; member in struct:rtd_private 1195 writel(0, devpriv->lcfg + PLX_INTRCS_REG); 1264 devpriv->lcfg = pci_ioremap_bar(pcidev, 0); 1265 if (!dev->mmio || !devpriv->las1 || !devpriv->lcfg) 1338 writel(ICS_PIE | ICS_PLIE, devpriv->lcfg + PLX_INTRCS_REG); 1349 if (dev->mmio && devpriv->lcfg) 1352 writel(readl(devpriv->lcfg + PLX_INTRCS_REG) & 1354 devpriv->lcfg + PLX_INTRCS_REG); 1361 if (devpriv->lcfg) 1362 iounmap(devpriv->lcfg); [all...] |
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | sec_config.c | 612 static int __sptlrpc_process_config(struct lustre_cfg *lcfg, argument 620 target = lustre_cfg_string(lcfg, 1); 626 param = lustre_cfg_string(lcfg, 2); 668 int sptlrpc_process_config(struct lustre_cfg *lcfg) argument 670 return __sptlrpc_process_config(lcfg, NULL);
|
/drivers/staging/lustre/lustre/llite/ |
H A D | super25.c | 103 void lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg));
|
H A D | llite_lib.c | 2213 int ll_process_config(struct lustre_cfg *lcfg) argument 2224 ptr = strrchr(lustre_cfg_string(lcfg, 0), '-'); 2236 lcfg, sb);
|
H A D | llite_internal.h | 825 int ll_process_config(struct lustre_cfg *lcfg);
|
/drivers/staging/lustre/lustre/osc/ |
H A D | osc_internal.h | 137 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
|
H A D | osc_request.c | 3161 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 3172 rc = client_obd_setup(obd, lcfg); 3284 int osc_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg) argument 3291 switch (lcfg->lcfg_command) { 3294 lcfg, obd);
|
/drivers/staging/lustre/lustre/lov/ |
H A D | lov_internal.h | 240 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 241 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg,
|
H A D | lov_obd.c | 769 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 776 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { 781 desc = (struct lov_desc *)lustre_cfg_buf(lcfg, 1); 783 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { 785 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); 917 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg, argument 924 switch (cmd = lcfg->lcfg_command) { 931 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { 936 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); 938 if (sscanf(lustre_cfg_buf(lcfg, [all...] |
/drivers/staging/lustre/lustre/lmv/ |
H A D | lmv_obd.c | 1315 static int lmv_setup(struct obd_device *obd, struct lustre_cfg *lcfg) argument 1322 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { 1327 desc = (struct lmv_desc *)lustre_cfg_buf(lcfg, 1); 1328 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { 1330 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); 1395 struct lustre_cfg *lcfg = buf; local 1401 switch (lcfg->lcfg_command) { 1405 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { 1410 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); 1412 if (sscanf(lustre_cfg_buf(lcfg, [all...] |
/drivers/staging/lustre/lustre/obdecho/ |
H A D | echo_client.c | 98 struct lustre_cfg *lcfg); 1988 struct obd_device *obddev, struct lustre_cfg *lcfg) 1996 if (lcfg->lcfg_bufcount < 2 || LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { 2001 tgt = class_name2obd(lustre_cfg_string(lcfg, 1)); 2004 lustre_cfg_string(lcfg, 1)); 2017 lustre_cfg_string(lcfg, 1)); 2042 lustre_cfg_string(lcfg, 1)); 1987 echo_client_setup(const struct lu_env *env, struct obd_device *obddev, struct lustre_cfg *lcfg) argument
|
/drivers/staging/lustre/lustre/mdc/ |
H A D | mdc_request.c | 2535 struct lustre_cfg *lcfg = buf; local 2540 switch (lcfg->lcfg_command) { 2543 lcfg, obd);
|
/drivers/staging/lustre/lustre/include/lustre/ |
H A D | lustre_idl.h | 3363 extern void lustre_swab_lustre_cfg(struct lustre_cfg *lcfg);
|