/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 161 LASSERT (lcfg != NULL); in lustre_cfg_buf() 164 bufcount = lcfg->lcfg_bufcount; in lustre_cfg_buf() 168 offset = LCFG_HDR_SIZE(lcfg->lcfg_bufcount); in lustre_cfg_buf() 170 offset += cfs_size_round(lcfg->lcfg_buflens[i]); in lustre_cfg_buf() 171 return (char *)lcfg + offset; in lustre_cfg_buf() 175 struct lustre_cfg *lcfg) in lustre_cfg_bufs_init() argument [all …]
|
D | lustre_lib.h | 88 int client_sanobd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg);
|
D | lustre_sec.h | 332 int sptlrpc_process_config(struct lustre_cfg *lcfg);
|
D | lu_object.h | 352 struct lustre_cfg *lcfg);
|
D | obd_class.h | 105 int class_process_config(struct lustre_cfg *lcfg); 107 struct lustre_cfg *lcfg, void *data);
|
D | lustre_net.h | 2819 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg);
|
/drivers/staging/lustre/lustre/obdclass/ |
D | obd_config.c | 177 static int class_attach(struct lustre_cfg *lcfg) in class_attach() argument 183 if (!LUSTRE_CFG_BUFLEN(lcfg, 1)) { in class_attach() 187 typename = lustre_cfg_string(lcfg, 1); in class_attach() 189 if (!LUSTRE_CFG_BUFLEN(lcfg, 0)) { in class_attach() 193 name = lustre_cfg_string(lcfg, 0); in class_attach() 195 if (!LUSTRE_CFG_BUFLEN(lcfg, 2)) { in class_attach() 199 uuid = lustre_cfg_string(lcfg, 2); in class_attach() 256 rc = OBP(obd, attach)(obd, sizeof(*lcfg), lcfg); in class_attach() 284 static int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in class_setup() argument 345 err = obd_setup(obd, lcfg); in class_setup() [all …]
|
D | llog_swab.c | 307 static void print_lustre_cfg(struct lustre_cfg *lcfg) in print_lustre_cfg() argument 313 CDEBUG(D_OTHER, "lustre_cfg: %p\n", lcfg); in print_lustre_cfg() 314 CDEBUG(D_OTHER, "\tlcfg->lcfg_version: %#x\n", lcfg->lcfg_version); in print_lustre_cfg() 316 CDEBUG(D_OTHER, "\tlcfg->lcfg_command: %#x\n", lcfg->lcfg_command); in print_lustre_cfg() 317 CDEBUG(D_OTHER, "\tlcfg->lcfg_num: %#x\n", lcfg->lcfg_num); in print_lustre_cfg() 318 CDEBUG(D_OTHER, "\tlcfg->lcfg_flags: %#x\n", lcfg->lcfg_flags); in print_lustre_cfg() 319 CDEBUG(D_OTHER, "\tlcfg->lcfg_nid: %s\n", libcfs_nid2str(lcfg->lcfg_nid)); in print_lustre_cfg() 321 CDEBUG(D_OTHER, "\tlcfg->lcfg_bufcount: %d\n", lcfg->lcfg_bufcount); in print_lustre_cfg() 322 if (lcfg->lcfg_bufcount < LUSTRE_CFG_MAX_BUFCOUNT) in print_lustre_cfg() 323 for (i = 0; i < lcfg->lcfg_bufcount; i++) in print_lustre_cfg() [all …]
|
D | obd_mount.c | 77 struct lustre_cfg *lcfg; in lustre_process_log() local 95 lcfg = lustre_cfg_new(LCFG_LOG_START, bufs); in lustre_process_log() 96 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_process_log() 97 lustre_cfg_free(lcfg); in lustre_process_log() 119 struct lustre_cfg *lcfg; in lustre_end_log() local 133 lcfg = lustre_cfg_new(LCFG_LOG_END, &bufs); in lustre_end_log() 134 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_end_log() 135 lustre_cfg_free(lcfg); in lustre_end_log() 149 struct lustre_cfg *lcfg = NULL; in do_lcfg() local 165 lcfg = lustre_cfg_new(cmd, &bufs); in do_lcfg() [all …]
|
D | class_obd.c | 191 struct lustre_cfg *lcfg; in class_handle_ioctl() local 198 lcfg = kzalloc(data->ioc_plen1, GFP_NOFS); in class_handle_ioctl() 199 if (!lcfg) { in class_handle_ioctl() 203 err = copy_from_user(lcfg, data->ioc_pbuf1, in class_handle_ioctl() 206 err = lustre_cfg_sanity_check(lcfg, data->ioc_plen1); in class_handle_ioctl() 208 err = class_process_config(lcfg); in class_handle_ioctl() 210 kfree(lcfg); in class_handle_ioctl()
|
/drivers/staging/lustre/lustre/mgc/ |
D | mgc_request.c | 250 struct config_llog_instance lcfg = *cfg; in config_recover_log_add() local 258 LASSERT(lcfg.cfg_instance); in config_recover_log_add() 261 cld = do_config_log_add(obd, logname, CONFIG_T_RECOVER, &lcfg, sb); in config_recover_log_add() 268 struct config_llog_instance lcfg = *cfg; in config_params_log_add() local 271 lcfg.cfg_instance = sb; in config_params_log_add() 274 &lcfg, sb); in config_params_log_add() 711 static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in mgc_setup() argument 718 rc = client_obd_setup(obd, lcfg); in mgc_setup() 1102 struct lustre_cfg *lcfg; in mgc_apply_recover_logs() local 1259 lcfg = lustre_cfg_new(LCFG_PARAM, &bufs); in mgc_apply_recover_logs() [all …]
|
/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lib.c | 260 int client_obd_setup(struct obd_device *obddev, struct lustre_cfg *lcfg) in client_obd_setup() argument 288 if (strstr(lustre_cfg_buf(lcfg, 1), "OST") == NULL) { in client_obd_setup() 317 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in client_obd_setup() 322 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > 37) { in client_obd_setup() 327 if (LUSTRE_CFG_BUFLEN(lcfg, 2) < 1) { in client_obd_setup() 332 if (LUSTRE_CFG_BUFLEN(lcfg, 2) > 37) { in client_obd_setup() 339 memcpy(server_uuid.uuid, lustre_cfg_buf(lcfg, 2), in client_obd_setup() 340 min_t(unsigned int, LUSTRE_CFG_BUFLEN(lcfg, 2), in client_obd_setup() 424 memcpy(cli->cl_target_uuid.uuid, lustre_cfg_buf(lcfg, 1), in client_obd_setup() 425 LUSTRE_CFG_BUFLEN(lcfg, 1)); in client_obd_setup() [all …]
|
/drivers/staging/comedi/drivers/ |
D | rtd520.c | 360 void __iomem *lcfg; member 1179 writel(0, devpriv->lcfg + PLX_INTRCS_REG); in rtd_reset() 1244 devpriv->lcfg = pci_ioremap_bar(pcidev, 0); in rtd_auto_attach() 1245 if (!dev->mmio || !devpriv->las1 || !devpriv->lcfg) in rtd_auto_attach() 1320 writel(ICS_PIE | ICS_PLIE, devpriv->lcfg + PLX_INTRCS_REG); in rtd_auto_attach() 1331 if (dev->mmio && devpriv->lcfg) in rtd_detach() 1339 if (devpriv->lcfg) in rtd_detach() 1340 iounmap(devpriv->lcfg); in rtd_detach()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_config.c | 573 static int __sptlrpc_process_config(struct lustre_cfg *lcfg, in __sptlrpc_process_config() argument 581 target = lustre_cfg_string(lcfg, 1); in __sptlrpc_process_config() 587 param = lustre_cfg_string(lcfg, 2); in __sptlrpc_process_config() 629 int sptlrpc_process_config(struct lustre_cfg *lcfg) in sptlrpc_process_config() argument 631 return __sptlrpc_process_config(lcfg, NULL); in sptlrpc_process_config()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 754 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in lov_setup() argument 761 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in lov_setup() 766 desc = (struct lov_desc *)lustre_cfg_buf(lcfg, 1); in lov_setup() 768 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { in lov_setup() 770 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); in lov_setup() 896 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg, in lov_process_config_base() argument 903 switch (cmd = lcfg->lcfg_command) { in lov_process_config_base() 910 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { in lov_process_config_base() 915 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); in lov_process_config_base() 917 rc = kstrtoint(lustre_cfg_buf(lcfg, 2), 10, indexp); in lov_process_config_base() [all …]
|
D | lov_internal.h | 203 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 204 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg,
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 1274 static int lmv_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in lmv_setup() argument 1281 if (LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in lmv_setup() 1286 desc = (struct lmv_desc *)lustre_cfg_buf(lcfg, 1); in lmv_setup() 1287 if (sizeof(*desc) > LUSTRE_CFG_BUFLEN(lcfg, 1)) { in lmv_setup() 1289 (int)sizeof(*desc), LUSTRE_CFG_BUFLEN(lcfg, 1)); in lmv_setup() 1351 struct lustre_cfg *lcfg = buf; in lmv_process_config() local 1357 switch (lcfg->lcfg_command) { in lmv_process_config() 1361 if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(obd_uuid.uuid)) { in lmv_process_config() 1366 obd_str2uuid(&obd_uuid, lustre_cfg_buf(lcfg, 1)); in lmv_process_config() 1368 if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", &index) != 1) { in lmv_process_config() [all …]
|
/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 98 struct lustre_cfg *lcfg); 2028 struct obd_device *obddev, struct lustre_cfg *lcfg) in echo_client_setup() argument 2036 if (lcfg->lcfg_bufcount < 2 || LUSTRE_CFG_BUFLEN(lcfg, 1) < 1) { in echo_client_setup() 2041 tgt = class_name2obd(lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2044 lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2057 lustre_cfg_string(lcfg, 1)); in echo_client_setup() 2076 lustre_cfg_string(lcfg, 1)); in echo_client_setup()
|
/drivers/staging/lustre/lustre/llite/ |
D | super25.c | 90 void lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg));
|
D | llite_lib.c | 2082 int ll_process_config(struct lustre_cfg *lcfg) in ll_process_config() argument 2093 ptr = strrchr(lustre_cfg_string(lcfg, 0), '-'); in ll_process_config() 2106 lcfg, sb); in ll_process_config()
|
D | llite_internal.h | 788 int ll_process_config(struct lustre_cfg *lcfg);
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_internal.h | 141 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
|
D | osc_request.c | 3103 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) in osc_setup() argument 3117 rc = client_obd_setup(obd, lcfg); in osc_setup() 3233 int osc_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg) in osc_process_config_base() argument 3240 switch (lcfg->lcfg_command) { in osc_process_config_base() 3243 lcfg, obd); in osc_process_config_base()
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 2411 struct lustre_cfg *lcfg = buf; in mdc_process_config() local 2416 switch (lcfg->lcfg_command) { in mdc_process_config() 2419 lcfg, obd); in mdc_process_config()
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_idl.h | 3344 void lustre_swab_lustre_cfg(struct lustre_cfg *lcfg);
|