Lines Matching refs:ctrl
342 struct amp_ctrl *ctrl; in a2mp_getinfo_rsp() local
352 ctrl = amp_ctrl_add(mgr, rsp->id); in a2mp_getinfo_rsp()
353 if (!ctrl) in a2mp_getinfo_rsp()
417 struct amp_ctrl *ctrl; in a2mp_getampassoc_rsp() local
433 ctrl = amp_ctrl_lookup(mgr, rsp->id); in a2mp_getampassoc_rsp()
434 if (ctrl) { in a2mp_getampassoc_rsp()
439 amp_ctrl_put(ctrl); in a2mp_getampassoc_rsp()
443 ctrl->assoc = assoc; in a2mp_getampassoc_rsp()
444 ctrl->assoc_len = assoc_len; in a2mp_getampassoc_rsp()
445 ctrl->assoc_rem_len = assoc_len; in a2mp_getampassoc_rsp()
446 ctrl->assoc_len_so_far = 0; in a2mp_getampassoc_rsp()
448 amp_ctrl_put(ctrl); in a2mp_getampassoc_rsp()
479 struct amp_ctrl *ctrl; in a2mp_createphyslink_req() local
497 ctrl = amp_ctrl_lookup(mgr, rsp.remote_id); in a2mp_createphyslink_req()
498 if (!ctrl) { in a2mp_createphyslink_req()
499 ctrl = amp_ctrl_add(mgr, rsp.remote_id); in a2mp_createphyslink_req()
500 if (ctrl) { in a2mp_createphyslink_req()
501 amp_ctrl_get(ctrl); in a2mp_createphyslink_req()
508 if (ctrl) { in a2mp_createphyslink_req()
514 amp_ctrl_put(ctrl); in a2mp_createphyslink_req()
519 ctrl->assoc = assoc; in a2mp_createphyslink_req()
520 ctrl->assoc_len = assoc_len; in a2mp_createphyslink_req()
521 ctrl->assoc_rem_len = assoc_len; in a2mp_createphyslink_req()
522 ctrl->assoc_len_so_far = 0; in a2mp_createphyslink_req()
524 amp_ctrl_put(ctrl); in a2mp_createphyslink_req()