Lines Matching full:props
106 mfi_bbu_get_props(int fd, struct mfi_bbu_properties *props, uint8_t *statusp) in mfi_bbu_get_props() argument
109 return (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_PROP, props, in mfi_bbu_get_props()
110 sizeof(*props), NULL, 0, statusp)); in mfi_bbu_get_props()
114 mfi_bbu_set_props(int fd, struct mfi_bbu_properties *props, uint8_t *statusp) in mfi_bbu_set_props() argument
117 return (mfi_dcmd_command(fd, MFI_DCMD_BBU_SET_PROP, props, in mfi_bbu_set_props()
118 sizeof(*props), NULL, 0, statusp)); in mfi_bbu_set_props()
158 struct mfi_bbu_properties props; in update_bbu_props() local
179 if (mfi_bbu_get_props(fd, &props, &status) < 0) { in update_bbu_props()
197 props.learn_delay_interval = delay; in update_bbu_props()
202 props.auto_learn_mode = 0; in update_bbu_props()
204 props.auto_learn_mode = 1; in update_bbu_props()
206 props.auto_learn_mode = mode[0] - '0'; in update_bbu_props()
213 if (props.bbu_mode == 0) { in update_bbu_props()
227 props.bbu_mode = mode[0] - '0'; in update_bbu_props()
234 if (mfi_bbu_set_props(fd, &props, &status) < 0) { in update_bbu_props()