Lines Matching refs:props
108 mfi_bbu_get_props(int fd, struct mfi_bbu_properties *props, uint8_t *statusp)
111 return (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_PROP, props,
112 sizeof(*props), NULL, 0, statusp));
116 mfi_bbu_set_props(int fd, struct mfi_bbu_properties *props, uint8_t *statusp)
119 return (mfi_dcmd_command(fd, MFI_DCMD_BBU_SET_PROP, props,
120 sizeof(*props), NULL, 0, statusp));
160 struct mfi_bbu_properties props;
181 if (mfi_bbu_get_props(fd, &props, &status) < 0) {
199 props.learn_delay_interval = delay;
204 props.auto_learn_mode = 0;
206 props.auto_learn_mode = 1;
208 props.auto_learn_mode = mode[0] - '0';
215 if (props.bbu_mode == 0) {
229 props.bbu_mode = mode[0] - '0';
236 if (mfi_bbu_set_props(fd, &props, &status) < 0) {