/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | lustre_cfg.h | 119 #define LUSTRE_CFG_BUFLEN(lcfg, idx) \ argument 120 ((lcfg)->lcfg_bufcount <= (idx) \ 122 : (lcfg)->lcfg_buflens[(idx)]) 155 static inline void *lustre_cfg_buf(struct lustre_cfg *lcfg, int index) in lustre_cfg_buf() argument 160 LASSERT (lcfg != NULL); in lustre_cfg_buf() 163 bufcount = lcfg->lcfg_bufcount; in lustre_cfg_buf() 167 offset = LCFG_HDR_SIZE(lcfg->lcfg_bufcount); in lustre_cfg_buf() 169 offset += cfs_size_round(lcfg->lcfg_buflens[i]); in lustre_cfg_buf() 170 return (char *)lcfg + offset; in lustre_cfg_buf() 174 struct lustre_cfg *lcfg) in lustre_cfg_bufs_init() argument [all …]
|
D | obd_class.h | 124 int class_process_config(struct lustre_cfg *lcfg); 126 struct lustre_cfg *lcfg, void *data); 127 int class_attach(struct lustre_cfg *lcfg); 128 int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 129 int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg); 130 int class_detach(struct obd_device *obd, struct lustre_cfg *lcfg); 139 int class_add_conn(struct obd_device *obd, struct lustre_cfg *lcfg);
|
D | lustre_lib.h | 88 int client_sanobd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg);
|
D | lu_object.h | 354 struct lustre_cfg *lcfg);
|
D | lustre_sec.h | 344 int sptlrpc_process_config(struct lustre_cfg *lcfg);
|
D | lustre_net.h | 2860 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg);
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | obd_config.c | 334 int class_attach(struct lustre_cfg *lcfg) in class_attach() argument 340 if (!LUSTRE_CFG_BUFLEN(lcfg, 1)) { in class_attach() 344 typename = lustre_cfg_string(lcfg, 1); in class_attach() 346 if (!LUSTRE_CFG_BUFLEN(lcfg, 0)) { in class_attach() 350 name = lustre_cfg_string(lcfg, 0); in class_attach() 352 if (!LUSTRE_CFG_BUFLEN(lcfg, 2)) { in class_attach() 356 uuid = lustre_cfg_string(lcfg, 2); in class_attach() 422 rc = OBP(obd, attach)(obd, sizeof(*lcfg), lcfg); in class_attach() 451 int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in class_setup() argument 541 err = obd_setup(obd, lcfg); in class_setup() [all …]
|
D | llog_swab.c | 310 static void print_lustre_cfg(struct lustre_cfg *lcfg) in print_lustre_cfg() argument 316 CDEBUG(D_OTHER, "lustre_cfg: %p\n", lcfg); in print_lustre_cfg() 317 CDEBUG(D_OTHER, "\tlcfg->lcfg_version: %#x\n", lcfg->lcfg_version); in print_lustre_cfg() 319 CDEBUG(D_OTHER, "\tlcfg->lcfg_command: %#x\n", lcfg->lcfg_command); in print_lustre_cfg() 320 CDEBUG(D_OTHER, "\tlcfg->lcfg_num: %#x\n", lcfg->lcfg_num); in print_lustre_cfg() 321 CDEBUG(D_OTHER, "\tlcfg->lcfg_flags: %#x\n", lcfg->lcfg_flags); in print_lustre_cfg() 322 CDEBUG(D_OTHER, "\tlcfg->lcfg_nid: %s\n", libcfs_nid2str(lcfg->lcfg_nid)); in print_lustre_cfg() 324 CDEBUG(D_OTHER, "\tlcfg->lcfg_bufcount: %d\n", lcfg->lcfg_bufcount); in print_lustre_cfg() 325 if (lcfg->lcfg_bufcount < LUSTRE_CFG_MAX_BUFCOUNT) in print_lustre_cfg() 326 for (i = 0; i < lcfg->lcfg_bufcount; i++) in print_lustre_cfg() [all …]
|
D | obd_mount.c | 78 struct lustre_cfg *lcfg; in lustre_process_log() local 96 lcfg = lustre_cfg_new(LCFG_LOG_START, bufs); in lustre_process_log() 97 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_process_log() 98 lustre_cfg_free(lcfg); in lustre_process_log() 120 struct lustre_cfg *lcfg; in lustre_end_log() local 134 lcfg = lustre_cfg_new(LCFG_LOG_END, &bufs); in lustre_end_log() 135 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_end_log() 136 lustre_cfg_free(lcfg); in lustre_end_log() 150 struct lustre_cfg * lcfg = NULL; in do_lcfg() local 166 lcfg = lustre_cfg_new(cmd, &bufs); in do_lcfg() [all …]
|
D | class_obd.c | 227 struct lustre_cfg *lcfg; in class_handle_ioctl() local 234 OBD_ALLOC(lcfg, data->ioc_plen1); in class_handle_ioctl() 235 if (lcfg == NULL) { in class_handle_ioctl() 239 err = copy_from_user(lcfg, data->ioc_pbuf1, in class_handle_ioctl() 242 err = lustre_cfg_sanity_check(lcfg, data->ioc_plen1); in class_handle_ioctl() 244 err = class_process_config(lcfg); in class_handle_ioctl() 246 OBD_FREE(lcfg, data->ioc_plen1); in class_handle_ioctl()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/ |
D | mgc_request.c | 250 struct config_llog_instance lcfg = *cfg; in config_recover_log_add() local 259 if (IS_MDT(lsi) && lcfg.cfg_instance) in config_recover_log_add() 267 LASSERT(lcfg.cfg_instance == NULL); in config_recover_log_add() 268 lcfg.cfg_instance = sb; in config_recover_log_add() 271 LASSERT(lcfg.cfg_instance != NULL); in config_recover_log_add() 275 cld = do_config_log_add(obd, logname, CONFIG_T_RECOVER, &lcfg, sb); in config_recover_log_add() 282 struct config_llog_instance lcfg = *cfg; in config_params_log_add() local 285 lcfg.cfg_instance = sb; in config_params_log_add() 288 &lcfg, sb); in config_params_log_add() 723 static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in mgc_setup() argument [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lib.c | 261 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg) in client_obd_setup() argument 289 if (strstr(lustre_cfg_buf(lcfg, 1), "OST") == NULL) { in client_obd_setup() 318 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in client_obd_setup() 323 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > 37) { in client_obd_setup() 328 if (LUSTRE_CFG_BUFLEN(lcfg, 2) < 1) { in client_obd_setup() 333 if (LUSTRE_CFG_BUFLEN(lcfg, 2) > 37) { in client_obd_setup() 341 memcpy(server_uuid.uuid, lustre_cfg_buf(lcfg, 2), in client_obd_setup() 342 min_t(unsigned int, LUSTRE_CFG_BUFLEN(lcfg, 2), in client_obd_setup() 426 memcpy(cli->cl_target_uuid.uuid, lustre_cfg_buf(lcfg, 1), in client_obd_setup() 427 LUSTRE_CFG_BUFLEN(lcfg, 1)); in client_obd_setup() [all …]
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | rtd520.c | 373 void __iomem *lcfg; member 1147 writel(0, devpriv->lcfg + PLX_INTRCS_REG); in rtd_reset() 1216 devpriv->lcfg = pci_ioremap_bar(pcidev, 0); in rtd_auto_attach() 1217 if (!dev->mmio || !devpriv->las1 || !devpriv->lcfg) in rtd_auto_attach() 1289 writel(ICS_PIE | ICS_PLIE, devpriv->lcfg + PLX_INTRCS_REG); in rtd_auto_attach() 1300 if (dev->mmio && devpriv->lcfg) in rtd_detach() 1308 if (devpriv->lcfg) in rtd_detach() 1309 iounmap(devpriv->lcfg); in rtd_detach()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_config.c | 612 static int __sptlrpc_process_config(struct lustre_cfg *lcfg, in __sptlrpc_process_config() argument 620 target = lustre_cfg_string(lcfg, 1); in __sptlrpc_process_config() 626 param = lustre_cfg_string(lcfg, 2); in __sptlrpc_process_config() 668 int sptlrpc_process_config(struct lustre_cfg *lcfg) in sptlrpc_process_config() argument 670 return __sptlrpc_process_config(lcfg, NULL); in sptlrpc_process_config()
|
/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 767 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in lov_setup() argument 774 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in lov_setup() 779 desc = (struct lov_desc *)lustre_cfg_buf(lcfg, 1); in lov_setup() 781 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { in lov_setup() 783 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); in lov_setup() 913 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg, in lov_process_config_base() argument 920 switch (cmd = lcfg->lcfg_command) { in lov_process_config_base() 927 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { in lov_process_config_base() 932 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); in lov_process_config_base() 934 if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", indexp) != 1) { in lov_process_config_base() [all …]
|
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,
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | super25.c | 88 void lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg));
|
D | llite_lib.c | 2139 int ll_process_config(struct lustre_cfg *lcfg) in ll_process_config() argument 2150 ptr = strrchr(lustre_cfg_string(lcfg, 0), '-'); in ll_process_config() 2163 lcfg, sb); in ll_process_config()
|
D | llite_internal.h | 824 int ll_process_config(struct lustre_cfg *lcfg);
|
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 1311 static int lmv_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in lmv_setup() argument 1318 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in lmv_setup() 1323 desc = (struct lmv_desc *)lustre_cfg_buf(lcfg, 1); in lmv_setup() 1324 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { in lmv_setup() 1326 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); in lmv_setup() 1391 struct lustre_cfg *lcfg = buf; in lmv_process_config() local 1397 switch (lcfg->lcfg_command) { in lmv_process_config() 1401 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { in lmv_process_config() 1406 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); in lmv_process_config() 1408 if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", &index) != 1) { in lmv_process_config() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 98 struct lustre_cfg *lcfg); 2029 struct obd_device *obddev, struct lustre_cfg *lcfg) in echo_client_setup() argument 2037 if (lcfg->lcfg_bufcount < 2 || LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in echo_client_setup() 2042 tgt = class_name2obd(lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2045 lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2058 lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2083 lustre_cfg_string(lcfg, 1)); in echo_client_setup()
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
D | osc_internal.h | 137 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
|
D | osc_request.c | 3159 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in osc_setup() argument 3170 rc = client_obd_setup(obd, lcfg); in osc_setup() 3280 int osc_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg) in osc_process_config_base() argument 3287 switch (lcfg->lcfg_command) { in osc_process_config_base() 3290 lcfg, obd); in osc_process_config_base()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 2538 struct lustre_cfg *lcfg = buf; in mdc_process_config() local 2543 switch (lcfg->lcfg_command) { in mdc_process_config() 2546 lcfg, obd); in mdc_process_config()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_idl.h | 3368 extern void lustre_swab_lustre_cfg(struct lustre_cfg *lcfg);
|